/* ResQlab : feuille de style du site resqlab.nc
   Jetons verrouillés : REFERENCE_VERROUILLEE.md §5. Ne pas approcher une teinte.
   Principe d'animation : tout le contenu est visible sans JavaScript et avec
   « réduire les animations ». Les états de départ des animations sont posés par
   GSAP lui-même, jamais par cette feuille. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Couleurs verrouillées */
  --axe1: #2E5F8A;
  --axe2: #192C4D;
  --axe3: #C1392B;
  --compl: #5D6A7D;
  --navy-deep: #0C1A2E;
  --bone: #F4F1EA;
  --ink: #0C1420;
  --mute: #8A98A8;

  /* Dérivés d'usage (fonds et filets uniquement, jamais une couleur de marque) */
  --surface: #10223A;
  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.24);
  --text-soft: #C9CFD6;

  --f-title: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-text: "Barlow", Arial, sans-serif;
  --f-mono: "JetBrains Mono", Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 72px;

  --z-header: 50;
  --z-progress: 60;
  --z-intro: 100;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--bone);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, canvas, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--bone); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
button { touch-action: manipulation; }
::selection { background: var(--axe3); color: var(--bone); }

:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--bone); color: var(--ink); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Typographie ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text-soft); max-width: 60ch; }
.mono, .kicker, .data { font-family: var(--f-mono); }
.kicker {
  display: inline-block;
  font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--mute);
  margin-bottom: 1rem;
}
.kicker::before { content: "// "; color: var(--axe3); }
.accent { color: var(--axe3); }

/* ── Barre de progression de lecture ─────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: var(--z-progress);
  background: var(--axe3); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ── En-tête ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(12, 26, 46, 0.86);
  /* Côté logo : teinte du fond du logo 2026, pour qu'il se fonde dans l'en-tête */
  background-image: linear-gradient(90deg, rgb(1, 12, 33) 0, rgb(1, 12, 33) calc(50% - 360px), rgba(1, 12, 33, 0) calc(50% - 60px));
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; height: var(--header-h); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
/* Logo 2026 : fond navy intégré à l'image. On estompe uniquement le fond, hors de la zone
   dessinée (dessin mesuré : 7,1 à 93,5 % en largeur, 16,9 à 79 % en hauteur). */
.logo-feather {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5.5%, #000 94.5%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 5.5%, #000 94.5%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
/* Halo de raccord pour les petits logos (en-tête, pied de page) */
.logo-halo { position: relative; isolation: isolate; display: inline-block; line-height: 0; }
.site-header .logo-halo::before { content: none; }
.logo-halo::before {
  content: ""; position: absolute; inset: -22% -26%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(4, 24, 56) 0%, rgb(2, 16, 40) 34%, rgba(1, 13, 35, .75) 52%, rgba(1, 13, 35, .3) 70%, rgba(1, 13, 35, 0) 100%);
}
.brand img { width: 196px; aspect-ratio: 1672 / 941; margin: -24px 0 -24px -18px; }
.is-home .site-header:not(.show-brand) .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.no-js .is-home .site-header .brand, .motion-off .is-home .site-header .brand { opacity: 1; transform: none; pointer-events: auto; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong); color: var(--bone);
  font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 14px; border-radius: var(--radius); cursor: pointer; min-height: 44px;
}
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative; display: block; padding: 10px 12px; min-height: 44px;
  font-family: var(--f-title); font-weight: 600; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; color: var(--text-soft);
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
  background: var(--axe3); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease-out);
}
.nav-list a:not(.btn):hover::after, .nav-list a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--bone); }
.nav-list .btn { margin-left: 8px; color: var(--bone); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-deep); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; }
  .nav-list a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-list .btn { margin: 16px 0 0; text-align: center; }
  .no-js .site-nav { display: block; position: static; }
  .brand img { width: 160px; margin: -20px 0 -20px -14px; }
}

/* ── Boutons ─────────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--f-title); font-weight: 700; font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s;
  will-change: transform;
}
.btn > span { position: relative; z-index: 1; }
/* Rouge réservé à l'action principale */
.btn-primary { background: var(--axe3); color: var(--bone); box-shadow: 0 0 0 0 rgba(193, 57, 43, 0); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 34px -10px rgba(193, 57, 43, .75); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { border-color: var(--line-strong); color: var(--bone); background: transparent; }
.btn-ghost:hover { border-color: var(--bone); background: rgba(244, 241, 234, .05); }
.btn:active { transform: scale(.97); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Intro (accueil, une fois par session) ───────────────── */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  display: none; place-items: center;
  background: var(--navy-deep);
  pointer-events: none;
}
.intro-on .intro { display: grid; }
/* Évite le flash du héros avant que GSAP pose ses états de départ (retiré au plus tard après 4 s) */
.intro-pending .hero-home .hero-logo, .intro-pending .hero-home h1, .intro-pending .hero-home .lead, .intro-pending .hero-home .btn-row { opacity: 0; }
.intro svg { width: min(900px, 90vw); height: auto; overflow: visible; }
.intro path { fill: none; stroke: var(--axe3); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(193, 57, 43, .9)); }
.intro-skip {
  position: absolute; bottom: 24px; right: 24px; pointer-events: auto;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); background: none; border: 1px solid var(--line); padding: 10px 14px; min-height: 44px; border-radius: var(--radius); cursor: pointer;
}

