/* Palier — design system
   Adapté du gabarit de référence Vetra (MIT) : fond nuit, Satoshi, lueurs ciel → bleu,
   cadres à double bordure, pastille « spark », cartes à halo qui suit la souris.
   Réinterprété pour la lecture éditoriale : colonne de texte confortable, tableaux lisibles,
   et une signature propre au site, le rail des six paliers. */

@font-face { font-family: Satoshi; src: url(/assets/fonts/Satoshi-Variable.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --bg: hsl(240 10% 4%);
  --bg-2: hsl(240 9% 6%);
  --card: hsl(240 8% 7.5%);
  --card-2: hsl(240 7% 10%);
  --border: hsl(240 5% 15%);
  --border-2: hsl(240 5% 22%);
  --fg: hsl(0 0% 97%);
  --fg-2: hsl(240 5% 82%);
  --muted: hsl(240 5% 62%);
  --sky: #38bdf8;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(90deg, var(--sky), var(--blue));
  --radius: 14px;
  --radius-lg: 24px;
  --container: 1180px;
  --shadow: 0 1px 0 hsl(0 0% 100% / .04) inset, 0 20px 60px -30px hsl(220 90% 50% / .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.65 Satoshi, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; user-select: none; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
::selection { background: hsl(215 90% 55% / .45); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: hsl(0 0% 100% / .12); border-radius: 10px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--fg); color: var(--bg); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; margin-top: 2rem; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-fill { fill: currentColor; stroke: none; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; cursor: pointer; }
.btn .i { transition: transform .25s; }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--fg); color: hsl(240 10% 8%); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px hsl(210 100% 70% / .15), 0 10px 30px -10px hsl(210 100% 60% / .6); }
.btn-ghost { background: hsl(0 0% 100% / .03); border-color: var(--border-2); color: var(--fg); }
.btn-ghost:hover { border-color: hsl(210 80% 60% / .6); background: hsl(210 80% 60% / .08); }
.btn-sm { padding: .5rem .85rem; font-size: .875rem; border-radius: 9px; }
.btn-lg { padding: .9rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.link { position: relative; text-decoration: none; color: var(--fg-2); transition: color .3s; }
.link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--fg); transition: width .3s; border-radius: 10px; }
.link:hover { color: var(--fg); } .link:hover::after { width: 100%; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: hsl(240 10% 4% / .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid hsl(0 0% 100% / .06); }
.header-row { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; }
.main-nav { display: flex; gap: .25rem; margin-left: 1rem; }
.main-nav a { padding: .45rem .7rem; border-radius: 8px; color: var(--fg-2); text-decoration: none; font-size: .925rem; font-weight: 500; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--fg); background: hsl(0 0% 100% / .05); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.lang-switch { font-size: .875rem; color: var(--muted); text-decoration: none; padding: .35rem .6rem; border: 1px solid var(--border); border-radius: 999px; }
.lang-switch:hover { color: var(--fg); border-color: var(--border-2); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border); background: transparent; border-radius: 10px; color: var(--fg); position: relative; cursor: pointer; }
.menu-toggle span:not(.sr-only) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .25s; }
.menu-toggle span:nth-child(1) { top: 15px; } .menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav[hidden] { display: none; }
.mobile-nav { border-top: 1px solid var(--border); padding: .75rem 1.25rem 1.25rem; display: grid; gap: .25rem; }
.mobile-nav a { padding: .7rem .5rem; text-decoration: none; border-bottom: 1px solid hsl(0 0% 100% / .05); }
@media (max-width: 1080px) { .main-nav { display: none; } .menu-toggle { display: block; } }
@media (min-width: 1081px) { .mobile-nav { display: none !important; } }
@media (max-width: 560px) { .header-actions .btn, .header-actions .lang-switch { display: none; } }

