/* ============================================================================
   RC TRAINING PRO : formations en ligne (pages de vente + espace élève)
   Chargée après rc.css, dont elle reprend les variables. Fond sombre, Oswald
   pour les titres, bleu de marque, un seul vert pour les statuts réussis.
   ========================================================================== */

:root {
  --fx-bg:        #070C18;
  --fx-bg-2:      #0B1224;
  --fx-surface:   rgba(255, 255, 255, .035);
  --fx-surface-2: rgba(255, 255, 255, .06);
  --fx-line:      rgba(255, 255, 255, .09);
  --fx-line-2:    rgba(255, 255, 255, .16);
  --fx-accent:    #6C8AFF;             /* bleu lisible sur fond sombre */
  --fx-accent-2:  #4059DB;             /* fond des boutons */
  --fx-grad:      linear-gradient(135deg, #6C8AFF 0%, #4059DB 55%, #2F44B8 100%);
  --fx-ok:        #22C55E;
  --fx-gold:      #F5C451;
  --fx-radius:    18px;
  --fx-shadow:    0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  --fx-ease:      cubic-bezier(.22, 1, .36, 1);
}

.fx [hidden] { display: none !important; }
.fx svg.icon { width: 18px; height: 18px; flex: none; }
body.fx { background: var(--fx-bg); color: var(--fg-strong); font-family: var(--font-body); line-height: 1.65; overflow-x: hidden; }
body.fx ::selection { background: rgba(108, 138, 255, .35); }
.fx a:focus-visible, .fx button:focus-visible, .fx input:focus-visible, .fx summary:focus-visible, .fx [tabindex]:focus-visible { outline: 2px solid var(--fx-accent); outline-offset: 3px; border-radius: 6px; }
.fx h1, .fx h2, .fx h3 { text-wrap: balance; }
.fx p, .fx li { text-wrap: pretty; }
.fx .num { font-variant-numeric: tabular-nums; }

/* ─── Typo ─── */
.fx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fx-accent); }
.fx-h1 { font-family: var(--font-head); font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; }
.fx-h2 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; text-transform: uppercase; }
.fx-h1 em, .fx-h2 em { font-style: normal; background: var(--fx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--fg-muted); max-width: 60ch; }
.fx-muted { color: var(--fg-subtle); }
.fx-center { text-align: center; }
.fx-center .fx-lead { margin-inline: auto; }

/* ─── Mise en page ─── */
.fx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.fx-sec { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.fx-sec--alt { background: linear-gradient(180deg, var(--fx-bg-2), var(--fx-bg)); }
.fx-sec-head { margin-bottom: clamp(36px, 5vw, 56px); display: grid; gap: 14px; }
.fx-sec-head.fx-center { justify-items: center; }
.fx-grid { display: grid; gap: 18px; }
.fx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .fx-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fx-grid-2, .fx-grid-3 { grid-template-columns: 1fr; } .fx-wrap { padding: 0 16px; } }

/* ─── Boutons ─── */
.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 1rem; letter-spacing: .01em; transition: transform .2s var(--fx-ease), box-shadow .2s var(--fx-ease), background .2s; cursor: pointer; border: 1px solid transparent; text-align: center; }
.fx-btn svg { width: 18px; height: 18px; flex: none; }
.fx-btn--primary { background: var(--fx-grad); color: #fff; box-shadow: 0 10px 30px -8px rgba(64, 89, 219, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.fx-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -10px rgba(64, 89, 219, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.fx-btn--ghost { border-color: var(--fx-line-2); color: #fff; background: rgba(255, 255, 255, .03); }
.fx-btn--ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .07); }
.fx-btn--block { width: 100%; }
.fx-btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; border-radius: 10px; }
.fx-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.fx-btn:active { transform: scale(.98); }

