/* ==========================================================================
   Plateforme pros · Auteuil Petite Enfance
   ========================================================================== */
:root {
  --red: #E3203C;
  --red-d: #C3122D;
  --wine: #5B1222;
  --wine-2: #82192F;
  --coral: #FF7A85;
  --blush: #FFE9EC;
  --paper: #FBF7F4;
  --paper-2: #F5EEEA;
  --card: #FFFFFF;
  --ink: #081027;
  --ink-2: #4A3A3E;
  --muted: #7C6B70;
  --line: #EDE3DF;
  --line-2: #E2D5D0;

  --t-article: #B0213D;  --t-article-bg: #FDECEF;
  --t-audio: #0E7C6B;    --t-audio-bg: #E2F4EF;
  --t-carte: #7140B8;    --t-carte-bg: #F0E9FB;
  --t-fiche: #B86200;    --t-fiche-bg: #FFF1DE;

  --ok: #13865B; --ok-bg: #E5F5EC;
  --warn: #A86200; --warn-bg: #FFF4E0;
  --err: #C3122D; --err-bg: #FDECEF;

  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-read: "Source Serif 4", Georgia, serif;

  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --sh-1: 0 1px 2px rgba(60, 20, 30, .06), 0 2px 8px rgba(60, 20, 30, .04);
  --sh-2: 0 6px 24px rgba(60, 20, 30, .08), 0 2px 6px rgba(60, 20, 30, .05);
  --sh-3: 0 24px 60px rgba(60, 20, 30, .16);
  --grad: linear-gradient(120deg, var(--wine) 0%, var(--wine-2) 35%, var(--red) 75%, var(--coral) 120%);
  --w: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.55 var(--f-ui); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 800px; }
.section { padding-top: 48px; }
.section:last-child { padding-bottom: 72px; }
.muted { color: var(--muted); }
::selection { background: var(--blush); }

/* Typography -------------------------------------------------------------- */
.display, .h1, .h2, .h3 { font-family: var(--f-display); letter-spacing: -.02em; line-height: 1.08; margin: 0; }
.display { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.h2 { font-size: 26px; font-weight: 700; }
.h3 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin: 12px 0 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }

/* Buttons ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s, color .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(227, 32, 60, .28); }
.btn-primary:hover { background: var(--red-d); box-shadow: 0 8px 22px rgba(227, 32, 60, .36); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--wine); }
.btn-white:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--err-bg); color: var(--err); }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }

/* Topbar ------------------------------------------------------------------ */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1360px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo { height: 40px; width: auto; }
.logo-mark { width: 40px; height: 40px; display: block; border-radius: 10px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--f-display); }
.brand-txt span { font-size: 14px; font-weight: 500; }
.brand-txt strong { font-size: 16px; color: var(--red); font-weight: 700; }
.brand-light .brand-txt, .brand-light .brand-txt strong { color: #fff; }
.mainnav { display: flex; gap: 4px; margin: 0 auto; }
.mainnav a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.mainnav a:hover { background: var(--paper-2); color: var(--ink); }
.mainnav a.is-active { background: var(--ink); color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topsearch { display: flex; align-items: center; gap: 8px; background: var(--paper-2); border-radius: 999px; padding: 0 14px; height: 40px; width: 240px; color: var(--muted); border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.topsearch:focus-within { background: #fff; border-color: var(--ink); }
.topsearch input { border: 0; background: none; outline: none; width: 100%; font-size: 14px; color: var(--ink); }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--grad); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line-2); }
.usermenu-pop { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border-radius: var(--r); box-shadow: var(--sh-3); padding: 8px; min-width: 240px; border: 1px solid var(--line); }
.usermenu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.usermenu-head span { font-size: 13px; color: var(--muted); }
.usermenu-pop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 500; }
.usermenu-pop a:hover { background: var(--paper); }
.navtoggle { display: none; background: none; border: 0; padding: 8px; }
.navtoggle .ic { width: 24px; height: 24px; }

