@charset "UTF-8";
/* Boostup - feuille de style principale */

/* Chakra Petch, hébergée sur le site (licence SIL OFL 1.1, voir assets/fonts/LICENCE.txt) */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/chakra-petch-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/chakra-petch-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/chakra-petch-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/chakra-petch-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Palette chaude : noir brun, papier crème, néon rouge (appel, sélection)
   et néon bleu en second accent (boutons secondaires, matières, liens).
   Contrastes vérifiés sur --void et --panel : texte 15,6:1, --soft 11,8:1,
   --muted 7,3:1, --faint 5,1:1, rouge 4,9:1, --blue-text 7,8:1 (7,4:1 sur --panel-2).
   --blue (#3D6BFF, 3,9 à 4,4:1) sert aux traits et contours, jamais au texte. */
:root {
  --void: #0F0D0C;
  --band: #141110;
  --panel: #171412;
  --panel-2: #1E1A17;
  --line: #2B2521;
  --line-2: #3F3631;
  --line-3: #6B5E55;
  --text: #F2ECE4;
  --soft: #D8CEC3;
  --muted: #ADA296;
  --faint: #8F857B;
  --chalk: rgba(242, 236, 228, .12);

  --red: #FF2A3D;
  --red-deep: #22100F;
  --red-glow: rgba(255, 42, 61, .45);
  --blue: #3D6BFF;
  --blue-text: #8AA6FF;
  --blue-core: #E6ECFF;
  --blue-deep: #121833;
  --blue-glow: rgba(61, 107, 255, .45);
  --paper-hot: #FFF4F2;

  /* néon : cœur presque blanc, puis halos rouges du plus serré au plus large */
  --neon-core: #FFF4F2;
  --neon-halo:
    0 0 1px rgba(255, 255, 255, .95),
    0 0 3px rgba(255, 200, 205, .9),
    0 0 8px rgba(255, 42, 61, .95),
    0 0 18px rgba(255, 42, 61, .7),
    0 0 36px rgba(255, 42, 61, .42),
    0 0 72px rgba(255, 42, 61, .22);

  /* néon bleu : même construction, cœur blanc bleuté puis halos bleus */
  --neon-halo-blue:
    0 0 1px rgba(255, 255, 255, .95),
    0 0 3px rgba(200, 214, 255, .9),
    0 0 8px rgba(61, 107, 255, .95),
    0 0 18px rgba(61, 107, 255, .7),
    0 0 36px rgba(61, 107, 255, .42),
    0 0 72px rgba(61, 107, 255, .22);
  /* tube fin (contours à coins coupés) : plus clair en haut à gauche, comme un néon allumé */
  --tube-blue: linear-gradient(160deg, #C9D5FF 0%, #6F92FF 22%, var(--blue) 55%, #2E58E6 100%);
  --tube-blue-on: linear-gradient(160deg, #FFFFFF 0%, var(--blue-core) 30%, #8AA6FF 100%);

  /* WhatsApp : son vert officiel, réservé à WhatsApp (9,8:1 sur le fond) */
  --wa: #25D366;
  --wa-core: #E3FCEB;
  --wa-deep: #0D1F14;
  --tube-wa: linear-gradient(160deg, #B9F5CF 0%, #5BE38F 22%, var(--wa) 55%, #1DA851 100%);
  --tube-wa-on: linear-gradient(160deg, #FFFFFF 0%, var(--wa-core) 30%, #7DEBA6 100%);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --f-display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --f-math: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;

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

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--void);
  color-scheme: dark;
  overflow-x: clip;
  scrollbar-color: var(--line-2) var(--void);
}

/* Bilingue : seule la langue active est affichée */
html[lang="fr"] [lang="nl"],
html[lang="nl"] [lang="fr"] { display: none !important; }

[hidden] { display: none !important; }

/* ancres et focus clavier : on s'arrête sous l'en-tête collant
   (sans toucher aux éléments de l'en-tête, sinon la page saute) */
main [id], main a, main button, main summary { scroll-margin-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--f-display);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--void);
  background-image: radial-gradient(rgba(242, 236, 228, .045) 1px, transparent 1.3px);
  background-size: 26px 26px;
}

::selection { color: var(--void); background: var(--red); }

main { position: relative; z-index: 1; display: block; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--text);
  text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; }

.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;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--void);
  background: var(--red);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn, .subject, .lang-switch button, .menu-toggle, .btn-quiet, .text-link, .video-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ---------- Coins coupés ----------
   Le fond de l'élément fait la bordure (--bc),
   le ::before peint l'intérieur (--bg). */
