/* ==========================================================================
   JCI KHAZNADAR — Design System v3 "Élan"
   --------------------------------------------------------------------------
   Palette officielle : navy #140F2D · bleu #0097D6 · turquoise #56BDBC
   Variantes profondes (--blue-600 / --teal-600) réservées au texte blanc
   afin de garantir un contraste WCAG AA (≥ 4.5:1) — voir README.

   SOMMAIRE
   01. Tokens (couleurs, typo, espace, ombres, easings)
   02. Reset & base
   03. Typographie & primitives de mise en page
   04. Utilitaires de mouvement (reveal, split-text)
   05. Chrome : préchargeur, curseur, grain, progression, header, nav
   06. Boutons & champs
   07. Sections
   08. Footer & back-to-top
   09. Keyframes
   10. Responsive
   11. prefers-reduced-motion
   ========================================================================== */

/* ==========================================================================
   01. TOKENS
   ========================================================================== */
:root {
  /* — Marque — */
  --navy-950: #0B0818;
  --navy-900: #140F2D;
  --navy-800: #1D1743;
  --blue-400: #33ACE0;
  --blue-500: #0097D6;
  --blue-600: #00719D;   /* AA sur blanc */
  --teal-300: #7FD0CF;
  --teal-400: #56BDBC;
  --teal-600: #277775;   /* AA sur blanc */
  --white: #FFFFFF;
  --black: #000000;

  /* — Neutres — */
  --paper: #FAFBFD;
  --paper-2: #F1F5FA;
  --ink: #14161C;
  --muted: #5A6472;
  --line: #E6EBF2;

  /* — Dégradés — */
  --grad-brand: linear-gradient(135deg, var(--blue-500) 0%, var(--teal-400) 100%);
  --grad-deep: linear-gradient(155deg, var(--navy-900) 0%, var(--blue-600) 100%);
  --grad-text: linear-gradient(100deg, var(--teal-300) 0%, var(--blue-400) 45%, var(--teal-300) 100%);

  /* — Verre — */
  --glass-light: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.16);

  /* — Typographie — */
  --font-display: 'Sora', 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;

  /* Typographie fluide : le minimum est calibré pour 320 px (pas de titre
     qui déborde), le maximum pour 1440 px et au-delà. */
  --fs-display: clamp(2rem, 6.2vw, 5.4rem);
  --fs-h2: clamp(1.65rem, 4vw, 3.1rem);
  --fs-h3: clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-lede: clamp(1rem, 1.25vw, 1.18rem);
  --fs-small: 0.875rem;

  /* Zone tactile minimale recommandée (WCAG 2.5.5 / Apple HIG) */
  --tap: 44px;

  /* — Espace — */
  --space-3xs: 0.35rem;
  --space-2xs: 0.6rem;
  --space-xs: 0.9rem;
  --space-sm: 1.35rem;
  --space-md: 2rem;
  --space-lg: 3.2rem;
  --space-xl: clamp(2.6rem, 6vw, 5rem);
  /* Rythme vertical des sections : nettement réduit sur petits écrans pour ne
     pas repousser le contenu loin sous la ligne de flottaison. */
  --space-2xl: clamp(3.25rem, 8vw, 8.5rem);

  --container: 1280px;
  --container-narrow: 980px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  /* — Formes — */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-full: 999px;

  /* — Ombres — */
  --sh-xs: 0 1px 2px rgba(20, 15, 45, 0.05);
  --sh-sm: 0 4px 14px rgba(20, 15, 45, 0.07);
  --sh-md: 0 14px 38px -8px rgba(20, 15, 45, 0.16);
  --sh-lg: 0 34px 70px -18px rgba(20, 15, 45, 0.32);
  --sh-brand: 0 18px 44px -14px rgba(0, 151, 214, 0.55);

  /* — Mouvement — */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --e-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.22s var(--e-out);
  --t-base: 0.4s var(--e-out);
  --t-slow: 0.85s var(--e-out);

  --header-h: 78px;
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Les ancres ne passent plus sous l'en-tête collant */
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Verrou de défilement (préchargeur & menu mobile) */
html.is-locked, body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* <dd> porte une marge de 40px par défaut : elle casserait la grille des stats. */
dl, dd, dt, figure { margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
iframe { border: 0; }

::selection { background: var(--teal-400); color: var(--navy-900); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--blue-600); border-radius: var(--r-full); border: 3px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-900); }

/* Focus clavier — visible sur fond clair comme sur fond foncé */
:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: fixed;
  top: 0; left: 0;
  z-index: 12000;
  padding: 14px 22px;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
  transform: translateY(-120%);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   03. TYPOGRAPHIE & PRIMITIVES
   ========================================================================== */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-2xl); position: relative; }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, 0.88); }

/* En-tête de section */
.s-head { max-width: 720px; margin-bottom: var(--space-lg); }
.s-head--center { margin-inline: auto; text-align: center; }

