/* Cap Français — écrans : accueil, entraînement, thèmes, programmes, séance, bilan, progression, questions, réglages, accueil des nouveaux. */

/* ------------------------------------------------------------------ halo animé (fonds décoratifs) */

.aurora { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .7; pointer-events: none; will-change: transform; }
.aurora--a { width: 46%; aspect-ratio: 1; left: -8%; top: -30%; background: #3D6BFF; animation: drift-a 16s var(--ease-in-out) infinite alternate; }
.aurora--b { width: 40%; aspect-ratio: 1; right: -6%; bottom: -40%; background: #E8452F; opacity: .5; animation: drift-b 19s var(--ease-in-out) infinite alternate; }
@keyframes drift-a { to { transform: translate(18%, 22%) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-22%, -16%) scale(1.2); } }

/* ------------------------------------------------------------------ accueil : bandeau du jour */

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); border-radius: var(--r-xl); background: var(--hero-bg); color: #fff; overflow: hidden; min-height: 356px; box-shadow: var(--shadow-2); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(90, 132, 247, .55), transparent 65%); animation: drift-a 18s var(--ease-in-out) infinite alternate; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: 22%; bottom: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 69, 47, .42), transparent 65%); animation: drift-b 21s var(--ease-in-out) infinite alternate; }
.hero__art { grid-column: 2; grid-row: 1; position: relative; margin: 12px; border-radius: 22px; overflow: hidden; background: linear-gradient(150deg, #24389B, #3D6BFF 60%, #F2B8A8); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; z-index: 1; animation: kenburns 24s var(--ease-in-out) infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero__ribbon { position: absolute; left: 0; top: 0; z-index: 2; width: 100%; height: 5px; background: linear-gradient(90deg, #2F5BEA 0 33.3%, #FDFBF7 33.3% 66.6%, #E8452F 66.6%); }
.hero__body { grid-column: 1; grid-row: 1; padding: clamp(26px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; }
.hero__date { font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #B9C6F5; }
.hero__title { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.3rem); font-weight: 560; letter-spacing: -.02em; color: #fff; }
.hero__msg { font-size: 1.08rem; color: #D7DEF8; max-width: 44ch; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 10px; }
.hero__cta .btn .ico { transition: transform .4s var(--ease-spring); }
.hero__cta .btn:hover .ico { transform: scale(1.25) translateX(2px); }
.hero__time { display: inline-flex; align-items: center; gap: 7px; color: #B9C6F5; font-size: .92rem; font-weight: 600; }
.hero__resume { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: #fff; font-weight: 600; font-size: .92rem; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); transition: background .2s; margin-top: 2px; text-align: left; }
.hero__resume:hover { background: rgba(255, 255, 255, .2); }
.hero__side { grid-column: 2; grid-row: 1; z-index: 3; align-self: end; justify-self: end; margin: 26px; display: flex; align-items: center; gap: 18px; padding: 16px 20px 16px 16px; border-radius: 24px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: #0C1433; box-shadow: 0 18px 40px -14px rgba(7, 11, 31, .55); }
.ring--hero .ring__track { stroke: rgba(47, 91, 234, .16); }
.hero__num { font-size: 2.5rem; font-weight: 750; letter-spacing: -.03em; color: #0C1433; }
.hero__den { font-size: .82rem; font-weight: 650; color: #5F6786; margin-top: 4px; }
.hero__facts { display: flex; flex-direction: column; gap: 12px; }
.hero__facts li { display: grid; grid-template-columns: auto auto; grid-template-areas: "ico b" "ico s"; column-gap: 10px; align-items: center; color: #5F6786; line-height: 1.15; justify-content: start; }
.hero__facts .ico { grid-area: ico; color: #98A1C6; }
.hero__facts b { grid-area: b; font-size: 1.2rem; color: #0C1433; font-weight: 750; }
.hero__facts span { grid-area: s; font-size: .8rem; font-weight: 600; }
.hero__facts li.is-on .ico { color: #EC6A2D; }
.hero__facts li.is-link { cursor: pointer; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__art { grid-column: 1; grid-row: 1; height: 150px; margin: 10px 10px 0; }
  .hero__body { grid-row: 2; padding: 22px 22px 8px; }
  .hero__side { grid-column: 1; grid-row: 3; justify-self: stretch; margin: 14px; justify-content: space-around; }
  .hero__num { font-size: 2.1rem; }
}

.nudge { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.nudge-slot { margin-top: -10px; }
.nudge__ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); }
.nudge__txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.nudge__txt span { color: var(--ink-3); font-size: .88rem; }
@media (max-width: 640px) { .nudge { grid-template-columns: auto 1fr auto; } .nudge .btn { grid-column: 1 / -1; grid-row: 2; } .nudge .iconbtn { grid-column: 3; grid-row: 1; } }

/* niveau estimé, programme en cours */
.level { display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease-out), box-shadow .25s; }
.level:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.level__fig { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.level__fig strong { font-size: 3.4rem; font-weight: 750; letter-spacing: -.04em; }
.level__fig span { font-size: 1.2rem; color: var(--ink-3); font-weight: 650; }
.level__fig.is-empty strong { color: var(--ink-3); font-weight: 500; }
.level__scale { position: relative; display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-3); font-weight: 650; height: 18px; font-variant-numeric: tabular-nums; }
.level__seuil { position: absolute; transform: translateX(-50%); color: var(--ink); white-space: nowrap; }
.level__label { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink-2); }
.level__label .ico { color: var(--good); }
.nextstep { display: flex; flex-direction: column; gap: 12px; }
.nextstep__title { font-size: 1.45rem; }
.nextstep__go { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-strong); margin-top: auto; transition: transform .2s var(--ease-out), background .2s; width: 100%; }
.nextstep__go:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--primary-soft) 82%, var(--primary) 18%); }
.nextstep__go small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.nextstep__go strong { display: block; font-size: 1.05rem; color: var(--ink); }
.nextstep__ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; }
.nextstep__done { display: flex; align-items: center; gap: 10px; color: var(--good-ink); background: var(--good-soft); padding: 12px 16px; border-radius: 16px; font-weight: 600; }

/* thèmes */
.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.theme { display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-1); transition: transform .3s var(--ease-out), box-shadow .3s; }
.theme:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.theme__art { position: relative; aspect-ratio: 5 / 4; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 22%, var(--bg-elev)), color-mix(in srgb, var(--c) 55%, var(--bg-elev))); overflow: hidden; }
.theme__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.theme:hover .theme__art img { transform: scale(1.07); }
.theme__ico { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-2), inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); }
.theme__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.theme__weight { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.theme__name { font-size: 1.06rem; line-height: 1.2; flex: 1; }
.theme__stat { font-size: .82rem; color: var(--ink-3); }
.theme__stat b { color: var(--ink); }
@media (max-width: 1180px) { .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .themes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
  .themes::-webkit-scrollbar { display: none; }
  .theme { flex: 0 0 72%; scroll-snap-align: center; }
}

/* raccourcis, semaine */
.quicks { display: flex; flex-direction: column; gap: 10px; }
.quick { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 18px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .22s var(--ease-out), box-shadow .22s, border-color .22s; width: 100%; }
.quick:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: var(--shadow-2); }
.quick__ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, var(--bg-elev)); color: var(--ink); }
.quick__txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.quick__txt span { color: var(--ink-3); font-size: .88rem; }
.quick__chev { color: var(--ink-3); transition: transform .22s var(--ease-out); }
.quick:hover .quick__chev { transform: translateX(3px); color: var(--ink); }
.weekcard { display: flex; flex-direction: column; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; flex: 1; min-height: 150px; }
.week__day { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; font-size: .78rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; }
.week__bar { flex: 1; width: 100%; max-width: 24px; border-radius: 8px; background: var(--bg-sunken); display: flex; align-items: flex-end; overflow: hidden; }
.week__bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--primary); animation: grow-y .9s var(--ease-out) both; transform-origin: bottom; }
@keyframes grow-y { from { transform: scaleY(0); } }
.week__day.is-today { color: var(--ink); }
.week__day.is-today .week__bar { box-shadow: 0 0 0 2px var(--bg-elev), 0 0 0 3.5px var(--line-strong); }

