/* ══════════════════════════════════════════════════════════════
   TOKENS.CSS — Base commune à tout le site (charte graphique)
   Ces règles reprennent EXACTEMENT les valeurs de index.html.
   Toute page qui inclut ce fichier (via <link>) aura le même
   rendu visuel pour : couleurs, typographie, menu, pied de page.
   → Pour changer une couleur ou une police partout : un seul
     endroit à modifier, ce fichier.
   ══════════════════════════════════════════════════════════════ */

:root {
  --navy:      #03325c;
  --navy-mid:  #054a80;
  --green:     #00d07d;
  --green-pale:#e8f9f2;
  --ink:       #111827;
  --body-txt:  #374151;
  --muted:     #6b7280;
  --border:    #e5e7eb;
  --surface:   #f9fafb;
  --white:     #ffffff;
  --font:      'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.6; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ─── LAYOUT ─── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ─── NAV (style flottant, plus moderne) ─── */
nav {
  position: sticky; top: 0; z-index: 200;
  padding: 16px 24px 0;
  transition: transform .12s ease;
  background: var(--white);
}
nav.nav-hidden { transform: translateY(-130%); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 8px 30px rgba(3,50,92,0.07);
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1px; }
.nav-cta-mobile-wrap { display: none; }
.nav-links a {
  font-size: 13.5px; font-weight: 600; color: var(--body-txt);
  padding: 9px 13px; border-radius: 100px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--navy); background: var(--green-pale); }
.nav-links a.btn-nav-cta,
.nav-links a.btn-nav-cta:hover { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.lang-dropdown { position: relative; }
.lang-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--navy);
  border: 1.5px solid var(--border); border-radius: 100px;
  padding: 8px 12px; background: var(--white); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lang-dropdown-toggle:hover { border-color: var(--navy); background: var(--green-pale); }
.lang-dropdown-chevron { transition: transform .15s; margin-left: 1px; }
.lang-dropdown.is-open .lang-dropdown-chevron { transform: rotate(180deg); }
.lang-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(3,50,92,0.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  padding: 6px; z-index: 300;
}
.lang-dropdown.is-open .lang-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-dropdown-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--body-txt); transition: background .12s;
}
.lang-dropdown-item:hover { background: var(--surface); }
.lang-dropdown-item.is-active { color: var(--navy); background: var(--green-pale); }
.lang-dropdown-item.is-active svg { color: var(--green); flex-shrink: 0; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: transparent;
}
.nav-toggle:hover { background: var(--green-pale); }
.nav-toggle svg { width: 20px; height: 20px; color: var(--navy); }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-active .icon-menu { display: none; }
.nav-toggle.is-active .icon-close { display: block; }
@media (max-width: 1150px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 10px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border: 1px solid var(--border); border-radius: 20px;
    padding: 10px; box-shadow: 0 16px 40px rgba(3,50,92,0.16);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 16px; font-size: 15px; }
  .nav-right .btn-link { display: none; }
  .nav-inner .nav-right .btn-nav-cta { display: none; }
  .nav-cta-mobile-wrap { display: block; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
  .nav-cta-mobile-wrap .btn-nav-cta { display: inline-flex; width: 100%; justify-content: center; }
}
.btn-link {
  font-size: 14px; font-weight: 600; color: var(--navy);
  padding: 9px 16px; border-radius: 100px;
  transition: background .15s;
}
.btn-link:hover { background: var(--green-pale); }
.btn-nav-cta {
  font-size: 13.5px; font-weight: 700; color: var(--white);
  background: var(--navy); padding: 9px 18px;
  border-radius: 100px; transition: background .15s, transform .15s;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
}
.btn-nav-cta:hover { background: var(--navy-mid); transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer { background: #0a1929; color: rgba(255,255,255,0.5); padding: 64px 0 32px; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.65; max-width: 240px; }
.fc-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px;
  background: rgba(255,255,255,0.07); border-radius: var(--radius-sm);
  padding: 7px 12px; font-size: 12px; color: rgba(255,255,255,0.65);
}
.footer-col h5 {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.9);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { font-size: 13px; transition: color .15s; }
.footer-col li a:hover { color: rgba(255,255,255,0.9); }
.footer-col-legal .footer-legal-group { margin-bottom: 18px; }
.footer-col-legal .footer-legal-group:last-child { margin-bottom: 0; }
.footer-legal-group-title {
  font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; transition: color .15s; }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
}