.s-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.s-tag__num {
  font-variant-numeric: tabular-nums;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: rgba(0, 151, 214, 0.1);
  letter-spacing: 0.06em;
}
.s-tag::after {
  content: '';
  width: 34px; height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.s-head--center .s-tag { justify-content: center; }

.s-title { font-size: var(--fs-h2); color: var(--navy-900); margin-bottom: 0.45em; }
.s-lede { font-size: var(--fs-lede); color: var(--muted); margin: 0; }

.section--dark .s-tag { color: var(--teal-300); }
.section--dark .s-tag__num { background: rgba(127, 208, 207, 0.14); }
.section--dark .s-title { color: var(--white); }
.section--dark .s-lede { color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   04. UTILITAIRES DE MOUVEMENT
   ========================================================================== */

/* Révélation simple */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Révélation en cascade des enfants directs */
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--e-out), transform 0.75s var(--e-out);
}
[data-reveal-group].is-in > * { opacity: 1; transform: none; }
[data-reveal-group].is-in > *:nth-child(1) { transition-delay: 0.04s; }
[data-reveal-group].is-in > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-group].is-in > *:nth-child(3) { transition-delay: 0.20s; }
[data-reveal-group].is-in > *:nth-child(4) { transition-delay: 0.28s; }
[data-reveal-group].is-in > *:nth-child(5) { transition-delay: 0.36s; }
[data-reveal-group].is-in > *:nth-child(6) { transition-delay: 0.44s; }
[data-reveal-group].is-in > *:nth-child(7) { transition-delay: 0.52s; }
[data-reveal-group].is-in > *:nth-child(8) { transition-delay: 0.60s; }

/* Révélation mot à mot (généré par JS) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* compense les jambages (g, j, p) coupés par overflow:hidden */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.w > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(115%);
  transition: transform 0.95s var(--e-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.is-in .w > i,
.is-ready .w > i { transform: translateY(0); }

/* Image dévoilée par masque.
   IMPORTANT — le masque est piloté par le PARENT révélé, jamais par l'élément
   masqué lui-même : un élément réduit à une aire nulle par `clip-path` n'est
   plus considéré comme « intersecté », l'IntersectionObserver ne se déclenche
   donc jamais et le masque ne se lève plus (blocage circulaire : l'élément se
   cache de son propre observateur). On observe donc `[data-reveal]`, toujours
   mesurable, et `[data-clip]` ne fait que suivre son état. */
[data-reveal] [data-clip] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--e-io);
}
[data-reveal].is-in [data-clip] { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   05. CHROME
   ========================================================================== */

/* — Préchargeur — */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  transition: opacity 0.6s var(--e-out), visibility 0.6s;
  /* Filet de sécurité : si le JS ne s'exécute pas (erreur, script bloqué),
     le voile s'efface seul au bout de 4 s — le site reste utilisable. */
  animation: preloaderFailsafe 0s linear 4s forwards;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloaderFailsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader__mark {
  width: 54px;
  color: var(--white);
  animation: markPulse 1.7s var(--e-io) infinite;
}
.preloader__mark svg { width: 100%; height: auto; }
.preloader__track {
  width: min(220px, 46vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--r-full);
  overflow: hidden;
}
.preloader__bar {
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  transition: width 0.25s linear;
}
.preloader__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* — Grain — */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(10) infinite;
  will-change: transform;
}

/* — Curseur personnalisé (pointeur fin uniquement) — */
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    z-index: 10500;
    pointer-events: none;
    border-radius: 50%;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .cursor {
    display: block;
    width: 7px; height: 7px;
    background: var(--white);
    margin: -3.5px 0 0 -3.5px;
  }
  .cursor-ring {
    display: block;
    width: 38px; height: 38px;
    margin: -19px 0 0 -19px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: opacity 0.3s ease, width 0.3s var(--e-out), height 0.3s var(--e-out),
                margin 0.3s var(--e-out), background 0.3s var(--e-out);
  }
  body.cursor-ready .cursor,
  body.cursor-ready .cursor-ring { opacity: 1; }
  body.cursor-hover .cursor-ring {
    width: 62px; height: 62px;
    margin: -31px 0 0 -31px;
    background: rgba(255, 255, 255, 0.12);
  }
}

/* — Progression de lecture — */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 9500;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  transform-origin: left;
}