.btn, .subject, .program, .info-card, .legal-doc, .legal-nav a {
  --bc: var(--line-2);
  --bg: var(--panel);
  position: relative;
  isolation: isolate;
  background: var(--bc);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.btn::before, .subject::before, .program::before,
.info-card::before, .legal-doc::before, .legal-nav a::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--bg);
  clip-path: inherit;
}

/* ---------- Boutons ---------- */
.btn {
  --cut: 10px;
  --bc: var(--red);
  --bg: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--void);
  border: 0;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), color 150ms ease;
}
.btn::before { transition: background-color 150ms ease; }
.btn:active { transform: scale(.97); transition-duration: 100ms; }

/* bouton secondaire : contour en tube de néon bleu, lueur douce vers l'intérieur
   (le clip-path couperait un halo extérieur) */
.btn-ghost { --bc: var(--tube-blue); --bg: var(--void); color: var(--text); }
.btn-ghost::before {
  box-shadow: inset 0 0 14px rgba(61, 107, 255, .16);
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
.btn-ghost .icon { color: var(--blue-text); transition: color 150ms ease; }

/* boutons WhatsApp : même tube, en vert WhatsApp pour être reconnus d'un coup d'œil */
.btn-wa { --bc: var(--tube-wa); }
.btn-wa::before { box-shadow: inset 0 0 14px rgba(37, 211, 102, .14); }
.btn-wa .icon { color: var(--wa); }

.btn-sm { --cut: 8px; min-height: 40px; padding: 9px 14px; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 18px 30px; font-size: 1.08rem; }

.text-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  transition: color 150ms ease;
}

.btn-quiet {
  min-height: 40px;
  padding: 6px 0;
  font-family: var(--f-display);
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 150ms ease;
}