/* ─── Cartes, pastilles ─── */
.fx-card { background: var(--fx-surface); border: 1px solid var(--fx-line); border-radius: var(--fx-radius); padding: 26px; }
.fx-card--glow { position: relative; background: linear-gradient(180deg, rgba(108, 138, 255, .10), rgba(108, 138, 255, .02)); border-color: rgba(108, 138, 255, .28); }
.fx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--fx-surface-2); border: 1px solid var(--fx-line); color: var(--fg-muted); white-space: nowrap; }
.fx-pill--ok { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .3); color: #6EE7A0; }
.fx-pill--accent { background: rgba(108, 138, 255, .12); border-color: rgba(108, 138, 255, .35); color: #AFC0FF; }
.fx-pill svg { width: 13px; height: 13px; }
.fx-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(108, 138, 255, .12); color: var(--fx-accent); border: 1px solid rgba(108, 138, 255, .25); flex: none; }
.fx-ico svg { width: 22px; height: 22px; }

/* ─── Apparition au scroll (classe posée par JS : sans JS, tout est visible) ─── */
.fx-js .fx-rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--fx-ease), transform .7s var(--fx-ease); transition-delay: calc(var(--i, 0) * 60ms); }
.fx-js .fx-rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fx-js .fx-rv { opacity: 1; transform: none; transition: none; } .fx-btn { transition: none; } }

/* ═══════════════════════════ PAGE DE VENTE ═══════════════════════════ */

.fv-hero { position: relative; padding: 132px 0 72px; overflow: hidden; isolation: isolate; }
.fv-hero::before { content: ''; position: absolute; inset: -30% -10% auto; height: 110%; z-index: -1;
  background: radial-gradient(50% 55% at 70% 30%, rgba(64, 89, 219, .35), transparent 70%), radial-gradient(40% 40% at 10% 10%, rgba(108, 138, 255, .14), transparent 70%); }
.fv-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); }
.fv-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.fv-hero-txt { display: grid; gap: 22px; }
.fv-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.fv-hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--fg-subtle); }
.fv-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.fv-hero-trust svg { width: 15px; height: 15px; color: var(--fx-ok); }
.fv-visual { position: relative; }
.fv-visual-img { border-radius: 26px; overflow: hidden; box-shadow: var(--fx-shadow); aspect-ratio: 4 / 5; position: relative; }
.fv-visual-img img { width: 100%; height: 100%; object-fit: cover; }
.fv-visual-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 12, 24, .92)); }
.fv-visual-cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: grid; gap: 4px; }
.fv-visual-cap strong { font-family: var(--font-head); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.fv-visual-cap span { font-size: .82rem; color: var(--fg-muted); }
.fv-float { position: absolute; background: rgba(12, 18, 34, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--fx-line-2); border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .7); display: flex; gap: 12px; align-items: center; font-size: .82rem; }
.fv-float strong { display: block; font-size: 1.35rem; font-family: var(--font-head); line-height: 1; color: #fff; }
.fv-float--a { top: 8%; left: -44px; }
.fv-float--b { bottom: 26%; right: -30px; }
.fv-float .fx-ico { width: 38px; height: 38px; }
@media (max-width: 980px) {
  .fv-hero { padding-top: 112px; }
  .fv-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .fv-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .fv-float--a { left: -8px; } .fv-float--b { right: -8px; }
}

/* Bandeau de chiffres */
.fv-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--fx-line); border-radius: 22px; background: var(--fx-surface); overflow: hidden; }
.fv-stat { padding: 26px 22px; display: grid; gap: 4px; border-right: 1px solid var(--fx-line); }
.fv-stat:last-child { border-right: 0; }
.fv-stat strong { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1; background: linear-gradient(180deg, #fff, #B9C6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fv-stat span { font-size: .85rem; color: var(--fg-subtle); }
@media (max-width: 760px) { .fv-stats { grid-template-columns: 1fr 1fr; } .fv-stat:nth-child(2) { border-right: 0; } .fv-stat:nth-child(-n+2) { border-bottom: 1px solid var(--fx-line); } }

/* Constat */
.fv-pain { display: grid; gap: 10px; }
.fv-pain h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.fv-pain p { color: var(--fg-muted); font-size: .95rem; }

/* Pour qui */
.fv-who { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fv-who ul { display: grid; gap: 14px; margin-top: 18px; }
.fv-who li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--fg-muted); font-size: .96rem; }
.fv-who li svg { width: 20px; height: 20px; margin-top: 3px; }
.fv-who .oui svg { color: var(--fx-ok); }
.fv-who .non svg { color: #F87171; }
.fv-who h3 { font-family: var(--font-body); font-size: 1.05rem; letter-spacing: 0; }
@media (max-width: 760px) { .fv-who { grid-template-columns: 1fr; } }

/* Programme : accordéon des modules */
.fv-prog { display: grid; gap: 12px; }
.fv-mod { border: 1px solid var(--fx-line); border-radius: 18px; background: var(--fx-surface); transition: border-color .2s, background .2s; }
.fv-mod[open] { border-color: rgba(108, 138, 255, .35); background: linear-gradient(180deg, rgba(108, 138, 255, .07), rgba(255, 255, 255, .02)); }
.fv-mod summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; }
.fv-mod summary::-webkit-details-marker { display: none; }
.fv-mod-num { font-family: var(--font-head); font-size: 2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(175, 192, 255, .7); }
.fv-mod[open] .fv-mod-num { color: var(--fx-accent); -webkit-text-stroke: 0; }
.fv-mod-t { display: grid; gap: 4px; }
.fv-mod-t strong { font-size: 1.08rem; font-weight: 700; }
.fv-mod-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--fg-subtle); }
.fv-mod-chev { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--fx-line-2); transition: transform .25s var(--fx-ease); }
.fv-mod[open] .fv-mod-chev { transform: rotate(180deg); }
.fv-mod-chev svg { width: 16px; height: 16px; }
.fv-mod-body { padding: 0 22px 24px 104px; display: grid; gap: 18px; }
.fv-mod-body > p { color: var(--fg-muted); }
@media (max-width: 760px) {
  .fv-mod summary { grid-template-columns: 44px 1fr auto; gap: 12px; padding: 16px; }
  .fv-mod-num { font-size: 1.5rem; }
  .fv-mod-body { padding: 0 16px 18px; }
}