/* — Header — */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t-base), box-shadow var(--t-base),
              border-color var(--t-base), backdrop-filter var(--t-base);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(250, 251, 253, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-xs);
}
.header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; min-height: var(--tap); }
.brand__marks { display: block; }
.brand__logo { height: 42px; width: auto; transition: transform var(--t-base); }
.brand:hover .brand__logo { transform: scale(1.04) rotate(-1.5deg); }
/* Bascule couleur / blanc selon la luminosité du fond de l'en-tête */
.brand__logo--light { display: none; }
.header:not(.is-stuck) .brand__logo--dark { display: none; }
.header:not(.is-stuck) .brand__logo--light { display: block; }
.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Header transparent au-dessus du hero (texte clair) */
.header:not(.is-stuck) .brand__text { color: var(--white); }
.header:not(.is-stuck) .brand__text small { color: rgba(255, 255, 255, 0.7); }
.header:not(.is-stuck) .nav__link { color: rgba(255, 255, 255, 0.88); }
.header:not(.is-stuck) .nav__link:hover,
.header:not(.is-stuck) .nav__link.is-active { color: var(--white); }
.header:not(.is-stuck) .burger__line { background: var(--white); }

/* Navigation bureau */
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.1rem); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  transition: width var(--t-base);
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link:hover, .nav__link.is-active { color: var(--blue-600); }

/* Burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background var(--t-fast);
}
.burger:hover { background: rgba(0, 151, 214, 0.1); }
.burger__line {
  width: 21px; height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast), background var(--t-base);
}
.burger[aria-expanded="true"] .burger__line { background: var(--white); }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu ouvert : l'en-tête redevient transparent pour se fondre dans le
   voile navy, quel que soit l'état de défilement. */
body.menu-open .header {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.menu-open .brand__logo--dark { display: none; }
body.menu-open .brand__logo--light { display: block; }
body.menu-open .brand__text { color: var(--white); }
body.menu-open .brand__text small { color: rgba(255, 255, 255, 0.7); }
body.menu-open .burger__line { background: var(--white); }

/* Menu plein écran (mobile) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 7500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 4vh) var(--gutter) 5vh;
  background: var(--navy-900);
  clip-path: circle(0% at calc(100% - 46px) 39px);
  transition: clip-path 0.7s var(--e-io);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 46px) 39px); visibility: visible; }
.menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(0, 151, 214, 0.3), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(86, 189, 188, 0.22), transparent 55%);
  pointer-events: none;
}
.menu__list { position: relative; display: grid; gap: 2px; }
.menu__item { overflow: hidden; }
.menu__link {
  display: block;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  transform: translateY(110%);
  transition: transform 0.7s var(--e-out), color var(--t-fast);
}
.menu.is-open .menu__link { transform: translateY(0); }
.menu.is-open .menu__item:nth-child(1) .menu__link { transition-delay: 0.14s; }
.menu.is-open .menu__item:nth-child(2) .menu__link { transition-delay: 0.20s; }
.menu.is-open .menu__item:nth-child(3) .menu__link { transition-delay: 0.26s; }
.menu.is-open .menu__item:nth-child(4) .menu__link { transition-delay: 0.32s; }
.menu.is-open .menu__item:nth-child(5) .menu__link { transition-delay: 0.38s; }
.menu.is-open .menu__item:nth-child(6) .menu__link { transition-delay: 0.44s; }
.menu__link:hover { color: var(--teal-300); }
.menu__foot {
  position: relative;
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--e-out) 0.5s, transform 0.6s var(--e-out) 0.5s;
}
.menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu__meta { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   06. BOUTONS & CHAMPS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* padding fluide : le bouton se resserre plutôt que de déborder */
  padding: 15px clamp(1.15rem, 3vw, 1.9rem);
  min-height: var(--tap);
  max-width: 100%;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  /* Le libellé peut se replier sur deux lignes plutôt que sortir du cadre */
  overflow-wrap: break-word;
  border: 1.5px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-brand);
  transform: translateY(101%);
  transition: transform var(--t-base);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { color: var(--navy-900); box-shadow: var(--sh-md); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn--ghost:hover { color: var(--navy-900); border-color: transparent; }

.btn--dark { background: var(--navy-900); color: var(--white); }
.btn--dark:hover { color: var(--navy-900); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }
.btn__spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-busy .btn__spinner { display: block; }
.btn.is-busy .btn__idle { display: none; }
.btn__busy { display: none; }
.btn.is-busy .btn__busy { display: inline; }

.btn__arrow { transition: transform var(--t-base); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Lien fléché */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Zone tactile d'au moins 44 px de haut (WCAG 2.5.5) */
  min-height: var(--tap);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-600);
  transition: gap var(--t-base), color var(--t-base);
}
.arrow-link:hover { gap: 14px; color: var(--teal-600); }

/* Champs à étiquette flottante */
.field { position: relative; margin-bottom: 18px; }
.field input,
.field textarea {
  width: 100%;
  padding: 24px 16px 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field textarea { min-height: 122px; resize: vertical; }
.field label {
  position: absolute;
  top: 17px; left: 17px;
  font-size: 0.94rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--t-base), color var(--t-base);
}
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(0, 151, 214, 0.14);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-12px) scale(0.78);
  color: var(--blue-600);
}
.field--area label { top: 15px; }

