/* ==========================================================
   Thème FirstOnePage Agence — chargé en dernier sur chaque page.
   Charte : bleu nuit #0e1a4f, turquoise #48B8B9, jaune #FAB758,
   corail #E2626B, police Manrope.
   Les pages gardent leurs styles ; ce fichier aligne couleurs,
   typographie et en-tête sur la charte.
   ========================================================== */
:root {
  --fop-navy: #0e1a4f;
  --fop-navy-2: #1d2a66;
  --fop-teal: #48b8b9;
  --fop-teal-ink: #1f7f80;
  --fop-yellow: #fab758;
  --fop-coral: #e2626b;

  /* Variables utilisées par les pages existantes */
  --bg: #f4f6f9;
  --card: #ffffff;
  --card2: #f8f9fb;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --soft: #f8f9fb;
  --border: #e3e7ee;
  --line: #e3e7ee;
  --line-strong: #cfd6e1;
  --text: #121a33;
  --muted: #7d879c;
  --dark: #0e1a4f;
  --accent: #0e1a4f;
  --accent-2: #48b8b9;
  --accent2: #48b8b9;
  --blue: #1f7f80;
  --green: #16794a;
  --success: #16794a;
  --red: #c23b45;
  --danger: #c23b45;
  --amber: #8a5a00;
  --orange: #8a5a00;
  --shadow: 0 1px 2px rgba(14,26,79,.05), 0 8px 24px rgba(14,26,79,.05);
  --shadow-soft: 0 1px 2px rgba(14,26,79,.05), 0 4px 14px rgba(14,26,79,.05);
}

body, button, input, select, textarea {
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}
body { -webkit-font-smoothing: antialiased; color: var(--text); }
h1, h2, h3 { color: var(--fop-navy); letter-spacing: -.02em; }

/* ---------- Logo ---------- */
.fop-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.fop-logo-mark { width: 26px; height: 28px; flex: none; }
.fop-logo-text { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--fop-navy); line-height: 1; }
.fop-logo-sub { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fop-teal-ink); border: 1.5px solid var(--fop-teal); border-radius: 4px; padding: .2rem .4rem .15rem; }

/* En-têtes des pages d'administration : logo + nom de la page */
header .brand { display: flex !important; align-items: center; gap: .9rem !important; font-size: inherit !important; letter-spacing: normal !important; }
header .brand::before, header .brand::after { display: none !important; content: none !important; }
.brand-page { font-size: .9rem; font-weight: 600; color: var(--muted); padding-left: .9rem; border-left: 1px solid var(--line-strong); }

/* Espace client (index.php) */
.brand-badge { background: transparent !important; box-shadow: none !important; width: auto !important; height: auto !important; border-radius: 0 !important; }
.brand-badge .fop-logo-mark { width: 34px; height: 37px; }
.brand-title .fop-logo-text { font-size: 1.35rem; }

/* ---------- Boutons ---------- */
.btn.primary, .btn-primary, button.primary {
  background: var(--fop-navy) !important;
  border-color: var(--fop-navy) !important;
  color: #fff !important;
}
.btn.primary:hover, .btn-primary:hover, button.primary:hover { background: var(--fop-navy-2) !important; border-color: var(--fop-navy-2) !important; }

/* ---------- Champs ---------- */
input:focus, select:focus, textarea:focus {
  border-color: var(--fop-teal) !important;
  box-shadow: 0 0 0 3px rgba(72,184,185,.25) !important;
  outline: none !important;
}

/* ---------- Tableaux ---------- */
th { letter-spacing: .04em; }

/* ---------- Pages Connexion / Inscription ---------- */
body.fop-auth {
  background: var(--bg) !important;
  color: var(--text) !important;
}
.fop-auth .card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow) !important;
  padding: 2rem 1.75rem !important;
}
.fop-auth .card::before { display: none !important; }
.fop-auth .fop-auth-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.fop-auth .fop-auth-logo .fop-logo-mark { width: 34px; height: 37px; }
.fop-auth .fop-auth-logo .fop-logo-text { font-size: 1.45rem; }
.fop-auth h1 { font-size: 1.25rem !important; font-weight: 800; color: var(--fop-navy) !important; text-align: center; }
.fop-auth label { color: var(--text) !important; font-weight: 700; font-size: .82rem !important; }
.fop-auth input[type="email"], .fop-auth input[type="password"], .fop-auth input[type="text"], .fop-auth input[type="tel"] {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 6px !important;
}
.fop-auth .btn {
  background: var(--fop-navy) !important;
  border: 1px solid var(--fop-navy) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  color: #fff !important;
}
.fop-auth .btn:hover { background: var(--fop-navy-2) !important; filter: none !important; }
.fop-auth .btn.secondary {
  background: #fff !important;
  color: var(--fop-navy) !important;
  border-color: var(--line-strong) !important;
}
.fop-auth .btn.secondary:hover { border-color: var(--fop-navy) !important; }

/* ---------- Barre de marque (pages sans en-tête logo) ---------- */
.fop-topbar { background: #fff; border-bottom: 1px solid var(--border); }
.fop-topbar-inner { max-width: 1360px; margin: 0 auto; padding: .8rem 22px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fop-logo-link { text-decoration: none; }
.fop-topbar-back { font-size: .85rem; font-weight: 700; color: var(--fop-navy); text-decoration: none; padding: .45rem .85rem; border: 1px solid var(--line-strong); border-radius: 6px; }
.fop-topbar-back:hover { border-color: var(--fop-navy); }

/* Fond uni, plus sobre que les dégradés d'origine */
body:not(.fop-auth) { background: var(--bg) !important; }

/* ---------- Champs de saisie uniformes (fond blanc) ---------- */
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]):not([type=range]):not([type=color]):not([type=hidden]),
select, textarea {
  background-color: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--line-strong) !important;
}
input::placeholder, textarea::placeholder { color: #9aa3b5 !important; }
a.primary, button.primary { background: var(--fop-navy) !important; border-color: var(--fop-navy) !important; color: #fff !important; }
code { background: var(--card2) !important; color: var(--fop-navy) !important; }

/* Cartes : fond blanc uni (sans dégradé coloré) */
.card { background-image: none !important; background-color: #fff !important; }
