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

:root {
  --void: #050507;
  --panel: #0C0D12;
  --panel-2: #13151D;
  --line: #22252F;
  --line-2: #363B4A;
  --text: #E9EAF0;
  --soft: #C9CCD8;
  --muted: #9AA0B2;

  --red: #FF2A3D;
  --red-hot: #F01830;
  --red-glow: rgba(255, 42, 61, .55);
  --blue: #3D6BFF;
  --blue-text: #7C9BFF;
  --neon: #3DF5FF;
  --wa: #25D366;

  --neon-core: #FFE1E4;
  --neon-halo: 0 0 2px #FFFFFF, 0 0 6px var(--red), 0 0 18px var(--red), 0 0 42px var(--red-glow);

  --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.6;
  color: var(--text);
  background-color: var(--void);
  background-image: radial-gradient(rgba(255, 255, 255, .07) 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.04;
  letter-spacing: .005em;
  color: var(--text);
  text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--neon); 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 {
  -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, .report, .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, .report::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: .95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  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; }

.btn-ghost { --bc: var(--blue); --bg: var(--void); color: var(--blue-text); }
.btn-dark { --bc: var(--void); --bg: var(--void); color: var(--red); }
.btn-wa .icon { color: var(--wa); }

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

.text-link {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  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: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 150ms ease;
}

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

.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 5px rgba(255, 42, 61, .6));
}
/* « 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 10px var(--red-glow);
  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: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  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);
  box-shadow: 0 0 8px var(--red-glow);
  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;
    inset: 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, .18), 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.6rem, 6vw, 2.2rem);
    font-weight: 700;
    letter-spacing: .02em;
    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; }
}

/* ---------- Filigranes de formules ---------- */
.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(124, 155, 255, .22);
  pointer-events: none;
  user-select: none;
}
.section > .wrap { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 55% at 0% 100%, rgba(255, 42, 61, .16), transparent 70%),
    radial-gradient(50% 45% at 100% 0%, rgba(61, 107, 255, .2), transparent 70%);
}
/* lignes de balayage limitées au hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
/* trait néon en bas du hero */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 25%, var(--blue) 75%, transparent);
  box-shadow: 0 0 18px var(--red-glow);
}
.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;
}
.formulas span {
  position: absolute;
  font-family: var(--f-math);
  font-size: clamp(.8rem, .7rem + .35vw, 1rem);
  color: rgba(124, 155, 255, .32);
  white-space: nowrap;
}
.formulas .f1 { left: 5%; top: 6%; transform: rotate(-3deg); }
.formulas .f2 { left: 46%; top: 4%; }
.formulas .f3 { left: 70%; top: 58%; transform: rotate(2deg); }
.formulas .f4 { left: 3%; top: 93%; }
.formulas .f5 { left: 38%; top: 62%; transform: rotate(-2deg); }
.formulas .f6 { left: 58%; top: 90%; }
.formulas .f7 { left: 28%; top: 96%; transform: rotate(1deg); }
.formulas .formula-xl {
  right: -3vw;
  bottom: -5vw;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(8rem, 24vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(61, 107, 255, .3);
}

.hero-title {
  max-width: 15ch;
  font-size: clamp(2.6rem, 1rem + 6.2vw, 6.4rem);
  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.05rem, 1rem + .4vw, 1.25rem);
  color: var(--soft);
  text-wrap: pretty;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(44px, 6vw, 68px) 0 0;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 -1px 0 var(--red), 0 -8px 24px -12px var(--red-glow);
}
.hero-facts > div { padding: 16px 18px; background: rgba(12, 13, 18, .92); }
.hero-facts dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.hero-facts dd { margin: 6px 0 0; font-weight: 500; }

/* enseigne néon verticale */
.hero-sign { position: absolute; top: calc(-1 * clamp(20px, 3vw, 48px)); right: 0; pointer-events: none; }
.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);
  will-change: opacity;
}
.js .hero-sign span { animation: power-on 1.2s linear .4s 1 both; }

@media (max-width: 1080px) {
  .hero-sign { z-index: -1; top: -28px; right: -4px; opacity: .22; }
  .hero-sign span { font-size: clamp(1.9rem, 6.2vw, 3.2rem); color: var(--red); text-shadow: none; animation: none; }
}
@media (max-width: 720px) {
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { padding: 12px 16px; }
  .formulas .f5, .formulas .f6, .formulas .f7 { display: none; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--red);
  box-shadow: 0 0 14px var(--red-glow);
}
.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.2rem + 3vw, 3.6rem); text-transform: uppercase; }
.section-head p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); text-wrap: pretty; }