/* Champ anti-spam : masqué sans décalage négatif (un `left:-9999px` élargit
   la boîte de défilement du document sur certains navigateurs). */
.honeypot {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   07. SECTIONS
   ========================================================================== */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-xl);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  animation: kenburns 26s var(--e-io) infinite alternate;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(110deg, rgba(11, 8, 24, 0.95) 0%, rgba(20, 15, 45, 0.88) 42%, rgba(0, 113, 157, 0.62) 100%);
}
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38rem 30rem at 78% 18%, rgba(86, 189, 188, 0.34), transparent 62%),
    radial-gradient(34rem 28rem at 8% 88%, rgba(0, 151, 214, 0.34), transparent 62%);
  animation: meshDrift 20s ease-in-out infinite alternate;
}

.hero__inner { position: relative; display: grid; gap: var(--space-md); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  padding: 8px 18px 8px 12px;
  border-radius: var(--r-full);
  background: var(--glass-light);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--e-out) 0.1s, transform 0.7s var(--e-out) 0.1s;
}
.is-ready .eyebrow { opacity: 1; transform: none; }
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-300);
  box-shadow: 0 0 0 0 rgba(127, 208, 207, 0.7);
  animation: ping 2s var(--e-io) infinite;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 16ch;
}
.hero__title .line { display: block; }

/* Seconde ligne : masque de ligne entière plutôt qu'un découpage mot à mot,
   car le dégradé `background-clip: text` doit rester solidaire du texte. */
.hero__title .line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero__title .line--accent {
  background: var(--grad-text);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(115%);
  transition: transform 1s var(--e-out) 0.42s;
  animation: shimmer 7s linear infinite;
}
.is-ready .hero__title .line--accent { transform: translateY(0); }

.hero__lede {
  max-width: 56ch;
  font-size: var(--fs-lede);
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--e-out) 0.62s, transform 0.8s var(--e-out) 0.62s;
}
.is-ready .hero__lede { opacity: 1; transform: none; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--e-out) 0.74s, transform 0.8s var(--e-out) 0.74s;
}
.is-ready .hero__cta { opacity: 1; transform: none; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: var(--space-sm);
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--glass-light);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--e-out) 0.86s, transform 0.9s var(--e-out) 0.86s;
}
.is-ready .hero__stats { opacity: 1; transform: none; }
.stat { padding-inline: 14px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.stat:first-child { border-left: 0; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.73rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.hero__cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 9px;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  opacity: 0;
  transition: opacity 0.8s var(--e-out) 1.1s, color var(--t-fast);
}
.is-ready .hero__cue { opacity: 1; }
.hero__cue:hover { color: var(--white); }
.hero__cue-mouse {
  width: 24px; height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--r-full);
  position: relative;
}
.hero__cue-mouse::after {
  content: '';
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: var(--r-full);
  background: var(--teal-300);
  animation: wheel 1.9s var(--e-io) infinite;
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--navy-900);
  color: var(--white);
  padding-block: 20px;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  padding-right: clamp(1.4rem, 4vw, 3.2rem);
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
}
.marquee__item--muted {
  color: transparent;
  -webkit-text-stroke: 1px rgba(127, 208, 207, 0.55);
}
.marquee__sep { color: var(--teal-400); font-size: 0.75rem; }

/* ---------- À PROPOS ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  /* Le ratio + le fond de repli réservent la place : si une image venait à
     manquer, la mise en page ne « saute » pas et laisse un bloc neutre. */
  aspect-ratio: 4 / 3;
  background: var(--paper-2) linear-gradient(135deg, rgba(0,151,214,0.10), rgba(86,189,188,0.10));
}
.about__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--e-out);
}
.about__media:hover .about__frame img { transform: scale(1.05); }
.about__outline {
  position: absolute;
  inset: -18px -18px 26px 26px;
  border: 1.5px solid var(--teal-400);
  border-radius: var(--r-xl);
  z-index: -1;
  opacity: 0.75;
}
.about__badge {
  position: absolute;
  left: -22px; bottom: -26px;
  padding: 18px 24px;
  border-radius: var(--r-md);
  background: var(--grad-deep);
  color: var(--white);
  box-shadow: var(--sh-lg);
  text-align: center;
  animation: floaty 6s var(--e-io) infinite;
}
.about__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1;
  color: var(--teal-300);
  font-variant-numeric: tabular-nums;
}
.about__badge span { font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.78); }
.about__chip {
  position: absolute;
  top: 22px; right: -20px;
  padding: 13px 19px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-md);
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
  animation: floaty 7s var(--e-io) infinite reverse;
}
.about__chip strong { display: block; font-family: var(--font-display); color: var(--navy-900); font-size: 0.9rem; }