/* Aperçu de l'espace élève (maquette HTML) */
.fv-demo { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.fv-feats { display: grid; gap: 18px; }
.fv-feat { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.fv-feat strong { display: block; margin-bottom: 2px; }
.fv-feat p { color: var(--fg-muted); font-size: .93rem; }
.fv-mock { border-radius: 20px; background: #0A1122; border: 1px solid var(--fx-line-2); box-shadow: var(--fx-shadow); overflow: hidden; font-size: .78rem; }
.fv-mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--fx-line); }
.fv-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.fv-mock-body { display: grid; grid-template-columns: 170px 1fr; }
.fv-mock-side { border-right: 1px solid var(--fx-line); padding: 12px; display: grid; gap: 6px; align-content: start; }
.fv-mock-side span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--fg-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-mock-side span.on { background: rgba(108, 138, 255, .14); color: #fff; }
.fv-mock-side b { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); flex: none; }
.fv-mock-side b.ok { background: var(--fx-ok); border-color: var(--fx-ok); }
.fv-mock-main { padding: 14px; display: grid; gap: 12px; }
.fv-mock-video { aspect-ratio: 16 / 9; border-radius: 12px; background: #fff center / cover no-repeat; position: relative; overflow: hidden; }
.fv-mock-video::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--fx-accent) 38%, rgba(255, 255, 255, .25) 38%); }
.fv-mock-tabs { display: flex; gap: 14px; color: var(--fg-subtle); border-bottom: 1px solid var(--fx-line); padding-bottom: 8px; }
.fv-mock-tabs span.on { color: #fff; box-shadow: 0 9px 0 -7px var(--fx-accent); }
.fv-mock-ch { display: grid; grid-template-columns: 44px 1fr; gap: 6px; color: var(--fg-muted); padding: 4px 6px; border-radius: 6px; }
.fv-mock-ch.on { background: rgba(108, 138, 255, .12); color: #fff; }
.fv-mock-ch time { color: var(--fx-accent); }
.fv-mock-ch i { display: block; height: 8px; margin-top: 4px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.fv-mock-ch.on i { background: rgba(255, 255, 255, .32); }
@media (max-width: 980px) { .fv-demo { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fv-mock-body { grid-template-columns: 1fr; } .fv-mock-side { display: none; } }

/* Formateurs */
.fv-coach { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.fv-coach img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.fv-coach h3 { font-size: 1.5rem; text-transform: uppercase; }
.fv-coach .role { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-accent); margin: 6px 0 12px; font-weight: 600; }
.fv-coach p { color: var(--fg-muted); font-size: .95rem; }
@media (max-width: 640px) { .fv-coach { grid-template-columns: 1fr; } .fv-coach img { aspect-ratio: 16 / 10; } }

/* Témoignages */
.fv-quotes { columns: 3 280px; column-gap: 18px; }
.fv-quote { break-inside: avoid; margin-bottom: 18px; display: grid; gap: 14px; }
.fv-stars { color: var(--fx-gold); letter-spacing: 2px; font-size: .95rem; }
.fv-quote blockquote { margin: 0; color: var(--fg-strong); font-size: .98rem; }
.fv-quote figcaption { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--fg-subtle); }
.fv-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; background: var(--fx-grad); color: #fff; }

/* Offre */
.fv-offer { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 26px; overflow: hidden; border: 1px solid rgba(108, 138, 255, .35); box-shadow: 0 40px 100px -30px rgba(64, 89, 219, .55); background: linear-gradient(160deg, rgba(108, 138, 255, .12), rgba(7, 12, 24, .6) 60%); }
.fv-offer-l { padding: 40px; display: grid; gap: 18px; align-content: start; border-right: 1px solid var(--fx-line); }
.fv-offer-l ul { display: grid; gap: 12px; }
.fv-offer-l li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--fg-muted); }
.fv-offer-l li svg { width: 18px; height: 18px; color: var(--fx-ok); margin-top: 3px; }
.fv-offer-l li strong { color: #fff; font-weight: 600; }
.fv-offer-r { padding: 40px; display: grid; gap: 18px; align-content: center; }
.fv-price { display: flex; align-items: baseline; gap: 12px; }
.fv-price strong { font-family: var(--font-head); font-size: clamp(3.2rem, 7vw, 4.4rem); line-height: 1; }
.fv-price span { color: var(--fg-subtle); }
.fv-split { font-size: .9rem; color: var(--fg-muted); }
.fv-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .84rem; color: var(--fg-muted); cursor: pointer; line-height: 1.5; }
.fv-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--fx-accent); }
.fv-check a { color: #AFC0FF; text-decoration: underline; }
.fv-secure { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .78rem; color: var(--fg-subtle); }
.fv-secure span { display: inline-flex; align-items: center; gap: 6px; }
.fv-secure svg { width: 14px; height: 14px; }
.fv-err { color: #FCA5A5; font-size: .88rem; min-height: 1.2em; }
@media (max-width: 860px) { .fv-offer { grid-template-columns: 1fr; } .fv-offer-l { border-right: 0; border-bottom: 1px solid var(--fx-line); } .fv-offer-l, .fv-offer-r { padding: 26px 22px; } }

/* FAQ */
.fv-faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.fv-faq details { border: 1px solid var(--fx-line); border-radius: 14px; background: var(--fx-surface); }
.fv-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.fv-faq summary::-webkit-details-marker { display: none; }
.fv-faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--fx-accent); transition: transform .2s; }
.fv-faq details[open] summary::after { transform: rotate(45deg); }
.fv-faq details > div { padding: 0 20px 18px; color: var(--fg-muted); }