/* ------------------------------------------------------------------ s'entraîner */

.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.mode { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px; border-radius: 22px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .26s var(--ease-out), box-shadow .26s, border-color .26s; overflow: hidden; width: 100%; }
.mode:hover:not(:disabled) { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.mode__ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, var(--bg-elev)); color: var(--ink); transition: transform .4s var(--ease-spring); }
.mode:hover .mode__ico { transform: rotate(-6deg) scale(1.08); }
.mode__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mode__txt strong { font-family: var(--font-display); font-size: 1.14rem; font-weight: 600; line-height: 1.2; }
.mode__txt span { color: var(--ink-3); font-size: .9rem; line-height: 1.4; }
.mode__tag { position: absolute; top: 12px; right: 14px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--c); color: #fff; }
.mode__go { color: var(--ink-3); transition: transform .26s var(--ease-out), color .2s; }
.mode:hover .mode__go { transform: translateX(4px); color: var(--ink); }
.mode--featured { grid-column: 1 / -1; background: var(--hero-bg); color: #fff; border: 0; padding: 26px; }
.mode--featured .mode__ico { background: rgba(255, 255, 255, .16); color: #fff; }
.mode--featured .mode__txt strong { font-size: 1.45rem; }
.mode--featured .mode__txt span { color: #D7DEF8; font-size: 1rem; }
.mode--featured .mode__tag { background: #fff; color: #0C1433; }
.mode--featured .mode__go { color: #fff; }

.picklist { display: flex; flex-direction: column; gap: 8px; }
.pick { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); transition: background .2s, transform .2s var(--ease-out); }
.pick:hover { background: var(--bg-sunken); transform: translateX(3px); }
.pick__ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--bg-elev)); }
.pick__txt { display: flex; flex-direction: column; line-height: 1.3; }
.pick__txt span { color: var(--ink-3); font-size: .86rem; }
.compose { display: flex; flex-direction: column; gap: 18px; }
.compose__info { padding: 12px 16px; border-radius: 14px; background: var(--bg-sunken); color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.examintro { display: flex; flex-direction: column; gap: 16px; }
.examintro__img { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 7; background: linear-gradient(140deg, var(--primary-soft), color-mix(in srgb, var(--t2) 30%, var(--bg-elev))); }
.examintro__img img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: var(--bg-sunken); text-align: center; }
.facts b { font-size: 2rem; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.facts span { font-size: .82rem; color: var(--ink-3); line-height: 1.3; }
.tips { display: flex; flex-direction: column; gap: 10px; }
.tips li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg-sunken); }
.tips__ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-elev); color: var(--primary-strong); }
.tips p { color: var(--ink-2); font-size: .94rem; margin-top: 2px; }