/* ---------- Lueurs et pastilles ---------- */
.glow { position: absolute; pointer-events: none; z-index: -1; border-radius: 999px; filter: blur(110px); opacity: .55; }
.glow-a { width: 46vw; height: 220px; left: 50%; top: -60px; transform: translateX(-50%); background: linear-gradient(90deg, hsl(199 90% 55% / .55), hsl(221 83% 53% / .55)); }
.glow-hero { width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; left: 50%; top: 4%; transform: translateX(-50%); background: hsl(221 83% 53% / .5); filter: blur(140px); }
.glow-cta { width: 60%; height: 60%; right: -10%; top: 20%; background: hsl(221 83% 53% / .35); }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .45rem; border-radius: 999px; font-size: .82rem; color: var(--fg-2); background: hsl(0 0% 100% / .04); border: 1px solid var(--border); margin: 0 0 1.25rem; text-decoration: none; }
.pill-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--grad); box-shadow: 0 0 10px var(--sky); margin-left: .35rem; }
.pill-new { padding: .1rem .5rem; border-radius: 99px; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.pill-spark { position: relative; isolation: isolate; border-color: transparent; background: var(--bg); }
.pill-spark::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a), transparent 0 300deg, hsl(0 0% 100% / .9) 345deg, transparent 360deg), linear-gradient(var(--border), var(--border)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; z-index: -1; }
@keyframes spin { to { --a: 360deg; } }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Accueil ---------- */
.hero { position: relative; isolation: isolate; padding: 5.5rem 0 2rem; text-align: center; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.06; max-width: 20ch; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 .grad { display: block; padding-bottom: .1em; }
.hero .lede { max-width: 58ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin: .5rem auto 2rem; }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.orbits { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.orbit { position: absolute; top: 300px; border: 1px solid hsl(0 0% 100% / .05); border-radius: 50%; animation: orbit linear infinite; }
.orbit i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: hsl(0 0% 100% / .7); box-shadow: 0 0 12px hsl(200 100% 70% / .8); }
.orbit i:nth-child(1) { top: -3px; left: 50%; } .orbit i:nth-child(2) { bottom: 14%; left: 4%; width: 3px; height: 3px; } .orbit i:nth-child(3) { right: 6%; top: 30%; width: 4px; height: 4px; }
.o1 { width: 600px; height: 600px; margin-top: -300px; animation-duration: 40s; }
.o2 { width: 820px; height: 820px; margin-top: -410px; animation-duration: 70s; animation-direction: reverse; }
.o3 { width: 1040px; height: 1040px; margin-top: -520px; animation-duration: 110s; }
@keyframes orbit { to { transform: rotate(360deg); } }
.hero-frame { position: relative; margin-top: 3.5rem; width: 100%; max-width: 1100px; padding: 8px; border: 1px solid var(--border); border-radius: 32px; background: hsl(0 0% 100% / .02); backdrop-filter: blur(10px); }
.frame-glow { position: absolute; inset: 10% 15% auto; height: 40%; background: linear-gradient(90deg, var(--sky), var(--blue)); filter: blur(120px); opacity: .45; z-index: -1; animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.frame-inner { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: #05050a; }
.frame-inner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame-inner::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, hsl(240 10% 4% / .9), transparent); }
.frame-steps { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; padding: 1.25rem; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.frame-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .6rem .75rem; border-radius: 12px; background: hsl(240 10% 6% / .65); border: 1px solid hsl(0 0% 100% / .08); backdrop-filter: blur(8px); font-size: .82rem; color: var(--fg-2); text-align: left; transform: translateY(calc((5 - var(--i)) * 4px)); }
.frame-steps b { font-size: .7rem; color: var(--sky); letter-spacing: .08em; }
@media (max-width: 480px) { .frame-steps { display: none !important; } }
@media (max-width: 720px) { .frame-steps { grid-template-columns: repeat(3, 1fr); padding: .6rem; } .frame-steps li { font-size: .72rem; padding: .4rem .5rem; transform: none; } }
.stats-band { position: relative; padding: 2.5rem 0; }
.stats-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: radial-gradient(50% 50% at 50% 50%, hsl(215 30% 30%) 0%, transparent 100%); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(180deg, #fff, hsl(0 0% 100% / .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; } }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.path { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; padding: 0 !important; }
.path img { aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--border); }
.path > div { padding: 1.25rem 1.4rem 1.4rem; }
.path p { color: var(--muted); font-size: .95rem; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.why-item p { color: var(--muted); font-size: .95rem; margin: 0; }
.why-n { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--sky); letter-spacing: .1em; margin-bottom: 1rem; }
.cta-band { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(135deg, hsl(240 8% 8%), hsl(230 20% 9%)); }
.cta-band img { border-radius: 16px; border: 1px solid var(--border); }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: var(--muted); }
@media (max-width: 900px) { .paths, .why { grid-template-columns: 1fr; } .cta-band { grid-template-columns: 1fr; } }

/* ---------- Cartes ---------- */
.card { position: relative; background: var(--card); border: 1px solid hsl(240 5% 15% / .8); border-radius: var(--radius-lg); padding: 1.4rem; transition: border-color .3s, transform .3s; }
.card:hover { border-color: var(--border-2); }
.magic { isolation: isolate; overflow: hidden; }
.magic::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), hsl(217 91% 60% / .12), transparent 60%); }
.magic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), hsl(199 89% 60% / .7), hsl(221 83% 53% / .35) 40%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.magic:hover::before, .magic:hover::after { opacity: 1; }

/* Niveaux */
.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.level { display: flex; flex-direction: column; padding-top: 1rem; }
.level img { width: 120px; height: 120px; border-radius: 20px; margin: 0 0 .75rem -10px; mix-blend-mode: lighten; }
.level-num { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.level h3 { font-size: 1.35rem; margin: .25rem 0 .4rem; }
.level p { color: var(--muted); font-size: .95rem; margin-bottom: .75rem; }
.level-link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--fg); }
.level-link:hover { color: var(--sky); }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .levels { grid-template-columns: 1fr; } .level { flex-direction: row; flex-wrap: wrap; gap: 0 1rem; } .level img { width: 72px; height: 72px; margin: 0; } }