/* CTA final et barre collante */
.fv-final { text-align: center; display: grid; gap: 18px; justify-items: center; }
.fv-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(7, 12, 24, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--fx-line); display: none; align-items: center; gap: 14px; transform: translateY(110%); transition: transform .35s var(--fx-ease); }
.fv-sticky.on { transform: none; }
.fv-sticky div { display: grid; line-height: 1.2; }
.fv-sticky strong { font-family: var(--font-head); font-size: 1.3rem; }
.fv-sticky span { font-size: .75rem; color: var(--fg-subtle); }
.fv-sticky .fx-btn { flex: 1; min-height: 46px; }
@media (max-width: 760px) { .fv-sticky { display: flex; } }

/* ═══════════════════════════ ESPACE ÉLÈVE ═══════════════════════════ */

.ex-top { position: sticky; top: 0; z-index: 100; background: rgba(7, 12, 24, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--fx-line); }
.ex-top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.ex-top-in .logo img { height: 30px; width: auto; }
.ex-top-in nav { display: flex; gap: 4px; margin-left: 12px; }
.ex-top-in nav a { padding: 8px 12px; border-radius: 8px; color: var(--fg-muted); font-size: .9rem; font-weight: 500; }
.ex-top-in nav a:hover, .ex-top-in nav a[aria-current] { color: #fff; background: var(--fx-surface-2); }
.ex-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--fg-subtle); }
.ex-user .fv-avatar { width: 32px; height: 32px; }
.ex-user a { color: var(--fg-muted); }
.ex-user a:hover, .ex-user button:hover { color: #fff; }
@media (max-width: 640px) { .ex-top-in nav, .ex-user .nom { display: none; } }

/* Connexion */
.ex-login { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; position: relative; isolation: isolate; }
.ex-login::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 45% at 50% 20%, rgba(64, 89, 219, .32), transparent 70%); }
.ex-login-box { width: 100%; max-width: 440px; display: grid; gap: 22px; text-align: center; }
.ex-login-box .logo img { height: 40px; width: auto; margin: 0 auto; }
.ex-login form { display: grid; gap: 12px; text-align: left; }
.ex-field { display: grid; gap: 6px; font-size: .85rem; color: var(--fg-muted); }
.ex-field input { height: 52px; border-radius: 12px; border: 1px solid var(--fx-line-2); background: rgba(255, 255, 255, .04); color: #fff; padding: 0 16px; font-size: 16px; font-family: inherit; }
.ex-field input:focus { outline: none; border-color: var(--fx-accent); box-shadow: 0 0 0 4px rgba(108, 138, 255, .18); }
.ex-note { font-size: .85rem; color: var(--fg-subtle); }
.ex-ok { padding: 16px; border-radius: 12px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3); color: #BBF7D0; font-size: .92rem; }
.ex-alert { padding: 14px 16px; border-radius: 12px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .3); color: #FECACA; font-size: .9rem; }

/* Tableau de bord */
.ex-main { padding: 40px 0 80px; }
.ex-hello { display: grid; gap: 6px; margin-bottom: 28px; }
.ex-hello h1 { font-family: var(--font-head); font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; line-height: 1.05; }
.ex-resume { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: 24px; overflow: hidden; border: 1px solid rgba(108, 138, 255, .3); background: linear-gradient(135deg, rgba(64, 89, 219, .22), rgba(12, 18, 34, .9) 60%); box-shadow: 0 30px 80px -30px rgba(64, 89, 219, .6); margin-bottom: 44px; }
.ex-resume-img { position: relative; min-height: 240px; background: #fff center / cover no-repeat; }
.ex-resume-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgba(12, 18, 34, .95)); }
.ex-resume-play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.ex-resume-play span { width: 72px; height: 72px; border-radius: 50%; background: var(--fx-grad); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(108, 138, 255, .18), 0 20px 40px rgba(0, 0, 0, .5); transition: transform .25s var(--fx-ease); }
.ex-resume:hover .ex-resume-play span { transform: scale(1.06); }
.ex-resume-play svg { width: 26px; height: 26px; margin-left: 4px; }
.ex-resume-txt { padding: 32px; display: grid; gap: 12px; align-content: center; }
.ex-resume-txt h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); text-transform: uppercase; line-height: 1.1; }
@media (max-width: 760px) { .ex-resume { grid-template-columns: 1fr; } .ex-resume-img { min-height: 190px; } .ex-resume-img::after { background: linear-gradient(180deg, transparent 50%, rgba(12, 18, 34, .95)); } .ex-resume-txt { padding: 22px; } }