/* ------------------------------------------------------------------ page d'un thème */

.themehead, .proghead { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; }
.themehead__art, .proghead__art { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 22%, var(--bg-elev)), color-mix(in srgb, var(--c) 58%, var(--bg-elev))); box-shadow: var(--shadow-2); }
.proghead__art { aspect-ratio: 4 / 3; }
.themehead__art img, .proghead__art img { width: 100%; height: 100%; object-fit: cover; }
.themehead__art .theme__ico { width: 54px; height: 54px; border-radius: 18px; left: 16px; bottom: 16px; }
.themehead__txt, .proghead__txt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.themehead__cta, .proghead__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
@media (max-width: 760px) { .themehead, .proghead { grid-template-columns: minmax(0, 1fr); } .themehead__art { aspect-ratio: 16 / 9; } .proghead__art { aspect-ratio: 16 / 8; } }
.topics { display: flex; flex-direction: column; gap: 12px; }
.topic { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.topic__main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; }
.topic__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 650; background: color-mix(in srgb, var(--c) 15%, var(--bg-elev)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent); }
.topic__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.topic__txt p { color: var(--ink-3); font-size: .88rem; }
.topic__btns { display: flex; gap: 8px; }
.topic__fiche { padding: 4px 18px 20px; border-top: 1px dashed var(--line-strong); padding-top: 18px; }
@media (max-width: 640px) { .topic__main { grid-template-columns: auto 1fr; } .topic__btns { grid-column: 1 / -1; } .topic__btns .btn { flex: 1; } }

/* ------------------------------------------------------------------ programmes */

.why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 20px 32px; align-items: center; }
.why h2 { margin-top: 6px; }
.why__rows { display: flex; flex-direction: column; gap: 10px; }
.why__row { display: grid; grid-template-columns: 150px minmax(60px, 1fr) auto; gap: 12px; align-items: center; font-size: .9rem; }
.why__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.why__bar { height: 12px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.why__bar i { display: block; height: 100%; border-radius: 999px; background: var(--c); animation: grow-x 1s var(--ease-out) both; transform-origin: left; }
@keyframes grow-x { from { transform: scaleX(0); } }
.why__fig { color: var(--ink-3); white-space: nowrap; }
.why__fig b { color: var(--ink); font-variant-numeric: tabular-nums; }
.why__note { grid-column: 1 / -1; }
@media (max-width: 900px) { .why { grid-template-columns: minmax(0, 1fr); } .why__row { grid-template-columns: 112px minmax(40px, 1fr); } .why__fig { grid-column: 1 / -1; font-size: .82rem; margin-top: -6px; } }
.programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.program { display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-1); transition: transform .3s var(--ease-out), box-shadow .3s; }
.program:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.program__art { position: relative; aspect-ratio: 16 / 8; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 25%, var(--bg-elev)), color-mix(in srgb, var(--c) 60%, var(--bg-elev))); overflow: hidden; }
.program__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.program:hover .program__art img { transform: scale(1.06); }
.program__rank { position: absolute; left: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-2); }
.program__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.program__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.program__body h3 { display: flex; align-items: center; gap: 9px; font-size: 1.3rem; }
.program__body > p { color: var(--ink-2); flex: 1; }
.program__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-3); font-size: .86rem; font-weight: 600; }
.program__meta span { display: inline-flex; align-items: center; gap: 6px; }
.program__prog { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; font-size: .84rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.program__start { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--primary-strong); }
.program--featured { grid-column: 1 / -1; flex-direction: row; }
.program--featured .program__art { flex: 0 0 44%; aspect-ratio: auto; min-height: 240px; }
.program--featured .program__body { padding: 28px; justify-content: center; }
.program--featured .program__body h3 { font-size: 1.8rem; }
.program--featured .program__body > p { flex: 0; font-size: 1.05rem; }
@media (max-width: 760px) { .program--featured { flex-direction: column; } .program--featured .program__art { flex: none; aspect-ratio: 16 / 8; min-height: 0; } .program--featured .program__body { padding: 20px; } }