/* ── Héros accueil ───────────────────────────────────────── */
.hero-home {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 5vw, 56px) 0 clamp(140px, 16vw, 190px);
  overflow: hidden; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -64px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 10%, transparent 75%);
  opacity: .5;
  animation: grid-drift 24s linear infinite;
}
@keyframes grid-drift { to { transform: translate3d(64px, 64px, 0); } }
.hero-glow {
  position: absolute; left: 50%; top: 42%; width: min(1100px, 120vw); aspect-ratio: 16 / 9; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(46, 95, 138, .35), transparent 70%);
  filter: blur(10px);
}
.hero-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 220px;
  background: linear-gradient(to bottom, transparent, rgba(244, 241, 234, .025) 70%, rgba(244, 241, 234, .07) 99.4%, rgba(244, 241, 234, .18) 99.5%, transparent);
  animation: scan 7s cubic-bezier(.6, 0, .4, 1) infinite;
  opacity: .6;
}
@keyframes scan { 0% { transform: translateY(-160px); } 100% { transform: translateY(110vh); } }

.hero-logo {
  position: relative; width: min(900px, 100%, calc((100svh - 450px) * 1.777)); min-width: min(100%, 340px); margin: 0 auto;
  aspect-ratio: 1672 / 941;
}
.hero-logo img { width: 100%; height: 100%; }
/* Halo de raccord : reprend le dégradé du fond du logo et le prolonge jusqu'au navy du site,
   pour que les bords estompés de l'image ne dessinent pas de cadre. */
.hero-logo::before {
  content: ""; position: absolute; inset: -20% -16%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 47%, rgb(7, 33, 72) 0%, rgb(3, 20, 48) 42%, rgb(1, 13, 35) 58%, rgba(1, 13, 35, .85) 68%, rgba(12, 26, 46, 0) 100%);
}
/* Reflet métallique : se superpose au logo sans le recolorer au repos */
.logo-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
  background-size: 300% 100%; background-position: 150% 0; background-repeat: no-repeat;
  mix-blend-mode: overlay; opacity: 0;
}
.hero-home h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: 26ch; margin: clamp(-64px, -5vw, -16px) auto .35em; }
.hero-home .lead { margin: 0 auto; }
.hero-home h1 { max-width: 30ch; }
@media (max-height: 780px) and (min-width: 700px) { .hero-home h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); } .hero-home .lead { font-size: 1.05rem; } }
.hero-home .btn-row { justify-content: center; }

.monitor { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(110px, 14vw, 150px); pointer-events: none; }
.monitor canvas { width: 100%; height: 100%; }
.monitor::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, var(--navy-deep), transparent 12%, transparent 88%, var(--navy-deep));
  z-index: 1;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none;
}
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--bone), transparent); animation: cue 1.8s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Héros des pages intérieures */
.page-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 20%, #000 0%, transparent 60%);
  mask-image: radial-gradient(ellipse at 85% 20%, #000 0%, transparent 60%);
  opacity: .5;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); max-width: 18ch; }
.page-hero.axe3 { box-shadow: inset 0 3px 0 var(--axe3); }
.page-hero.axe1 { box-shadow: inset 0 3px 0 var(--axe1); }

/* ── Bandeau de données ──────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .data { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; color: var(--bone); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat > span:last-child { font-size: 0.95rem; color: var(--text-soft); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ── Sections et grilles ─────────────────────────────────── */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-alt { background: var(--ink); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.axe1 { --c: var(--axe1); --glow: rgba(46, 95, 138, .45); }
.axe2 { --c: var(--axe2); --glow: rgba(244, 241, 234, .12); }
.axe3 { --c: var(--axe3); --glow: rgba(193, 57, 43, .38); }
.compl { --c: var(--compl); --glow: rgba(93, 106, 125, .45); }

/* Cartes d'axe : halo qui suit le pointeur, inclinaison légère (JS) */
.axe-card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c);
  border-radius: var(--radius); padding: 30px 24px 24px; text-decoration: none; color: var(--bone);
  min-height: 300px;
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .3s;
}
.axe-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--glow), transparent 60%);
}
.axe-card:hover, .axe-card:focus-visible { border-color: var(--line-strong); border-top-color: var(--c); }
.axe-card:hover::before, .axe-card:focus-visible::before { opacity: 1; }
.axe-card > * { position: relative; }
.axe-card .kicker { margin-bottom: .6rem; }
.axe-card .kicker::before { content: none; }
.axe-card .big {
  position: absolute; right: 16px; top: 14px; font-family: var(--f-title); font-weight: 700; font-size: 3.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 241, 234, .14); pointer-events: none;
}
.axe-card h3 { margin-bottom: .6rem; }
.axe-card p { color: var(--text-soft); font-size: 1rem; }
.axe-card .codes { margin-top: auto; font-family: var(--f-mono); font-size: 0.85rem; color: var(--mute); }
.axe-card.axe2 { box-shadow: inset 0 4px 0 -1px var(--axe2), inset 0 5px 0 -1px var(--mute); }