.ex-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ex-bar i { display: block; height: 100%; border-radius: inherit; background: var(--fx-grad); }
.ex-bar--ok i { background: var(--fx-ok); }
.ex-h2 { font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.ex-h2 small { font-family: var(--font-body); font-size: .8rem; color: var(--fg-subtle); text-transform: none; letter-spacing: 0; font-weight: 400; }

.ex-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-bottom: 44px; }
.ex-course { position: relative; display: grid; border-radius: 22px; overflow: hidden; border: 1px solid var(--fx-line); background: var(--fx-surface); transition: transform .25s var(--fx-ease), border-color .25s; }
.ex-course:hover { transform: translateY(-3px); border-color: rgba(108, 138, 255, .4); }
.ex-course-img { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.ex-course-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.ex-course-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 12, 24, .1), rgba(7, 12, 24, .9)); }
.ex-course-img .fx-pill { position: absolute; top: 14px; left: 14px; z-index: 1; }
.ex-course-t { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.05; text-transform: uppercase; }
.ex-course-b { padding: 18px 20px 20px; display: grid; gap: 12px; }
.ex-course-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--fg-subtle); }
.ex-course-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--fg-muted); }
.ex-course--lock .ex-course-img img { filter: grayscale(.6) brightness(.6); }
.ex-course-lock { display: inline-flex; align-items: center; gap: 6px; }
.ex-course-lock svg { width: 14px; height: 14px; }
.ex-stretched::after { content: ''; position: absolute; inset: 0; z-index: 2; }