/* ---------- Barre d'adresse (tout en haut, non collante) ---------- */
.topbar {
  position: relative;
  z-index: 2;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--muted);
  background: var(--band);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  min-height: 40px;
}
.topbar-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-block: 4px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.topbar-address .icon { width: 16px; height: 16px; color: var(--red); }
.topbar-address > span {
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
.topbar-hours { color: var(--muted); }
@media (max-width: 680px) { .topbar-hours { display: none; } }
@media (max-width: 360px) { .topbar { font-size: .8rem; } .topbar-address { gap: 6px; } }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 13, 12, .94);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(240px, 34vw);
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 42, 61, .35);
}

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
/* symbole : deux chevrons montants dans un cadre à coins coupés */
.brand::before {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  margin-right: 12px;
  background: url("logo-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(255, 42, 61, .45));
}
/* « UP » en exposant, comme une puissance : BOOST^UP */
.brand-up {
  align-self: flex-start;
  margin-left: .1em;
  font-size: .58em;
  letter-spacing: .12em;
  color: var(--red);
  text-shadow: 0 0 8px rgba(255, 42, 61, .4);
  transform: translateY(-.15em);
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.main-nav + .header-actions { margin-left: 8px; }
.brand + .header-actions { margin-left: auto; }
.header-actions .btn-sm { white-space: nowrap; }

.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-2); }
.lang-switch button {
  min-width: 40px;
  min-height: 36px;
  padding: 5px 10px;
  font-family: var(--f-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}
.lang-switch button[aria-pressed="true"] { color: var(--void); background: var(--red); }

.back-link { margin-left: auto; }

/* Bouton menu (mobile) */
.menu-toggle {
  display: none;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform 200ms var(--ease-in-out), opacity 150ms ease; }
.menu-toggle[aria-expanded="true"] { border-color: var(--red); }
.menu-toggle[aria-expanded="true"] span { background: var(--red); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .header-call-text { display: none; }
  .header-actions .btn-sm { min-width: 44px; padding-inline: 12px; }
}

@media (max-width: 960px) {
  .main-nav + .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }

  .main-nav {
    position: fixed;
    /* --nav-top est calculé à l'ouverture (bas de l'en-tête, barre d'adresse comprise) */
    inset: var(--nav-top, var(--header-h)) 0 0 0;
    z-index: 49;
    display: block;
    margin: 0;
    padding: 32px var(--gutter) 120px;
    overflow: hidden auto;
    background-color: var(--void);
    background-image: radial-gradient(70% 50% at 100% 100%, rgba(255, 42, 61, .12), transparent 70%);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  html.menu-open { overflow: hidden; }
  html.menu-open .main-nav {
    visibility: visible;
    clip-path: inset(0 0 0 0);
    transition: clip-path 360ms var(--ease-drawer), visibility 0s;
  }
  html.menu-open .site-header { background: var(--void); }

  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { opacity: 0; transform: translateY(10px); transition: opacity 120ms ease, transform 120ms ease; }
  html.menu-open .main-nav li { opacity: 1; transform: none; transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
  html.menu-open .main-nav li:nth-child(2) { transition-delay: 40ms; }
  html.menu-open .main-nav li:nth-child(3) { transition-delay: 80ms; }
  html.menu-open .main-nav li:nth-child(4) { transition-delay: 120ms; }
  html.menu-open .main-nav li:nth-child(5) { transition-delay: 160ms; }

  .main-nav a {
    padding: 20px 0;
    font-size: clamp(1.5rem, 6vw, 2.1rem);
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .main-nav a::after { left: 0; right: auto; width: 48px; bottom: -1px; }
}
@media (max-width: 600px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .brand { font-size: 1.1rem; letter-spacing: .06em; }
  .back-link { display: none; }
  .back-link + .header-actions { margin-left: auto; }
}

/* ---------- Formules à la craie (filigranes) ---------- */
.watermark {
  position: absolute;
  z-index: 0;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 236, 228, .07);
  pointer-events: none;
  user-select: none;
}
.section > .wrap { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 120px) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(55% 60% at 0% 100%, rgba(255, 42, 61, .13), transparent 70%),
    radial-gradient(45% 50% at 100% 0%, rgba(255, 166, 99, .07), transparent 70%);
}
/* trait néon en bas du hero : rouge à gauche, bleu à droite.
   ::after = le tube, ::before = sa lueur (une copie floutée du même dégradé) */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 2%, rgba(255, 42, 61, .9) 24%, rgba(255, 42, 61, .55) 44%, rgba(61, 107, 255, .65) 60%, rgba(61, 107, 255, .9) 80%, transparent 98%);
}
.hero::after { height: 1px; }
.hero::before { height: 6px; filter: blur(5px); opacity: .7; }
.hero-inner { position: relative; z-index: 1; }

.formulas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}
/* comme une craie presque effacée sur un tableau */
.formulas span {
  position: absolute;
  font-family: var(--f-math);
  font-size: clamp(.85rem, .75rem + .35vw, 1.05rem);
  color: var(--chalk);
  text-shadow: 0 0 1px rgba(242, 236, 228, .1);
  white-space: nowrap;
}
/* deux formules à la craie légèrement bleutée */
.formulas .f2, .formulas .f3 { color: rgba(138, 166, 255, .17); text-shadow: 0 0 1px rgba(138, 166, 255, .14); }
.formulas .f1 { left: 6%; top: 7%; transform: rotate(-3deg); }
.formulas .f2 { left: 50%; top: 5%; transform: rotate(1deg); }
.formulas .f3 { left: 62%; top: 76%; transform: rotate(-2deg); }
.formulas .f4 { left: 30%; top: 93%; transform: rotate(1deg); }