.proghead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.proghead__prog { display: grid; grid-template-columns: minmax(140px, 260px) auto; gap: 12px; align-items: center; font-weight: 700; font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.proghead__stars { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.proghead__stars .ico { color: var(--gold-500); fill: currentColor; }
.path { display: flex; flex-direction: column; gap: 22px; }
.chapter { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-1); overflow: hidden; }
.chapter__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 22px; background: color-mix(in srgb, var(--c) 8%, var(--bg-elev)); border-bottom: 1px solid var(--line); }
.chapter__n { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; background: var(--c); color: #fff; }
.chapter__head p { color: var(--ink-3); font-size: .88rem; margin-top: 2px; }
.chapter__count { font-weight: 700; font-size: .88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.steps { position: relative; padding: 10px 12px 12px; }
.steps::before { content: ""; position: absolute; left: 39px; top: 34px; bottom: 34px; width: 2px; background: var(--line-strong); border-radius: 2px; }
.step__btn { position: relative; width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 12px; border-radius: 16px; transition: background .2s, transform .2s var(--ease-out); }
.step__btn:hover { background: var(--bg-sunken); transform: translateX(3px); }
.step__node { position: relative; z-index: 1; width: 34px; height: 34px; margin-left: 10px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-elev); color: var(--ink-3); box-shadow: inset 0 0 0 2px var(--line-strong); }
.step.is-done .step__node { background: var(--good); color: #fff; box-shadow: none; }
.step.is-next .step__node { background: var(--primary); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 22%, transparent); animation: pulse 2.2s var(--ease-in-out) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 0%, transparent); } }
.step__txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.step__txt small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.step__txt strong { font-size: 1.02rem; }
.step__txt span { font-size: .86rem; color: var(--ink-3); }
.step__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--ink-3); }
.step.is-next .step__go { color: #fff; background: var(--primary); padding: 8px 14px; border-radius: 999px; }
@media (max-width: 560px) { .step__go { font-size: 0; gap: 0; } .step.is-next .step__go { padding: 8px; } }

/* ------------------------------------------------------------------ séance */

.run { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding-bottom: 20px; }
.run--exam { max-width: 1080px; }
.run__head { position: sticky; top: 0; z-index: 15; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 0 12px; padding-top: max(14px, env(safe-area-inset-top)); background: linear-gradient(var(--bg) 78%, transparent); }
.run__progress { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.run__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .88rem; }
.run__title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run__count { color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.run__bar { height: 10px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.run__barfill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #2F5BEA, #5A84F7 60%, #E8452F 140%); transition: width .7s var(--ease-out); }
.run__extra { display: flex; align-items: center; gap: 10px; min-width: 0; }
.run__retry { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--warn-ink); background: var(--warn-soft); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.run__stage { min-height: 50vh; }

.q { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3.4vw, 36px); border-radius: 28px; box-shadow: var(--shadow-2); }
.q__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.q__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.q__topic { font-size: .86rem; font-weight: 600; color: var(--ink-3); }
.q__num { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.q__tools { display: flex; align-items: center; gap: 2px; margin: -6px -8px -6px 0; }
.q__label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: -8px; }
.q__text { font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2rem); line-height: 1.22; font-weight: 560; letter-spacing: -.015em; }
.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border-radius: 18px; background: var(--bg-elev); border: 1.5px solid var(--line-strong); font-size: 1.06rem; font-weight: 550; line-height: 1.35; text-align: left; transition: transform .18s var(--ease-out), border-color .18s, background .18s, box-shadow .18s, opacity .3s; -webkit-tap-highlight-color: transparent; }
.opt:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--primary) 80%, transparent); }
.opt:active:not(:disabled) { transform: scale(.985); }
.opt__key { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 750; font-size: .92rem; background: var(--bg-sunken); color: var(--ink-2); transition: background .2s, color .2s; }
.opt:hover:not(:disabled) .opt__key { background: var(--primary); color: #fff; }
.opt__mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.opt:disabled { cursor: default; }
.opt.is-good { border-color: var(--good); background: var(--good-soft); color: var(--good-ink); }
.opt.is-good .opt__key { background: var(--good); color: #fff; }
.opt.is-good .opt__mark { background: var(--good); color: #fff; animation: pop .45s var(--ease-spring) both; }
.opt.is-bad { border-color: var(--bad); background: var(--bad-soft); color: var(--bad-ink); }
.opt.is-bad .opt__key { background: var(--bad); color: #fff; }
.opt.is-bad .opt__mark { background: var(--bad); color: #fff; animation: pop .45s var(--ease-spring) both; }
.opt.is-dim { opacity: .5; }
.opt.is-picked { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
.opt.is-picked .opt__key { background: var(--primary); color: #fff; }
@keyframes pop { from { transform: scale(0); } }
.recall { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 18px; background: var(--bg-sunken); border: 1.5px dashed var(--line-strong); }
.recall p { display: flex; gap: 10px; color: var(--ink-2); font-weight: 600; }

.fb:empty { display: none; }
.fb__panel { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 16px; border-radius: 20px; border: 1.5px solid transparent; }
.fb__panel--good { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.fb__panel--bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.fb__head { display: flex; align-items: flex-start; gap: 12px; }
.fb__ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.fb__panel--good .fb__ico { background: var(--good); }
.fb__panel--bad .fb__ico { background: var(--bad); }
.fb__title { display: block; font-family: var(--font-display); font-size: 1.22rem; font-weight: 650; line-height: 1.5; }
.fb__panel--good .fb__title { color: var(--good-ink); }
.fb__panel--bad .fb__title { color: var(--bad-ink); }
.fb__answer { color: var(--ink); margin-top: 2px; }
.fb__answer span { color: var(--ink-2); }
.fb__text { color: var(--ink); line-height: 1.6; }
.fb__tip { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--bg-elev) 70%, transparent); color: var(--ink-2); font-size: .94rem; }
.fb__tip .ico { color: var(--gold-500); margin-top: 3px; }
.fb__note { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.fb__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.qimg { margin: 0; border-radius: 16px; overflow: hidden; background: var(--bg-sunken); max-width: 440px; }
.qimg img { width: 100%; max-height: 300px; object-fit: cover; }
.qimg figcaption { padding: 8px 12px; font-size: .8rem; color: var(--ink-3); }

.lesson { display: flex; flex-direction: column; gap: 22px; padding: clamp(20px, 3.4vw, 36px); border-radius: 28px; box-shadow: var(--shadow-2); }
.lesson__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* cartes mémoire */
.flashwrap { display: flex; flex-direction: column; gap: 18px; }
.flash { perspective: 1600px; cursor: pointer; outline: none; }
.flash:focus-visible .flash__inner { box-shadow: 0 0 0 3px var(--focus); border-radius: 28px; }
.flash__inner { display: grid; transform-style: preserve-3d; transition: transform .75s var(--ease-spring); }
.flash.is-flipped .flash__inner { transform: rotateY(180deg); }
.flash__face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.flash__front { background: linear-gradient(160deg, var(--bg-elev), color-mix(in srgb, var(--primary) 7%, var(--bg-elev))); }
.flash__back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--bg-elev), color-mix(in srgb, var(--good) 8%, var(--bg-elev))); justify-content: flex-start; }
.flash__hint { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .92rem; font-weight: 600; }
.flash__answer { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); font-weight: 600; line-height: 1.25; color: var(--good-ink); }
.flash__answers { display: flex; flex-wrap: wrap; gap: 8px; }
.flash__answers li { padding: 8px 14px; border-radius: 12px; background: var(--good-soft); color: var(--good-ink); font-weight: 650; }
.flash__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.flash__actions .btn { min-width: 170px; }

/* examen blanc */
.clock { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bg-elev); border: 1.5px solid var(--line-strong); font-weight: 750; font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.clock.is-low { border-color: var(--bad); color: var(--bad-ink); background: var(--bad-soft); animation: tick 1s steps(2) infinite; }
@keyframes tick { 50% { opacity: .72; } }
.examwrap { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.exam__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.examside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.examside__title { font-size: 1.05rem; }
.examnav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.examnav__n { height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: .88rem; background: var(--bg-sunken); color: var(--ink-3); font-variant-numeric: tabular-nums; transition: transform .15s, background .2s; position: relative; }
.examnav__n:hover { transform: scale(1.08); }
.examnav__n.is-done { background: var(--primary-soft); color: var(--primary-strong); }
.examnav__n.is-cur { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.examnav__n.is-flag::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--t2); }
.examside__legend { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--ink-3); }
.examside__legend li { display: flex; align-items: center; gap: 8px; }
.examside__legend i { width: 14px; height: 14px; border-radius: 5px; background: var(--bg-sunken); position: relative; }
.examside__legend i.is-done { background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.examside__legend i.is-flag::after { content: ""; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--t2); }
@media (max-width: 900px) { .examwrap { grid-template-columns: minmax(0, 1fr); } .examside { position: static; } .examnav { grid-template-columns: repeat(8, 1fr); } .run__head { grid-template-columns: auto 1fr; } .run--exam .run__extra { grid-column: 1 / -1; justify-content: space-between; } }
@media (max-width: 560px) { .exam__foot .btn span { font-size: .9rem; } .run__extra:empty { display: none; } }

/* ------------------------------------------------------------------ bilan de séance */

.results { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; padding: 32px 0 20px; }
html:not(.is-focus) .results { padding-top: 0; }
.results__hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 4vw, 40px); align-items: center; border-radius: 28px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.results__hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #2F5BEA 0 33.3%, #FDFBF7 33.3% 66.6%, #E8452F 66.6%); }
.results__ring { position: relative; display: grid; place-items: center; }
.results__num { font-size: 3.2rem; font-weight: 750; letter-spacing: -.04em; }
.results__den { font-size: .95rem; font-weight: 700; color: var(--ink-3); margin-top: 4px; }
.results__txt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.results__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.7rem); }
.results__sub { color: var(--ink-2); font-size: 1.04rem; }
.results__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.results__facts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--bg-sunken); font-size: .86rem; font-weight: 650; color: var(--ink-2); }
.stamp { position: absolute; right: -14px; bottom: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 10px; font-weight: 800; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-9deg); border: 2.5px solid currentColor; background: var(--bg-elev); animation: stamp .7s .9s var(--ease-spring) both; }
.stamp--good { color: var(--good); }
.stamp--wait { color: var(--ink-2); }
@keyframes stamp { from { opacity: 0; transform: rotate(-22deg) scale(2.4); } }
.results__step { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.results__step .stars__s .ico { width: 34px; height: 34px; }
.results__step .stars__s.is-on { animation: pop .6s var(--ease-spring) both; }
.results__step .stars__s.is-on:nth-child(2) { animation-delay: .18s; }
.results__step .stars__s.is-on:nth-child(3) { animation-delay: .36s; }
.results__badges { display: flex; flex-direction: column; gap: 12px; }
.results__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 640px) { .results__hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .results__facts { justify-content: center; } .results__actions .btn { flex: 1 1 100%; } .results { padding-top: 18px; } }
.review { display: flex; flex-direction: column; gap: 8px; }
.review__item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-elev); }
.review__item summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 600; }
.review__item summary::-webkit-details-marker { display: none; }
.review__item summary:hover { background: var(--bg-sunken); }
.review__mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.review__item.is-ok .review__mark { background: var(--good); }
.review__item.is-ko .review__mark { background: var(--bad); }
.review__chev { color: var(--ink-3); transition: transform .25s var(--ease-out); }
.review__item[open] .review__chev { transform: rotate(180deg); }
.review__body { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 16px 52px; }
.review__mine { color: var(--bad-ink); }
.review__good b { color: var(--good-ink); }
.review__mine span, .review__good span { color: var(--ink-3); font-weight: 600; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-sunken); }
.tab { min-height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 650; font-size: .88rem; color: var(--ink-2); }
.tab[aria-pressed="true"] { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-1); }

