/* ══════════════════════════════════════════════════════
   FCD — Design System · tokens extraits de Figma
   Polices : Libre Franklin + Roboto Mono (Figma source)
   Couleurs : extraites via API (#04263e = 47x, etc.)
   ══════════════════════════════════════════════════════ */
/* @import retire (30/09) — PERFORMANCE
   Un @import ne demarre son telechargement qu'APRES reception de la
   feuille qui le contient : la requete part en serie, pas en parallele,
   et bloque le rendu d'autant. Les memes familles sont desormais
   declarees dans le <link> unique du <head> de chaque page.
   Si une page utilise shared.css SANS ce <link>, ajouter le lien Google
   Fonts dans son <head> plutot que de retablir cet @import. */

:root {
  --navy:      #04263e;
  --navy-mid:  #064977;
  --navy-light:#43596b;
  --teal:      #63efdc;
  --teal-dark: #0a6157;
  --red:       #d33a56;
  --red-ink:   var(--red);   /* accent en TEXTE sur fond clair */
  --red-soft:  var(--red);   /* accent sur PANNEAU sombre */
  --red-deep:  var(--red);   /* variante foncee : texte blanc garanti */
  --on-red:    #ffffff;      /* encre POSEE SUR un aplat --red */
  --yellow:    #ffd23f;
  --white:     #ffffff;
  --grey-50:   #eff3f6;
  --grey-200:  #c9d6df;
  --grey-400:  #8fc6ee;
  --ff-body:   'Libre Franklin', sans-serif;
  --ff-mono:   'Roboto Mono', monospace;
  --ff-display: var(--ff-body);
  --bg:        #ffffff;
  --bg-alt:    var(--grey-50);
  --bg-canvas: #e8edf0;
  --fg:        var(--navy);
  --fg-soft:   var(--navy-light);
  --max-w:     1280px;
  --pad-x:     80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff-body); color: var(--navy); background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── CONTAINER ─────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* ── LABEL MONO BRACKETS ───────────────────────────── */
.label {
  font-family: var(--ff-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal-dark);
  display: flex; align-items: center; gap: 6px;
}
.label::before { content: '['; opacity: .5; }
.label::after  { content: ']'; opacity: .5; }
.label.on-dark { color: var(--teal); }
.label.on-dark::before, .label.on-dark::after { color: rgba(99,239,220,.4); }

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body); font-size: 13px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 14px 24px; cursor: pointer; border: none;
  transition: all .2s;
}
.btn-primary   { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #4ed9c6; }
.btn-secondary { background: transparent; border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-navy      { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); }
.btn-red       { background: var(--red); color: #fff; }
.btn-red:hover  { background: #be3049; }
.btn-ghost     { background: transparent; border: 1.5px solid var(--grey-200); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn sup { font-size: 11px; }

/* ── SECTION HEADER ────────────────────────────────── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}
.section-head h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800; line-height: 1.05;
  margin-top: 12px;
}
.section-link {
  font-size: 13px; font-weight: 700;
  color: var(--navy); white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0; margin-bottom: 4px;
}
.section-link .arr { transition: transform .2s; }
.section-link:hover .arr { transform: translateX(4px); }

/* ── STATS ─────────────────────────────────────────── */
.stat-num {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; line-height: 1;
  letter-spacing: -1px;
}
.stat-lbl {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--navy-light);
  margin-top: 8px;
}

/* ── FADE-IN ON SCROLL ─────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }

/* ── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 72px var(--pad-x) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 200px;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-box {
  width: 36px; height: 36px;
  border: 1.5px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 12px; color: #fff;
  flex-shrink: 0;
}
.footer-logo-text { font-size: 11px; line-height: 1.4; color: rgba(255,255,255,.5); }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 12px; }
.footer-col h3 {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 20px;
}
.footer-col h3::before { content: '[ '; }
.footer-col h3::after  { content: ' ]'; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col a:hover { color: var(--teal); }
.footer-contact { font-size: 13px; line-height: 1.9; }
.footer-contact a { color: var(--teal); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 12px; color: rgba(255,255,255,.6);
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,.5);
  transition: all .15s;
}
.footer-socials a:hover { border-color: var(--teal); color: var(--teal); }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