.hero-title {
  max-width: 15ch;
  font-size: clamp(2.6rem, 1rem + 6.2vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.js .hero-title { animation: wipe-in 560ms var(--ease-out) both; }

.hero-lead {
  max-width: 34rem;
  margin-top: 32px;
  font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem);
  color: var(--soft);
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(48px, 6vw, 72px) 0 0;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 -1px 0 rgba(255, 42, 61, .7);
}
.hero-facts > div { padding: 16px 20px; background: rgba(23, 20, 18, .94); }
.hero-facts dt { font-size: .875rem; font-weight: 600; color: var(--muted); }
.hero-facts dd { margin: 4px 0 0; font-weight: 500; color: var(--text); }

/* enseigne néon verticale : tube allumé, reflet sur le mur, respiration lente */
.hero-sign { position: absolute; top: calc(-1 * clamp(20px, 3vw, 48px)); right: 0; pointer-events: none; }
.hero-sign::before {
  content: "";
  position: absolute;
  inset: -25% -140%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 42, 61, .13), transparent);
}
.hero-sign span {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: 700;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: .94;
  letter-spacing: 0;
  color: var(--neon-core);
  text-shadow: var(--neon-halo);
}
/* un second tube, bleu, le long de l'enseigne */
.hero-sign::after {
  content: "";
  position: absolute;
  top: 3%;
  bottom: 3%;
  left: -18px;
  width: 3px;
  border-radius: 2px;
  background: var(--blue-core);
  box-shadow: var(--neon-halo-blue);
}
.js .hero-sign span { animation: sign-on 1s var(--ease-out) .35s both; }
.js .hero-sign::after { animation: sign-on 1s var(--ease-out) .7s both; }
.js .hero-sign { animation: neon-breathe 7s ease-in-out 1.6s infinite alternate; }

@media (max-width: 1080px) {
  .hero-sign { display: none; }
}
@media (max-width: 720px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { padding: 12px 16px; }
  .formulas .f3, .formulas .f4 { display: none; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 42, 61, .35);
}
.js .section-head::before { transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.js .section-head.is-drawn::before { transform: none; }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); letter-spacing: -.005em; }
.section-head p { margin-top: 16px; font-size: 1.12rem; color: var(--muted); text-wrap: pretty; }

/* ---------- Matières ---------- */
.subjects-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.subject-grid > li:last-child:nth-child(4n + 3) { grid-column: span 2; }

.subject {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 140px;
  padding: 18px 16px 30px;
  font: inherit;
  text-align: left;
  color: var(--text);
  border: 0;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.subject:active { transform: scale(.98); transition-duration: 100ms; }
/* une ligne de cahier en bas de la carte */
.subject::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 24px;
  bottom: 14px;
  height: 1px;
  background: var(--line-2);
  transition: background-color 150ms ease;
}
.subject::before { transition: background-color 150ms ease, box-shadow 150ms ease; }
.subject .icon { width: 30px; height: 30px; color: var(--blue-text); stroke-width: 1.6; transition: color 150ms ease, filter 150ms ease; }
.subject { container-type: inline-size; }
.subject-name {
  margin-top: auto;
  /* la taille suit la largeur de la carte : « Mathématiques » tient toujours sur une ligne
     (.9rem d'abord pour les navigateurs sans unités de conteneur) */
  font-size: .9rem;
  font-size: clamp(.85rem, 11.5cqi, 1.2rem);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: break-word;
  transition: color 150ms ease;
}
.stamp {
  display: inline-flex;
  padding: 2px 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--red);
  opacity: 0;
  transform: translateY(4px) scale(.94);
  transform-origin: left center;
  transition: opacity 120ms ease, transform 120ms ease;
}

.subject[aria-pressed="true"] { --bc: var(--red); --bg: var(--red-deep); }
.subject[aria-pressed="true"]::after { background: rgba(255, 42, 61, .6); }
.subject[aria-pressed="true"] .icon { color: var(--red); }
.subject[aria-pressed="true"] .subject-name { color: var(--red); }
.subject[aria-pressed="true"] .stamp {
  opacity: 1;
  transform: none;
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out);
}
.subject.is-restored .stamp { transition: none; }
/* éclat néon quand on choisit une matière */
.subject.is-flash::before { animation: card-flash 480ms var(--ease-out); }
.subject.is-flash .subject-name { animation: name-flash 480ms var(--ease-out); }