/* Flash ------------------------------------------------------------------- */
.flashes { position: fixed; top: 82px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100% - 32px)); }
.flash { padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: var(--sh-3); animation: flashIn .4s ease, flashOut .5s ease 5s forwards; }
.flash-warn { background: #5A3A08; } .flash-err { background: var(--err); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes flashOut { to { opacity: 0; transform: translateY(-10px); visibility: hidden; } }
.notice { padding: 12px 16px; border-radius: 12px; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.err { background: var(--err-bg); color: var(--err); }
.notice.warn { background: var(--warn-bg); color: var(--warn); display: block; }
.notice a { color: inherit; font-weight: 600; }

/* Footer ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-in { max-width: var(--w); margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* Forms ------------------------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 > * { min-width: 0; } .field input, .field select, .field textarea { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .lib-sel select { height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .lib-sel select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(8, 16, 39, .06); }
.field input:disabled { background: var(--paper); color: var(--muted); }

/* Auth -------------------------------------------------------------------- */
.auth-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; background: #fff; }
.auth-side { position: relative; overflow: hidden; background: var(--grad); color: #fff; }
.auth-side-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 56px 56px; }

.auth-pitch { max-width: 520px; }
.auth-pitch .eyebrow { color: #FFD0D6; }
.auth-pitch h1 { font: 800 clamp(38px, 4.4vw, 58px)/1.02 var(--f-display); letter-spacing: -.03em; margin: 0 0 18px; }
.auth-pitch p { font-size: 18px; opacity: .9; margin: 0; }
.auth-kpis { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth-kpis li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r); padding: 16px; backdrop-filter: blur(6px); }
.auth-kpis strong { display: block; font: 800 30px/1 var(--f-display); margin-bottom: 6px; }
.auth-kpis strong .ic { width: 30px; height: 30px; }
.auth-kpis span { font-size: 13px; opacity: .85; line-height: 1.35; display: block; }
.auth-blobs span { position: absolute; border-radius: 50%; filter: blur(2px); }
.auth-blobs span:nth-child(1) { width: 520px; height: 520px; right: -180px; top: -160px; background: radial-gradient(circle at 30% 30%, rgba(255, 140, 150, .55), transparent 65%); }
.auth-blobs span:nth-child(2) { width: 360px; height: 360px; left: -120px; bottom: -120px; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%); }
.auth-blobs span:nth-child(3) { width: 180px; height: 180px; right: 18%; bottom: 22%; border: 2px solid rgba(255, 255, 255, .18); }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-body .auth-card { background: #fff; padding: 32px; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.auth-title { font: 800 34px/1.1 var(--f-display); letter-spacing: -.02em; margin: 0 0 8px; }
.auth-sub { color: var(--muted); margin: 0 0 26px; }
.auth-link { text-align: center; margin-top: 20px; font-size: 14px; }
.auth-link a { color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.auth-foot { font-size: 13px; color: var(--muted); margin-top: 40px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }

/* Progress bits ----------------------------------------------------------- */
.bar { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--coral)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bar-light { background: rgba(255, 255, 255, .22); }
.bar-light span { background: #fff; }
.ring { --p: 0; --s: 92px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(closest-side, #fff 79%, transparent 80% 100%), conic-gradient(var(--red) calc(var(--p) * 1%), var(--paper-2) 0); }
.ring span { font: 800 24px/1 var(--f-display); }
.ring-low, .ring-mid, .ring-high { background: radial-gradient(closest-side, #fff 79%, transparent 80% 100%), conic-gradient(var(--rc) calc(var(--p) * 1%), var(--paper-2) 0); }
.ring-low { --rc: #E3203C; } .ring-mid { --rc: #E8900C; } .ring-high { --rc: #13865B; }
.ring-low span, .ring-mid span, .ring-high span { color: var(--rc); }
.ring small { font-size: .55em; margin-left: 1px; }
.ring-lg { --s: 140px; } .ring-lg span { font-size: 38px; }

/* Dashboard --------------------------------------------------------------- */
.dash-hero { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); padding: 48px 0 56px; }
.dash-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: center; }
.dash-stats { display: flex; gap: 28px; align-items: center; margin-top: 32px; }
.dash-stats ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; }
.dash-stats li strong { display: block; font: 800 28px/1 var(--f-display); }
.dash-stats li span { font-size: 13px; color: var(--muted); }
.resume-card { position: relative; display: grid; grid-template-columns: 180px 1fr; border-radius: var(--r-xl); overflow: hidden; text-decoration: none; color: #fff; background: var(--grad); box-shadow: var(--sh-3); min-height: 260px; transition: transform .25s; }
.resume-card:hover { transform: translateY(-3px); }
.resume-media { position: relative; background: rgba(0, 0, 0, .15); }
.resume-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; mix-blend-mode: luminosity; }
.resume-media .tcard-num { position: absolute; left: 18px; bottom: 14px; font-size: 56px; }
.resume-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.resume-body .eyebrow { color: #FFD0D6; margin: 0; }
.resume-body h2 { font: 800 28px/1.08 var(--f-display); margin: 0; letter-spacing: -.02em; }
.resume-next { margin: 4px 0 0; display: flex; flex-direction: column; font-size: 14px; }
.resume-next span { opacity: .75; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.resume-body .btn { align-self: flex-start; margin-top: auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; gap: 16px; }
.link-more { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--red); }
.link-more:hover { text-decoration: underline; }

/* Theme cards ------------------------------------------------------------- */
.grid-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tcard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; box-shadow: var(--sh-1); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.tcard-media { position: relative; aspect-ratio: 16 / 10; background: var(--grad); overflow: hidden; }
.tcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tcard:hover .tcard-media img { transform: scale(1.05); }
.tcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 30%, rgba(60, 10, 22, .78)); }
.tcard-num { position: absolute; z-index: 1; left: 16px; bottom: 8px; font: 800 44px/1 var(--f-display); color: #fff; letter-spacing: -.04em; }
.tcard-state { position: absolute; z-index: 1; top: 12px; right: 12px; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.state-done .tcard-state { background: var(--ok); color: #fff; }
.state-progress .tcard-state { background: var(--red); color: #fff; }
.tcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tcard-body h3 { margin: 0; font: 700 18px/1.2 var(--f-display); letter-spacing: -.01em; flex: 1; }
.tcard-types { display: flex; gap: 6px; flex-wrap: wrap; }
.mini { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; }
.mini .ic { width: 14px; height: 14px; }
.mini.type-article { background: var(--t-article-bg); color: var(--t-article); }
.mini.type-audio { background: var(--t-audio-bg); color: var(--t-audio); }
.mini.type-carte { background: var(--t-carte-bg); color: var(--t-carte); }
.mini.type-fiche { background: var(--t-fiche-bg); color: var(--t-fiche); }
.mini-time { color: var(--muted); padding-left: 2px; }

/* How-to ------------------------------------------------------------------ */
.howto { display: grid; grid-template-columns: 320px 1fr; gap: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px; }
.howto-intro p:last-child { color: var(--muted); margin-bottom: 0; }
.howto-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.howto-steps li { counter-increment: s; position: relative; padding: 18px 16px; background: var(--paper); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; }
.howto-steps li::before { content: counter(s); position: absolute; top: 14px; right: 16px; font: 800 28px/1 var(--f-display); color: var(--line-2); }
.howto-steps strong { font: 700 16px/1.2 var(--f-display); margin-top: 10px; }
.howto-steps span:last-child { font-size: 13px; color: var(--muted); line-height: 1.4; }
.step-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--red); box-shadow: var(--sh-1); }
.howto-steps li:last-child .step-ic { background: var(--red); color: #fff; }

/* Content cards ----------------------------------------------------------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ccard { --tc: var(--t-article); --tb: var(--t-article-bg); display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.ccard.type-audio { --tc: var(--t-audio); --tb: var(--t-audio-bg); }
.ccard.type-carte { --tc: var(--t-carte); --tb: var(--t-carte-bg); }
.ccard.type-fiche { --tc: var(--t-fiche); --tb: var(--t-fiche-bg); }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.ccard-media { position: relative; aspect-ratio: 16 / 10; background: var(--tb); overflow: hidden; display: grid; place-items: center; }
.ccard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ccard:hover .ccard-media img { transform: scale(1.05); }
.ccard-glyph { color: var(--tc); opacity: .35; } .ccard-glyph .ic { width: 64px; height: 64px; stroke-width: 1.2; }
.ccard-media .tag { position: absolute; left: 12px; top: 12px; z-index: 1; }
.ccard-done { position: absolute; z-index: 1; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.ccard-done .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.ccard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard-theme { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard-title { margin: 0; font: 700 17px/1.25 var(--f-display); letter-spacing: -.01em; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 5px; align-items: center; }
.ccard.is-draft { opacity: .6; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.tag .ic { width: 14px; height: 14px; }
.tag-article { color: var(--t-article); } .tag-audio { color: var(--t-audio); } .tag-carte { color: var(--t-carte); } .tag-fiche { color: var(--t-fiche); }
.tag-philo { background: var(--ink); color: #fff; }

/* Page heads -------------------------------------------------------------- */
.page-head { padding: 48px 0 40px; background: linear-gradient(180deg, #fff, var(--paper)); border-bottom: 1px solid var(--line); }
.empty-page { padding: 120px 24px; text-align: center; } .empty-page .lead { margin: 12px auto 28px; }

/* Theme list -------------------------------------------------------------- */
.theme-list { display: flex; flex-direction: column; gap: 10px; }
.theme-row { display: grid; grid-template-columns: 80px 1fr 220px 24px; align-items: center; gap: 20px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.theme-row:hover { border-color: transparent; box-shadow: var(--sh-2); transform: translateX(4px); }
.theme-row-num { font: 800 40px/1 var(--f-display); color: var(--red); letter-spacing: -.04em; }
.theme-row h2 { margin: 0 0 4px; font: 700 21px/1.2 var(--f-display); }
.theme-row p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.theme-row-side { display: flex; flex-direction: column; gap: 8px; }
.theme-row-state { font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; color: var(--ink-2); }
.theme-row-arrow { color: var(--muted); }
.theme-row.is-done .theme-row-num { color: var(--ok); }
.theme-row.is-done, .state-done .tcard-body { background: #F3FAF6; }
.theme-row.is-done, .tcard.state-done { border-color: #D3EEDD; }
.path-step.is-done .path-card { background: #F3FAF6; border-color: #D3EEDD; }
.path-step.is-done .path-ic { background: #fff; color: var(--ok); }
.pc.is-done { background: #E6F5EC; }
a.pc.is-done:hover { background: #DAF0E3; }
.theme-row.is-done .bar span, .state-done .bar span { background: linear-gradient(90deg, #13865B, #3CC48A); }
.theme-row.is-done .theme-row-state { color: var(--ok); }

/* Theme page -------------------------------------------------------------- */
.theme-hero { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 36px 0 44px; }
.theme-hero-bg { position: absolute; right: 0; top: 0; height: 100%; width: 48%; object-fit: cover; opacity: .55; mix-blend-mode: luminosity; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.theme-hero-in { position: relative; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; text-decoration: none; opacity: .85; }
.crumb:hover { opacity: 1; text-decoration: underline; }
.theme-hero-num { font: 800 120px/.85 var(--f-display); letter-spacing: -.06em; margin: 28px 0 8px; color: rgba(255, 255, 255, .22); }
.theme-hero .display { max-width: 16ch; }
.theme-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; font-size: 14px; font-weight: 500; opacity: .92; }
.theme-hero-meta span { display: inline-flex; gap: 6px; align-items: center; }
.theme-hero-progress { display: flex; align-items: center; gap: 16px; margin-top: 28px; max-width: 640px; }
.theme-hero-progress .bar { flex: 1; height: 8px; }
.theme-hero-progress > span { font-size: 14px; font-weight: 600; white-space: nowrap; }
.theme-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-top: 44px; padding-bottom: 72px; align-items: start; }
.theme-main .h2 { margin-bottom: 24px; }
.theme-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.aside-card h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; font: 700 16px/1.2 var(--f-display); }
.aside-card h3 .ic { color: var(--red); }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px; background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E3203C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 30px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 12px); }
.path-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; margin-bottom: 16px; }
.path-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--f-display); background: #fff; border: 2px solid var(--line-2); color: var(--muted); }
.path-step.is-open .path-dot { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 6px var(--blush); }
.path-step.is-done .path-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.path-step.is-done .path-dot .ic { stroke-width: 2.8; }
.path-final .path-dot { background: var(--paper-2); }
.path-final.is-open .path-dot { background: var(--red); color: #fff; border-color: var(--red); }
.path-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.path-step.is-locked .path-card { background: transparent; border-style: dashed; }
.path-step.is-locked .path-card-head strong { color: var(--muted); }
.path-card-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.path-card-head > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.path-card-head strong { font: 700 17px/1.25 var(--f-display); }
.path-card-head div > span { font-size: 13px; color: var(--muted); }
.path-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--ink-2); flex: none; }
.path-lock { color: var(--muted); padding: 0 8px; }
.path-contents { list-style: none; margin: 0; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.pc { --tc: var(--t-article); --tb: var(--t-article-bg); display: grid; grid-template-columns: 40px 1fr auto 28px; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; background: var(--paper); transition: background .15s, transform .15s; }
.pc.type-audio { --tc: var(--t-audio); --tb: var(--t-audio-bg); } .pc.type-carte { --tc: var(--t-carte); --tb: var(--t-carte-bg); } .pc.type-fiche { --tc: var(--t-fiche); --tb: var(--t-fiche-bg); }
a.pc:hover { background: var(--tb); transform: translateX(3px); }
.pc-ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--tc); display: grid; place-items: center; }
.pc-txt { display: flex; flex-direction: column; min-width: 0; }
.pc-txt em { font-style: normal; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tc); }
.pc-txt strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.pc-time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pc-state { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.pc-state .ic { width: 16px; height: 16px; }
.pc.is-done .pc-state { background: var(--ok); color: #fff; } .pc.is-done .pc-state .ic { stroke-width: 2.8; }
.pc.is-done .pc-txt strong { color: var(--ink-2); }
.pc.is-locked { opacity: .55; }
.pc.is-soon { opacity: .55; grid-template-columns: 40px 1fr auto; }
.pc-soon { font-size: 12px; font-weight: 600; color: var(--muted); background: #fff; padding: 4px 10px; border-radius: 99px; }
.theme-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.theme-nav a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.theme-nav a:hover { color: var(--red); }

/* Content pages: shared --------------------------------------------------- */
.readbar { position: fixed; top: 68px; left: 0; right: 0; height: 3px; z-index: 49; pointer-events: none; }
.readbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--coral)); }
.crumbs { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 13.5px; }
.crumbs a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.crumbs a:hover { color: var(--red); }
.crumb-step { padding: 3px 9px; border-radius: 99px; background: var(--paper-2); color: var(--muted); font-weight: 600; font-size: 12px; }
.admin-banner { background: #081027; color: #fff; text-align: center; font-size: 13.5px; padding: 10px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.admin-banner a { color: var(--coral); font-weight: 600; }
.art-title { font: 800 clamp(30px, 4vw, 50px)/1.06 var(--f-display); letter-spacing: -.03em; margin: 16px 0 0; }
.art-sub { font-size: 19px; color: var(--ink-2); margin: 14px 0 0; max-width: 56ch; }
.art-tags { display: flex; gap: 8px; }
.art-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.art-meta > span { display: inline-flex; gap: 6px; align-items: center; }

/* Article ----------------------------------------------------------------- */
.art-hero { background: linear-gradient(180deg, #fff, var(--paper)); padding: 36px 0 48px; border-bottom: 1px solid var(--line); }
.art-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.art-hero .tag { box-shadow: none; background: var(--t-article-bg); }
.art-hero .tag-philo { background: var(--ink); }
.art-cover { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--sh-3); transform: rotate(1.2deg); background: var(--t-article-bg); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; justify-content: center; padding-top: 56px; padding-bottom: 32px; }
.art-layout.no-toc { grid-template-columns: minmax(0, 720px); }
.toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 13.5px; }
.toc-title { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); line-height: 1.35; transition: color .15s, border-color .15s; }
.toc li.lvl-4 a { padding-left: 26px; font-size: 12.5px; }
.toc li a:hover { color: var(--ink); }
.toc li a.is-active { color: var(--red); border-left-color: var(--red); font-weight: 600; }
.prose { font: 400 19px/1.72 var(--f-read); color: #2E2225; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose > p:first-of-type::first-letter { float: left; font: 800 4.1em/.78 var(--f-display); color: var(--red); margin: .08em .1em 0 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); color: var(--ink); letter-spacing: -.015em; line-height: 1.2; scroll-margin-top: 100px; }
.prose h2 { font-size: 30px; margin: 2em 0 .6em; }
.prose h3 { font-size: 25px; margin: 1.9em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h4 { font-size: 20px; margin: 1.6em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--red); font-style: italic; font-size: 1.1em; }
.prose figure { margin: 2em 0; } .prose figure img { border-radius: var(--r); }
.prose figcaption { font: 13px var(--f-ui); color: var(--muted); margin-top: 8px; }
.prose a { color: var(--red); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose li.phrase { list-style: none; }

/* Fiche pratique ---------------------------------------------------------- */
.fp-hero { background: linear-gradient(135deg, #FFF6EA 0%, #FFE8CC 100%); padding: 36px 0 48px; border-bottom: 1px solid #F6DDBE; }
.fp-hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.fp-hero .tag { margin-top: 4px; }
.fp-cover { margin: 0; border-radius: 50% 50% var(--r-xl) var(--r-xl); overflow: hidden; aspect-ratio: 1 / .9; box-shadow: var(--sh-3); border: 8px solid #fff; background: var(--t-fiche-bg); }
.fp-cover img { width: 100%; height: 100%; object-fit: cover; }
.fp-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; justify-content: center; padding-top: 48px; padding-bottom: 24px; }
.fp-legend { margin-top: 24px; padding: 14px; border-radius: var(--r); background: var(--t-fiche-bg); color: #7a4300; font-size: 12.5px; line-height: 1.45; }
.phrase-sample { display: inline-block; background: #fff; border-radius: 10px 10px 10px 2px; padding: 2px 8px; font-weight: 700; margin-right: 4px; }
.prose-fiche { font: 400 17px/1.65 var(--f-ui); color: var(--ink-2); }
.prose-fiche p { margin: 0 0 .9em; }
.fp-ess { background: var(--ink); color: #F7ECEE; border-radius: var(--r-xl); padding: 36px; margin-bottom: 48px; scroll-margin-top: 100px; position: relative; overflow: hidden; }
.fp-ess::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 32, 60, .45), transparent 70%); }
.fp-ess-head { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; color: var(--coral); }
.fp-ess-head .ic { width: 26px; height: 26px; }
.fp-ess-head h2 { font: 800 28px/1.1 var(--f-display); margin: 0; color: #fff; letter-spacing: -.02em; }
.fp-ess-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.fp-ess-pt { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); padding: 18px; font-size: 15.5px; line-height: 1.55; }
.fp-ess-pt p { margin: 0; }
.fp-ess-pt .ess-lead { display: block; font: 700 19px/1.25 var(--f-display); color: #fff; margin-bottom: 8px; }
.fp-ess-pt:first-child { grid-column: 1 / -1; font-size: 17px; background: rgba(227, 32, 60, .22); border-color: rgba(255, 122, 133, .35); }
.fp-sec { scroll-margin-top: 100px; }
.fp-sec-title { font: 800 30px/1.1 var(--f-display); letter-spacing: -.02em; margin: 0 0 16px; color: var(--ink); }
.fp-intro { font-size: 18px; margin-bottom: 28px; }
.fp-block { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.fp-num { font: 800 40px/1 var(--f-display); color: var(--t-fiche); letter-spacing: -.04em; opacity: .9; }
.fp-block h3 { font: 700 22px/1.2 var(--f-display); margin: 2px 0 12px; color: var(--ink); letter-spacing: -.01em; }
.fp-block ul { padding-left: 1.1em; margin: 0 0 1em; }
.fp-block li { margin-bottom: .4em; } .fp-block li::marker { color: var(--t-fiche); }
.prose-fiche ul:has(> li.phrase) { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin: 14px 0 18px; }
.prose-fiche li.phrase { position: relative; background: var(--t-fiche-bg); color: #5C3300; border-radius: 18px 18px 18px 4px; padding: 14px 18px 14px 50px; font: 500 17px/1.45 var(--f-read); font-style: italic; margin: 0; max-width: 92%; }
.prose-fiche li.phrase::before { content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B86200' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-5A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat; }
.prose-fiche li.phrase:nth-child(even) { align-self: flex-end; border-radius: 18px 18px 4px 18px; }

/* Audio ------------------------------------------------------------------- */
.au-hero { position: relative; overflow: hidden; background: #0C2B26; color: #fff; padding: 36px 0 56px; }
.au-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: blur(18px) saturate(1.2); transform: scale(1.15); }
.au-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(14, 124, 107, .55), transparent 60%), linear-gradient(180deg, rgba(8, 30, 26, .2), rgba(8, 30, 26, .85)); }
.au-hero-in { position: relative; z-index: 1; }
.au-hero .crumbs a { color: rgba(255, 255, 255, .85); } .au-hero .crumb-step { background: rgba(255, 255, 255, .12); color: #fff; }
.player { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
.player-art { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); background: linear-gradient(145deg, #13A58E, #0B5C50); display: grid; place-items: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.player-art > .ic { width: 84px; height: 84px; stroke-width: 1.2; opacity: .9; }
.eq { position: absolute; bottom: 26px; display: flex; gap: 5px; align-items: flex-end; height: 34px; }
.eq i { width: 6px; background: rgba(255, 255, 255, .55); border-radius: 3px; height: 8px; }
.player.is-playing .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; } .eq i:nth-child(4) { animation-delay: -.15s !important; } .eq i:nth-child(5) { animation-delay: -.45s !important; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 32px; } }
.au-hero .tag { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.au-title { font: 800 clamp(30px, 4vw, 48px)/1.05 var(--f-display); letter-spacing: -.03em; margin: 16px 0 0; }
.au-sub { opacity: .8; font-size: 17px; margin: 10px 0 0; }
.player-bar { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.pt { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .8; min-width: 42px; }
.scrub { position: relative; flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); cursor: pointer; }
.scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: #5EE0C7; }
.scrub-knob { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.player-ctrls { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.pbtn { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; text-decoration: none; font-weight: 700; font-size: 14px; transition: background .15s; }
.pbtn:hover { background: rgba(255, 255, 255, .2); }
.pbtn small { position: absolute; font-size: 9px; font-weight: 700; top: 50%; left: 50%; transform: translate(-50%, -45%); }
.pbtn .ic { width: 22px; height: 22px; }
.pbtn-play { width: 72px; height: 72px; background: #fff; color: #0C2B26; }
.pbtn-play:hover { background: #E7FFF9; transform: scale(1.04); }
.pbtn-play .ic { width: 28px; height: 28px; }
.pbtn-play .i-pause, .player.is-playing .pbtn-play .i-play { display: none; }
.player.is-playing .pbtn-play .i-pause { display: block; }
.player-empty { margin-top: 26px; display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .1); padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.player-empty a { color: #5EE0C7; }
.transcript { max-width: 880px; padding-top: 44px; padding-bottom: 20px; }
.transcript-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.transcript-head .h3 { flex: 1; } .transcript-head .h3 .ic { color: var(--t-audio); }
.tsearch { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); color: var(--muted); }
.tsearch input { border: 0; outline: 0; background: none; width: 220px; color: var(--ink); }
.tfollow { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.tlines { list-style: none; margin: 0; padding: 0; }
.tlines li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 14px; border-radius: 14px; transition: background .25s; }
.tlines li p { margin: 0; font: 400 17px/1.65 var(--f-read); color: var(--ink-2); }
.ts { border: 0; background: var(--t-audio-bg); color: var(--t-audio); font-size: 12px; font-weight: 700; border-radius: 8px; padding: 4px 8px; height: fit-content; font-variant-numeric: tabular-nums; }
.ts:hover { background: var(--t-audio); color: #fff; }
.tlines li.is-current { background: var(--t-audio-bg); }
.tlines li.is-current p { color: var(--ink); }
.tlines li.is-hidden { display: none; }
.tlines mark { background: #FFE58A; border-radius: 3px; padding: 0 2px; }

/* Carte mentale ----------------------------------------------------------- */
.cm-hero { background: linear-gradient(135deg, #F6F0FF, #EBE0FB); padding: 36px 0 40px; border-bottom: 1px solid #E2D4F6; }
.cm-hero .tag { box-shadow: none; }
.cm-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.cm-actions { display: flex; gap: 10px; }
.cm-actions .btn-primary { background: var(--t-carte); box-shadow: 0 6px 18px rgba(113, 64, 184, .3); }
.cm-viewer { position: relative; margin-top: -1px; margin-top: 32px; height: 78vh; min-height: 520px; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.cm-viewer iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; background: transparent; }
.cm-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--t-carte-bg); }
.cm-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cm-fallback .btn { position: relative; }
.cm-viewer:fullscreen { border-radius: 0; height: 100vh; }
.cm-empty { margin-top: 32px; padding: 80px 24px; text-align: center; border: 2px dashed #D9C8F2; border-radius: var(--r-xl); color: var(--t-carte); }
.cm-empty .ic { width: 56px; height: 56px; stroke-width: 1.2; }
.cm-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.cm-tips > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.cm-tips span { width: 38px; height: 38px; border-radius: 12px; background: var(--t-carte-bg); color: var(--t-carte); display: grid; place-items: center; margin-bottom: 12px; }
.cm-tips strong { font: 700 16px/1.2 var(--f-display); }
.cm-tips p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* Mémo (ex-carte mentale) ------------------------------------------------- */
.memo-hero { background: radial-gradient(circle at 85% 30%, #E6DAFB 0, transparent 55%), linear-gradient(135deg, #FBF8FF, #F1EAFB); padding: 36px 0 44px; border-bottom: 1px solid #E2D4F6; overflow: hidden; }
.memo-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.memo-hero .tag { box-shadow: none; }
.memo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.memo-count { font-size: 14px; color: var(--muted); margin-right: 8px; } .memo-count strong { color: var(--t-carte); font: 800 20px var(--f-display); }
.memo-actions .when-on, .memo-quiz .memo-actions .when-off { display: none; } .memo-quiz .memo-actions .when-on { display: inline; }
.memo-quiz [data-memo-quiz] { background: var(--t-carte); color: #fff; border-color: var(--t-carte); }
.memo-map { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; }
.memo-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.memo-map-lines line { stroke: #CDB8EE; stroke-width: .5; stroke-dasharray: 1.4 1.4; vector-effect: non-scaling-stroke; stroke-width: 1.5; }
.memo-map-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--t-carte); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(113, 64, 184, .12), 0 16px 40px rgba(113, 64, 184, .35); }
.memo-map-center .ic { width: 22px; height: 22px; opacity: .8; } .memo-map-center strong { font: 800 34px/1 var(--f-display); } .memo-map-center small { font-size: 12px; opacity: .85; }
.memo-node { --mc: var(--red); position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; width: 120px; text-align: center; transition: transform .2s; }
.memo-node:hover { transform: translate(-50%, -50%) scale(1.08); }
.memo-node span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--mc); font: 800 17px var(--f-display); box-shadow: 0 0 0 3px var(--mc), 0 6px 16px rgba(60, 20, 30, .12); }
.memo-node em { font-style: normal; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--ink-2); background: rgba(255, 255, 255, .85); padding: 3px 7px; border-radius: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c0 { --mc: #E3203C; --mb: #FDECEF; } .c1 { --mc: #7140B8; --mb: #F0E9FB; } .c2 { --mc: #0E7C6B; --mb: #E2F4EF; } .c3 { --mc: #B86200; --mb: #FFF1DE; } .c4 { --mc: #2563A8; --mb: #E6EFFA; }
.memo-body { padding-top: 40px; padding-bottom: 16px; }
.memo-quiz-hint { display: none; align-items: center; gap: 8px; background: var(--t-carte-bg); color: var(--t-carte); padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; margin: 0 0 20px; }
.memo-quiz .memo-quiz-hint { display: flex; }
.memo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.memo-card { break-inside: avoid; margin: 0; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); border-top: 5px solid var(--mc); padding: 22px 24px; scroll-margin-top: 100px; position: relative; transition: box-shadow .25s, transform .25s; outline: none; }
.memo-card:target { box-shadow: 0 0 0 3px var(--mc), var(--sh-2); }
.memo-card header { display: flex; gap: 16px; align-items: flex-start; }
.memo-num { font: 800 34px/1 var(--f-display); color: var(--mc); letter-spacing: -.04em; flex: none; min-width: 48px; }
.memo-card h2 { font: 700 20px/1.2 var(--f-display); margin: 2px 0 0; letter-spacing: -.01em; }
.memo-card header p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; font-style: italic; line-height: 1.4; }
.memo-card-body { margin-top: 16px; }
.memo-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.memo-points li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.memo-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px; background: var(--mb) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081027' stroke-opacity='.55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.memo-points li.is-quote { font: italic 500 16.5px/1.45 var(--f-read); color: var(--ink); background: var(--mb); padding: 10px 14px 10px 42px; border-radius: 14px 14px 14px 4px; }
.memo-points li.is-quote::before { left: 14px; top: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081027' stroke-opacity='.5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-5A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / contain no-repeat; }
.memo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.memo-chips span { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--mb); color: var(--mc); }
.memo-key { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #fff; font: 600 15px/1.4 var(--f-display); }
.memo-key .ic { color: var(--coral); flex: none; margin-top: 1px; }
.memo-reveal { display: none; }
.memo-quiz .memo-card { cursor: pointer; }
.memo-quiz .memo-card:not(.is-open) .memo-card-body { display: none; }
.memo-quiz .memo-card:not(.is-open) .memo-reveal { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--mc); }
.memo-quiz .memo-card:not(.is-open):hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.memo-quiz .memo-card.is-open .memo-card-body { animation: qIn .35s ease; }
@media (max-width: 980px) { .memo-hero-in { grid-template-columns: 1fr; } .memo-map { max-width: 360px; } }
@media (max-width: 680px) { .memo-grid { grid-template-columns: 1fr; } .memo-map { display: none; } }
@media print { .memo-hero { background: none; padding: 0 0 12px; } .memo-map, .memo-actions, .memo-quiz-hint, .memo-reveal { display: none !important; } .memo-card-body { display: block !important; } .memo-card { box-shadow: none; } }

/* End of content ---------------------------------------------------------- */
.content-end { max-width: 960px; padding-top: 40px; padding-bottom: 72px; }
.done-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); flex-wrap: wrap; }
.done-box-txt { display: flex; gap: 14px; align-items: center; }
.done-box-txt > div { display: flex; flex-direction: column; } .done-box-txt span { font-size: 13.5px; color: var(--muted); }
.done-box-txt strong { font: 700 18px/1.2 var(--f-display); }
.done-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--muted); flex: none; }
.done-box.is-done { background: var(--ok-bg); border-color: #BFE6CF; }
.done-box.is-done .done-ic { background: var(--ok); color: #fff; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.4); } }
.done-box .when-done, .done-box.is-done .when-todo { display: none; }
.done-box.is-done .when-done { display: inline-flex; } .done-box.is-done strong.when-done { display: block; }
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.next-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.next-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.next-card.next { align-items: flex-end; text-align: right; }
.next-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.next-card strong { font: 700 18px/1.25 var(--f-display); }
.next-card .tag { box-shadow: none; background: var(--paper); }
.next-card.is-quiz { background: var(--ink); color: #fff; border-color: var(--ink); }
.next-card.is-quiz .next-lbl { color: var(--coral); }
.next-card.is-quiz .tag { background: rgba(255, 255, 255, .12); color: #fff; }

/* Library ----------------------------------------------------------------- */
.lib-search { display: flex; align-items: center; gap: 10px; margin-top: 26px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 99px; padding: 6px 6px 6px 20px; max-width: 680px; box-shadow: var(--sh-1); color: var(--muted); }
.lib-search:focus-within { border-color: var(--ink); }
.lib-search input { flex: 1; border: 0; outline: 0; font-size: 16px; background: none; color: var(--ink); min-width: 0; }
.lib-filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 99px; text-decoration: none; font-size: 14px; font-weight: 600; background: #fff; border: 1.5px solid var(--line-2); color: var(--ink-2); transition: all .15s; }
.chip span { font-size: 12px; background: var(--paper-2); border-radius: 99px; padding: 1px 8px; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); } .chip.is-on span { background: rgba(255, 255, 255, .18); color: #fff; }
.chip-article .ic { color: var(--t-article); } .chip-audio .ic { color: var(--t-audio); } .chip-carte .ic { color: var(--t-carte); } .chip-fiche .ic { color: var(--t-fiche); }
.chip.is-on .ic { color: #fff; }
.chip-article.is-on { background: var(--t-article); border-color: var(--t-article); } .chip-audio.is-on { background: var(--t-audio); border-color: var(--t-audio); }
.chip-carte.is-on { background: var(--t-carte); border-color: var(--t-carte); } .chip-fiche.is-on { background: var(--t-fiche); border-color: var(--t-fiche); }
.lib-sel { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lib-sel select { height: 40px; font-size: 14px; padding-left: 16px; border-radius: 99px; }
.switch { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; cursor: pointer; }
.switch input { display: none; }
.switch span { width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--red); } .switch input:checked + span::after { transform: translateX(16px); }
.lib-count { color: var(--muted); font-size: 14px; margin: 22px 0 18px; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); } .empty .ic { width: 40px; height: 40px; }

/* Questionnaires ---------------------------------------------------------- */
.form-hero { background: linear-gradient(180deg, #fff, var(--paper)); padding: 36px 0 32px; border-bottom: 1px solid var(--line); }
.form-hero-row { display: flex; gap: 18px; align-items: center; margin-top: 24px; }
.form-hero-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 10px 24px rgba(227, 32, 60, .3); }
.form-hero-ic .ic { width: 30px; height: 30px; }
.form-hero .eyebrow { margin-bottom: 6px; }
.form-hero .crumb { color: var(--ink-2); }
.form-wrap { padding-top: 32px; padding-bottom: 80px; }
.qprogress { display: none; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--muted); }
.qprogress .bar { flex: 1; }
.qform.is-stepped .qprogress { display: flex; }
.qcard { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-lg); padding: 26px; margin: 0 0 16px; }
.qform.is-stepped .qcard { display: none; animation: qIn .35s ease; }
.qform.is-stepped .qcard.is-current { display: block; }
.qform:not(.is-stepped) .qcard.is-skipped { display: none; }
@keyframes qIn { from { opacity: 0; transform: translateX(16px); } }
.qcard.has-error { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-bg); }
.qcard legend { float: left; width: 100%; padding: 0; font: 700 21px/1.3 var(--f-display); letter-spacing: -.01em; margin-bottom: 18px; }
.qcard legend + * { clear: both; }
.qnum { display: block; font: 700 12px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 10px; }
.qhelp { font-size: 13.5px; color: var(--muted); margin: -8px 0 14px; clear: both; }
.opts { display: flex; flex-direction: column; gap: 10px; clear: both; }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; transition: border-color .15s, background .15s; font-size: 15.5px; }
.opt:hover { border-color: var(--ink-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-box { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; transition: all .15s; }
.opt input[type=checkbox] + .opt-box { border-radius: 7px; }
.opt:has(input:checked) { border-color: var(--red); background: #FFF6F7; }
.opt input:checked + .opt-box { border-color: var(--red); background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.opt input:focus-visible + .opt-box { box-shadow: 0 0 0 4px var(--blush); }
.scale { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 8px; clear: both; }
.scale-words .scale-n { width: auto; height: auto; background: none; font-size: 26px; transition: transform .15s; }
.scale-words label:has(input:checked) .scale-n { background: none; transform: scale(1.2); }
.scale-words .scale-l { font-weight: 600; color: var(--ink-2); font-size: 13.5px; }
.scale label { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; text-align: center; transition: all .15s; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale-n { width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font: 800 16px/1 var(--f-display); transition: all .15s; }
.scale-l { font-size: 12.5px; color: var(--muted); line-height: 1.25; }
.scale label:hover { border-color: var(--ink-2); }
.scale label:has(input:checked) { border-color: var(--red); background: #FFF6F7; }
.scale label:has(input:checked) .scale-n { background: var(--red); color: #fff; }
.qcard textarea { width: 100%; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px; outline: 0; resize: vertical; clear: both; display: block; }
.qcard textarea:focus { border-color: var(--ink); }
.qnav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.qnav [data-prev], .qnav [data-next] { display: none; }
.qform.is-stepped .qnav { justify-content: space-between; }
.qform.is-stepped .qnav [data-prev], .qform.is-stepped .qnav [data-next] { display: inline-flex; }
.qform.is-stepped .qnav [data-prev]:disabled { visibility: hidden; }
.qform.is-stepped:not(.is-last) .qnav [data-submit] { display: none; }
.qform.is-stepped.is-last .qnav [data-next] { display: none; }
.result { display: flex; gap: 32px; align-items: center; padding: 32px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); }
.result.is-pass { background: linear-gradient(135deg, #EFFAF3, #fff); border-color: #BFE6CF; }
.result.is-pass .ring { background: radial-gradient(closest-side, #fff 79%, transparent 80% 100%), conic-gradient(var(--ok) calc(var(--p) * 1%), #D5EEDF 0); }
.result p { color: var(--ink-2); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.review { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.review > li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.review-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.review .ok .review-ic { background: var(--ok-bg); color: var(--ok); } .review .ko .review-ic { background: var(--err-bg); color: var(--err); }
.review ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.review ul li { padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.review ul li.is-correct { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.review ul li.is-wrong { background: var(--err-bg); color: var(--err); text-decoration: line-through; }
.review-hint { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.path-done { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.path-done .ic { display: none; }
.path-done small { font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.path-done:hover small { color: var(--ink); }
.recap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 24px; margin: 0 0 20px; }
.recap dt { font-weight: 600; padding-top: 16px; font-size: 14.5px; }
.recap dd { margin: 6px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.recap dd:last-child { border-bottom: 0; }
.recap-scale { display: inline-flex; align-items: baseline; font: 800 18px var(--f-display); color: var(--red); margin-right: 4px; } .recap-scale small { font-size: 12px; color: var(--muted); }

/* Account ----------------------------------------------------------------- */
.account { display: flex; flex-direction: column; gap: 20px; }
.account-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.panel > .h3 { margin-bottom: 8px; }
.cert-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cert-list li { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--paper); border-radius: 14px; }
.cert-list-num { font: 800 22px/1 var(--f-display); color: var(--red); }

/* Guide de première connexion ---------------------------------------------- */
.onb { border: 0; padding: 0; width: min(720px, calc(100% - 24px)); max-height: calc(100vh - 24px); border-radius: var(--r-xl); box-shadow: 0 40px 100px rgba(8, 16, 39, .35); background: #fff; overflow: hidden; }
.onb::backdrop { background: rgba(8, 16, 39, .55); backdrop-filter: blur(4px); }
.onb[open] { animation: onbIn .45s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes onbIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.onb-in { position: relative; display: flex; flex-direction: column; min-height: 560px; }
.onb-in::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad); }
.onb-skip { position: absolute; top: 20px; right: 20px; z-index: 2; background: none; border: 0; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.onb-skip:hover { color: var(--ink); }
.onb-slide { display: none; padding: 48px 48px 8px; flex: 1; overflow-y: auto; }
.onb-slide.is-current { display: block; animation: qIn .4s ease; }
.onb-slide.is-back { animation-name: qInBack; }
@keyframes qInBack { from { opacity: 0; transform: translateX(-16px); } }
.onb-title { font: 800 clamp(26px, 3.4vw, 34px)/1.1 var(--f-display); letter-spacing: -.02em; margin: 0 0 12px; }
.onb-lead { font-size: 17px; color: var(--ink-2); margin: 0 0 24px; max-width: 52ch; }
.onb-art-hello { position: relative; width: 88px; height: 88px; border-radius: 26px; background: var(--grad); display: grid; place-items: center; margin-bottom: 26px; box-shadow: 0 16px 36px rgba(227, 32, 60, .35); }
.onb-art-hello .logo { width: 56px; height: 56px; border-radius: 14px; }
.onb-wave { position: absolute; right: -14px; bottom: -10px; font-size: 34px; animation: wave 1.6s ease-in-out .4s 2; transform-origin: 70% 70%; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(18deg); } 40%, 80% { transform: rotate(-10deg); } }
.onb-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.onb-facts li { background: var(--paper); border-radius: var(--r); padding: 18px; }
.onb-facts strong { display: block; font: 800 28px/1 var(--f-display); color: var(--red); margin-bottom: 6px; }
.onb-facts strong .ic { width: 28px; height: 28px; }
.onb-facts span { font-size: 13.5px; color: var(--muted); }
.onb-path { list-style: none; margin: 8px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.onb-path::before { content: ""; position: absolute; top: 24px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.onb-path li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; animation: qIn .5s ease both; animation-delay: calc(var(--i) * 90ms); }
.onb-path-ic { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--red); color: var(--red); display: grid; place-items: center; margin-bottom: 6px; box-shadow: 0 0 0 6px #fff; }
.onb-path li:last-child .onb-path-ic { background: var(--red); color: #fff; }
.onb-path strong { font: 700 14.5px/1.2 var(--f-display); }
.onb-path small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.onb-note { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); margin: 18px 0 0; }
.onb-note .ic { color: var(--ok); margin-top: 2px; }
.onb-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.onb-format { --tc: var(--t-article); --tb: var(--t-article-bg); padding: 16px; border-radius: var(--r); background: var(--tb); }
.onb-format.type-audio { --tc: var(--t-audio); --tb: var(--t-audio-bg); } .onb-format.type-carte { --tc: var(--t-carte); --tb: var(--t-carte-bg); } .onb-format.type-fiche { --tc: var(--t-fiche); --tb: var(--t-fiche-bg); }
.onb-format > span { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--tc); display: grid; place-items: center; margin-bottom: 10px; }
.onb-format strong { font: 700 16px var(--f-display); color: var(--tc); }
.onb-format p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.onb-cert { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.onb-cert-q { display: flex; gap: 18px; align-items: center; background: var(--paper); border-radius: var(--r); padding: 18px; }
.onb-cert-q .ring { --s: 84px; } .onb-cert-q .ring span { font-size: 24px; }
.onb-cert-q ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.onb-cert-q li { display: flex; gap: 6px; align-items: flex-start; } .onb-cert-q li .ic { color: var(--ok); margin-top: 2px; }
.onb-cert-doc { background: var(--ink); color: #fff; border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.onb-cert-doc .ic { width: 30px; height: 30px; color: var(--coral); }
.onb-cert-doc strong { font: 700 17px var(--f-display); } .onb-cert-doc span { font-size: 13.5px; opacity: .8; }
.onb-profile { display: grid; gap: 14px; max-width: 460px; }
.onb-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 48px 28px; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots span { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: all .3s; }
.onb-dots span.is-on { width: 24px; background: var(--red); }
.onb-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.onb-final { display: none; }
.onb.is-last .onb-final { display: inline-flex; }
.onb.is-last [data-onb-next], .onb.is-last [data-onb-prev] { display: none; }
.onb.is-first [data-onb-prev] { visibility: hidden; }
@media (max-width: 680px) {
  .onb-in { min-height: 0; }
  .onb-slide { padding: 52px 22px 4px; } .onb-foot { padding: 16px 22px 22px; flex-direction: column-reverse; align-items: stretch; } .onb-dots { justify-content: center; }
  .onb-btns { justify-content: stretch; } .onb-btns .btn { flex: 1; }
  .onb-facts, .onb-cert { grid-template-columns: 1fr; } .onb-formats { grid-template-columns: 1fr; }
  .onb-path { grid-template-columns: 1fr; gap: 10px; } .onb-path::before { display: none; }
  .onb-path li { flex-direction: row; text-align: left; gap: 12px; } .onb-path-ic { margin: 0; width: 40px; height: 40px; flex: none; } .onb-path small { margin-left: auto; text-align: right; }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .grid-themes, .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topsearch { width: 180px; }
  .howto { grid-template-columns: 1fr; }
  .art-layout, .fp-layout { grid-template-columns: minmax(0, 720px); }
  .toc { display: none; }
}
@media (max-width: 980px) {
  .mainnav { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); display: none; }
  .nav-open .mainnav { display: flex; }
  .navtoggle { display: block; }
  .topbar-right { margin-left: auto; }
  .topsearch { display: none; }
  .dash-hero-in, .theme-layout, .art-hero-in, .fp-hero-in { grid-template-columns: 1fr; }
  .theme-aside { position: static; }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
  .player { grid-template-columns: 1fr; } .player-art { width: 140px; }
  .account-grid { grid-template-columns: 1fr; }
  .auth-split { grid-template-columns: 1fr; } .auth-side-in { padding: 28px 24px 36px; } .auth-kpis { display: none; } .auth-pitch h1 { font-size: 34px; } .auth-pitch { margin-top: 32px; }
  .art-cover, .fp-cover { max-width: 520px; }
}
@media (max-width: 680px) {
  body { font-size: 14.5px; }
  .container { padding: 0 18px; }
  .grid-themes, .grid-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tcard-body h3, .ccard-title { font-size: 15px; }
  .dash-stats { flex-direction: column; align-items: flex-start; } .dash-stats ul { gap: 18px; }
  .resume-card { grid-template-columns: 1fr; } .resume-media { height: 120px; }
  .theme-row { grid-template-columns: 56px 1fr; } .theme-row-side, .theme-row-arrow { display: none; }
  .theme-hero-num { font-size: 80px; }
  .theme-hero-progress { flex-wrap: wrap; }
  .pc { grid-template-columns: 36px 1fr 24px; } .pc-time { display: none; }
  .path-step { grid-template-columns: 32px 1fr; gap: 10px; } .path-dot { width: 32px; height: 32px; font-size: 14px; } .path::before { left: 15px; }
  .path-card-head { flex-wrap: wrap; } .path-card-head > .path-ic { display: none; } .path-card-head > .btn { width: 100%; }
  .theme-layout { padding-top: 28px; }
  .fp-ess-grid, .cm-tips, .next-grid { grid-template-columns: 1fr; }
  .fp-block { grid-template-columns: 1fr; gap: 6px; }
  .scale { gap: 4px; } .scale-num .scale-l { display: none; } .scale-words .scale-l { font-size: 11px; }
  .result { flex-direction: column; text-align: center; } .result-actions { justify-content: center; }
  .row2 { grid-template-columns: 1fr; }
  .prose { font-size: 18px; }
  .howto { padding: 22px; } .howto-steps { grid-template-columns: 1fr; }
}

/* Print ------------------------------------------------------------------- */
@media print {
  .topbar, .footer, .readbar, .content-end, .crumbs, .toc, .fp-legend, .flashes, .admin-banner, .no-print { display: none !important; }
  body { background: #fff; }
  .fp-layout, .art-layout { grid-template-columns: 1fr; padding: 0; }
  .fp-hero, .art-hero { background: none; padding: 0 0 16px; }
  .fp-cover, .art-cover { display: none; }
  .fp-ess { background: #f4efe9 !important; color: var(--ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fp-ess-head h2, .fp-ess-pt .ess-lead { color: var(--ink); }
  .fp-block { break-inside: avoid; }
}

/* Listes déroulantes : flèche personnalisée, même marge que le texte */
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 42px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081027' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 16px !important; }
select::-ms-expand { display: none; }