.ex-side-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ex-tile { display: grid; gap: 12px; align-content: start; }
.ex-tile h3 { font-size: 1.05rem; font-family: var(--font-body); letter-spacing: 0; font-weight: 700; }
.ex-tile p { color: var(--fg-muted); font-size: .9rem; }
.ex-calls { display: flex; gap: 8px; }
.ex-calls i { flex: 1; height: 8px; border-radius: 99px; background: var(--fx-grad); }
.ex-calls i.used { background: rgba(255, 255, 255, .1); }

/* Page leçon */
.ex-lesson { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.ex-side { border-right: 1px solid var(--fx-line); background: rgba(255, 255, 255, .015); position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.ex-side-head { padding: 22px 20px 18px; border-bottom: 1px solid var(--fx-line); display: grid; gap: 12px; }
.ex-side-head a.retour { font-size: .82rem; color: var(--fg-subtle); display: inline-flex; gap: 6px; align-items: center; }
.ex-side-head a.retour:hover { color: #fff; }
.ex-side-head h2 { font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; line-height: 1.1; }
.ex-side-prog { display: flex; justify-content: space-between; font-size: .8rem; color: var(--fg-subtle); }
.ex-search { position: relative; }
.ex-search input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--fx-line-2); background: rgba(255, 255, 255, .04); color: #fff; padding: 0 12px 0 38px; font-size: 14px; font-family: inherit; }
.ex-search input:focus { outline: none; border-color: var(--fx-accent); }
.ex-search svg { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; color: var(--fg-subtle); }
.ex-toc { padding: 10px; display: grid; gap: 4px; }
.ex-toc a { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 10px; border-radius: 12px; align-items: start; color: var(--fg-muted); transition: background .15s; }
.ex-toc a:hover { background: var(--fx-surface-2); color: #fff; }
.ex-toc a[aria-current] { background: rgba(108, 138, 255, .14); color: #fff; box-shadow: 0 8px 24px -12px rgba(64, 89, 219, .6); }
.ex-toc-t { display: grid; gap: 3px; font-size: .9rem; line-height: 1.35; }
.ex-toc-t small { font-size: .75rem; color: var(--fg-subtle); display: flex; gap: 10px; }
.ex-dot { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--fx-line-2); display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--fg-subtle); position: relative; }
.ex-dot.ok { background: var(--fx-ok); border-color: var(--fx-ok); color: #052e16; }
.ex-dot.ok svg { width: 14px; height: 14px; }
.ex-dot.part { border-color: var(--fx-accent); color: #fff; }

.ex-content { padding: 28px clamp(16px, 3vw, 44px) 80px; max-width: 1180px; width: 100%; }
.ex-crumb { font-size: .82rem; color: var(--fg-subtle); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ex-crumb a:hover { color: #fff; }
.ex-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000 center / cover no-repeat; box-shadow: var(--fx-shadow); }
.ex-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ex-wm { position: absolute; z-index: 3; pointer-events: none; user-select: none; color: rgba(255, 255, 255, .3); font: 600 13px/1 var(--font-body); letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); white-space: nowrap; transition: left 1.6s var(--fx-ease), top 1.6s var(--fx-ease); }
.ex-fs { position: absolute; z-index: 4; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: rgba(7, 12, 24, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: .75; transition: opacity .2s; }
.ex-fs:hover, .ex-fs:focus-visible { opacity: 1; }
.ex-fs svg { width: 18px; height: 18px; }
.ex-player:fullscreen, .ex-player:-webkit-full-screen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; background: #000; }
.ex-player.fs-css { position: fixed; inset: 0; z-index: 500; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; background: #000; }
@media (prefers-reduced-motion: reduce) { .ex-wm { transition: none; } }
.ex-player-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(7, 12, 24, .82); font-size: .95rem; color: var(--fg-muted); }
.ex-title { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin: 26px 0 8px; }
.ex-title h1 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; line-height: 1.08; }
.ex-title-l { display: grid; gap: 8px; }
.ex-title-r { display: flex; gap: 10px; flex-wrap: wrap; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.ex-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--fx-line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.ex-tabs::-webkit-scrollbar { display: none; }
.ex-tabs button { padding: 12px 14px; font-size: .92rem; font-weight: 600; color: var(--fg-subtle); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.ex-tabs button:hover { color: #fff; }
.ex-tabs button[aria-selected="true"] { color: #fff; border-color: var(--fx-accent); }
.ex-tabs .n { font-size: .72rem; padding: 1px 7px; border-radius: 99px; background: var(--fx-surface-2); color: var(--fg-muted); }
.ex-panel[hidden] { display: none; }

.ex-chaps { display: grid; gap: 4px; }
.ex-chap { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; text-align: left; width: 100%; color: var(--fg-muted); transition: background .15s, color .15s; }
.ex-chap:hover { background: var(--fx-surface-2); color: #fff; }
.ex-chap.on { background: rgba(108, 138, 255, .13); color: #fff; }
.ex-chap time { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--fx-accent); font-weight: 600; }
.ex-chap .play { opacity: 0; width: 16px; height: 16px; color: var(--fx-accent); }
.ex-chap:hover .play, .ex-chap.on .play { opacity: 1; }

.ex-prose { color: var(--fg-muted); display: grid; gap: 14px; max-width: 760px; }
.ex-prose h2 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: 0; margin-top: 10px; }
.ex-prose strong { color: #fff; }
.ex-prose ul { display: grid; gap: 8px; }
.ex-prose li { position: relative; padding-left: 22px; }
.ex-prose li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--fx-accent); }
.ex-prose a { color: #AFC0FF; text-decoration: underline; }
.ex-prose .conseil { padding: 18px 20px; border-radius: 14px; background: rgba(245, 196, 81, .07); border: 1px solid rgba(245, 196, 81, .25); display: grid; gap: 6px; }
.ex-prose .conseil-titre { color: var(--fx-gold); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.ex-prose .signature { font-style: italic; }
.ex-keys { display: grid; gap: 10px; margin-bottom: 28px; }
.ex-keys li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--fx-surface); border: 1px solid var(--fx-line); color: var(--fg-strong); font-size: .94rem; }
.ex-keys li b { font-family: var(--font-head); color: var(--fx-accent); font-size: 1.1rem; line-height: 1.3; }

.ex-res { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; }
.ex-res .fx-ico { width: 52px; height: 52px; }

/* Examen */
.ex-quiz { display: grid; gap: 16px; max-width: 820px; }
.ex-q { padding: 22px; border-radius: 16px; background: var(--fx-surface); border: 1px solid var(--fx-line); display: grid; gap: 14px; }
.ex-q legend { font-weight: 600; color: #fff; display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 0; }
.ex-q legend b { font-family: var(--font-head); color: var(--fx-accent); font-size: 1.1rem; }
.ex-q fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.ex-opt { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--fx-line); cursor: pointer; color: var(--fg-muted); transition: border-color .15s, background .15s; }
.ex-opt:hover { border-color: var(--fx-line-2); color: #fff; }
.ex-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--fx-accent); }
.ex-opt:has(input:checked) { border-color: var(--fx-accent); background: rgba(108, 138, 255, .1); color: #fff; }
.ex-opt.juste { border-color: rgba(34, 197, 94, .6); background: rgba(34, 197, 94, .1); color: #fff; }
.ex-opt.faux { border-color: rgba(248, 113, 113, .6); background: rgba(248, 113, 113, .08); }
.ex-expl { font-size: .9rem; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--fg-muted); }
.ex-score { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 24px; border-radius: 18px; }
.ex-ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--fx-accent)) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); position: relative; }
.ex-ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--fx-bg-2); }
.ex-ring span { position: relative; font-family: var(--font-head); font-size: 1.5rem; }
.ex-ring--sm { width: 54px; height: 54px; }
.ex-ring--sm::before { inset: 5px; }
.ex-ring--sm span { font-size: .9rem; }


.ex-hits { display: grid; gap: 22px; }
.ex-hits h3 { font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; margin-bottom: 8px; }
.ex-hits a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--fg-muted); font-size: .92rem; }
.ex-hits a:hover { background: var(--fx-surface-2); color: #fff; }
.ex-hits time { color: var(--fx-accent); font-size: .82rem; }

.ex-next { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--fx-line); flex-wrap: wrap; }
.ex-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: #0F1830; border: 1px solid rgba(34, 197, 94, .4); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); z-index: 300; display: flex; gap: 10px; align-items: center; transition: transform .35s var(--fx-ease); font-size: .92rem; }
.ex-toast.on { transform: translate(-50%, 0); }
.ex-toast svg { width: 18px; height: 18px; color: var(--fx-ok); }