/* Programme */
.program { padding: 24px; }
.program::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 64px;
  height: 2px;
  background: var(--red);
}
.program h3 { font-size: 1.3rem; }
.program-count { min-height: 1.6em; margin-top: 4px; font-size: .9rem; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }
.program-empty { color: var(--muted); }
.program-list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.program-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.program-list li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--red); }
.program-note { margin-top: 16px; padding-top: 16px; font-size: .92rem; color: var(--muted); border-top: 1px dashed var(--line-2); }
.program-actions { display: grid; gap: 12px; margin-top: 16px; }
.program-actions .btn { width: 100%; }
.program-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 1100px) {
  .subject-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .subject-grid > li:last-child:nth-child(4n + 3) { grid-column: auto; }
  .subject-grid > li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .subjects-layout { grid-template-columns: 1fr; }
  .program { position: relative; top: auto; }
}
@media (max-width: 720px) {
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .subject-grid > li:last-child:nth-child(3n + 1) { grid-column: auto; }
  .subject-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .subject { min-height: 116px; padding: 16px 12px 28px; }
  .subject::after { left: 12px; right: 18px; bottom: 12px; }
}

/* ---------- Déroulement ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-level { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 20px; }
.step-level i { height: 6px; background: var(--line-2); }
.lv-1 i:nth-child(-n+1),
.lv-2 i:nth-child(-n+2),
.lv-3 i:nth-child(-n+3),
.lv-4 i { background: var(--red); box-shadow: 0 0 6px rgba(255, 42, 61, .3); }
.step h3 { font-size: 1.28rem; line-height: 1.15; }
.step-text { margin-top: 10px; color: var(--muted); text-wrap: pretty; }

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; row-gap: 40px; } }

/* ---------- Nos locaux (vidéo) ---------- */
.locaux { background: var(--band); border-block: 1px solid var(--line); }
.locaux-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.locaux-copy .section-head { margin-bottom: 32px; }
.locaux-points { display: grid; gap: 14px; margin: 0 0 32px; padding: 0; list-style: none; }
.locaux-points li { display: flex; align-items: flex-start; gap: 14px; color: var(--soft); }
.locaux-points .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--red); stroke-width: 1.6; }

.locaux-media { justify-self: center; width: 100%; max-width: 340px; }
.video-frame { position: relative; isolation: isolate; }
/* halo du néon autour du cadre (le flou reste derrière la vidéo, sans la recalculer) */
.video-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  filter: blur(22px);
  pointer-events: none;
}
.video-glow::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: linear-gradient(165deg, var(--red) 25%, var(--blue) 75%);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
/* le cadre : un tube fin, rouge en haut, bleu en bas, plus clair aux extrémités */
.video-clip {
  --cut: 22px;
  padding: 2px;
  background: linear-gradient(165deg, #FF9AA3 0%, var(--red) 24%, var(--red) 40%, var(--blue) 64%, #7F9DFF 100%);
  background: linear-gradient(in oklab 165deg, #FF9AA3 0%, var(--red) 24%, var(--red) 40%, var(--blue) 64%, #7F9DFF 100%);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.locaux-video {
  --cut: 21px;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.video-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: rgba(15, 13, 12, .72);
  border: 1px solid rgba(242, 236, 228, .3);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.video-toggle .icon { width: 18px; height: 18px; }
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }

@media (max-width: 860px) {
  .locaux-inner { grid-template-columns: minmax(0, 1fr); }
  .locaux-media { max-width: 300px; }
}
@media (max-width: 560px) {
  .locaux-copy .btn { width: 100%; }
}

/* ---------- Infos pratiques ---------- */
.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
/* « Quand » sur toute la largeur, « Où » et « Contact » côte à côte en dessous */
.info-when { grid-column: 1 / -1; }
.info-card { padding: 24px; }
.info-card h3 { font-size: 1.25rem; }
.info-card p { margin-top: 12px; color: var(--soft); text-wrap: pretty; }
.info-card .btn { margin-top: 20px; }
.info-phone {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(1.35rem, 1.1rem + .7vw, 1.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}
.info-mail { color: var(--blue-text); overflow-wrap: anywhere; transition: color 150ms ease; }

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.week li {
  position: relative;
  padding: 14px 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--faint);
  background: rgba(242, 236, 228, .03);
}
.week li.is-on { color: var(--text); background: rgba(255, 42, 61, .09); }
.week-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(255, 42, 61, .35));
}
.week-circle path { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; }
.js .week-circle path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 500ms var(--ease-out); }
.js .week.is-drawn .week-circle path { stroke-dashoffset: 0; }
.js .week li:nth-child(6) .week-circle path { transition-delay: .2s; }
.js .week li:nth-child(7) .week-circle path { transition-delay: .4s; }