.about__body p { color: var(--muted); }
.about__body strong { color: var(--navy-900); font-weight: 600; }
.checklist { display: grid; gap: 12px; margin-top: var(--space-sm); }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 0.96rem;
  color: var(--ink);
}
.checklist__mark {
  flex: 0 0 auto;
  width: 25px; height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- CREDO (section immersive) ---------- */
.credo { background: var(--navy-950); position: relative; overflow: hidden; }
.credo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46rem 34rem at 88% 6%, rgba(0, 151, 214, 0.22), transparent 60%),
    radial-gradient(40rem 30rem at 4% 96%, rgba(86, 189, 188, 0.17), transparent 60%);
  pointer-events: none;
}
.credo > .container { position: relative; }

.manifesto {
  max-width: var(--container-narrow);
  margin: 0 auto var(--space-xl);
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '\201C';
  position: absolute;
  top: -0.32em; right: 0.12em;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(9rem, 20vw, 15rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: var(--space-sm);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-line);
  position: relative;
}
.tab {
  padding: 11px 24px;
  min-height: var(--tap);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--t-fast), background var(--t-base);
}
.tab[aria-selected="true"] { background: var(--white); color: var(--navy-900); }
.tab:not([aria-selected="true"]):hover { color: var(--white); }

.panel { position: relative; animation: fadeIn 0.5s var(--e-out); }
.panel[hidden] { display: none; }
.panel__kicker {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal-300);
  margin-bottom: 6px;
}
.panel__lead {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--teal-300);
  margin-bottom: 18px;
}
.creed { display: grid; gap: 13px; }
.creed li {
  position: relative;
  padding-left: 30px;
  font-size: 1.01rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.85);
}
.creed li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.62em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: rotate(45deg);
}
.panel[dir="rtl"] { font-family: 'Segoe UI', Tahoma, Arial, sans-serif; text-align: right; }
.panel[dir="rtl"] .creed li { padding-left: 0; padding-right: 30px; }
.panel[dir="rtl"] .creed li::before { left: auto; right: 2px; }

/* Cartes de valeurs */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}
.value {
  position: relative;
  padding: 32px 24px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  overflow: hidden;
  transition: transform 0.5s var(--e-spring), border-color var(--t-base), background var(--t-base);
}
.value::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--e-out);
}
.value:hover { transform: translateY(-9px); border-color: rgba(127, 208, 207, 0.4); background: rgba(255, 255, 255, 0.07); }
.value:hover::after { transform: scaleX(1); }
.value__icon {
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  font-size: 1.55rem;
  transition: transform 0.55s var(--e-spring);
}
.value:hover .value__icon { transform: translateY(-3px) rotate(-7deg) scale(1.07); }
.value h3 { font-size: 1.02rem; color: var(--white); margin-bottom: 8px; }
.value p { font-size: 0.88rem; line-height: 1.6; color: rgba(255, 255, 255, 0.68); margin: 0; }

/* ---------- DOMAINES D'ACTION ----------
   Grille strictement uniforme : 4 colonnes sur bureau, 2 sur tablette,
   1 sur mobile. Les cartes sont des éléments de grille étirés (stretch),
   donc toutes exactement de même hauteur et de même largeur, avec un
   `gap` unique — aucune marge approximative.
   L'icône est en flux normal (jamais en position absolue) : elle ne peut
   donc pas chevaucher le titre, quelle que soit la longueur des textes. */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.7vw, 1.5rem);
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: clamp(1.6rem, 2.2vw, 2.1rem);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
/* Filet d'accent qui se déploie au survol */
.action-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.action-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: transparent;
}
.action-card:hover::before { transform: scaleX(1); }

.action-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* Gabarit d'icône identique pour les quatre cartes */
.action-card__icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  color: var(--white);
  transition: transform 0.28s ease;
}
.action-card__icon svg { width: 26px; height: 26px; }
.action-card:hover .action-card__icon { transform: translateY(-2px) rotate(-6deg); }

.action-card__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--line);
  font-variant-numeric: tabular-nums;
  transition: color 0.28s ease;
}
.action-card:hover .action-card__num { color: var(--teal-400); }

/* Typographie strictement identique d'une carte à l'autre */
.action-card__title {
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--navy-900);
  margin: 0;
  min-height: 2.6em;          /* deux lignes réservées : titres alignés */
  display: flex;
  align-items: flex-start;
}
.action-card__text {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  flex: 1;                     /* occupe le reste : bas de carte aligné */
}

/* ---------- ÉQUIPE ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.6rem);
}
.member {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: transform 0.5s var(--e-spring), box-shadow var(--t-base), border-color var(--t-base);
}
.member:hover { transform: translateY(-10px); box-shadow: var(--sh-lg); border-color: transparent; }
.member__photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--e-out); }
.member:hover .member__photo img { transform: scale(1.08); }
.member__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 15, 45, 0.62), transparent 52%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.member:hover .member__photo::after { opacity: 1; }
.member__body { padding: 18px 18px 20px; text-align: center; }
.member__name { font-size: 1rem; color: var(--navy-900); margin-bottom: 7px; }
.member__role {
  display: inline-block;
  padding: 4px 13px;
  border-radius: var(--r-full);
  background: rgba(0, 151, 214, 0.1);
  color: var(--blue-600);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- ACTUALITÉS ---------- */