/* ---------- Matières ---------- */
.watermark-subjects { right: 0; top: 40px; font-size: clamp(3rem, 8vw, 7.5rem); }

.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::before { transition: background-color 150ms ease; }
.subject:active { transform: scale(.98); transition-duration: 100ms; }
/* les broches du module */
.subject::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 22px;
  bottom: 11px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px);
}
.subject .icon { width: 30px; height: 30px; color: var(--blue-text); stroke-width: 1.6; transition: color 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
     (.8rem d'abord pour les navigateurs sans unités de conteneur) */
  font-size: .8rem;
  font-size: clamp(.78rem, 10.5cqi, 1.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .03em;
  text-transform: uppercase;
  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: #1A0609; }
.subject[aria-pressed="true"]::after { background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 11px); }
.subject[aria-pressed="true"] .icon { color: var(--red); }
.subject[aria-pressed="true"] .subject-name { color: var(--red); text-shadow: 0 0 14px var(--red-glow); }
.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);
  box-shadow: 0 0 12px var(--red-glow);
}
.program h3 { font-size: 1.3rem; text-transform: uppercase; }
.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; text-transform: uppercase; letter-spacing: .04em; }
.program-list li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--red); box-shadow: 0 0 8px var(--red-glow); }
.program-total {
  margin-top: 14px;
  padding: 10px 12px;
  font-family: var(--f-math);
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: rgba(255, 42, 61, .1);
  border-left: 2px solid 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; }
}

/* ---------- 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: 8px; 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 10px var(--red-glow); }
.step h3 { font-size: 1.25rem; text-transform: uppercase; }
.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; } }

/* ---------- Tarif ---------- */
.pricing { overflow: hidden; color: var(--void); background: var(--red-hot); }
.pricing h2 { color: var(--void); }
.pricing-copy::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--void);
}
.watermark-pricing {
  left: -1vw;
  bottom: -2vw;
  font-size: clamp(4rem, 12vw, 11rem);
  -webkit-text-stroke: 1px rgba(5, 5, 7, .28);
}
.pricing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.pricing-copy h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); text-transform: uppercase; }
.pricing-copy p { max-width: 30rem; margin-top: 20px; font-size: 1.2rem; font-weight: 500; color: #1B0004; text-wrap: pretty; }
.pricing-copy .btn { margin-top: 32px; }

.report { --cut: 22px; --bc: var(--void); --bg: var(--void); color: var(--text); }
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-2);
}
.report-head strong {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.report-stamp {
  display: inline-grid;
  place-items: center;
  min-width: 60px;
  height: 36px;
  padding: 0 8px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--red);
  border: 2px solid var(--red);
  box-shadow: 0 0 12px var(--red-glow), inset 0 0 8px rgba(255, 42, 61, .3);
  transform: rotate(-4deg);
}
.report table { width: 100%; border-collapse: collapse; }
.report th, .report td { padding: 16px 24px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.report th {
  text-align: left;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.report td { text-align: right; font-size: 1.35rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.report .total th { color: var(--text); border-bottom: 0; }
.report .total td {
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.8rem);
  color: var(--neon-core);
  text-shadow: var(--neon-halo);
  border-bottom: 0;
}

/* le bulletin « s'imprime » quand il arrive à l'écran */
.report::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 4px #FFFFFF, 0 0 14px var(--red-glow);
  opacity: 0;
  pointer-events: none;
}
.js .report.is-drawn::after { animation: print-scan 1100ms var(--ease-in-out) 100ms both; }
.js .report tbody tr { opacity: 0; transform: translateY(8px); transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
.js .report.is-drawn tbody tr { opacity: 1; transform: none; }
.js .report.is-drawn tbody tr:nth-child(1) { transition-delay: 200ms; }
.js .report.is-drawn tbody tr:nth-child(2) { transition-delay: 420ms; }
.js .report.is-drawn tbody tr:nth-child(3) { transition-delay: 640ms; }
.js .report .report-stamp { opacity: 0; transform: rotate(-4deg) scale(1.5); transition: opacity 160ms ease, transform 260ms var(--ease-out); }
.js .report.is-drawn .report-stamp { opacity: 1; transform: rotate(-4deg); transition-delay: 1550ms; }

@media (max-width: 900px) {
  .pricing-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pricing-copy .btn { width: 100%; }
  .report-head, .report th, .report td { padding-inline: 16px; }
}

/* ---------- Infos pratiques ---------- */
.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.info-card { padding: 24px; }
.info-card h3 { font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.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-shadow: 0 0 16px var(--red-glow);
  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;
  text-transform: uppercase;
  color: #7D8396;
  background: rgba(255, 255, 255, .025);
}
.week li.is-on { color: var(--text); background: rgba(255, 42, 61, .08); }
.week-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 4px var(--red-glow));
}
.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: 980px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-when { grid-column: 1 / -1; }
}
@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(--blue-text);
  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); }