.ex-menu-btn { display: none; }
@media (max-width: 1000px) {
  .ex-lesson { grid-template-columns: 1fr; }
  .ex-side { position: fixed; inset: 64px auto 0 0; width: min(340px, 88vw); z-index: 90; background: #0A1122; transform: translateX(-102%); transition: transform .3s var(--fx-ease); box-shadow: 30px 0 60px rgba(0, 0, 0, .5); }
  .ex-side.open { transform: none; }
  .ex-menu-btn { display: inline-flex; }
  .ex-content { padding-top: 18px; }
}
@media (max-width: 640px) { .ex-chap { grid-template-columns: 58px 1fr; } .ex-chap .play { display: none; } .ex-res { grid-template-columns: 44px 1fr; } .ex-res .fx-btn { grid-column: 1 / -1; } .ex-score { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.ex-foot { border-top: 1px solid var(--fx-line); padding: 26px 0; font-size: .8rem; color: var(--fg-subtle); }
.ex-foot .fx-wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
.ex-foot a:hover { color: #fff; }

/* Mode audio */
.ex-audio { padding: 22px; border-radius: 18px; background: var(--fx-surface); border: 1px solid var(--fx-line); display: grid; gap: 16px; }
.ex-audio-h { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.ex-audio-h .fx-ico { width: 48px; height: 48px; }
.ex-audio-h p { font-size: .9rem; }
.ex-audio audio { width: 100%; }
.ex-audio-b { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ex-speed { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--fx-line); }
.ex-speed button { padding: 7px 12px; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.ex-speed button[aria-pressed="true"] { background: var(--fx-accent); color: #fff; }

/* Questions sous la leçon */
.ex-ask { display: grid; gap: 14px; max-width: 760px; margin-bottom: 32px; }
.ex-ask textarea { width: 100%; min-height: 120px; border-radius: 14px; border: 1px solid var(--fx-line-2); background: rgba(255, 255, 255, .04); color: #fff; padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.ex-ask textarea:focus { outline: none; border-color: var(--fx-accent); }
.ex-asked { max-width: 760px; }
.ex-asked ul { display: grid; gap: 10px; }
.ex-asked li { padding: 16px 18px; border-radius: 14px; background: var(--fx-surface); border: 1px solid var(--fx-line); display: grid; gap: 8px; color: var(--fg-strong); font-size: .94rem; }
.ex-asked-h { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: var(--fg-subtle); }
.ex-chap-lien { color: var(--fx-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-chap-lien:hover { text-decoration: underline; }

/* Certificat à partager */
.ex-partage { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 48px; align-items: center; padding-block: 48px 72px; }
.ex-partage-l { display: grid; gap: 16px; align-content: center; }
.ex-partage-l .retour { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }
.ex-partage-l .retour svg { width: 16px; height: 16px; }
.ex-partage-b { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ex-partage canvas { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--fx-shadow); }
@media (max-width: 860px) { .ex-partage { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 48px; } }