/* ------------------------------------------------------------------ progression */

.scorecard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; border-radius: 28px; }
.scorecard__main { display: flex; flex-direction: column; gap: 8px; }
.scorecard__fig { line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.scorecard__fig strong { font-family: var(--font-ui); font-size: clamp(3.6rem, 2.6rem + 4vw, 5.4rem); font-weight: 750; letter-spacing: -.05em; }
.scorecard__fig span { font-size: 1.5rem; font-weight: 650; color: var(--ink-3); }
.scorecard__label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; }
.scorecard__label .ico { color: var(--good); }
.scorecard__meter { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) { .scorecard { grid-template-columns: minmax(0, 1fr); } }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 6px; }
.tile__label { display: flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 650; color: var(--ink-3); }
.tile__value { font-size: 1.75rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.tile__sub { font-size: .84rem; color: var(--ink-3); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hard { display: flex; flex-direction: column; gap: 6px; }
.hard__row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; width: 100%; transition: background .2s; }
.hard__row:hover { background: var(--bg-sunken); }
.hard__q { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hard__n { font-size: .82rem; font-weight: 700; color: var(--bad-ink); background: var(--bad-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.hard__cta { margin-top: 10px; }
@media (max-width: 640px) { .hard__row { grid-template-columns: 1fr auto; } .hard__row .chip { display: none; } .hard__row > .ico { display: none; } .hard__q { white-space: normal; } }

/* ------------------------------------------------------------------ bibliothèque */

.toolbar { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; z-index: 12; padding: 12px 0; margin: -12px 0; background: linear-gradient(var(--bg) 88%, transparent); }
@media (max-width: 1023px) { .toolbar { top: 56px; } }
.search { display: flex; align-items: center; gap: 12px; padding: 0 18px; min-height: 54px; border-radius: 18px; background: var(--bg-elev); border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-1); color: var(--ink-3); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.search input { flex: 1; border: 0; background: none; outline: none; min-width: 0; font-size: 1.02rem; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 650; color: var(--ink-3); }
.filter .select { min-height: 40px; width: auto; border-radius: 12px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.qcount { font-weight: 700; color: var(--ink-2); font-size: .92rem; margin-bottom: -14px; }
.qlist { display: flex; flex-direction: column; gap: 6px; }
.qrow { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 16px; background: var(--bg-elev); border: 1px solid var(--line); transition: transform .18s var(--ease-out), border-color .18s, box-shadow .18s; }
.qrow:hover { transform: translateX(3px); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.qrow__n { min-width: 44px; height: 32px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center; font-weight: 750; font-size: .84rem; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--c) 15%, var(--bg-elev)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 40%, transparent); }
.qrow__q { font-weight: 600; line-height: 1.35; min-width: 0; }
.qrow__fav { color: var(--accent); fill: currentColor; }
.qrow__chev { color: var(--ink-3); }
.qmore { display: flex; justify-content: center; }
@media (max-width: 640px) { .qrow { grid-template-columns: auto 1fr auto; } .qrow .pill, .qrow__fav { display: none; } }
.qdetail { display: flex; flex-direction: column; gap: 14px; }
.qdetail__answer { padding: 14px 16px; border-radius: 16px; background: var(--good-soft); color: var(--good-ink); }
.qdetail__answer .kicker { color: var(--good-ink); opacity: .8; margin-bottom: 4px; }
.qdetail__answer p:not(.kicker), .qdetail__answer li { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.qdetail__answer ul { display: flex; flex-direction: column; gap: 4px; }
.qdetail__traps { font-size: .93rem; color: var(--ink-2); }
.qdetail__traps summary { cursor: pointer; font-weight: 650; }
.qdetail__traps ul { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; padding-left: 18px; list-style: disc; color: var(--ink-3); }
.qdetail__stats { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .88rem; }

/* ------------------------------------------------------------------ réglages */

.setblock { display: flex; flex-direction: column; gap: 18px; }
.setblock__head p { color: var(--ink-3); font-size: .92rem; margin-top: 4px; }
.account { display: flex; flex-direction: column; gap: 14px; }
.account__form { display: flex; flex-direction: column; gap: 12px; }
.account__form .btn { align-self: flex-start; }
.account__on { display: flex; flex-direction: column; gap: 16px; }
.account__who { display: flex; align-items: center; gap: 12px; }
.account__who > div { display: flex; flex-direction: column; }
.account__btns, .databtns { display: flex; flex-wrap: wrap; gap: 10px; }
.syncstate { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--good-ink); font-weight: 600; }
.syncstate--error { color: var(--warn-ink); }
.syncstate--syncing .ico { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.recovery { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 18px; border-radius: 16px; background: var(--bg-sunken); user-select: all; }
.profiles { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.profilerow { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); width: 100%; }
.profilerow.is-cur { background: var(--primary-soft); border-color: transparent; }
.profilerow > div { display: flex; flex-direction: column; line-height: 1.3; }
.profilerow span:not(.avatar) { font-size: .84rem; color: var(--ink-3); }
.legal { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.legal h3 { font-family: var(--font-ui); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }
.legal h3:first-child { margin-top: 0; }
.legal ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.legal a { color: var(--primary-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.about { display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); font-size: .95rem; }
.sources { display: flex; flex-direction: column; gap: 6px; }
.sources a, .credits a { color: var(--primary-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 5px; }
.sources span { color: var(--ink-3); }
.credits summary { cursor: pointer; font-weight: 650; }
.credits ul { margin: 10px 0; display: flex; flex-direction: column; gap: 5px; font-size: .86rem; color: var(--ink-3); }

/* ------------------------------------------------------------------ accueil des nouveaux utilisateurs */

.onb { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); min-height: 100dvh; background: var(--bg); }
.onb__art { position: relative; overflow: hidden; background: var(--hero-bg); isolation: isolate; }
.onb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; animation: kenburns 28s var(--ease-in-out) infinite alternate; }
.onb__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 20, 51, .05) 30%, rgba(12, 20, 51, .78) 100%); z-index: 1; }
.onb__art .aurora { z-index: -1; }
.onb__quote { position: absolute; left: clamp(24px, 4vw, 52px); bottom: clamp(24px, 5vw, 56px); z-index: 2; display: flex; flex-direction: column; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.1rem); line-height: 1.08; color: #fff; letter-spacing: -.02em; }
.onb__quote span { animation: quote 1s var(--ease-out) both; }
.onb__quote span:nth-child(1) { animation-delay: .35s; }
.onb__quote span:nth-child(2) { animation-delay: .6s; color: #FDFBF7; padding-left: .7em; }
.onb__quote span:nth-child(3) { animation-delay: .85s; padding-left: 1.4em; }
@keyframes quote { from { opacity: 0; transform: translateY(18px); } }
.onb__main { display: flex; flex-direction: column; padding: clamp(18px, 3vw, 34px) clamp(20px, 5vw, 72px); min-width: 0; min-height: 100dvh; }
.onb__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.onb__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.onb__mini { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; }
.onb__stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; max-width: 600px; width: 100%; margin: 0 auto; }
.onb__step { display: flex; flex-direction: column; gap: 18px; }
.onb__title { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.7rem); }
.onb__sub { color: var(--ink-2); font-size: 1.08rem; margin-top: -8px; }
.onb__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 600px; width: 100%; margin: 0 auto; }
.onb__dots { display: flex; gap: 7px; flex: 1; justify-content: center; min-width: 0; }
@media (max-width: 520px) { .onb__dots { display: none; } .onb__foot .btn--lg { padding: 0 20px; } }
.onb__dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: width .4s var(--ease-out), background .3s; }
.onb__dots i.is-on { width: 26px; background: var(--primary); }
.onb__dots i.is-done { background: color-mix(in srgb, var(--primary) 50%, var(--bg)); }
.onb__welcome { display: flex; flex-direction: column; gap: 20px; }
.onb__brand { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 650; }
.onb__brand .logo-mark__needle { animation: needle 3.2s var(--ease-in-out) infinite; }
.onb__hero { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.4rem); font-weight: 560; letter-spacing: -.03em; line-height: 1.02; }
.onb__hero em { font-style: italic; color: var(--primary); font-weight: 500; }
.onb__lead { font-size: 1.14rem; color: var(--ink-2); max-width: 50ch; }
.onb__points { display: flex; flex-direction: column; gap: 9px; }
.onb__points li { display: flex; align-items: center; gap: 11px; font-weight: 600; color: var(--ink-2); }
.onb__points .ico { color: #fff; background: var(--good); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.onb__legal { color: var(--ink-3); font-size: .86rem; }
.onb__legal .link { font-size: inherit; }
.onb__date { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-weight: 650; color: var(--ink-2); margin-top: 16px; }
.onb__date .input { width: auto; flex: 1; min-width: 180px; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; border-radius: 20px; background: var(--bg-elev); border: 1.5px solid var(--line-strong); transition: transform .2s var(--ease-out), border-color .2s, background .2s, box-shadow .2s; }
.choice:hover { transform: translateY(-2px); border-color: var(--primary); }
.choice[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary), 0 12px 26px -16px color-mix(in srgb, var(--primary) 90%, transparent); }
.choice__ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-sunken); color: var(--ink-2); transition: background .2s, color .2s; }
.choice[aria-checked="true"] .choice__ico { background: var(--primary); color: #fff; }
.choice__big { width: 60px; font-family: var(--font-display); font-size: 2.3rem; font-weight: 650; letter-spacing: -.03em; text-align: center; line-height: 1; }
.choice__txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.choice__txt strong { font-size: 1.06rem; }
.choice__txt span { color: var(--ink-3); font-size: .92rem; }
.choice__check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; transform: scale(0); transition: transform .35s var(--ease-spring); }
.choice[aria-checked="true"] .choice__check { transform: scale(1); }
.choice .tag { grid-column: 2; justify-self: start; margin-top: -8px; }
.brief { display: flex; flex-direction: column; gap: 20px; }
.brief__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.brief__num { padding: 18px 12px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 4px; }
.brief__num strong { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); font-weight: 650; letter-spacing: -.03em; line-height: 1; color: var(--primary); }
.brief__num span { font-size: .86rem; color: var(--ink-2); font-weight: 600; line-height: 1.3; }
.brief__themes { display: flex; flex-direction: column; gap: 10px; }
.brief__row { display: grid; grid-template-columns: 170px 1fr 28px; gap: 12px; align-items: center; font-size: .93rem; }
.brief__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.brief__bar { height: 14px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.brief__bar i { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--c); transition: width 1s var(--ease-out); }
.brief__row b { text-align: right; font-variant-numeric: tabular-nums; }
.brief__note { display: flex; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--bg-sunken); color: var(--ink-2); font-size: .93rem; }
.brief__note .ico { margin-top: 3px; }
.method { display: flex; flex-direction: column; gap: 12px; }
.method__card { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.method__n { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; background: var(--c); color: #fff; }
.method__card p { color: var(--ink-2); font-size: .96rem; margin-top: 4px; }
.method__gaps { display: flex; align-items: flex-end; gap: 6px; margin-top: 12px; }
.method__gaps span { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; color: var(--ink-3); flex: calc(1 + var(--i) * .7); font-variant-numeric: tabular-nums; }
.method__gaps i { display: block; width: 100%; height: 8px; border-radius: 999px; background: var(--c); opacity: calc(.35 + var(--i) * .16); animation: grow-x .8s calc(.5s + var(--i) * .14s) var(--ease-out) both; transform-origin: left; }
.ready { display: flex; flex-direction: column; gap: 18px; }
.ready__list { display: flex; flex-direction: column; gap: 10px; }
.ready__list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.ready__list div { display: flex; flex-direction: column; line-height: 1.35; }
.ready__list small { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ready__list span { color: var(--ink-3); font-size: .9rem; }
.ready__ico { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); }
.ready__hint { color: var(--ink-2); font-weight: 600; }
.ready__skip { align-self: flex-start; }
@media (max-width: 900px) {
  .onb { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .onb__art { height: 168px; }
  .onb__quote { font-size: 1.5rem; flex-direction: row; gap: .5em; left: 18px; bottom: 14px; flex-wrap: wrap; }
  .onb__quote span:nth-child(n) { padding-left: 0; }
  .onb__main { min-height: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .onb__stage { justify-content: flex-start; padding: 22px 0; }
  .onb__foot { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 26%); padding: 18px 0 6px; }
  .brief__row { grid-template-columns: 124px 1fr 24px; font-size: .86rem; }
}

/* ------------------------------------------------------------------ ajustements pour les petits écrans */

.run__extra:empty { display: none; }
@media (max-width: 900px) {
  .run__head { grid-template-columns: auto minmax(0, 1fr); }
  .run__extra { grid-column: 1 / -1; justify-content: flex-end; }
  .run--exam .run__extra { justify-content: space-between; }
}
@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; white-space: normal; text-align: center; min-height: 56px; padding: 10px 20px; font-size: 1.02rem; }
  .q__topic { display: none; }
  .q { padding: 18px 16px 20px; border-radius: 24px; gap: 16px; }
  .opt { padding: 13px 12px; gap: 12px; font-size: 1.02rem; }
  .fb__panel { padding: 16px 14px 14px; }
  .fb__foot .btn--lg { flex: 1; }
  .examwrap .q__head .btn span { display: none; }
  .examwrap .q__head .btn { padding: 0 12px; }
  .flash__face { min-height: 260px; }
  .flash__actions .btn { min-width: 0; flex: 1; }
  .lesson__foot .btn { width: 100%; }
  .results__actions { justify-content: stretch; }
  .tiles { gap: 10px; }
  .tile { padding: 14px; }
  .tile__value { font-size: 1.45rem; }
  .sec { margin-bottom: 12px; }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode--featured .mode__txt strong { font-size: 1.25rem; }
  .programs { grid-template-columns: minmax(0, 1fr); }
  .chapter__head { padding: 14px 16px; }
  .steps::before { left: 35px; }
  .step__btn { gap: 12px; padding: 10px 8px; }
  .step__node { margin-left: 8px; }
  .filters .filter span { display: none; }
  .filters .filter .select { max-width: 44vw; }
}

/* rien ne déborde en largeur : les boutons longs passent à la ligne */
.main { overflow-x: clip; }
.proghead__cta .btn, .themehead__cta .btn, .results__actions .btn, .hard__cta .btn, .databtns .btn, .account__btns .btn { white-space: normal; max-width: 100%; min-width: 0; text-align: left; padding-top: 8px; padding-bottom: 8px; }
.proghead__prog { grid-template-columns: minmax(0, 260px) auto; }
@media (max-width: 560px) {
  .proghead__cta .btn, .themehead__cta .btn { width: 100%; justify-content: flex-start; }
  .proghead__prog { grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
}