/* Pastilles */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px; background: var(--c, var(--compl)); color: var(--bone);
  border: 1px solid transparent;
}
.chip.axe2 { border-color: var(--mute); }
.chip-pro { background: transparent; border-color: var(--bone); color: var(--bone); }

/* ── Catalogue en défilement horizontal (accueil) ────────── */
.hscroll-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.hscroll-head .section-head { margin-bottom: 0; }
.hscroll-viewport { overflow: hidden; }
.hscroll-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hscroll.is-pinned .hscroll-track { display: flex; gap: 20px; width: max-content; padding-right: var(--gutter); }
.hscroll.is-pinned .fcard { width: 340px; flex: none; }
.hscroll-count { font-family: var(--f-mono); color: var(--mute); font-size: .85rem; letter-spacing: .1em; }
.hscroll-count b { color: var(--bone); font-weight: 500; }

.fcard {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  min-height: 300px; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--ink));
  border: 1px solid var(--line); border-top: 4px solid var(--c);
  text-decoration: none; color: var(--bone); overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease-out);
}
.fcard.axe2 { box-shadow: inset 0 1px 0 var(--mute); }
.fcard:hover, .fcard:focus-visible { border-color: var(--line-strong); border-top-color: var(--c); transform: translateY(-4px); }
.fcard .code {
  font-family: var(--f-title); font-weight: 700; font-size: 4.2rem; line-height: .9; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1.5px var(--c);
}
.fcard.axe2 .code { -webkit-text-stroke-color: var(--mute); }
.fcard h3 { font-size: 1.45rem; margin: 0; }
.fcard .axe-name { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.fcard .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--f-mono); font-size: .82rem; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 12px; }
.fcard .go { position: absolute; right: 18px; bottom: 16px; font-family: var(--f-title); font-size: 1.4rem; transition: transform .3s var(--ease-out); }
.fcard:hover .go { transform: translateX(4px); }
.fcard .pro { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--bone); padding: 2px 8px; align-self: flex-start; }

/* ── Catalogue complet ───────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: .06em; text-transform: uppercase;
  background: transparent; color: var(--text-soft); border: 1px solid var(--line-strong);
  padding: 10px 14px; min-height: 44px; border-radius: var(--radius); cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--bone); color: var(--bone); }
.filter[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.filter .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 1px var(--mute); }

.axe-block { margin-bottom: 56px; }
.axe-block[hidden] { display: none; }
.axe-title { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 2px solid var(--c); }
.axe-title h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.axe-block.axe2 .axe-title { border-bottom-color: var(--mute); }

.formation {
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: border-color .3s, box-shadow .3s;
}
.formation:hover { border-color: var(--line-strong); border-left-color: var(--c); }
.formation.axe2 { border-left-color: var(--axe2); box-shadow: inset 1px 0 0 var(--mute); }
.formation.is-target { box-shadow: 0 0 0 2px var(--bone); }
.formation-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 8px; }
.formation-code { font-family: var(--f-mono); font-weight: 500; font-size: 1rem; color: var(--bone); background: var(--c); padding: 2px 10px; border-radius: 2px; }
.formation.axe2 .formation-code { outline: 1px solid var(--mute); }
.formation h3 { margin: 0; flex: 1 1 280px; }
.formation .resume { color: var(--text-soft); max-width: 75ch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.facts div { padding: 12px 14px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.formation details { border-top: 1px solid var(--line); padding-top: 12px; }
.formation summary { cursor: pointer; font-family: var(--f-mono); font-size: 0.85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); min-height: 44px; display: flex; align-items: center; }
.formation summary:hover { color: var(--bone); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin-top: 12px; font-size: 0.98rem; }
.detail-grid h4 { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: .1em; color: var(--mute); margin: 0 0 4px; }
.detail-grid p { margin: 0; color: var(--text-soft); }
@media (max-width: 680px) { .detail-grid { grid-template-columns: 1fr; } }
.formation-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.formation-cta a { font-family: var(--f-title); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ── Étapes reliées par un tracé ECG ─────────────────────── */
.timeline { position: relative; }
.timeline-trace { position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; }
.timeline-trace path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.timeline-trace .base { stroke: var(--line-strong); }
.timeline-trace .live { stroke: var(--axe3); filter: drop-shadow(0 0 6px rgba(193, 57, 43, .8)); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 76px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  font-family: var(--f-mono); font-size: .85rem; color: var(--bone); letter-spacing: .06em;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--navy-deep);
  transition: background-color .4s, border-color .4s;
}
.section-alt .steps li::before { background: var(--ink); }
.steps li.is-lit::before { background: var(--axe3); border-color: var(--axe3); }
.steps h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.steps p { color: var(--text-soft); font-size: 1rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; padding-top: 0; } .timeline-trace { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ── Bande défilante des référentiels ────────────────────── */
.marquee { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track, .marquee.is-offscreen .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  font-family: var(--f-title); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: .02em;
  padding: 0 28px; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--text-soft);
  display: flex; align-items: center; gap: 56px;
}
.marquee li::after { content: ""; width: 10px; height: 10px; background: var(--axe3); transform: rotate(45deg); }
.marquee li:nth-child(3n+1) { color: var(--bone); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-toggle {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--navy-deep); color: var(--text-soft); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 8px 12px; min-height: 44px; cursor: pointer;
}
.marquee-toggle:hover { color: var(--bone); border-color: var(--bone); }