.news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.6rem);
  margin-bottom: var(--space-lg);
}
.post {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: transform 0.5s var(--e-spring), box-shadow var(--t-base), border-color var(--t-base);
}
.post:hover { transform: translateY(-10px); box-shadow: var(--sh-lg); border-color: transparent; }
.post__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--e-out); }
.post:hover .post__media img { transform: scale(1.07); }
.post__cat {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 13px;
  border-radius: var(--r-full);
  background: rgba(11, 8, 24, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post__body { display: flex; flex-direction: column; gap: 9px; flex: 1; padding: 22px; }
.post__date {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.post__title { font-size: 1.08rem; color: var(--navy-900); margin: 0; }
.post__text { font-size: 0.92rem; line-height: 1.65; color: var(--muted); margin: 0; flex: 1; }
.post__link { margin-top: 6px; }
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-lg) 0;
  color: var(--muted);
}

/* Bandeau Facebook */
.fb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  border-radius: var(--r-lg);
  background: var(--grad-deep);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.fb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(28rem 20rem at 88% 12%, rgba(86, 189, 188, 0.42), transparent 62%);
}
.fb__text { display: flex; align-items: center; gap: 16px; min-width: 0; }
.fb__icon {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.4rem;
}
.fb p { margin: 0; font-weight: 500; max-width: 46ch; }

/* ---------- REJOIGNEZ-NOUS ---------- */
.join { position: relative; overflow: hidden; }
.join::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42rem 32rem at 6% 4%, rgba(0, 151, 214, 0.26), transparent 58%),
    radial-gradient(38rem 30rem at 96% 98%, rgba(86, 189, 188, 0.2), transparent 58%);
  pointer-events: none;
}
.join > .container { position: relative; }
.join__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: start;
}
.perks { display: grid; gap: 8px; }
.perk {
  display: flex;
  gap: 18px;
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.perk:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-line);
  transform: translateX(7px);
}
.perk__icon {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(86, 189, 188, 0.14);
  border: 1px solid rgba(86, 189, 188, 0.42);
  font-size: 1.25rem;
  transition: transform 0.5s var(--e-spring);
}
.perk:hover .perk__icon { transform: rotate(-7deg) scale(1.07); }
.perk h3 { font-size: 1.02rem; color: var(--white); margin-bottom: 5px; }
.perk p { font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.7); margin: 0; }

.join__form {
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--sh-lg);
}
.join__form-head { margin-bottom: var(--space-sm); }
.join__form-head h3 { font-size: 1.28rem; color: var(--navy-900); margin-bottom: 4px; }
.join__form-head p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-note { margin: 14px 0 0; font-size: 0.78rem; line-height: 1.55; color: var(--muted); }
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 0.89rem;
  font-weight: 500;
  animation: fadeIn 0.4s var(--e-out);
}
.form-status.is-ok { background: rgba(39, 119, 117, 0.11); color: var(--teal-600); }
.form-status.is-err { background: rgba(176, 42, 42, 0.09); color: #A32626; }

/* ---------- CONTACT ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.info { display: grid; gap: 10px; min-width: 0; }
.info__item {
  display: flex;
  gap: 17px;
  padding: 17px;
  /* `min-width: 0` lève la taille minimale implicite des éléments flex/grid.
     Sans cela, une chaîne insécable (l'adresse e-mail) impose sa largeur à
     toute la grille et déclenche un défilement horizontal sous 400 px. */
  min-width: 0;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.info__item > div { min-width: 0; }
.info__item:hover {
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--sh-sm);
  transform: translateX(6px);
}
.info__icon {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(0, 151, 214, 0.1);
  font-size: 1.2rem;
  transition: transform 0.5s var(--e-spring);
}
.info__item:hover .info__icon { transform: rotate(-8deg) scale(1.08); }
.info__item h3 { font-size: 0.98rem; color: var(--navy-900); margin-bottom: 3px; }
.info__item p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  /* L'e-mail et le numéro peuvent se couper plutôt que de forcer la largeur */
  overflow-wrap: anywhere;
}
/* `:not(.social)` — cette règle ne vise que les liens TEXTE (e-mail,
   téléphone). Sans l'exclusion, sa spécificité (0,1,1) l'emportait sur
   `.social` (0,1,0) et imposait aux icônes la couleur grise du texte
   ainsi qu'un `display: inline-block` qui annulait leur centrage. */