@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 54rem; border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 18px 0;
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color 150ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
  transition: transform 200ms var(--ease-out), color 150ms ease;
}
.faq-item[open] summary::after { color: var(--red); transform: rotate(45deg); }
.faq-item p { max-width: 40rem; padding: 0 0 24px; color: var(--muted); text-wrap: pretty; }
.faq-item[open] > p { animation: faq-in 220ms var(--ease-out); }
.faq-item a { color: var(--red); }
.faq-item a[data-wa] { color: var(--wa); }

/* ---------- Appel final ---------- */
.cta {
  overflow: hidden;
  background: radial-gradient(70% 90% at 50% 120%, rgba(255, 42, 61, .18), transparent 70%), var(--void);
  border-top: 1px solid var(--line-2);
}
.watermark-cta { left: -1vw; top: 6%; font-size: clamp(4.5rem, 14vw, 13rem); }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta h2 { max-width: 20ch; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); }
/* le numéro en néon : cœur presque blanc, halos rouges en couches */
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  margin-block: 8px;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, .8rem + 7vw, 6.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: var(--neon-core);
  text-decoration: none;
  text-shadow: var(--neon-halo);
  transition: color 150ms ease;
}
.cta-phone .icon { width: .62em; height: .62em; color: var(--red); filter: drop-shadow(0 0 6px rgba(255, 42, 61, .5)); }
.cta p { max-width: 36rem; font-size: 1.1rem; color: var(--muted); text-wrap: pretty; }

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 56px 0 32px;
  color: var(--muted);
  background: #0C0A09;
  border-top: 1px solid var(--line-2);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 {
  margin-bottom: 12px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.footer-tagline { max-width: 22rem; margin-top: 16px; }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--soft); text-decoration: none; transition: color 150ms ease; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 20px;
  font-size: .85rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barre d'appel mobile ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .header-actions .btn-sm[href^="tel:"] { display: none; }
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15, 13, 12, .96);
    border-top: 1px solid rgba(255, 42, 61, .7);
  }
  .js .callbar {
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .js .callbar.is-visible {
    transform: none;
    visibility: visible;
    transition: transform 320ms var(--ease-drawer), visibility 0s;
  }
  .callbar .btn { flex: 1 1 auto; padding-inline: 14px; }
  .callbar .callbar-wa { flex: 0 0 52px; padding: 0; }
  .callbar .callbar-wa .icon { width: 24px; height: 24px; }
  .callbar .callbar-prog { flex: 0 0 auto; }
  .callbar-count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    color: var(--void);
    background: var(--blue-text);
  }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* petits téléphones : les trois boutons de la barre tiennent à 320 px */
@media (max-width: 420px) {
  .callbar { gap: 6px; padding-inline: 12px; }
  .callbar .btn { gap: 6px; padding-inline: 10px; font-size: .875rem; }
  .callbar .callbar-wa { flex-basis: 44px; }
  .callbar .callbar-prog { min-width: 0; }
}
/* le menu ouvert passe devant la barre d'appel */
html.menu-open .callbar { visibility: hidden; }