/* Référentiels en liste (sans défilement) */
.refs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.refs li { font-family: var(--f-mono); font-size: .82rem; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--text-soft); }

/* ── Encarts ─────────────────────────────────────────────── */
.panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.panel h2, .panel h3 { margin-top: 0; }
.panel-corners::before, .panel-corners::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--axe3); pointer-events: none;
}
.panel-corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel-corners::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.note { font-size: .95rem; color: var(--text-soft); border-left: 3px solid var(--mute); padding: 4px 0 4px 16px; margin: 24px 0; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.check li::before { content: ""; position: absolute; left: 0; top: 23px; width: 12px; height: 2px; background: var(--axe3); }

.titles { list-style: none; padding: 0; margin: 0; }
.titles li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.titles .data { color: var(--mute); font-size: .85rem; padding-top: 3px; }
@media (max-width: 520px) { .titles li { grid-template-columns: 1fr; gap: 2px; } }

/* ── Bandeau d'appel ─────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; background: var(--axe2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at 90% 50%, rgba(193, 57, 43, .28), transparent 60%);
}
.cta-band .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 22ch; }

/* ── Partenariat C-TECC : logo rouge sur plaque blanche (fond du fichier), jamais recoloré ── */
.partner { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center; margin-top: 32px; border-left: 4px solid var(--axe3); }
.partner-logo { background: #fff; border-radius: var(--radius); padding: 8px; line-height: 0; }
.partner-logo img { width: 100%; height: auto; }
.partner-title { font-size: 1.25rem; margin: 0 0 .5em; }
.partner-text { margin: 0; color: var(--text-soft); font-size: .98rem; max-width: 80ch; }
@media (max-width: 600px) { .partner { grid-template-columns: 1fr; } .partner-logo { width: 120px; } }

/* ── Formulaire ──────────────────────────────────────────── */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--mute); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--bone);
  background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px; transition: border-color .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bone); outline: 2px solid var(--bone); outline-offset: 1px; }
.field select option { background: var(--ink); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--text-soft); }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--axe3); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; margin: 0; }
.form-status.ok { color: #9BD3A8; }
.form-status.err { color: #F2A89E; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .data { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.contact-list a { font-size: 1.2rem; font-weight: 500; }

/* ── Contenu long ────────────────────────────────────────── */
.prose { max-width: 75ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 2em; }
.prose dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 20px; }
.prose dt { color: var(--mute); }
.prose dd { margin: 0; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: 10px; } }
.verbatim { font-weight: 600; }

/* ── Pied de page ────────────────────────────────────────── */
.site-footer { position: relative; background: var(--ink); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: .95rem; color: var(--text-soft); overflow: hidden; }
.footer-logo { width: min(320px, 100%); }
.site-footer .logo-halo { margin: -28px 0 8px -24px; width: min(320px, 80%); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.1rem; color: var(--bone); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--bone); }
.legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.legal-line p { margin: 0; }
.legal-line .verbatim { color: var(--bone); font-weight: 500; }

/* ── Mouvement réduit : tout s'arrête, tout reste lisible ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-track ul[aria-hidden="true"] { display: none; }
  .marquee ul { flex-wrap: wrap; row-gap: 12px; }
  .marquee-toggle { display: none; }
  .hero-scan { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media print {
  .site-header, .site-footer, .cta-band, .filters, .btn, .monitor, .intro, .scroll-progress, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