.info__item a:not(.social) {
  display: inline-block;
  color: var(--muted);
  overflow-wrap: anywhere;
  /* Zone tactile confortable sans casser l'alignement du texte */
  padding-block: 11px;
  transition: color var(--t-fast);
}
.info__item a:not(.social):hover { color: var(--blue-600); }

.socials { display: flex; gap: 11px; margin-top: 9px; }
.social {
  width: 46px; height: 46px;
  /* `inline-grid` + `place-items: center` : le glyphe est centré quelles que
     soient les règles de lien environnantes. `flex-shrink: 0` empêche
     l'écrasement du cercle dans un conteneur flex étroit. */
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: 0 4px 12px -4px rgba(0, 151, 214, 0.5);
  transition: transform var(--t-base), background var(--t-base), box-shadow var(--t-base), color var(--t-base);
}
.social svg { display: block; }
.social:hover {
  transform: translateY(-5px);
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--sh-md);
}

.map {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 7px solid var(--white);
  box-shadow: var(--sh-lg);
}
.map iframe { width: 100%; height: clamp(320px, 42vw, 440px); display: block; filter: saturate(0.88) contrast(1.02); }

/* ==========================================================================
   08. FOOTER
   ========================================================================== */
.footer {
  position: relative;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 3.2rem);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer__about { font-size: 0.9rem; line-height: 1.7; max-width: 42ch; }
.footer__affil { margin: 14px 0 0; font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); }
.footer__affil a { color: var(--teal-300); font-weight: 600; }
.footer__affil a:hover { text-decoration: underline; }
.footer__col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__col ul { display: grid; gap: 2px; }
/* `:not(.social)` — ne vise que les liens texte du pied de page. Sans
   l'exclusion, cette règle (0,1,1) écrasait `.social` (0,1,0) : l'icône
   héritait du gris atténué et d'un `display: flex` sans `justify-content`,
   ce qui la plaquait à gauche de son cercle au lieu de la centrer. */
.footer__col a:not(.social) {
  /* Lien de pied de page : hauteur tactile suffisante et espacement entre
     deux liens pour éviter les appuis accidentels. */
  display: flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.66);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer__col a:not(.social):hover { color: var(--teal-300); padding-left: 5px; }
.footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer__social .social {
  width: var(--tap); height: var(--tap);
  /* Le fond translucide à 7 % était quasi indiscernable du bleu marine :
     on reprend le dégradé de marque, nettement lisible sur fond sombre. */
  background: var(--grad-brand);
  border: 0;
  color: var(--white);
}
.footer__social .social:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: transparent;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: var(--space-sm);
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer__bottom p { margin: 0; }

/* Retour en haut */
.to-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  z-index: 7000;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), background var(--t-base);
}
.to-top.is-in { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-600); transform: translateY(-4px); }

/* ==========================================================================
   09. KEYFRAMES
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes kenburns {
  from { transform: scale(1.12) translate3d(0, 0, 0); }
  to { transform: scale(1.2) translate3d(-1.6%, -1.4%, 0); }
}
@keyframes meshDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.5%, 2%, 0) scale(1.07); }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(127, 208, 207, 0.65); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(127, 208, 207, 0); }
}
@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(13px); }
}
@keyframes shimmer { to { background-position: 220% center; } }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes markPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(-10%, 5%); }
  70% { transform: translate(9%, 2%); }
  90% { transform: translate(-3%, 10%); }
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
/* Système de points de rupture UNIQUE pour tout le projet :
   1280 · 1024 · 768 · 560 · 380
   Toutes les colonnes utilisent `minmax(0, 1fr)` : un `1fr` nu vaut
   `minmax(auto, 1fr)`, dont le minimum « auto » laisse un contenu insécable
   élargir la grille au-delà du viewport (cause du scroll horizontal). */
@media (max-width: 1920px) {
  /* Le logo porte déjà le nom : le libellé texte cède la place aux liens,
     ce qui évite que la barre de navigation ne déborde. */
  .brand__text { display: none; }
  .nav { gap: clamp(0.85rem, 1.55vw, 1.4rem); }
  .nav__link { font-size: 0.88rem; }
  .nav .btn { font-size: 0.85rem; padding-inline: 1.05rem; }
}
/* ---------- ≤ 1280px — petit portable : navigation compacte ---------- */
@media (max-width: 1280px) {
  /* Le logo porte déjà le nom : le libellé texte cède la place aux liens,
     ce qui évite que la barre de navigation ne déborde. */
  .brand__text { display: none; }
  .nav { gap: clamp(0.85rem, 1.55vw, 1.4rem); }
  .nav__link { font-size: 0.88rem; }
  .nav .btn { font-size: 0.85rem; padding-inline: 1.05rem; }
}

