/* ==========================================================================
   Maths Bladi — design épuré
   Style professionnel : bleu nuit, indigo, blanc ; une couleur d accent discrète par niveau (--accent).
   Accueil : logo Maths Bladi en 3D (assets/logo3d.js) qui tourne lentement.
   Polices : Plus Jakarta Sans (titres), Inter (texte), IBM Plex Sans Arabic (arabe, de droite à gauche).
   ========================================================================== */

:root {
  --ink: #0F172A;
  --muted: #5B6478;
  --bg: #F8FAFC;
  --paper: #FFFFFF;
  --line: #E2E8F0;
  --soft: #EEF2FF;
  --violet: #4F46E5;
  --violet-d: #4338CA;
  --navy: #0B1230;
  --gold: #D9A441;
  --yellow: #F5B83D;
  --coral: #E5484D;
  --mint: #12A37F;
  --sky: #2F7FE0;
  --accent: var(--violet);

  --f-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --r: 14px;
  --sh: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px -10px rgba(15, 23, 42, .14);
  --sh-up: 0 2px 4px rgba(15, 23, 42, .05), 0 22px 44px -22px rgba(15, 23, 42, .3);
  --t: .18s ease;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-padding-top: 90px; }
body { margin: 0; font: 400 16.5px/1.65 var(--f-body); color: var(--ink); background: var(--bg); overflow-x: hidden; }
html[dir="rtl"] body { font-family: var(--f-ar); }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 800; letter-spacing: -.02em; }
html[dir="rtl"] :is(h1, h2, h3) { font-family: var(--f-ar); letter-spacing: 0; font-weight: 700; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 10px; }
::selection { background: #FFE7A3; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }
.i { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i .d { fill: currentColor; stroke: none; opacity: .18; } /* partie teintée des icônes duotone */

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 600 15.5px var(--f-body); text-decoration: none; color: #fff; background: var(--violet);
  border: 1px solid transparent; border-radius: 10px; padding: 11px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12); transition: background-color var(--t), transform var(--t), box-shadow var(--t);
}
html[dir="rtl"] .btn { font-family: var(--f-ar); }
.btn:hover { background: var(--violet-d); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: #CFC6FB; background: var(--soft); }
.btn.danger { background: var(--coral); box-shadow: none; }
.btn.big { font-size: 16px; padding: 13px 24px; border-radius: 11px; }
.btn.small { font-size: 14.5px; padding: 7px 14px; border-radius: 11px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------------- Bandeau des annonces ---------------- */
.ticker { display: flex; align-items: center; background: var(--soft); color: var(--ink); font-size: 14px; min-height: 36px; overflow: hidden; position: relative; z-index: 31; }
.ticker .label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-weight: 800; color: var(--violet); }
.ticker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
@keyframes pulse { 50% { opacity: .3; } }
.ticker .track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker .run { display: flex; gap: 46px; width: max-content; padding-inline-start: 20px; }
.ticker:hover .run { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }
@keyframes defile-rtl { to { transform: translateX(50%); } }
.ticker .item { display: flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; font-weight: 600; }
.ticker .item time { color: var(--muted); }
.ticker .new { background: var(--yellow); font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 6px; }

/* ---------------- En-tête ---------------- */
.head { position: sticky; top: 0; z-index: 30; background: rgba(246, 247, 251, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 10px 20px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo b { font: 800 21px/1 var(--f-head); white-space: nowrap; letter-spacing: -.02em; }
.logo b span { color: var(--violet); }
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav a { display: flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); padding: 7px 12px; border-radius: 11px; transition: color var(--t), background-color var(--t); }
.nav a:hover { color: var(--ink); background: rgba(108, 76, 241, .07); }
.nav a.on { color: var(--violet); background: var(--soft); }
.tools { display: flex; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.pill.lang { font-family: var(--f-ar); }
.pill.lang:hover { border-color: #CFC6FB; }
.pill.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.solid:hover { background: var(--violet); border-color: var(--violet); }

/* ---------------- Messages ---------------- */
.msg { border-radius: 14px; padding: 12px 16px; margin: 18px 0; font-weight: 600; border: 1px solid; }
.msg.ok { background: #E7F8F1; border-color: #BCEBD8; }
.msg.err { background: #FDECEC; border-color: #F7C6C5; }
.msg.info { background: #FFF6DA; border-color: #FBE3A2; }

/* ---------------- Logo : un tour au survol ---------------- */
.logo { perspective: 400px; }
.logo svg { transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.logo:hover svg { transform: rotateY(360deg); }

/* ---------------- Accueil professionnel ---------------- */
body.home .head { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08); backdrop-filter: none; }
body.home .head .logo b { color: #fff; }
body.home .head .logo b span { color: #A5B4FC; }
body.home .head .nav a { color: #C7CCE0; }
body.home .head .nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
body.home .head .nav a.on { color: #fff; background: rgba(255, 255, 255, .1); }
body.home .head .pill { background: transparent; color: #E5E8F5; border-color: rgba(255, 255, 255, .22); }
body.home .head .pill.solid { background: #fff; color: var(--navy); border-color: #fff; }
body.home .ticker { background: #111A40; color: #DDE2F5; }
body.home .ticker .label { color: #A5B4FC; }
body.home .ticker .item time { color: #9BA3C4; }
.hero-pro { color: #fff; overflow: hidden;
  background: radial-gradient(900px 500px at 78% 45%, rgba(79, 70, 229, .45), transparent 65%), radial-gradient(700px 400px at 10% 110%, rgba(217, 164, 65, .14), transparent 60%), var(--navy); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; min-height: min(78vh, 680px); padding-top: 40px; padding-bottom: 40px; }
.eyebrow-pro { display: inline-block; font: 600 13px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #A5B4FC; }
.eyebrow-pro.dark { color: var(--violet); }
html[dir="rtl"] .eyebrow-pro { letter-spacing: 0; font-family: var(--f-ar); }
.hero-copy h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; margin: 14px 0 18px; color: #fff; }
.hero-copy .lead { font-size: 18px; color: #C7CCE0; margin: 0 0 30px; max-width: 34em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.light { background: #fff; color: var(--navy); box-shadow: none; }
.btn.light:hover { background: #E8EBF8; }
.btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.btn.outline:hover { background: rgba(255, 255, 255, .08); }
.hero-stats { display: flex; gap: 38px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stats div { margin: 0; }
.hero-stats dt { font: 800 30px/1 var(--f-head); color: #fff; }
.hero-stats dd { margin: 6px 0 0; color: #9BA3C4; font-size: 14px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: center; }
#logo3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.logo-fallback { position: absolute; inset: 22%; width: 56%; height: 56%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero-visual.a-3d .logo-fallback { display: none; }

.section { padding: 84px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); margin: 10px 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }
.cycle { font: 600 14px var(--f-body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 28px 0 12px; }
html[dir="rtl"] .cycle { letter-spacing: 0; font-family: var(--f-ar); }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.level-card { position: relative; display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.level-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
.level-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--sh-up); }
.lc-code { align-self: flex-start; font: 700 12.5px var(--f-body); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); padding: 3px 9px; border-radius: 6px; letter-spacing: .02em; }
.lc-name { font: 800 21px/1.25 var(--f-head); margin-top: 12px; letter-spacing: -.01em; }
html[dir="rtl"] .lc-name { font-family: var(--f-ar); }
.lc-other { color: var(--muted); font-family: var(--f-ar); font-size: 15.5px; }
html[dir="rtl"] .lc-other { font-family: var(--f-body); }
.lc-meta { color: var(--muted); font-size: 14px; margin-top: 14px; }
.lc-go { margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--accent); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { display: block; text-decoration: none; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); transition: border-color var(--t); }
.feature:hover { border-color: #C7D2FE; }
.feature .i { width: 26px; height: 26px; color: var(--violet); stroke-width: 1.8; }
.feature h3 { font-size: 18px; margin: 16px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.steps-pro { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-pro li { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.steps-pro span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--soft); color: var(--violet); font-weight: 700; }
.steps-pro h3 { font-size: 18px; margin: 16px 0 6px; }
.steps-pro p { margin: 0; color: var(--muted); font-size: 15px; }
.cta-pro { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #fff; border-radius: 20px; padding: 40px 44px; margin: 0 0 20px;
  background: radial-gradient(600px 300px at 90% 0%, rgba(79, 70, 229, .5), transparent 70%), var(--navy); }
.cta-pro h2 { font-size: 28px; color: #fff; }
.cta-pro p { margin: 6px 0 0; color: #C7CCE0; max-width: 40em; }
body.home .foot { margin-top: 60px; }

/* ---------------- Accueil en vraie 3D : la scène plein écran et ses panneaux (assets/accueil3d.js) ---------------- */
body.home { background: #070C24; color: #E6E9F5; }
.stage { position: fixed; inset: 0; z-index: 0; background: radial-gradient(900px 600px at 70% 40%, rgba(79, 70, 229, .35), transparent 70%), #070C24; }
#stage3d { width: 100%; height: 100%; display: block; }
body.home .ticker, body.home .head { position: relative; z-index: 5; }
body.home .head { background: rgba(7, 12, 36, .72); backdrop-filter: blur(14px); }
.panels { position: relative; z-index: 3; }
.panel { width: min(520px, calc(100vw - 44px)); margin: 24px 22px; padding: 30px 32px; border-radius: 22px; color: #E6E9F5;
  background: linear-gradient(160deg, rgba(23, 31, 74, .82), rgba(11, 18, 48, .78)); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(165, 180, 252, .16); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); }
.panel h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; color: #fff; margin: 12px 0 14px; }
.panel h2 { font-size: clamp(26px, 2.6vw, 34px); color: #fff; margin: 10px 0 10px; }
.panel .lead { color: #B9C0DC; font-size: 17px; margin: 0 0 22px; }
.panel .small-lead { font-size: 15.5px; margin-bottom: 16px; }
.panel .hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.panel .hero-stats dt { font: 800 26px/1 var(--f-head); color: #fff; }
.panel .hero-stats dd { margin: 6px 0 0; color: #8F98BF; font-size: 13px; }
.panel-news { display: flex; gap: 10px; align-items: center; margin: 18px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: #DDE2F5; text-decoration: none; font-size: 14.5px; }
.panel-news span { flex: none; font-size: 11px; font-weight: 700; color: #0B1230; background: var(--yellow); padding: 2px 7px; border-radius: 5px; }
.lvl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lvl-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; text-decoration: none; color: #E6E9F5; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); transition: background-color var(--t), border-color var(--t); }
.lvl-list a:hover { background: rgba(255, 255, 255, .08); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.lvl-list .code { flex: none; min-width: 52px; text-align: center; font: 700 12.5px var(--f-body); color: #fff; background: var(--accent); padding: 5px 6px; border-radius: 7px; }
.lvl-list .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.lvl-list .nm b { font-weight: 600; }
.lvl-list .nm small { color: #8F98BF; font-family: var(--f-ar); }
html[dir="rtl"] .lvl-list .nm small { font-family: var(--f-body); }
.lvl-list .ct { color: #9BA3C4; font-size: 13px; white-space: nowrap; }
.lvl-list .go { color: #A5B4FC; }
.res-list { display: grid; gap: 10px; }
.res-list a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; text-decoration: none; color: #E6E9F5; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); transition: background-color var(--t); }
.res-list a:hover { background: rgba(255, 255, 255, .08); }
.res-list .i { width: 24px; height: 24px; color: #A5B4FC; }
.res-list span { flex: 1; display: flex; flex-direction: column; }
.res-list b { font-weight: 600; }
.res-list small { color: #9BA3C4; font-size: 13.5px; }
.res-list em { font-style: normal; font: 800 20px var(--f-head); color: #fff; }
.step-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.step-list li { display: flex; gap: 14px; align-items: flex-start; }
.step-list li > span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #4F46E5; color: #fff; font-weight: 700; }
.step-list b { color: #fff; font-weight: 600; }
.step-list p { margin: 2px 0 0; color: #B9C0DC; font-size: 15px; }
.join-proof { color: #A5B4FC; font-weight: 600; margin: -8px 0 18px; }
.panel-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.panel-foot a { color: #B9C0DC; text-decoration: none; }
.panel-foot a:hover { color: #fff; }
.panel-copy { display: block; margin-top: 10px; color: #6F789E; }
.points, .nav-arrows { display: none; }
body.home .foot { position: relative; z-index: 3; }

/* avec le script : une seule section visible à la fois, posée sur la scène */
body.home.stage-js { overflow: hidden; height: 100vh; height: 100dvh; }
body.home.stage-js .foot { display: none; }
body.stage-js .panels { position: fixed; inset: var(--haut-entete, 100px) 0 0 0; pointer-events: none; }
body.stage-js .panel { position: absolute; inset-inline-start: 4vw; top: 50%; margin: 0; max-height: calc(100dvh - var(--haut-entete, 100px) - 36px); overflow-y: auto; overscroll-behavior: contain;
  pointer-events: auto; opacity: 0; visibility: hidden; transform: translateY(-46%) translateX(-14px); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s .45s; scrollbar-width: thin; }
html[dir="rtl"] body.stage-js .panel { transform: translateY(-46%) translateX(14px); }
body.stage-js .panel.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .55s ease .35s, transform .7s cubic-bezier(.2, .7, .2, 1) .3s, visibility 0s; }
body.stage-js .points { display: flex; flex-direction: column; gap: 12px; position: fixed; inset-inline-end: 24px; top: 50%; transform: translateY(-50%); z-index: 6; }
.points a { position: relative; display: block; width: 11px; height: 11px; border-radius: 50%; background: rgba(148, 163, 184, .4); border: 2px solid rgba(255, 255, 255, .55); transition: background-color .2s, transform .2s; }
.points a.on { background: #818CF8; transform: scale(1.35); }
.points a span { position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fff; color: #0B1230; font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.points a:hover span, .points a:focus-visible span { opacity: 1; }
body.stage-js .nav-arrows { display: flex; align-items: center; gap: 12px; position: fixed; bottom: 22px; inset-inline-end: 24px; z-index: 6; color: #9BA3C4; font-size: 13px; }
.nav-arrows button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(11, 18, 48, .7); color: #fff; font-size: 17px; cursor: pointer; backdrop-filter: blur(10px); }
.nav-arrows button:hover { background: rgba(79, 70, 229, .6); }
.nav-arrows .count b { color: #fff; }
body.no3d .stage { background: radial-gradient(900px 600px at 70% 40%, rgba(79, 70, 229, .45), transparent 70%), radial-gradient(700px 500px at 10% 100%, rgba(217, 164, 65, .12), transparent 60%), #070C24; }
@media (prefers-reduced-motion: reduce) { body.stage-js .panel, body.stage-js .panel.on { transition: none; } }
body.debut .panel, body.debut .panel.on { transition: none !important; }
@media (max-width: 860px) {
  body.stage-js .panels { align-items: flex-end; }
  body.stage-js .panel { inset-inline: 12px; width: auto; top: auto; bottom: 12px; max-height: 54dvh; padding: 22px 20px; transform: translateY(16px); }
  html[dir="rtl"] body.stage-js .panel { transform: translateY(16px); }
  body.stage-js .panel.on { transform: none; }
  .panel h1 { font-size: 27px; }
  .panel .lead { font-size: 15.5px; }
  .panel .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .lvl-list .ct { display: none; }
  body.stage-js .points { top: calc(var(--haut-entete, 120px) + 16px); transform: none; flex-direction: row; inset-inline-end: 50%; translate: 50% 0; gap: 10px; }
  html[dir="rtl"] body.stage-js .points { translate: -50% 0; }
  .points a span { display: none; }
  body.stage-js .nav-arrows { display: none; }
}

/* ---------------- Pages intérieures ---------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; padding-top: 22px; color: var(--muted); }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-page { padding-top: 18px; padding-bottom: 24px; }
.hero-page .kicker { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, white); }
.hero-page h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 12px 0 6px; }
.hero-page p { color: var(--muted); font-size: 17.5px; margin: 4px 0 0; max-width: 46em; }
.hero-page .sub-ar { font-family: var(--f-ar); color: var(--accent); font-weight: 700; font-size: 20px; }
html[dir="rtl"] .hero-page .sub-ar { font-family: var(--f-body); }
.hero-page .best { color: var(--ink); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.chips form { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font: 700 14.5px var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: border-color var(--t); }
.chip:hover { border-color: var(--accent); }
.chip .i { color: var(--accent); }
.big-404 { font: 700 110px/1 var(--f-head); color: var(--violet); }
.big-404 span { display: inline-block; transform: rotate(-12deg); color: var(--ink); }

.chap-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.chap-list li { display: flex; }
.chap-list a { flex: 1; display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; min-height: 68px; transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.chap-list a:hover { border-color: color-mix(in srgb, var(--accent) 40%, white); box-shadow: var(--sh); }
.num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); font: 700 18px var(--f-head); }
.chap-list .t { flex: 1; font-weight: 700; min-width: 0; }
.chap-list .m { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.chap-list .m span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.chapter { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.retenir { background: #FFF8E1; border: 1px solid #FBE7A8; border-radius: var(--r); padding: 16px 20px; margin-bottom: 28px; }
.retenir h2 { font: 800 13px var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: #946200; margin-bottom: 4px; }
.retenir p { margin: 0; font-size: 17.5px; font-weight: 600; }
h2.sub { display: flex; align-items: center; gap: 10px; font-size: 24px; margin: 0 0 14px; }
h2.sub .i { color: var(--accent); }
.code-badge { display: inline-block; background: var(--accent); color: #fff; border-radius: 9px; padding: 0 9px; font-size: 15px; }
.docs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.doc { display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; transition: border-color var(--t), box-shadow var(--t); }
.doc:hover { border-color: color-mix(in srgb, var(--accent) 40%, white); box-shadow: var(--sh); }
.doc-ic { flex: none; display: grid; place-items: center; width: 42px; height: 46px; border-radius: 11px; background: #E8F2FE; color: var(--sky); font-size: 11.5px; font-weight: 800; }
.doc.ctrl .doc-ic { background: #FFF1DE; color: #D97706; }
.doc.corr .doc-ic { background: #E4F7F0; color: var(--mint); }
.doc-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.doc-t b { font-size: 16.5px; font-weight: 700; }
.doc-t small { color: var(--muted); }
.doc .btn { pointer-events: none; background: transparent; color: var(--accent); box-shadow: none; border-color: var(--line); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.chapter-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.chapter-side h2, .docpage aside h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-bottom: 10px; }
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.skills li { position: relative; padding-inline-start: 28px; font-weight: 600; font-size: 15.5px; }
.skills li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px; background: #E4F7F0; color: var(--mint); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.qcm-side a { display: flex; flex-direction: column; text-decoration: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; transition: border-color var(--t); }
.qcm-side a:hover { border-color: var(--accent); }
.qcm-side small { color: var(--muted); }
.pager-ch { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 28px; }
.card h3 { font-size: 19px; margin: 10px 0 6px; }
.card p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.grid .card { text-decoration: none; display: flex; flex-direction: column; transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.grid .card:hover { box-shadow: var(--sh); }
.card .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); }
.card .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #F0F1F7; color: var(--muted); white-space: nowrap; }
.tag.score { background: #E4F7F0; color: #0E7A55; }
.video-card { padding: 12px; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--coral); box-shadow: var(--sh); }
.thumb .play .i { fill: currentColor; }
.video-card .tag { align-self: flex-start; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.filters label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.filters .q { flex: 1; min-width: 200px; }
.filters .act { display: flex; gap: 8px; }
input, select, textarea { font: 600 16px var(--f-body); color: var(--ink); background: #fff; border: 1px solid #DCDFEA; border-radius: 12px; padding: 10px 12px; width: 100%; min-width: 0; }
html[dir="rtl"] :is(input, select, textarea, .chip) { font-family: var(--f-ar); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(108, 76, 241, .15); border-color: var(--violet); }
.count { font-weight: 700; color: var(--muted); margin: 6px 0 12px; font-size: 15px; }
.empty { background: var(--paper); border: 1px dashed #D3D6E3; border-radius: var(--r); padding: 26px; text-align: center; font-weight: 600; color: var(--muted); }
.empty.small { padding: 18px; margin-bottom: 26px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 10px 0 30px; }
.exam-level { margin-bottom: 26px; }

/* Fiche document */
.docpage { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.viewer { display: flex; flex-direction: column; gap: 16px; }
.viewer .pdf { width: 100%; height: 78vh; min-height: 480px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.pdf-fallback { padding: 20px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.docpage aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.actions.col { flex-direction: column; }
.actions.col .btn { width: 100%; }
.fav[aria-pressed="true"] { background: #FFF6DA; border-color: #FBE3A2; }
.desc { margin: 14px 0 6px; }
.related a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15.5px; }
.related a:hover { color: var(--accent); }
.mini { flex: none; font-size: 10px; font-weight: 800; background: #E8F2FE; color: var(--sky); border-radius: 6px; padding: 2px 5px; }

/* ---------------- QCM ---------------- */
.quiz { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--sh); max-width: 780px; margin: 0 auto 40px; }
.quiz .bar { height: 8px; border-radius: 999px; overflow: hidden; background: #EEF0F6; }
.quiz .bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--sky)); transition: width .4s; }
.quiz .prog { font-weight: 700; color: var(--muted); margin: 10px 0 6px; font-size: 15px; }
.quiz h2 { font: 700 23px/1.35 var(--f-body); margin-bottom: 18px; }
html[dir="rtl"] .quiz h2 { font-family: var(--f-ar); }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; text-align: start; font: 600 16.5px var(--f-body); color: var(--ink); background: #fff; border: 1px solid #DCDFEA; border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color var(--t), background-color var(--t); }
html[dir="rtl"] .opt { font-family: var(--f-ar); }
.opt:hover:not(:disabled) { border-color: var(--violet); background: #FBFAFF; }
.opt .k { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #F0F1F7; font-weight: 800; }
.opt.good { background: #E7F8F1; border-color: #8FDDBF; }
.opt.good .k { background: var(--mint); color: #fff; }
.opt.bad { background: #FDECEC; border-color: #F3A9A7; animation: shake .35s; }
.opt.bad .k { background: var(--coral); color: #fff; }
.opt:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.fb { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #F7F8FC; }
.fb .ok { color: #0E7A55; }
.fb .ko { color: #C23B3B; }
.nav-q { margin-top: 16px; display: flex; justify-content: flex-end; }
.result { text-align: center; padding: 14px 0 4px; }
.result .big { font: 700 68px/1 var(--f-head); color: var(--violet); }
.result .verdict { font: 700 26px var(--f-head); margin: 6px 0; }
.confetti { position: fixed; top: -20px; width: 10px; height: 14px; z-index: 50; pointer-events: none; animation: tombe linear forwards; border-radius: 2px; }
@keyframes tombe { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------------- Comptes ---------------- */
.auth { max-width: 470px; margin: 40px auto 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--sh); }
.auth-art { display: flex; justify-content: center; margin-bottom: 4px; }
.auth h1 { font-size: 30px; text-align: center; margin-bottom: 6px; }
.auth > .muted { text-align: center; font-size: 15.5px; }
.form { display: grid; gap: 14px; margin: 18px 0; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; }
.form label small { font-weight: 600; color: var(--muted); }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.form label.check input { width: 20px; height: 20px; flex: none; accent-color: var(--violet); margin-top: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { text-align: center; font-weight: 600; }
.space { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 10px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.table th { background: #F7F8FC; font-weight: 800; font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.danger-zone { margin-top: 18px; border: 1px dashed #F3A9A7; border-radius: 14px; padding: 10px 14px; }
.danger-zone summary { cursor: pointer; font-weight: 700; color: #C23B3B; }

/* ---------------- Pages de texte ---------------- */
.prose { padding-bottom: 40px; font-size: 17.5px; }
.prose h2 { font-size: 24px; margin: 28px 0 8px; }
.prose p, .prose li { color: #3D4160; }
.prose ul { padding-inline-start: 22px; }

/* ---------------- Pied de page ---------------- */
.foot { margin-top: 70px; background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.2fr 2fr; gap: 18px 40px; padding-top: 30px; padding-bottom: 26px; }
.foot .logo b { color: var(--ink); }
.foot p { margin: 10px 0 0; font-size: 14.5px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; font-weight: 600; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--violet); }
.foot small { grid-column: 1 / -1; }

/* ---------------- Effets 3D légers des pages intérieures (assets/3d.js) ---------------- */
.inc3d.inc3d { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .2s; }
.inc3d.inc3d:hover { --ty: -2px; }
.inc3d.actif { transition: transform .1s linear, box-shadow .3s, border-color .2s; }
.r3d-cache { opacity: 0; }
.r3d-vu.r3d-vu { animation: entree3d .7s cubic-bezier(.2, .75, .25, 1) backwards; }
@keyframes entree3d { from { opacity: 0; transform: perspective(900px) rotateX(14deg) translateY(26px); } to { opacity: 1; transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(0px); } }

/* ---------------- Mouvement réduit ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .inc3d.inc3d { transform: none; }
  .r3d-cache { opacity: 1; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .chapter, .docpage { grid-template-columns: minmax(0, 1fr); }
  .chapter-side, .docpage aside { position: static; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; padding-top: 24px; }
  .hero-visual { order: -1; max-width: 340px; }
  .level-grid, .features, .steps-pro { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { gap: 24px; }
  .section { padding: 56px 0; }
  .cta-pro { padding: 28px 24px; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .head .wrap { min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; flex-basis: 100%; justify-content: space-between; }
  .nav a { flex-direction: column; gap: 2px; font-size: 12px; padding: 5px 6px; }
  .nav a .i { width: 21px; height: 21px; }
  .tools { margin-inline-start: auto; }
  .space, .row2 { grid-template-columns: minmax(0, 1fr); }
  .chap-list { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: 1fr; }
  .quiz { padding: 18px; }
  .viewer .pdf { height: 70vh; min-height: 380px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .pill.solid .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pill.solid { padding: 8px 10px; }
  .logo b { font-size: 20px; }
  .hero-stop h1 { font-size: 32px; }
}

/* ---------------- Icônes pleines en pastilles de couleur (menu, ressources) ---------------- */
.ib { --c1: #6366F1; --c2: #4338CA; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 10px -5px var(--c2); }
.ib svg { width: 17px; height: 17px; fill: #fff; }
.ib .x { fill: none; stroke: var(--c2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ib .x.f { fill: var(--c2); stroke: none; }
.ib-accueil { --c1: #818CF8; --c2: #4F46E5; }
.ib-niveaux { --c1: #C084FC; --c2: #7C3AED; }
.ib-qcm { --c1: #34D399; --c2: #059669; }
.ib-videos { --c1: #FB7185; --c2: #E11D48; }
.ib-examens { --c1: #FBBF24; --c2: #D97706; }
.ib-pdf { --c1: #60A5FA; --c2: #2563EB; }
.nav a { gap: 9px; }
.nav a .ib { width: 26px; height: 26px; border-radius: 8px; }
.nav a .ib svg { width: 16px; height: 16px; }
.nav a:not(.on) .ib { filter: saturate(.85); }
.res-list .ib { width: 40px; height: 40px; border-radius: 11px; }
.res-list .ib svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .nav a .ib { width: 30px; height: 30px; } }
.res-list .ib { flex: none; display: inline-grid; }
@media (min-width: 761px) {
  .nav { flex-wrap: nowrap; }
  .nav a { white-space: nowrap; padding: 6px 10px; font-size: 14.5px; }
}
@media (min-width: 761px) { .head .wrap { flex-wrap: nowrap; } .nav { min-width: 0; } }
@media (min-width: 761px) and (max-width: 1520px) { .nav a > span:not(.ib) { display: none; } .nav a { padding: 6px 8px; } } /* écran moyen : seulement les pastilles */

/* ==================== Pages intérieures en 3D ==================== */
/* en-tête sombre (comme l'accueil) */
body.interieur .head { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08); backdrop-filter: none; }
body.interieur .head .logo b { color: #fff; }
body.interieur .head .logo b span { color: #A5B4FC; }
body.interieur .head .nav a { color: #C7CCE0; }
body.interieur .head .nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
body.interieur .head .nav a.on { color: #fff; background: rgba(255, 255, 255, .1); }
body.interieur .head .pill { background: transparent; color: #E5E8F5; border-color: rgba(255, 255, 255, .22); }
body.interieur .head .pill.solid { background: #fff; color: var(--navy); border-color: #fff; }
body.interieur .ticker { background: #111A40; color: #DDE2F5; }
body.interieur .ticker .label { color: #A5B4FC; }
/* fil d'Ariane et bandeau de titre sur toute la largeur, avec l'objet 3D à droite */
body.interieur .crumbs { padding-top: 18px; padding-bottom: 4px; color: #8F98BF; box-shadow: 0 0 0 100vmax #0B1230; clip-path: inset(0 -100vmax); background: #0B1230; }
body.interieur .crumbs a { color: #A5B4FC; }
.hero3d { padding: 0; color: #fff; background: radial-gradient(700px 320px at 80% 50%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), #0B1230; margin-bottom: 34px; }
.hero3d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: center; min-height: 240px; padding-top: 18px; padding-bottom: 26px; }
.hero3d .kicker { color: #fff; background: color-mix(in srgb, var(--accent) 70%, #0B1230); }
.hero3d h1 { color: #fff; }
.hero3d p { color: #B9C0DC; }
.hero3d .sub-ar { color: color-mix(in srgb, var(--accent) 55%, white); }
.hero3d .best { color: #fff; }
.hero3d .chip { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
.hero3d .chip .i { color: #A5B4FC; }
.hero3d-visual { position: relative; width: 300px; height: 240px; justify-self: end; }
.hero3d-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.interieur .crumbs + .hero3d { margin-top: 0; }
@media (max-width: 760px) {
  .hero3d-grid { grid-template-columns: minmax(0, 1fr) 120px; min-height: 0; gap: 8px; }
  .hero3d-visual { width: 120px; height: 120px; }
  .hero3d h1 { font-size: 26px; }
}

/* cartes en relief (listes de chapitres, documents, cartes) */
.chap-list, .docs, .grid { perspective: 1200px; }
.chap-list a, .doc, .grid .card, .qcm-side a, .card.related, .chapter-side .card {
  background: linear-gradient(180deg, #fff, #F8FAFC); border: 1px solid #E2E8F0; transform: rotateX(5deg); transform-origin: 50% 100%;
  box-shadow: 0 1px 0 #fff inset, 0 12px 20px -14px rgba(15, 23, 42, .35), 0 3px 0 #E2E8F0; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .2s; }
.chap-list a:hover, .doc:hover, .grid .card:hover, .qcm-side a:hover {
  transform: rotateX(0deg) translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, #E2E8F0);
  box-shadow: 0 1px 0 #fff inset, 0 20px 28px -16px color-mix(in srgb, var(--accent) 55%, transparent), 0 3px 0 color-mix(in srgb, var(--accent) 30%, #E2E8F0); }
.num { background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 70%, white), var(--accent)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 color-mix(in srgb, var(--accent) 70%, black), 0 6px 10px -4px var(--accent); }
.retenir { box-shadow: 0 3px 0 #F3DC94, 0 14px 22px -16px rgba(148, 98, 0, .45); }

/* icônes en 3D : pastilles en relief, brillantes, avec épaisseur */
.ib { position: relative; overflow: hidden; transform: perspective(160px) rotateX(12deg); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 3px 0 color-mix(in srgb, var(--c2) 70%, black), 0 7px 12px -5px rgba(0, 0, 0, .55); }
.ib::before { content: ""; position: absolute; inset: 1px 2px auto; height: 48%; border-radius: 7px 7px 50% 50% / 7px 7px 40% 40%; background: linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); pointer-events: none; }
.ib svg { position: relative; filter: drop-shadow(0 1.5px 1px rgba(0, 0, 0, .35)); }
a:hover > .ib, .nav a.on .ib { transform: perspective(160px) rotateX(0deg) translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 4px 0 color-mix(in srgb, var(--c2) 70%, black), 0 10px 16px -6px var(--c2); }
@media (prefers-reduced-motion: reduce) { .ib, .chap-list a, .doc, .grid .card { transition: none; } }
.hero3d .kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }

/* ==================== Page chapitre : onglets, cours, difficulté, progression, questions ==================== */
.ch-progress { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.ch-progress form { margin: 0; }
.ch-progress .btn.light { background: #fff; color: var(--navy); }
.ch-progress .btn.done { background: #12A37F; color: #fff; }
.ch-progress .bar { width: 160px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.ch-progress .bar b { display: block; height: 100%; background: linear-gradient(90deg, #34D399, #12A37F); }
.ch-progress small { color: #B9C0DC; }
.ch-video { margin: 0 0 26px; }
.ch-video .video { max-width: 900px; box-shadow: var(--sh-up); }
.onglets-barre { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.onglets-barre button { flex: none; font: 600 15px var(--f-body); color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; cursor: pointer; }
html[dir="rtl"] .onglets-barre button { font-family: var(--f-ar); }
.onglets-barre button span { font-size: 12px; font-weight: 700; background: #EEF0F6; color: var(--muted); padding: 1px 7px; border-radius: 99px; margin-inline-start: 4px; }
.onglets-barre button:hover { color: var(--ink); }
.onglets-barre button.on { color: var(--accent); border-bottom-color: var(--accent); }
.onglets-barre button.on span { background: color-mix(in srgb, var(--accent) 14%, white); color: var(--accent); }
.panneau { padding-bottom: 20px; }
.cours-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.cours { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; font-size: 17px; box-shadow: 0 3px 0 #E2E8F0; }
.cours h2 { font-size: 22px; margin: 22px 0 8px; color: var(--accent); }
.cours h2:first-child { margin-top: 0; }
.cours h3 { font-size: 18px; margin: 16px 0 6px; }
.encadre { margin: 14px 0; padding: 14px 18px; border-inline-start: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, white); border-radius: 0 12px 12px 0; }
html[dir="rtl"] .encadre { border-radius: 12px 0 0 12px; }
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.skills-card { position: sticky; top: 92px; }
.niveaux-diff { display: grid; gap: 12px; margin-bottom: 24px; }
.diff { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: center; }
.diff-label { font-weight: 700; font-size: 14px; }
.diff-0 .diff-label { color: #12A37F; } .diff-1 .diff-label { color: #D97706; } .diff-2 .diff-label { color: #E5484D; }
.sub3 { font-size: 18px; margin: 10px 0 12px; }
.q-form { display: grid; gap: 10px; margin: 14px 0 22px; max-width: 760px; }
.q-form .btn { justify-self: start; }
.fil { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.msg-q { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 3px 0 #E2E8F0; }
.msg b { font-weight: 700; }
.msg time { margin-inline-start: 8px; font-size: 13px; color: var(--muted); }
.msg p { margin: 6px 0 0; }
.msg.reponse { margin: 12px 0 0; margin-inline-start: 22px; padding: 10px 14px; border-radius: 12px; background: #F8FAFC; }
.msg.reponse.du-prof { background: color-mix(in srgb, var(--accent) 8%, white); border-inline-start: 3px solid var(--accent); }
.prof { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 7px; border-radius: 6px; margin-inline-start: 6px; vertical-align: 1px; }
.repondre { margin-top: 8px; }
.repondre summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; }
.repondre .q-form { margin: 8px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qcm-card .ib { width: 40px; height: 40px; border-radius: 11px; }
.qcm-card .ib svg { width: 22px; height: 22px; }
.chap-list li.fait a { border-color: #A7F3D0; }
.chap-list li.fait .num { background: linear-gradient(140deg, #34D399, #12A37F); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 #0B7A5E; }
@media (max-width: 900px) {
  .cours-grid { grid-template-columns: minmax(0, 1fr); }
  .skills-card { position: static; }
  .diff { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cours { padding: 20px; }
}

/* ---------------- Lecteur PDF intégré ---------------- */
.pdfv { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; box-shadow: 0 3px 0 #E2E8F0, 0 18px 30px -22px rgba(15, 23, 42, .4); }
.pdfv-barre { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--navy); color: #fff; font-size: 14px; }
.pdfv-barre button, .pdfv-barre a { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font-size: 18px; cursor: pointer; text-decoration: none; }
.pdfv-barre button:hover, .pdfv-barre a:hover { background: rgba(255, 255, 255, .14); }
.pdfv-barre button:disabled { opacity: .35; cursor: default; }
.pdfv-barre .sep { flex: 1; }
.pdfv-barre .sep:nth-of-type(2) { flex: 0 0 8px; }
.pdfv-page-n, .pdfv-zoom { min-width: 64px; text-align: center; color: #C7CCE0; }
.pdfv-page-n b { color: #fff; }
.pdfv-vue { height: 76vh; min-height: 460px; overflow: auto; background: #E9ECF3; padding: 12px; display: grid; justify-items: center; align-content: start; }
.pdfv-vue canvas { background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .18); border-radius: 4px; max-width: none; }
.pdfv-msg { color: var(--muted); margin: 40px 0; }
.pdfv.plein .pdfv-vue { height: calc(100vh - 52px); }
.pdfv .pdf-fallback { padding: 20px; }
@media (max-width: 760px) { .pdfv-vue { height: 70vh; min-height: 360px; padding: 6px; } .pdfv-zoom { display: none; } }

/* ---------- Recherche, classement, badges, bilan du compte ---------- */
.pill.ico { padding: 7px 9px; }
.pill.ico .i { width: 18px; height: 18px; }
.pill.ico.on { background: rgba(255, 255, 255, .16); }
.search-big { display: flex; gap: 8px; margin-top: 18px; max-width: 560px; }
.search-big input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 16px; }
.search-big input::placeholder { color: rgba(229, 232, 245, .65); }
.search-big input:focus { outline: 2px solid #A5B4FC; outline-offset: 2px; }
.btn.light { background: #fff; color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.classement { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.classement li { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 0 #fff inset, 0 6px 16px -10px rgba(11, 18, 48, .25); }
.classement .rang { font-weight: 800; font-size: 18px; text-align: center; color: var(--muted); }
.classement .podium .rang { font-size: 26px; }
.classement .qui b { display: block; }
.classement .qui em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--violet); padding: 2px 8px; border-radius: 99px; margin-inline-start: 6px; }
.classement .qui small { color: var(--muted); }
.classement .pts { font-weight: 800; color: var(--violet); white-space: nowrap; }
.classement li.p1 { background: linear-gradient(135deg, #FFF8E6, #fff); border-color: #F5D58A; }
.classement li.p2 { background: linear-gradient(135deg, #F3F5FA, #fff); border-color: #D5DAE6; }
.classement li.p3 { background: linear-gradient(135deg, #FBF0E8, #fff); border-color: #E9C6A8; }
.classement li.moi { outline: 2px solid var(--violet); outline-offset: 1px; }

.bilan { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 16px; margin-bottom: 26px; }
.bilan-pts { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; background: linear-gradient(150deg, #0B1230, #27307A); color: #E5E8F5; border: 0; }
.bilan-pts .gros { font-size: 44px; font-weight: 800; color: #fff; line-height: 1; font-family: var(--f-title, inherit); }
.bilan-pts .chip { margin-top: 8px; background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }
.bilan-prog h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 12px; }
.barre-niv { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; color: inherit; border-top: 1px solid var(--line); }
.barre-niv:first-of-type { border-top: 0; }
.barre-niv .nom b { color: var(--accent); }
.barre-niv .barre { height: 10px; border-radius: 99px; background: #EEF0F7; overflow: hidden; box-shadow: inset 0 1px 2px rgba(11, 18, 48, .12); }
.barre-niv .barre i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); }
.barre-niv .val { font-size: 13px; color: var(--muted); white-space: nowrap; }

.badges { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.badges li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 10px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.badges .ico { font-size: 30px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF6D8, #F5B83D 70%, #C98A12); box-shadow: 0 6px 14px -6px rgba(201, 138, 18, .7), inset 0 -3px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .6); }
.badges li.non { color: var(--muted); }
.badges li.non .ico { filter: grayscale(1); opacity: .45; }

@media (max-width: 720px) {
  .bilan { grid-template-columns: 1fr; }
  .barre-niv { grid-template-columns: 1fr auto; }
  .barre-niv .barre { grid-column: 1 / -1; grid-row: 2; }
}
.head .logo, .tools { flex-shrink: 0; }
@media (max-width: 480px) { /* téléphone : en-tête compact sur deux lignes (logo + outils, puis menu) */
  .head .wrap { gap: 8px 8px; }
  .head .logo svg { width: 34px; height: 34px; }
  .head .logo b { font-size: 18px; }
  .tools { gap: 5px; }
  .tools .pill { padding: 6px 8px; font-size: 13px; }
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav a { font-size: 10.5px; padding: 4px 2px; white-space: nowrap; flex: 1; }
}

.admin-banniere { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 22px; padding: 16px 20px; border-radius: 16px; background: linear-gradient(135deg, #4F46E5, #27307A); color: #fff; text-decoration: none; font-size: 16px; box-shadow: 0 12px 26px -14px rgba(79, 70, 229, .8); }
.admin-banniere b { font-weight: 800; }
.admin-banniere span { color: #E0E3FF; font-weight: 600; }
.admin-banniere:hover span { color: #fff; text-decoration: underline; }

/* ---------- Barre de sections de l'accueil (remplace les points et « 1 / 5 ») ---------- */
.dock { display: none; }
body.stage-js .points, body.stage-js .nav-arrows { display: none !important; }
body.stage-js .dock { display: flex; align-items: center; gap: 6px; position: fixed; z-index: 7; bottom: 22px; left: 50%; transform: translateX(-50%);
  padding: 6px; border-radius: 22px; background: rgba(11, 18, 48, .62); border: 1px solid rgba(165, 180, 252, .22);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08); }
.dock-onglets { position: relative; display: flex; gap: 2px; }
.dock-onglets a { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 16px; color: #AEB5D3; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .3s; }
.dock-onglets a .i { width: 18px; height: 18px; flex: none; }
.dock-onglets a:hover { color: #fff; }
.dock-onglets a.on { color: #fff; }
.dock-pastille { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0; border-radius: 16px;
  background: linear-gradient(135deg, #6366F1, #4F46E5 55%, #7C3AED); box-shadow: 0 8px 22px -8px rgba(99, 102, 241, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .55s cubic-bezier(.65, 0, .25, 1), width .55s cubic-bezier(.65, 0, .25, 1); }
.dock-fl { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background-color .2s; }
.dock-fl:hover { background: rgba(255, 255, 255, .14); }
.dock-fl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dock-fl.next svg { transform: scaleX(-1); }
html[dir="rtl"] .dock-fl.prev svg { transform: scaleX(-1); }
html[dir="rtl"] .dock-fl.next svg { transform: none; }
.dock-barre { position: absolute; left: 22px; right: 22px; bottom: 2px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.dock-barre i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #A5B4FC, #F5C76B); transition: width .7s cubic-bezier(.65, 0, .25, 1); }
html[dir="rtl"] .dock-barre i { margin-inline-start: 0; float: right; }
.dock :focus-visible { outline: 2px solid #A5B4FC; outline-offset: 2px; }
/* sur ordinateur le panneau laisse la place à la barre en bas */
@media (min-width: 861px) {
  body.stage-js .panel { top: calc(50% - 38px); max-height: calc(100dvh - var(--haut-entete, 100px) - 120px); }
}
/* téléphone : barre compacte en haut, sous l'en-tête ; seul l'onglet actif montre son nom */
@media (max-width: 860px) {
  body.stage-js .dock { bottom: auto; top: calc(var(--haut-entete, 120px) + 10px); padding: 4px; gap: 2px; border-radius: 18px; max-width: calc(100vw - 20px); }
  .dock-fl { display: none !important; }
  .dock-onglets a { padding: 9px 11px; gap: 6px; font-size: 13px; }
  .dock-onglets a:not(.on) span { display: none; }
  .dock-pastille { border-radius: 14px; }
  .dock-barre { left: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .dock-pastille, .dock-barre i { transition: none; } }
body.debut .dock-pastille, body.debut .dock-barre i { transition: none; }

/* ==================== Mode jour / mode nuit ==================== */
.theme-btn { cursor: pointer; font: inherit; color: inherit; }
.theme-btn .soleil { display: none; }
html[data-theme="dark"] .theme-btn .lune, html:not([data-theme]) body.home .theme-btn .lune { display: none; }
html[data-theme="dark"] .theme-btn .soleil, html:not([data-theme]) body.home .theme-btn .soleil { display: block; }
.theme-btn .i { transition: transform .4s ease; }
.theme-btn:hover .i { transform: rotate(-20deg); }

/* --- nuit : pages intérieures --- */
html[data-theme="dark"] body:not(.home) { --ink: #E6E9F5; --muted: #9BA3C4; --bg: #080D24; --paper: #111938; --line: #243063; --soft: #1C2452;
  --sh: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px -10px rgba(0, 0, 0, .6); --sh-up: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 44px -22px rgba(0, 0, 0, .8); color-scheme: dark; }
html[data-theme="dark"] body:not(.home) .section.alt, html[data-theme="dark"] body:not(.home) .level-card, html[data-theme="dark"] body:not(.home) .steps-pro li, html[data-theme="dark"] body:not(.home) .cours, html[data-theme="dark"] body:not(.home) .msg-q, html[data-theme="dark"] body:not(.home) .pdfv, html[data-theme="dark"] body:not(.home) .opt, html[data-theme="dark"] body:not(.home) input, html[data-theme="dark"] body:not(.home) select, html[data-theme="dark"] body:not(.home) textarea, html[data-theme="dark"] body:not(.home) .viewer .pdf { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] body:not(.home) .chap-list a, html[data-theme="dark"] body:not(.home) .doc, html[data-theme="dark"] body:not(.home) .grid .card, html[data-theme="dark"] body:not(.home) .qcm-side a, html[data-theme="dark"] body:not(.home) .card.related, html[data-theme="dark"] body:not(.home) .chapter-side .card, html[data-theme="dark"] body:not(.home) .cours, html[data-theme="dark"] body:not(.home) .classement li, html[data-theme="dark"] body:not(.home) .badges li, html[data-theme="dark"] body:not(.home) .tuile { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 22px -14px rgba(0, 0, 0, .8); }
html[data-theme="dark"] body:not(.home) .msg.ok { background: #0E3A2D; color: #A7F3D0; border-color: #145C47; }
html[data-theme="dark"] body:not(.home) .msg.err { background: #45181B; color: #FECACA; border-color: #6B2328; }
html[data-theme="dark"] body:not(.home) .msg.info { background: #3A2F12; color: #FDE68A; border-color: #5C4A16; }
html[data-theme="dark"] body:not(.home) .retenir { background: #2A2410; border-color: #5C4A16; box-shadow: 0 3px 0 #3F3412, 0 14px 22px -16px rgba(0, 0, 0, .7); }
html[data-theme="dark"] body:not(.home) .retenir h2 { color: #F5C76B; }
html[data-theme="dark"] body:not(.home) .doc-ic, html[data-theme="dark"] body:not(.home) .mini { background: #1B2A55; }
html[data-theme="dark"] body:not(.home) .doc.ctrl .doc-ic { background: #3A2A14; }
html[data-theme="dark"] body:not(.home) .doc.corr .doc-ic, html[data-theme="dark"] body:not(.home) .skills li::before, html[data-theme="dark"] body:not(.home) .tag.score { background: #123A30; }
html[data-theme="dark"] body:not(.home) .tag, html[data-theme="dark"] body:not(.home) .opt .k, html[data-theme="dark"] body:not(.home) .onglets-barre button span, html[data-theme="dark"] body:not(.home) .quiz .bar, html[data-theme="dark"] body:not(.home) .barre-niv .barre { background: #1F2852; color: #C7CCE0; }
html[data-theme="dark"] body:not(.home) .fav[aria-pressed="true"] { background: #3A2F12; }
html[data-theme="dark"] body:not(.home) .opt:hover:not(:disabled) { background: #1A2250; }
html[data-theme="dark"] body:not(.home) .opt.good { background: #0E3A2D; }
html[data-theme="dark"] body:not(.home) .opt.bad { background: #45181B; }
html[data-theme="dark"] body:not(.home) .fb, html[data-theme="dark"] body:not(.home) .table th, html[data-theme="dark"] body:not(.home) .msg.reponse { background: #161E44; }
html[data-theme="dark"] body:not(.home) .pdfv-vue { background: #060A1C; }
html[data-theme="dark"] body:not(.home) .encadre { background: color-mix(in srgb, var(--accent) 16%, #111938); }
html[data-theme="dark"] body:not(.home) .empty { border-color: #2E3A70; }
html[data-theme="dark"] body:not(.home) .prose p, html[data-theme="dark"] body:not(.home) .prose li { color: #C3C9E2; }
html[data-theme="dark"] body:not(.home) .danger-zone summary { color: #F87171; }
html[data-theme="dark"] body:not(.home) .classement li.p1 { background: linear-gradient(135deg, #3A3014, #111938); border-color: #6B5620; }
html[data-theme="dark"] body:not(.home) .classement li.p2 { background: linear-gradient(135deg, #252C45, #111938); border-color: #3E4870; }
html[data-theme="dark"] body:not(.home) .classement li.p3 { background: linear-gradient(135deg, #3A2618, #111938); border-color: #6B4526; }
html[data-theme="dark"] body:not(.home) .badges li.non .ico { opacity: .3; }
html[data-theme="dark"] body:not(.home) .foot { background: #060A1C; border-color: var(--line); }
html[data-theme="dark"] body:not(.home) .chap-list a:hover { border-color: color-mix(in srgb, var(--accent) 55%, #111938); }
html[data-theme="dark"] body:not(.home) .cours { box-shadow: 0 3px 0 #1A2350; }
html[data-theme="dark"] body:not(.home) .katex { color: inherit; }
html[data-theme="dark"] body:not(.home) ::selection { background: #4F46E5; color: #fff; }

/* --- jour : accueil 3D clair --- */
html[data-theme="light"] body.home { background: #E8ECF7; color: #0F172A; }
html[data-theme="light"] body.home .stage { background: radial-gradient(900px 600px at 70% 40%, rgba(99, 102, 241, .18), transparent 70%), #E8ECF7; }
html[data-theme="light"] body.home .head { background: rgba(248, 250, 255, .78); border-bottom: 1px solid rgba(15, 23, 42, .08); }
html[data-theme="light"] body.home .head .logo b { color: #0B1230; }
html[data-theme="light"] body.home .head .logo b span { color: #4F46E5; }
html[data-theme="light"] body.home .head .nav a { color: #475069; }
html[data-theme="light"] body.home .head .nav a:hover { color: #0B1230; background: rgba(79, 70, 229, .07); }
html[data-theme="light"] body.home .head .nav a.on { color: #4F46E5; background: rgba(79, 70, 229, .1); }
html[data-theme="light"] body.home .head .pill { background: #fff; color: #0F172A; border-color: #D9DEEC; }
html[data-theme="light"] body.home .head .pill.solid { background: #0B1230; color: #fff; border-color: #0B1230; }
html[data-theme="light"] body.home .ticker { background: #fff; color: #1E2547; border-bottom: 1px solid #E2E8F0; }
html[data-theme="light"] body.home .ticker .label { color: #4F46E5; }
html[data-theme="light"] body.home .ticker .item time { color: #5B6478; }
html[data-theme="light"] body.home .panel { color: #1E2547; background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(244, 246, 255, .84)); border-color: rgba(79, 70, 229, .16);
  box-shadow: 0 30px 60px -30px rgba(30, 37, 90, .45), inset 0 1px 0 #fff; }
html[data-theme="light"] body.home .panel h1, html[data-theme="light"] body.home .panel h2, html[data-theme="light"] body.home .panel .hero-stats dt, html[data-theme="light"] body.home .step-list b, html[data-theme="light"] body.home .res-list em { color: #0B1230; }
html[data-theme="light"] body.home .panel .lead, html[data-theme="light"] body.home .step-list p, html[data-theme="light"] body.home .panel-foot a { color: #475069; }
html[data-theme="light"] body.home .panel .hero-stats { border-top-color: rgba(15, 23, 42, .1); }
html[data-theme="light"] body.home .panel .hero-stats dd, html[data-theme="light"] body.home .lvl-list .nm small, html[data-theme="light"] body.home .lvl-list .ct, html[data-theme="light"] body.home .res-list small, html[data-theme="light"] body.home .panel-copy { color: #6B7390; }
html[data-theme="light"] body.home .panel .kicker, html[data-theme="light"] body.home .join-proof, html[data-theme="light"] body.home .lvl-list .go, html[data-theme="light"] body.home .res-list .i { color: #4F46E5; }
html[data-theme="light"] body.home .panel-news { background: rgba(79, 70, 229, .06); color: #1E2547; }
html[data-theme="light"] body.home .lvl-list a, html[data-theme="light"] body.home .res-list a { color: #1E2547; background: rgba(255, 255, 255, .7); border-color: rgba(15, 23, 42, .07); }
html[data-theme="light"] body.home .lvl-list a:hover, html[data-theme="light"] body.home .res-list a:hover { background: #fff; }
html[data-theme="light"] body.home .panel-foot { border-top-color: rgba(15, 23, 42, .1); }
html[data-theme="light"] body.home .panel-foot a:hover { color: #0B1230; }
html[data-theme="light"] body.home .panel .btn.light { background: #0B1230; color: #fff; }
html[data-theme="light"] body.home .panel .btn.outline { color: #0B1230; border-color: rgba(15, 23, 42, .25); }
html[data-theme="light"] body.home .dock { background: rgba(255, 255, 255, .75); border-color: rgba(79, 70, 229, .18); box-shadow: 0 18px 40px -18px rgba(30, 37, 90, .45), inset 0 1px 0 #fff; }
html[data-theme="light"] body.home .dock-onglets a { color: #5B6478; }
html[data-theme="light"] body.home .dock-onglets a:hover { color: #0B1230; }
html[data-theme="light"] body.home .dock-onglets a.on { color: #fff; }
html[data-theme="light"] body.home .dock-fl { background: rgba(15, 23, 42, .06); color: #0B1230; }
html[data-theme="light"] body.home .dock-barre { background: rgba(15, 23, 42, .08); }