/* Rail des paliers */
.rail { display: inline-grid; grid-template-columns: repeat(6, 1fr); gap: 3px; width: 96px; vertical-align: middle; }
.rail-seg { height: 6px; border-radius: 3px; background: hsl(0 0% 100% / .09); }
.rail-seg:nth-child(1) { height: 4px; align-self: end; } .rail-seg:nth-child(2) { height: 5px; align-self: end; } .rail-seg:nth-child(3) { height: 6px; align-self: end; }
.rail-seg:nth-child(4) { height: 7px; align-self: end; } .rail-seg:nth-child(5) { height: 8px; align-self: end; } .rail-seg:nth-child(6) { height: 9px; align-self: end; }
.rail-seg.on { background: var(--grad); box-shadow: 0 0 8px hsl(205 90% 60% / .5); }
.rail-label { font-size: .78rem; color: var(--muted); margin-left: .5rem; }

/* Carte formation */
.course-list { display: grid; gap: 1.25rem; margin: 1.75rem 0; }
.course-list.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .course-list.cols-2 { grid-template-columns: 1fr; } }
.course-card { display: flex; flex-direction: column; gap: .9rem; }
.cc-top { display: flex; gap: 1rem; align-items: flex-start; }
.cc-rank { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: hsl(0 0% 100% / .06); border: 1px solid var(--border-2); }
.course-card:first-child .cc-rank { background: var(--grad); border-color: transparent; }
.cc-title { flex: 1; min-width: 0; }
.cc-provider { margin: 0 0 .15rem; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.course-card h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.course-card h3 a { text-decoration: none; } .course-card h3 a:hover { color: var(--sky); }
.cc-verdict { color: var(--fg-2); font-size: .97rem; margin: 0; }
.cc-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1rem; margin: 0; padding: .9rem 0 0; border-top: 1px solid var(--border); }
.cc-facts dt { display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cc-facts dd { margin: .1rem 0 0; font-size: .92rem; color: var(--fg-2); }
.cc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .25rem; }
.rating { display: inline-flex; align-items: center; gap: .3rem; } .rating .i { color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-size: .75rem; padding: .2rem .6rem; border-radius: 99px; border: 1px solid var(--border-2); color: var(--fg-2); background: hsl(0 0% 100% / .02); }
.chip-green { border-color: hsl(142 60% 50% / .35); color: hsl(142 70% 70%); background: hsl(142 60% 50% / .07); }
.chip-blue { border-color: hsl(210 90% 60% / .4); color: hsl(205 90% 75%); background: hsl(210 90% 60% / .08); }

/* Indice */
.score { --p: 50; flex: none; position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--sky), var(--blue) calc(var(--p) * 1%), hsl(0 0% 100% / .08) 0); }
.score::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--card); }
.score b, .score small { position: relative; line-height: 1; }
.score b { font-size: 1.05rem; font-weight: 800; margin-top: .45rem; } .score small { font-size: .6rem; color: var(--muted); margin-top: -.35rem; }
.score.is-provisional { background: conic-gradient(hsl(0 0% 100% / .35), hsl(0 0% 100% / .35) calc(var(--p) * 1%), hsl(0 0% 100% / .08) 0); }
.score-lg { width: 112px; height: 112px; } .score-lg::before { inset: 7px; } .score-lg b { font-size: 2rem; margin-top: .9rem; } .score-lg small { font-size: .8rem; margin-top: -.6rem; }