/* ---------- ≤ 1024px — tablette paysage : bascule en menu mobile ---------- */
@media (max-width: 1024px) {
  /* Bascule AVANT tout chevauchement : à cette largeur la barre complète
     réclamait 1173px et le bouton CTA sortait de l'écran. */
  .nav { display: none; }
  .burger { display: flex; }
  .brand__text { display: block; }   /* le burger libère la place */

  .about { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .about__media { max-width: 620px; }
  .join__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 4 cartes = 2 × 2 ; les titres tiennent sur une ligne, la hauteur
     réservée pour l'alignement n'est plus nécessaire. */
  .actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-card__title { min-height: 0; }

  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .stat:nth-child(3) { border-left: 0; }
}

/* ---------- ≤ 768px — tablette portrait ---------- */
@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .hero { min-height: auto; padding-block: calc(var(--header-h) + 2.75rem) 3.25rem; }
  .hero__title { max-width: 100%; }
  .hero__cue { display: none; }

  /* Badge « 1988 » et puce « Filière officielle » — passage en flux normal.
     ------------------------------------------------------------------
     En bureau, les deux sont en `position: absolute` et se posent sur deux
     coins opposés de la photo : aucun risque de collision.
     Le bug venait d'un passage en flux À MOITIÉ fait : seule la puce
     redevenait `static` (donc dernier élément du flux, ajoutant sa hauteur
     au conteneur), tandis que le badge restait `absolute` avec
     `bottom: -20px`, c'est-à-dire ancré au bas d'un conteneur désormais
     rallongé par la puce. Le badge retombait donc pile sur la puce.
     Correction : les DEUX quittent le positionnement absolu ensemble, et
     `.about__media` devient une grille flex — image sur toute la largeur,
     badge et puce alignés en dessous, avec repli automatique si la place
     manque. Plus aucune valeur de décalage codée en dur. */
  .about__media {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
  }
  .about__outline { display: none; }
  .about__frame { flex: 1 0 100%; }

  .about__badge,
  .about__chip {
    position: static;
    inset: auto;              /* neutralise top/right/bottom/left hérités */
    margin: 0;
    animation: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .about__badge { flex: 0 1 auto; padding: 12px 18px; text-align: left; }
  .about__chip { flex: 1 1 12rem; }

  .fb { flex-direction: column; align-items: stretch; }
  .fb .btn { width: 100%; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .map iframe { height: clamp(260px, 55vw, 380px); }
}

/* ---------- ≤ 560px — mobile ---------- */
@media (max-width: 560px) {
  .actions-grid { grid-template-columns: minmax(0, 1fr); }
  .news { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  /* Champs et boutons occupent toute la largeur disponible */
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  .stat { padding-inline: 8px; }
  .join__form, .manifesto { padding: clamp(1.1rem, 4.5vw, 1.7rem); }
}

/* ---------- ≤ 380px — très petits mobiles (iPhone SE) ---------- */
@media (max-width: 380px) {
  /* Deux colonnes de 116px tronquaient les libellés : passage en liste. */
  .hero__stats { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 12px 0 0;
  }
  .stat:first-child { border-top: 0; padding-top: 0; }

  .team { grid-template-columns: minmax(0, 1fr); }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1 1 0; padding-inline: 10px; }
}

/* ==========================================================================
   SANS JAVASCRIPT — filet de sécurité
   Si le JS est désactivé ou n'a pas pu s'exécuter, aucun contenu ne doit
   rester masqué : tout s'affiche immédiatement, sans animation.
   ========================================================================== */
html:not(.js) .preloader,
html:not(.js) .cursor,
html:not(.js) .cursor-ring { display: none; }

html:not(.js) [data-reveal],
html:not(.js) [data-reveal-group] > *,
html:not(.js) .eyebrow,
html:not(.js) .hero__lede,
html:not(.js) .hero__cta,
html:not(.js) .hero__stats,
html:not(.js) .hero__cue {
  opacity: 1;
  transform: none;
}
html:not(.js) [data-clip] { clip-path: none; }
html:not(.js) .hero__title .line--accent { transform: none; }
html:not(.js) .menu__link { transform: none; }

/* Idem si le script principal a levé une erreur au démarrage. */
html.js-failed [data-reveal],
html.js-failed [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
html.js-failed [data-clip] { clip-path: none !important; }

/* ==========================================================================
   11. PRÉFÉRENCE : MOUVEMENT RÉDUIT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  [data-clip] { clip-path: none !important; }
  .w > i { transform: none !important; }
  .hero__title .line--accent { transform: none !important; }
  .menu__link { transform: none !important; }
  .preloader { display: none !important; }
  .hero__img { animation: none; transform: scale(1.02); }
  .hero__mesh, .grain { animation: none; }
  .marquee__track { animation: none; transform: none; }
  .eyebrow, .hero__lede, .hero__cta, .hero__stats, .hero__cue { opacity: 1 !important; transform: none !important; }
  .cursor, .cursor-ring { display: none !important; }
  .menu { transition: none; }
}