/* ---------- Appel final ---------- */
.cta {
  overflow: hidden;
  background: radial-gradient(70% 90% at 50% 120%, rgba(255, 42, 61, .24), 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.2rem + 3vw, 3.6rem); text-transform: uppercase; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, .8rem + 7vw, 7rem);
  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); }
.js .cta-phone.is-drawn { animation: flicker 1.5s linear 1; }
.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: #08080B;
  border-top: 1px solid var(--red);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 {
  margin-bottom: 12px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.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(--text); 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: .8rem;
  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(5, 5, 7, .96);
    border-top: 1px solid var(--red);
  }
  .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: .8rem; letter-spacing: .03em; }
  .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: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  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); text-transform: uppercase; }
.legal-doc .updated { margin-top: 10px; font-size: .85rem; 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.2rem; letter-spacing: .04em; text-transform: uppercase; 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: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--red); }
.legal-doc code { padding: 1px 6px; font-family: var(--f-math); font-size: .86em; color: var(--neon); 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(--blue);
}
.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); text-transform: uppercase; }
.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, .14), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .07) 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 10px rgba(255, 42, 61, .6)); }
.loader-mark .frame { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 700ms var(--ease-out) forwards; }
.loader-mark .chev-low { opacity: 0; animation: power-on 900ms linear 250ms forwards; }
.loader-mark .chev-high { opacity: 0; animation: power-on 900ms linear 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 10px var(--red-glow);
  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 10px var(--red-glow);
  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 span { 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(--neon); }
.btn:not(.btn-ghost):focus-visible { --bc: #FFFFFF; }
.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: #FFFFFF; --bg: #FFFFFF; }
  .btn-ghost:hover { --bc: #2F5BEF; --bg: #2F5BEF; color: #FFFFFF; }
  .btn-dark:hover { --bc: var(--void); --bg: var(--void); color: #FFFFFF; }
  .subject:hover { --bc: var(--blue); }
  .subject[aria-pressed="true"]:hover { --bc: var(--red); }
  .main-nav a:hover, .lang-switch button:hover, .btn-quiet:hover, .text-link:hover { color: var(--text); }
  .main-nav a:hover::after { transform: scaleX(1); }
  .faq-item summary:hover, .info-phone:hover, .info-mail:hover, .cta-phone:hover { color: #FFFFFF; }
  .site-footer a:hover { color: var(--red); }
  .legal-nav a:hover { --bc: var(--blue); color: var(--text); }
  .legal-nav a[aria-current="page"]:hover { --bc: var(--red); color: var(--void); }
}

/* ---------- Cibles tactiles ---------- */
@media (pointer: coarse) {
  .lang-switch button { min-width: 44px; min-height: 44px; }
  .btn-sm, .btn-quiet, .legal-nav a { 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); } }
@keyframes power-on {
  0% { opacity: 0; }
  8% { opacity: 1; }
  10% { opacity: .2; }
  14% { opacity: 1; }
  16% { opacity: .3; }
  30%, 100% { opacity: 1; }
}
@keyframes flicker {
  0%, 18%, 22%, 26%, 54%, 58%, 100% { opacity: 1; }
  20%, 24%, 56% { opacity: .35; }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes print-scan {
  0% { top: 0; opacity: 1; }
  85% { top: calc(100% - 2px); opacity: 1; }
  100% { top: calc(100% - 2px); opacity: 0; }
}
@keyframes card-flash { from { background-color: rgba(255, 42, 61, .45); } }
@keyframes name-flash { from { color: #FFFFFF; text-shadow: 0 0 6px #FFFFFF, 0 0 18px var(--red); } }
@keyframes load { to { transform: scaleX(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;
  }
  .formulas, .hero-sign { transform: none !important; }
}