/* ---------- Pages légales et 404 ---------- */
.legal { padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 9vw, 112px); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.legal-nav a {
  --cut: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 14px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.legal-nav a[aria-current="page"] { --bc: var(--red); --bg: var(--red); color: var(--void); }

.legal-doc { --cut: 22px; max-width: 50rem; padding: clamp(24px, 5vw, 56px); }
.legal-doc h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.legal-doc .updated { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.legal-doc .intro { margin-top: 24px; font-size: 1.1rem; color: var(--soft); }
.legal-doc h2 { margin-top: 44px; font-size: 1.25rem; color: var(--red); }
.legal-doc h3 { margin-top: 24px; font-size: 1.02rem; }
.legal-doc p, .legal-doc ul, .legal-doc table, .legal-doc blockquote { margin-top: 12px; }
.legal-doc p, .legal-doc li, .legal-doc td { color: var(--soft); line-height: 1.7; text-wrap: pretty; }
.legal-doc strong { color: var(--text); }
.legal-doc ul { padding-left: 1.2em; }
.legal-doc li + li { margin-top: 6px; }
.legal-doc li::marker { color: var(--red); }
.legal-doc a { color: var(--blue-text); font-weight: 600; overflow-wrap: anywhere; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-doc th, .legal-doc td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.legal-doc th { font-size: .85rem; font-weight: 600; color: var(--muted); border-bottom-color: var(--red); }
.legal-doc code { padding: 1px 6px; font-family: var(--f-math); font-size: .86em; color: var(--blue-text); background: var(--panel-2); }
.legal-doc blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 16px 20px;
  background: var(--panel-2);
  border-left: 2px solid var(--line-3);
}
.legal-doc blockquote p + p { margin-top: 6px; }

.not-found { display: grid; place-items: center; min-height: calc(100svh - var(--header-h)); padding: 64px 0; text-align: center; }
.not-found .code {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(6rem, 24vw, 14rem);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px var(--red);
  text-shadow: 0 0 40px var(--red-glow);
}
.not-found h1 { margin-top: 16px; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
.not-found p { margin-top: 12px; color: var(--muted); }
.not-found .btn { margin-top: 28px; }

.legal-doc { overflow-wrap: break-word; }
mark.todo {
  overflow-wrap: anywhere;
  padding: 0 4px;
  color: #FF9AA4;
  background: rgba(255, 42, 61, .14);
  border: 1px dashed var(--red);
}

/* ---------- Écran de chargement ---------- */
.loader { display: none; }
.is-loading .loader, .loader-out .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background-color: var(--void);
  background-image:
    radial-gradient(50% 40% at 50% 52%, rgba(255, 42, 61, .12), transparent 70%),
    radial-gradient(rgba(242, 236, 228, .045) 1px, transparent 1.3px);
  background-size: auto, 26px 26px;
  clip-path: inset(0 0 0 0);
}
.loader-out .loader { clip-path: inset(0 0 100% 0); transition: clip-path 520ms var(--ease-in-out); }
.loader-inner { display: grid; justify-items: center; gap: 20px; }
.loader-mark { width: 88px; height: 88px; overflow: visible; filter: drop-shadow(0 0 8px rgba(255, 42, 61, .5)); }
.loader-mark .frame { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 700ms var(--ease-out) forwards; }
.loader-mark .chev-low { opacity: 0; animation: fade-in 500ms var(--ease-out) 250ms forwards; }
.loader-mark .chev-high { opacity: 0; animation: fade-in 500ms var(--ease-out) 450ms forwards; }
.loader-word {
  display: inline-flex;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--text);
  opacity: 0;
  animation: fade-up 500ms var(--ease-out) 300ms forwards;
}
.loader-word span {
  align-self: flex-start;
  margin-left: .1em;
  font-size: .58em;
  letter-spacing: .12em;
  color: var(--red);
  text-shadow: 0 0 8px rgba(255, 42, 61, .4);
  transform: translateY(-.15em);
}
.loader-bar { position: relative; width: 160px; height: 2px; overflow: hidden; background: var(--line); }
.loader-bar i {
  position: absolute;
  inset: 0;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 42, 61, .4);
  transform: scaleX(0);
  transform-origin: left;
  animation: load 900ms var(--ease-out) 150ms forwards;
}
/* le titre et l'enseigne attendent la fin du chargement pour s'animer */
.is-loading .hero-title, .is-loading .hero-sign, .is-loading .hero-sign span, .is-loading .hero-sign::after { animation-play-state: paused; }

