/* ==========================================================================
   Skill Nova — feuille de style principale
   Auteur : Skill Nova · 2026
   ========================================================================== */

/* --------------------------------------------------------- 1. Design tokens */
:root {
  --violet: #5B3DF5;
  --violet-dark: #4728D6;
  --violet-soft: #EEEAFE;
  --cyan: #0E9CC9;
  --cyan-soft: #E2F4FA;
  --vert: #0F9D58;
  --vert-soft: #E4F5EC;
  --or: #F0A500;
  --or-soft: #FFF4DC;
  --rouge: #D23B3B;

  --bg: #FFFFFF;
  --bg-soft: #F6F7FC;
  --surface: #FFFFFF;
  --surface-2: #F1F3FA;
  --text: #14163A;
  --text-2: #40476E;
  --muted: #6A719A;
  --border: #E4E7F2;
  --shadow-sm: 0 1px 2px rgba(20, 22, 58, .06), 0 2px 8px rgba(20, 22, 58, .05);
  --shadow-md: 0 6px 24px rgba(20, 22, 58, .09);
  --shadow-lg: 0 18px 48px rgba(20, 22, 58, .14);

  --primary: var(--violet);
  --primary-dark: var(--violet-dark);
  --wa: #25D366;
  --wa-dark: #1DA851;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --maxw: 1180px;
  --gut: clamp(16px, 4vw, 32px);

  --ff-title: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --nav-h: 68px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0A0E24;
  --bg-soft: #0E1430;
  --surface: #141B3C;
  --surface-2: #1B2450;
  --text: #EDF0FC;
  --text-2: #C3CAEA;
  --muted: #98A2CE;
  --border: #26305C;
  --violet-soft: #241C63;
  --cyan-soft: #10344A;
  --vert-soft: #11402C;
  --or-soft: #3B2C08;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, .38);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ------------------------------------------------------------- 2. Réglages */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--ff-title);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1em; color: var(--text-2); }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(48px, 8vw, 92px) 0; }
.section--soft { background: var(--bg-soft); }
.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;
}

/* ------------------------------------------------------------- 3. En-tête */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: var(--nav-h); display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--ff-title); font-weight: 800; font-size: 1.16rem; color: var(--text); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand > span { white-space: nowrap; }
.brand__sub { display: block; font-size: .63rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--ff-body); }
@media (max-width: 400px) { .brand { font-size: 1.02rem; } .brand__sub { display: none; } }
@media (max-width: 700px) { .header__actions .btn--wa { display: none; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-2); font-weight: 550; font-size: .95rem;
  padding: 9px 13px; border-radius: var(--r-pill);
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--primary); background: var(--violet-soft); }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: var(--r-pill); cursor: pointer; transition: .18s;
}
.icon-btn:hover { background: var(--surface-2); }
.burger { display: none; }

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 14px var(--gut) 22px; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .28s ease; max-height: 80vh; overflow: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .burger { display: grid; }
}

/* -------------------------------------------------------------- 4. Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-title); font-weight: 650; font-size: .98rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(91, 61, 245, .28); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--wa { background: var(--wa); color: #06301A; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn--wa:hover { background: var(--wa-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.32); }
.btn--light:hover { background: rgba(255,255,255,.24); }
.btn--sm { padding: 10px 16px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- 5. Héros */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(120, 90, 255, .55), transparent 60%),
    radial-gradient(700px 460px at 92% 8%, rgba(14, 156, 201, .45), transparent 62%),
    linear-gradient(160deg, #12103A 0%, #1B1660 45%, #0C1030 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.4px 1.4px at 78% 18%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.8px 1.8px at 62% 62%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.3px 1.3px at 32% 74%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 88% 70%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.2px 1.2px at 46% 32%, rgba(255,255,255,.5), transparent);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(52px, 9vw, 104px) 0 clamp(48px, 7vw, 84px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.35; text-align: left;
  font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 15px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); color: #fff;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .grad {
  background: linear-gradient(100deg, #FFD37A, #FF9AD5 55%, #7FE0FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1.02rem, 1.9vw, 1.18rem); color: rgba(255,255,255,.86); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__note { margin-top: 18px; font-size: .87rem; color: rgba(255,255,255,.68); }

.hero__card {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-lg); padding: 22px; backdrop-filter: blur(8px);
}
.hero__card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.hero__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hero__list li { display: flex; gap: 11px; font-size: .93rem; color: rgba(255,255,255,.9); }
.hero__list svg { flex: 0 0 20px; margin-top: 2px; }

/* --------------------------------------------------------------- 6. Grilles */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--duo { grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); }
@media (max-width: 560px) { .grid--duo { grid-template-columns: 1fr; } }

.section__head { max-width: 62ch; margin-bottom: clamp(26px, 4vw, 42px); }
.section__head p { font-size: 1.03rem; }
.kicker {
  display: block; font-family: var(--ff-title); font-weight: 700;
  font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}

/* ---------------------------------------------------------------- 7. Cartes */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; height: 100%;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .95rem; }
.card__foot { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: .92rem; color: var(--primary); font-family: var(--ff-title); }
.stretched { position: absolute; inset: 0; border-radius: inherit; }
.stretched:focus-visible { outline-offset: -3px; }