/* ---------- Pages éditoriales ---------- */
.page-hero { position: relative; isolation: isolate; padding: 3rem 0 1.5rem; overflow: hidden; }
.narrow-hero { max-width: 860px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
.page-hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--fg-2); max-width: 68ch; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: var(--muted); margin: 0; }
.meta span + span::before { content: "·"; margin-right: 1.2rem; color: var(--border-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.25rem; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--border-2); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.page-visual { margin: 2rem 0 0; padding: 6px; border: 1px solid var(--border); border-radius: 26px; background: hsl(0 0% 100% / .02); }
.page-visual img { border-radius: 20px; aspect-ratio: 21 / 8; object-fit: cover; width: 100%; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3.5rem; padding: 2rem 0 5rem; align-items: start; }
.toc { position: sticky; top: 96px; font-size: .88rem; }
.toc p { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .75rem; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 .9rem; border-left: 1px solid var(--border); display: grid; gap: .55rem; }
.toc a { color: var(--muted); text-decoration: none; display: block; line-height: 1.35; transition: color .2s; }
.toc a:hover, .toc a.active { color: var(--fg); }
.toc a.active { position: relative; } .toc a.active::before { content: ""; position: absolute; left: calc(-.9rem - 1px); top: 0; bottom: 0; width: 2px; background: var(--grad); }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }
.prose { max-width: 780px; min-width: 0; }
.prose > p, .prose li { color: var(--fg-2); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.8rem 0 1rem; padding-top: .5rem; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.prose a:not(.btn):not(.card) { color: var(--fg); text-decoration: underline; text-decoration-color: hsl(205 90% 60% / .5); text-underline-offset: 3px; }
.prose a:not(.btn):not(.card):hover { text-decoration-color: var(--sky); }
.prose strong { color: var(--fg); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3rem; } .prose li { margin-bottom: .45rem; } .prose li::marker { color: var(--sky); }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 2px solid var(--sky); background: hsl(210 80% 60% / .05); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2.5rem 0; }
.prose .course-list { margin: 1.75rem 0 2.25rem; }
.callout { margin: 1.5rem 0; padding: 1rem 1.25rem; border: 1px solid hsl(210 90% 60% / .3); background: linear-gradient(135deg, hsl(210 90% 60% / .08), transparent); border-radius: 14px; }
.callout p { margin: 0; color: var(--fg); }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--bg-2); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: hsl(0 0% 100% / .02); }
.compare th[scope=row] a { display: block; font-weight: 600; text-decoration: none !important; color: var(--fg) !important; }
.compare th[scope=row] { min-width: 190px; }
.table-note { font-size: .8rem; color: var(--muted); margin-top: -.75rem; }
.facts th { width: 34%; color: var(--muted); font-weight: 500; }
.faq { display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 0 1.2rem; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sky); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1rem; color: var(--fg-2); } .faq details > div p:last-child { margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.related { display: flex; flex-direction: column; gap: .35rem; text-decoration: none !important; padding: 1.2rem 1.3rem; }
.related strong { font-size: 1.05rem; } .related .i { margin-top: .5rem; color: var(--sky); }
.kicker { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Fiche formation ---------- */
.course-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
.course-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.course-head .chips, .course-rail { margin: 1rem 0; }
.course-head .cc-actions { margin: 1.25rem 0 .5rem; }
.score-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.score-caption { margin: .75rem 0 1rem; font-weight: 600; }
.crit { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--border); width: 100%; display: grid; gap: .65rem; text-align: left; font-size: .82rem; }
.crit li { display: grid; grid-template-columns: 1fr 70px; gap: .2rem .6rem; align-items: center; }
.crit li b { grid-column: 1 / -1; font-weight: 500; color: var(--muted); font-size: .75rem; margin-top: -.15rem; }
.crit .bar { grid-row: 1; grid-column: 2; height: 6px; border-radius: 4px; background: hsl(0 0% 100% / .07); overflow: hidden; }
.crit .bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.course-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; padding: 1rem 0 5rem; align-items: start; }
.course-aside { position: sticky; top: 96px; display: grid; gap: 1rem; }
.course-aside .course-card { padding: 1.1rem; }
.course-aside .cc-facts { grid-template-columns: 1fr 1fr; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.pros-cons h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin: 0 0 .5rem; }
.pros-cons .card:first-child h3 .i { color: var(--green); } .pros-cons .card:last-child h3 .i { color: var(--red); }
.pros-cons p { margin: 0; color: var(--fg-2); font-size: .95rem; }
.quotes { display: grid; gap: .75rem; }
.q { margin: 0 !important; } .q span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.q p { margin: .25rem 0 0; font-style: italic; } .q-neg { border-left-color: var(--red) !important; background: hsl(0 80% 60% / .05) !important; }
.sources a { word-break: break-all; }
.h3 { font-size: 1.1rem; }
@media (max-width: 1000px) { .course-head, .course-body { grid-template-columns: 1fr; } .course-aside { position: static; } .score-card { max-width: 420px; } }
@media (max-width: 560px) { .pros-cons, .cc-facts { grid-template-columns: 1fr; } }

/* Index + filtres */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 16px; background: var(--card); margin: 1rem 0 0; position: sticky; top: 76px; z-index: 5; }
.filters label { display: grid; gap: .3rem; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.filters select { font: inherit; font-size: .92rem; color: var(--fg); background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px; padding: .5rem .75rem; min-width: 170px; text-transform: none; letter-spacing: 0; }
.filters-count { margin: 0 0 0 auto; color: var(--muted); }
[data-list] > [hidden] { display: none; }

/* Histogramme méthode */
.histo { margin: 1.5rem 0; }
.histo-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 160px; }
.histo-bars span { height: var(--h); min-height: 2px; background: var(--grad); border-radius: 6px 6px 2px 2px; position: relative; opacity: .9; }
.histo-bars i { position: absolute; top: -1.3rem; left: 0; right: 0; text-align: center; font-size: .72rem; font-style: normal; color: var(--muted); }
.histo-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: .4rem; }
.histo figcaption { font-size: .85rem; color: var(--muted); margin-top: .75rem; }