/* ---------- Focus visible sur les formes à coins coupés ---------- */
.btn:focus-visible, .subject:focus-visible, .legal-nav a:focus-visible { outline: none; --bc: var(--blue-text); }
.btn:not(.btn-ghost):focus-visible { --bc: var(--paper-hot); }
/* le contour bleu au repos fait 1 px : au focus il passe à 3 px, presque blanc */
.btn-ghost:focus-visible { --bc: var(--blue-core); }
.btn-wa:focus-visible { --bc: var(--wa-core); }
.btn:focus-visible::before, .subject:focus-visible::before, .legal-nav a:focus-visible::before { inset: 3px; }

/* ---------- Survols : souris uniquement ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --bc: var(--paper-hot); --bg: var(--paper-hot); }
  /* le néon bleu s'allume au survol */
  .btn-ghost:hover { --bc: var(--tube-blue-on); --bg: var(--blue-deep); color: #FFFFFF; }
  .btn-ghost:hover::before { box-shadow: inset 0 0 18px rgba(61, 107, 255, .4); }
  .btn-ghost:hover .icon { color: var(--blue-core); }
  .btn-wa:hover { --bc: var(--tube-wa-on); --bg: var(--wa-deep); }
  .btn-wa:hover::before { box-shadow: inset 0 0 18px rgba(37, 211, 102, .35); }
  .btn-wa:hover .icon { color: var(--wa-core); }
  .subject:hover { --bc: var(--tube-blue); }
  .subject:hover::before { box-shadow: inset 0 0 22px rgba(61, 107, 255, .14); }
  .subject:hover::after { background: rgba(61, 107, 255, .55); }
  .subject:hover .icon { color: var(--blue-core); filter: drop-shadow(0 0 2px rgba(61, 107, 255, .9)) drop-shadow(0 0 7px rgba(61, 107, 255, .5)); }
  .subject[aria-pressed="true"]:hover { --bc: var(--red); }
  .subject[aria-pressed="true"]:hover::before { box-shadow: none; }
  .subject[aria-pressed="true"]:hover::after { background: rgba(255, 42, 61, .6); }
  .subject[aria-pressed="true"]:hover .icon { color: var(--red); filter: none; }
  .main-nav a:hover, .lang-switch button:hover, .btn-quiet:hover, .text-link:hover { color: var(--text); }
  .text-link:hover { text-decoration-color: var(--blue); }
  .main-nav a:hover::after { transform: scaleX(1); }
  .topbar-address:hover > span { text-decoration-color: var(--red); }
  .faq-item summary:hover, .info-phone:hover, .info-mail:hover, .cta-phone:hover { color: #FFFFFF; }
  .site-footer a:hover { color: var(--red); }
  .site-footer a[data-wa]:hover { color: var(--wa); }
  .site-footer a[href^="mailto:"]:hover { color: var(--blue-text); }
  .legal-nav a:hover { --bc: var(--blue); color: var(--text); }
  .legal-nav a[aria-current="page"]:hover { --bc: var(--red); color: var(--void); }
  .video-toggle:hover { background: rgba(15, 13, 12, .9); border-color: var(--text); }
}

/* ---------- Cibles tactiles ---------- */
@media (pointer: coarse) {
  .lang-switch button { min-width: 44px; min-height: 44px; }
  .btn-sm, .btn-quiet, .legal-nav a, .topbar-address { min-height: 44px; }
  .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links { gap: 0; }
  .footer-links a { display: inline-block; padding-block: 10px; }
}

/* ---------- Animations ---------- */
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* l'enseigne s'allume doucement, sans clignotement */
@keyframes sign-on {
  0% { opacity: 0; }
  60% { opacity: .85; }
  100% { opacity: 1; }
}
/* respiration lente du néon, uniquement en opacité */
@keyframes neon-breathe { from { opacity: 1; } to { opacity: .84; } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes card-flash { from { background-color: rgba(255, 42, 61, .35); } }
@keyframes name-flash { from { color: var(--paper-hot); text-shadow: 0 0 4px #FFFFFF, 0 0 14px var(--red); } }
@keyframes load { to { transform: scaleX(1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .hero-sign, .js .hero-sign span, .js .hero-sign::after { animation: none !important; opacity: 1; }
  .formulas, .hero-sign { transform: none !important; }
}