.stat { text-align: center; padding: 22px 16px; }
.stat__v { font-family: var(--ff-title); font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; color: var(--primary); line-height: 1; }
.stat__l { font-weight: 650; margin-top: 8px; font-size: .96rem; }
.stat__d { color: var(--muted); font-size: .84rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.badge--violet { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.badge--cyan { background: var(--cyan-soft); color: var(--cyan); border-color: transparent; }
.badge--vert { background: var(--vert-soft); color: var(--vert); border-color: transparent; }
.badge--or { background: var(--or-soft); color: #9A6B00; border-color: transparent; }
html[data-theme="dark"] .badge--violet { color: #BFB0FF; }
html[data-theme="dark"] .badge--cyan { color: #7FDCFB; }
html[data-theme="dark"] .badge--vert { color: #7FE2AE; }
html[data-theme="dark"] .badge--or { color: #FFD98A; }

/* Niveau */
.level {
  display: flex; flex-direction: column; gap: 12px;
}
.level__num {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px;
  font-family: var(--ff-title); font-weight: 800; font-size: 1.16rem;
  background: var(--violet-soft); color: var(--violet);
}
html[data-theme="dark"] .level__num { color: #C8BBFF; }
.level--lycee .level__num { background: var(--cyan-soft); color: var(--cyan); }
html[data-theme="dark"] .level--lycee .level__num { color: #8FE0FB; }
.level__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* Matière */
.subject__icon {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; font-family: var(--ff-title);
}
.subject--violet .subject__icon { background: var(--violet-soft); color: var(--violet); }
.subject--cyan .subject__icon { background: var(--cyan-soft); color: var(--cyan); }
.subject--vert .subject__icon { background: var(--vert-soft); color: var(--vert); }
html[data-theme="dark"] .subject--violet .subject__icon { color: #C8BBFF; }
html[data-theme="dark"] .subject--cyan .subject__icon { color: #8FE0FB; }
html[data-theme="dark"] .subject--vert .subject__icon { color: #7FE2AE; }

/* ------------------------------------------------------- 8. Fil d'Ariane */
.crumbs { font-size: .87rem; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 6px; opacity: .55; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }

/* --------------------------------------------------------- 9. Page-titre */
.pagehead { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 8px 0 clamp(30px, 5vw, 54px); }
.pagehead h1 { margin-top: 14px; }
.pagehead p { font-size: 1.04rem; max-width: 68ch; }
.pagehead__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* --------------------------------------------------------- 10. Chapitres */
.chapters { display: grid; gap: 14px; }
.chapter {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .2s, box-shadow .2s, transform .2s; position: relative;
}
.chapter:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.chapter__n {
  flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); font-family: var(--ff-title); font-weight: 700; color: var(--primary);
}
.chapter__body { flex: 1; min-width: 0; }
.chapter__body h3 { font-size: 1.06rem; margin-bottom: 4px; }
.chapter__body p { font-size: .92rem; margin-bottom: 6px; color: var(--muted); }
.chapter__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--muted); }
.chapter__go { flex: 0 0 auto; align-self: center; color: var(--primary); }

/* ---------------------------------------------------- 11. Fiche chapitre */
.split { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: calc(var(--nav-h) + 20px); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.28rem; }
.panel h3 { font-size: 1.05rem; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; font-size: .96rem; color: var(--text-2); }
.ticks li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--vert-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F9D58' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.steps-list { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; display: flex; gap: 13px; font-size: .96rem; color: var(--text-2); }
.steps-list li::before {
  content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet); font-family: var(--ff-title); font-weight: 700; font-size: .82rem;
}
html[data-theme="dark"] .steps-list li::before { color: #C8BBFF; }

.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); max-width: 48%; }
.pager a:hover { border-color: var(--primary); text-decoration: none; }
.pager span { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pager strong { font-family: var(--ff-title); font-size: .96rem; color: var(--text); }
@media (max-width: 640px) { .pager a { max-width: 100%; width: 100%; } }

/* -------------------------------------------------------- 12. Formules */
.plan { display: flex; flex-direction: column; }
.plan__top { padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.plan__name { font-family: var(--ff-title); font-size: 1.42rem; font-weight: 750; }
.plan__tag { color: var(--muted); font-size: .95rem; }
.plan .btn { margin-top: 20px; }
.plan > .btn:last-child { margin-top: auto; }
.plan > p:last-of-type { margin-bottom: 22px; }
.plan--featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.ribbon {
  position: absolute; top: -13px; right: 20px;
  background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--r-pill);
}

/* ------------------------------------------------------- 13. Étapes / FAQ */
.timeline { display: grid; gap: 4px; }
.tstep { display: flex; gap: 18px; }
.tstep__rail { display: flex; flex-direction: column; align-items: center; flex: 0 0 40px; }
.tstep__dot {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-family: var(--ff-title); font-weight: 700;
}
.tstep__line { flex: 1; width: 2px; background: var(--border); margin: 6px 0; }
.tstep:last-child .tstep__line { display: none; }
.tstep__body { padding-bottom: 26px; }
.tstep__body h3 { font-size: 1.08rem; margin-bottom: 4px; }
.tstep__body p { margin: 0; font-size: .95rem; }

.faq { display: grid; gap: 12px; }
details.qa {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 0; overflow: hidden;
}
details.qa summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--ff-title);
  font-weight: 650; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); line-height: 1; transition: transform .2s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .qa__body { padding: 0 22px 20px; color: var(--text-2); font-size: .97rem; }

/* ------------------------------------------------------ 14. Témoignages */
.quote { display: flex; flex-direction: column; gap: 14px; }
.quote__stars { color: var(--or); letter-spacing: 2px; }
.quote p { font-size: 1rem; font-style: italic; color: var(--text); margin: 0; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__av {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet); font-family: var(--ff-title); font-weight: 700;
}
html[data-theme="dark"] .quote__av { color: #C8BBFF; }
.quote__n { font-weight: 650; font-size: .94rem; }
.quote__r { font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------------------- 15. Bande CTA */
.cta-band {
  border-radius: var(--r-lg); padding: clamp(28px, 5vw, 52px); color: #fff; text-align: center;
  background:
    radial-gradient(700px 380px at 20% 0%, rgba(140, 110, 255, .55), transparent 62%),
    linear-gradient(140deg, #1A1550, #2A1F86 60%, #0F2A55);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 60ch; margin-inline: auto; }
.cta-band .btn { margin-top: 8px; }
.cta-band__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* --------------------------------------------------------- 16. Recherche */
.finder { display: grid; gap: 12px; grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 26px; }
@media (max-width: 760px) { .finder { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field select {
  width: 100%; font: inherit; font-size: .96rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 13px 16px; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A719A' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 17px; padding-right: 42px; }
.field input:focus, .field select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.results-count { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.no-result { text-align: center; padding: 40px 20px; color: var(--muted); }

/* -------------------------------------------------------------- 17. QCM */
.quiz { max-width: 780px; margin-inline: auto; }
.quiz__bar { height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 8px; }
.quiz__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan)); transition: width .3s; }
.quiz__status { display: flex; justify-content: space-between; font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.quiz__q { font-family: var(--ff-title); font-size: clamp(1.12rem, 2.4vw, 1.4rem); font-weight: 650; margin-bottom: 20px; }
.opts { display: grid; gap: 11px; margin-bottom: 20px; }
.opt {
  display: flex; gap: 13px; align-items: flex-start; text-align: left; width: 100%;
  font: inherit; font-size: .99rem; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 15px 18px; transition: .16s;
}
.opt:hover:not(:disabled) { border-color: var(--primary); background: var(--violet-soft); }
.opt__k {
  flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); font-family: var(--ff-title); font-weight: 700; font-size: .84rem;
}
.opt.is-good { border-color: var(--vert); background: var(--vert-soft); }
.opt.is-good .opt__k { background: var(--vert); color: #fff; }
.opt.is-bad { border-color: var(--rouge); background: color-mix(in srgb, var(--rouge) 12%, transparent); }
.opt.is-bad .opt__k { background: var(--rouge); color: #fff; }
.opt:disabled { cursor: default; }
.explain {
  border-left: 4px solid var(--primary); background: var(--surface-2);
  padding: 15px 18px; border-radius: 0 var(--r) var(--r) 0; font-size: .94rem; color: var(--text-2); margin-bottom: 20px;
}
.explain strong { color: var(--text); }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.score { text-align: center; padding: 18px 0; }
.score__ring { font-family: var(--ff-title); font-size: 3.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.score__msg { font-size: 1.05rem; margin: 10px 0 22px; }
.review { display: grid; gap: 10px; text-align: left; margin-top: 24px; }
.review__item { border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; background: var(--surface); font-size: .93rem; }
.review__item.ko { border-left: 4px solid var(--rouge); }
.review__item.ok { border-left: 4px solid var(--vert); }

/* ------------------------------------------------------- 18. Formulaire */
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 13px 16px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ 19. Contenu */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { color: var(--text-2); padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 13px; text-align: left; }
.prose th { background: var(--surface-2); font-family: var(--ff-title); }

/* -------------------------------------------------------- 20. Pied de page */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: clamp(40px, 6vw, 64px) 0 26px; margin-top: 20px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--text-2); font-size: .94rem; }
.footer a:hover { color: var(--primary); }
.footer__bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .86rem; color: var(--muted);
}
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ------------------------------------------------- 21. Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #06301A; font-family: var(--ff-title); font-weight: 700; font-size: .93rem;
  padding: 13px 19px; border-radius: var(--r-pill); box-shadow: 0 10px 30px rgba(37, 211, 102, .42);
  transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px); text-decoration: none; color: #06301A; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

/* ------------------------------------------------------------ 22. Divers */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hr { height: 1px; background: var(--border); border: 0; margin: 34px 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.notice {
  border: 1px dashed var(--or); background: var(--or-soft); color: #7A5300;
  border-radius: var(--r); padding: 14px 18px; font-size: .92rem;
}
html[data-theme="dark"] .notice { color: #FFD98A; }

@media print { .header, .footer, .wa-float, .btn { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