/* Quiz */
.quiz { padding: clamp(1.25rem, 3vw, 2rem); margin: 1.5rem 0 2rem; }
.quiz-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 1.5rem; }
.quiz-progress span { height: 4px; border-radius: 4px; background: hsl(0 0% 100% / .08); }
.quiz-progress span.on { background: var(--grad); }
.quiz h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.quiz-options button { text-align: left; font: inherit; color: var(--fg); background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 14px; padding: .9rem 1rem; cursor: pointer; transition: border-color .2s, background .2s; }
.quiz-options button small { display: block; color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.quiz-options button:hover, .quiz-options button[aria-pressed="true"] { border-color: var(--sky); background: hsl(205 90% 60% / .08); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 1.25rem; }
.quiz-result .course-list { margin: 1rem 0; }
.quiz-why { font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .quiz-options { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; padding: 4rem 0 2rem; margin-top: 2rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: radial-gradient(50% 50% at 50% 50%, hsl(215 30% 30%) 0%, transparent 100%); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 1rem; max-width: 34ch; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.footer-legal { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Passe lisibilité (retours V1) ---------- */
.narrow { max-width: 860px; }
.hero-grid { padding: 0 !important; align-items: start; }
.article-hero { padding-bottom: .5rem; }
.hero-col { max-width: 780px; min-width: 0; }
.hero-col .page-visual { margin-top: 2rem; }
@media (max-width: 1000px) { .hero-spacer { display: none; } }
.page-visual img { aspect-ratio: 2 / 1; }
.article-layout { gap: 4rem; grid-template-columns: 220px minmax(0, 780px); }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; gap: 0; } }
.prose { font-size: 1.0625rem; line-height: 1.78; }
.prose > p, .prose > ul, .prose > ol { margin-bottom: 1.25em; }
.prose > h2 { margin: 3.5rem 0 1.1rem; padding-top: 2.25rem; border-top: 1px solid var(--border); }
.prose > h2:first-child { margin-top: .5rem; padding-top: 0; border-top: 0; }
.prose > h3 { margin: 2.25rem 0 .75rem; }
.prose .course-list { gap: 1rem; }
.prose .table-wrap { margin: 1.75rem 0 1rem; }
.page-hero .lede { margin-bottom: 1.25rem; }
.meta span + span::before { margin: 0 .6rem 0 0; }
.meta { gap: .3rem .9rem; }
/* Tableaux plus aérés et lisibles sans défilement */
table { font-size: .9rem; }
th, td { padding: .85rem 1rem; }
.compare th[scope=row] { min-width: 170px; }
.compare th[scope=row] span, .compare td .small { display: block; font-weight: 400; margin-top: .15rem; }
.compare td.num { white-space: nowrap; }
.compare td:nth-child(4), .compare td:nth-child(5) { min-width: 120px; }
/* Carte formation : hiérarchie plus nette */
.course-card { padding: 1.5rem; gap: 1rem; }
.course-card h3 { font-size: 1.25rem; line-height: 1.25; }
.cc-meta { margin-top: .35rem; }
.cc-facts { gap: .8rem 1.25rem; padding-top: 1rem; }
.cc-facts dd { font-size: .93rem; line-height: 1.45; }
.cc-verdict { line-height: 1.6; }
/* Difficulté */
.diff { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--fg-2); }
.diff-bars { display: inline-flex; gap: 3px; align-items: flex-end; }
.diff-bars i { width: 6px; border-radius: 2px; background: hsl(0 0% 100% / .12); }
.diff-bars i:nth-child(1) { height: 7px; } .diff-bars i:nth-child(2) { height: 10px; } .diff-bars i:nth-child(3) { height: 13px; }
.diff-1 .diff-bars i:nth-child(1) { background: var(--green); }
.diff-2 .diff-bars i:nth-child(-n+2) { background: var(--amber); }
.diff-3 .diff-bars i { background: var(--red); }
.chip-level { border-color: hsl(205 90% 60% / .35); color: var(--fg); }
/* Accueil : section top juste sous le hero */
.section-top { padding-top: 2.5rem; }
.main-nav a { padding: .45rem .6rem; font-size: .9rem; }
@media (max-width: 1180px) { .main-nav a { padding: .45rem .45rem; font-size: .86rem; } .lang-switch { display: none; } }

.hero { padding-top: 4rem; }
.hero-frame { max-width: 980px; margin-top: 2.75rem; }
.frame-inner img { aspect-ratio: 2.1 / 1; }

.prose .course-card a:not(.btn), .prose .related { text-decoration: none !important; }
.prose .course-card h3 a:hover { color: var(--sky) !important; }
.cc-top .cc-rank { margin-top: .1rem; }
/* Tableau comparatif en cartes sur mobile */
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td, .compare th { display: block; width: 100%; }
  .compare tr { padding: .9rem 1rem; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
  .compare tr:last-child { border-bottom: 0; }
  .compare th[scope=row] { grid-column: 1 / -1; padding: 0; border: 0; min-width: 0; }
  .compare td { padding: 0; border: 0; min-width: 0 !important; font-size: .88rem; }
  .compare td::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .compare td .small { display: inline; margin-left: .3rem; }
  .table-wrap { overflow-x: visible; }
  .prose-table { display: block; overflow-x: auto; }
}

/* ---------- Retours n°2 : prix, accents bleus, cartes horizontales ---------- */
.price-tag { margin: 0; display: flex; flex-direction: column; gap: .1rem; padding: .55rem .85rem; border-radius: 12px; background: linear-gradient(135deg, hsl(205 90% 55% / .16), hsl(221 83% 53% / .08)); border: 1px solid hsl(205 90% 60% / .3); }
.price-tag small { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: hsl(200 90% 75%); }
.price-tag b { font-size: 1.02rem; font-weight: 700; color: #fff; line-height: 1.3; }
.cc-buy { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: auto; padding-top: .25rem; }
.cc-buy .cc-actions { margin: 0; padding: 0; }
.course-rows { display: grid; gap: 1rem; max-width: 1080px; margin: 0 auto; }
.course-row { display: grid; grid-template-columns: auto minmax(0, 1.7fr) minmax(0, 1fr) 230px; gap: 1.5rem; align-items: start; padding: 1.5rem; }
.course-row h3 { font-size: 1.3rem; margin: 0 0 .5rem; }
.course-row h3 a { text-decoration: none; } .course-row h3 a:hover { color: var(--sky); }
.course-row:first-child .cc-rank { background: var(--grad); border-color: transparent; }
.cr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .75rem; }
.cr-facts { margin: 0; display: grid; gap: .8rem; padding-left: 1.5rem; border-left: 1px solid var(--border); }
.cr-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cr-facts dd { margin: .1rem 0 0; font-size: .92rem; color: var(--fg-2); }
.cr-side { display: flex; flex-direction: column; gap: .6rem; align-items: stretch; }
.cr-side .score { align-self: flex-end; }
.btn-block { justify-content: center; width: 100%; }
@media (max-width: 1000px) { .course-row { grid-template-columns: auto 1fr; } .cr-facts { grid-column: 2; padding-left: 0; border-left: 0; grid-template-columns: repeat(3, 1fr); } .cr-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; } .cr-side .score { order: -1; align-self: center; } .cr-side .btn-block { width: auto; } }
@media (max-width: 600px) { .course-row { grid-template-columns: 1fr; gap: 1rem; } .course-row > * { grid-column: 1 !important; } .cr-facts { grid-template-columns: 1fr 1fr; } }
/* Accents bleus sur les informations importantes */
.prose strong { color: hsl(200 95% 80%); }
.lede strong { color: hsl(200 95% 80%); font-weight: 650; }
.score b { color: #fff; }
.rating b { color: #fff; }
.compare td.num b { color: hsl(200 95% 75%); font-size: 1rem; }
.compare td:nth-child(5) { color: #fff; font-weight: 600; }
.prose > p > strong:first-child { background: linear-gradient(90deg, var(--sky), #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts tr:has(th:first-child) td { color: var(--fg); }
.kicker, .level-num, .why-n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Quiz : formulaire en premier, mode « formulaire seul » */
.quiz-stage { position: relative; isolation: isolate; padding: 2.5rem 0 1rem; overflow: hidden; }
.quiz-wrap { max-width: 820px; text-align: center; }
.quiz-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .4rem; }
.quiz-sub { color: var(--muted); margin-bottom: 1.5rem; }
.quiz-stage .quiz { text-align: left; margin: 0 auto; border-color: hsl(205 90% 60% / .35); box-shadow: 0 30px 80px -40px hsl(215 90% 55% / .6); background: linear-gradient(180deg, hsl(225 25% 10%), var(--card)); }
.quiz-close { display: none; position: absolute; right: 0; top: 0; font-size: .85rem; color: var(--muted); text-decoration: none; border: 1px solid var(--border); border-radius: 99px; padding: .3rem .8rem; }
.quiz-wrap { position: relative; }
.quiz-after { padding-top: 1rem; }
body.quiz-focus .site-header .main-nav, body.quiz-focus .site-footer, body.quiz-focus .quiz-after, body.quiz-focus .skip { display: none !important; }
body.quiz-focus .quiz-stage { min-height: calc(100vh - 68px); display: flex; align-items: center; padding: 3rem 0; }
body.quiz-focus .quiz-close { display: inline-block; }
.quiz-options button { padding: 1rem 1.1rem; font-weight: 600; }
.quiz-options button:hover { box-shadow: 0 0 0 3px hsl(205 90% 60% / .15); }
.quiz-progress span.on { box-shadow: 0 0 8px hsl(205 90% 60% / .6); }

/* ---------- Identité Upellia ---------- */
.brand .logo { height: 28px; width: auto; display: block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.brand:hover .logo { transform: translateY(-1px); }
.footer-brand .logo { height: 32px; }
.logo-mark { display: none; }

/* Hamburger au style du logo : deux barres + un pixel, sans fond ni bordure, animé en croix */
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0 !important; background: transparent !important; padding: 0; cursor: pointer; color: var(--fg); z-index: 70; }
.menu-toggle i { position: absolute; right: 8px; display: block; background: currentColor; transition: transform .4s cubic-bezier(.7,0,.2,1), opacity .25s, width .4s cubic-bezier(.7,0,.2,1), top .4s cubic-bezier(.7,0,.2,1); }
.menu-toggle .mt-top { top: 18px; width: 23px; height: 4px; right: 13px; }
.menu-toggle .mt-dot { top: 13px; width: 5px; height: 5px; }
.menu-toggle .mt-bot { top: 27px; width: 28px; height: 4px; }
.menu-toggle:hover .mt-dot { transform: translate(1px, -1px); background: var(--sky); }
.menu-toggle[aria-expanded="true"] .mt-top { top: 20px; width: 28px; right: 8px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .mt-bot { top: 20px; transform: rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .mt-dot { opacity: 0; transform: scale(0); }
@media (max-width: 1080px) { .menu-toggle { display: block; } }

/* Menu mobile plein écran, apparition ligne par ligne */
.mobile-nav { position: fixed; inset: 0; z-index: 60; border: 0; padding: 0; display: block; background: radial-gradient(120% 70% at 80% 0%, hsl(221 83% 30% / .55), transparent 60%), hsl(240 10% 4% / .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .35s ease; }
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; }
.mn-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: .25rem; padding: 6rem 1.75rem 2.5rem; max-width: 560px; margin: 0 auto; }
.mn-link { font-size: clamp(1.6rem, 6.5vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; padding: .45rem 0; border-bottom: 1px solid hsl(0 0% 100% / .06) !important; color: var(--fg); }
.mn-link:hover { color: var(--sky); }
.mn-lang { font-size: 1rem; font-weight: 500; color: var(--muted); border: 0 !important; margin-top: .5rem; }
.mn-cta { margin-top: 1.75rem; justify-content: center; }
.mn-link, .mn-cta { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d) * 45ms + 60ms); }
.mobile-nav.is-open .mn-link, .mobile-nav.is-open .mn-cta { opacity: 1; transform: none; }
.mobile-nav.is-closing .mn-link, .mobile-nav.is-closing .mn-cta { transition-delay: 0ms; transition-duration: .2s; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; border-color: transparent; backdrop-filter: none; z-index: 65; }
body.menu-open .header-actions .btn-primary, body.menu-open .header-actions .lang-switch { visibility: hidden; }
@media (min-width: 1081px) { .mobile-nav { display: none !important; } }

/* Bouton à dégradé animé */
@keyframes gradmove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.btn-gradient { color: #fff; border: 0; background: linear-gradient(110deg, #2563eb, #38bdf8, #6366f1, #2563eb); background-size: 300% 100%; animation: gradmove 6s ease infinite; box-shadow: 0 10px 30px -12px hsl(210 100% 55% / .8); }
.btn-gradient:hover { box-shadow: 0 0 0 4px hsl(205 90% 60% / .2), 0 14px 34px -10px hsl(210 100% 55% / .9); }

/* Apparition douce au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.hero-inner > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-inner > *:nth-child(2) { animation-delay: .06s; } .hero-inner > *:nth-child(3) { animation-delay: .12s; } .hero-inner > *:nth-child(4) { animation-delay: .18s; } .hero-inner > *:nth-child(5) { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.btn-primary .i, .level-link .i { transition: transform .25s; }
.score { transition: transform .3s; } .card:hover .score { transform: rotate(-6deg) scale(1.04); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .mn-link, .mn-cta { opacity: 1; transform: none; } }
.site-header .brand { position: relative; z-index: 70; }

/* ---------- Logo 2 (plaques) et visuel hero ---------- */
.brand .logo { height: 34px; }
.footer-brand .logo { height: 38px; }
.frame-inner::after { display: none; }
.hv { position: relative; height: 540px; overflow: hidden; isolation: isolate; background: radial-gradient(60% 70% at 50% 45%, hsl(217 91% 45% / .34), transparent 70%), #06070d; }
.hv-grid { position: absolute; inset: 35% -30% -30%; z-index: -1; transform: perspective(520px) rotateX(62deg); background: linear-gradient(hsl(205 90% 60% / .16) 1px, transparent 1px) 0 0 / 52px 52px, linear-gradient(90deg, hsl(205 90% 60% / .16) 1px, transparent 1px) 0 0 / 52px 52px; -webkit-mask: radial-gradient(50% 60% at 50% 40%, #000, transparent); mask: radial-gradient(50% 60% at 50% 40%, #000, transparent); animation: hvgrid 5s linear infinite; }
@keyframes hvgrid { to { background-position: 0 52px, 0 52px; } }
.hv-beam { position: absolute; left: 50%; top: -10%; width: 300px; height: 100%; translate: -50% 0; z-index: -1; background: linear-gradient(to top, hsl(205 95% 60% / .30), transparent 85%); filter: blur(34px); animation: hvbeam 5s ease-in-out infinite; }
@keyframes hvbeam { 50% { opacity: .45; scale: .8 1; } }
.hv-sparks i { position: absolute; left: var(--x); bottom: 6%; width: 4px; height: 4px; border-radius: 1px; background: #7dd3fc; box-shadow: 0 0 10px #38bdf8; opacity: 0; animation: hvspark 6s linear var(--d) infinite; }
@keyframes hvspark { 0% { opacity: 0; transform: none; } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-420px); } }
.hv-svg { position: absolute; left: 50%; top: 20px; height: 500px; width: 440px; translate: calc(-50% + var(--px, 0px)) var(--py, 0px); transition: translate .5s cubic-bezier(.2,.8,.2,1); overflow: visible; }
.hv-shadow { fill: #2563eb; opacity: .35; filter: blur(22px); }
.hv-plate { animation: hvopen 1.3s cubic-bezier(.2,.9,.2,1) calc(.35s + var(--i) * 70ms) both; }
@keyframes hvopen { from { transform: translateY(var(--from)); opacity: 0; } 35% { opacity: 1; } to { transform: none; opacity: 1; } }
.hv-float { animation: hvfloat 5.5s ease-in-out calc(var(--i) * -.45s) infinite; }
@keyframes hvfloat { 50% { transform: translateY(-6px); } }
.hv-lift { transition: transform .7s cubic-bezier(.2,.9,.2,1); }
.hv-side use { fill: #070c1c; transition: fill .6s; }
.hv-face use { transition: opacity .6s; }
.hv-f0 { fill: url(#hv-glass); stroke: hsl(212 90% 70% / .5); stroke-width: .16; }
.hv-f1 { fill: url(#hv-blue); opacity: 0; }
.hv-f2 { fill: #fff; opacity: 0; }
.hv-plate.is-on .hv-lift { transform: translateY(-12px); }
.hv-plate.is-on .hv-f1, .hv-plate.is-under .hv-f2 { opacity: 1; }
.hv-plate.is-on .hv-side use { fill: #1738a0; }
.hv-plate.is-under .hv-side use { fill: #8fa3c4; }
.hv-plate.is-on .hv-face { filter: drop-shadow(0 0 22px hsl(205 95% 60% / .75)); }
.hv-labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 20px 0 auto; height: 500px; }
.hv-label { position: absolute; top: var(--top); width: calc(50% - 222px); translate: 0 -50%; animation: hvlabel .7s ease calc(1.1s + var(--i) * 90ms) both; }
@keyframes hvlabel { from { opacity: 0; } }
.hv-label.is-left { left: 0; } .hv-label.is-right { right: 0; }
.hv-label::before { content: ""; position: absolute; top: 50%; width: 38px; height: 1px; background: linear-gradient(90deg, transparent, hsl(212 90% 70% / .5)); transition: background .4s; }
.hv-label.is-left::before { right: 0; } .hv-label.is-right::before { left: 0; rotate: 180deg; }
.hv-label:has(.is-on)::before { background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.hv-label a { display: flex; align-items: center; gap: .7rem; padding: .45rem .8rem; text-decoration: none; border-radius: 12px; color: var(--fg-2); transition: color .4s, opacity .4s; opacity: .72; text-align: left; }
.hv-label.is-left a { flex-direction: row-reverse; text-align: right; margin-right: 44px; margin-left: 10px; }
.hv-label.is-right a { margin-left: 44px; margin-right: 10px; }
.hv-label b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; font-size: .8rem; background: hsl(0 0% 100% / .07); border: 1px solid var(--border-2); transition: background .4s, border-color .4s; }
.hv-label strong { display: block; line-height: 1.2; } .hv-label small { display: block; font-size: .74rem; line-height: 1.35; color: var(--fg-2); margin-top: .15rem; }
.hv-label a.is-on, .hv-label a:hover { opacity: 1; color: #fff; }
.hv-label a.is-on b { background: var(--grad); border-color: transparent; color: #fff; }
@media (max-width: 900px) {
  .hv { height: auto; padding-bottom: 1rem; }
  .hv-svg { position: relative; display: block; left: auto; top: auto; margin: 0 auto; height: auto; width: min(76%, 360px); translate: none; padding-top: 10px; }
  .hv-labels { position: relative; inset: auto; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .5rem .75rem 0; }
  .hv-label { position: static; width: auto; translate: none; } .hv-label::before { display: none; }
  .hv-label a, .hv-label.is-left a, .hv-label.is-right a { margin: 0; flex-direction: row; text-align: left; background: hsl(240 10% 6% / .7); border: 1px solid hsl(0 0% 100% / .07); padding: .5rem .6rem; gap: .55rem; font-size: .88rem; }
  .hv-label a.is-on { border-color: hsl(205 90% 60% / .5); } .hv-label small { display: none; }
}
@media (min-width: 901px) { .hv-label { width: calc(50% - 188px); } .hv-label::before { width: 54px; } .hv-label.is-left a { margin-right: 62px; } .hv-label.is-right a { margin-left: 62px; } }
.hv-labels { z-index: 2; }

.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 1rem 1.2rem; }
.faq-item h3 { margin: 0 0 .5rem !important; font-size: 1.05rem; }
.faq-item p { margin: 0 0 .6em; color: var(--fg-2); } .faq-item p:last-child { margin: 0; }

.order-note { font-size: .82rem; color: var(--muted) !important; margin: 1rem 0 -.75rem; }

/* Consentement */
.consent { position: fixed; z-index: 80; left: 1rem; bottom: 1rem; width: min(400px, calc(100vw - 2rem)); padding: 1.1rem 1.2rem; border: 1px solid var(--border-2); border-radius: 18px; background: hsl(240 9% 8% / .97); box-shadow: 0 24px 70px -20px #000; }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.05rem; margin: 0 0 .4rem; } .consent p { font-size: .88rem; line-height: 1.5; color: var(--fg-2); margin: 0 0 .8rem; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; } .consent-actions .btn { justify-content: center; color: var(--fg); font-family: inherit; }
.consent-close, .cookie-prefs { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; } .consent-close { margin-top: .7rem; }
.tpl-article .prose thead:has(th:empty) { display: none; }
.avis-mot { margin-top: 1.5rem; }
