:root {
    --ink: #102433;
    --muted: #637684;
    --blue-950: #07334f;
    --blue-900: #0a4166;
    --blue-800: #0e567f;
    --blue-700: #13709f;
    --blue-500: #5bb8ee;
    --blue-100: #dff3ff;
    --blue-50: #f2faff;
    --red: #e93451;
    --cream: #fffaf0;
    --paper: #ffffff;
    --line: #dce7ed;
    --yellow: #ffd970;
    --green: #2b9a70;
    --shadow: 0 18px 45px rgba(9, 62, 96, .13);
    --shadow-soft: 0 8px 22px rgba(9, 62, 96, .09);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 15px;
    --shell: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(91,184,238,.14), transparent 28%),
        linear-gradient(180deg, #f8fcff 0, #fff 32%, #f7fbfd 100%);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

.shell { width: min(calc(100% - 36px), var(--shell)); margin-inline: auto; }
.sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(248,252,255,.86);
    border-bottom: 1px solid rgba(14,86,127,.09);
    backdrop-filter: blur(14px);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; padding: 5px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-soft); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; transform: none; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { color: var(--blue-950); letter-spacing: .08em; font-size: .96rem; }
.brand-copy small { color: var(--muted); margin-top: 5px; font-size: .72rem; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.text-button, .icon-button, .back-button { border: 0; background: transparent; cursor: pointer; font-weight: 800; }
.text-button { color: var(--blue-800); padding: 10px 12px; }
.pill-link { text-decoration: none; background: var(--blue-900); color: white; border-radius: 999px; padding: 11px 17px; font-size: .86rem; font-weight: 800; box-shadow: var(--shadow-soft); }

.view { display: none; min-height: calc(100vh - 146px); }
.view.is-active { display: block; animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero-wrap { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue-950), var(--blue-800)); color: white; }
.hero-wrap::before,
.hero-wrap::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; }
.hero-wrap::before { width: 420px; height: 420px; right: -145px; top: -220px; }
.hero-wrap::after { width: 190px; height: 190px; left: 44%; bottom: -130px; }
.hero-grid { position: relative; z-index: 1; min-height: 405px; display: grid; grid-template-columns: 1.45fr .55fr; gap: 70px; align-items: center; padding-block: 70px; }
.eyebrow, .section-kicker { display: block; color: var(--blue-500); font-weight: 900; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { margin: 12px 0 18px; font-size: clamp(2.65rem, 6vw, 5.4rem); line-height: .97; letter-spacing: -.055em; }
.hero-copy h1 em { color: var(--yellow); font-style: normal; }
.hero-copy p { max-width: 650px; color: rgba(255,255,255,.83); font-size: clamp(.98rem, 1.4vw, 1.12rem); line-height: 1.9; margin: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.hero-badges span { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.09); padding: 8px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.today-card { justify-self: end; width: min(100%, 280px); padding: 28px; border-radius: var(--radius-xl); background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 26px 60px rgba(0,0,0,.19); transform: rotate(2deg); }
.today-label { display: block; color: var(--blue-700); font-weight: 900; letter-spacing: .11em; }
.today-primary { display: flex; align-items: baseline; gap: 6px; }
.today-primary strong { display: inline-block; margin-top: 7px; color: var(--blue-950); font-size: 4.1rem; line-height: 1; }
.today-primary span { font-weight: 900; }
.today-secondary { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; color: var(--muted); font-weight: 800; }
.today-secondary strong { color: var(--blue-800); font-size: 1.35rem; line-height: 1; }
.mini-progress { height: 8px; margin: 22px 0 12px; border-radius: 999px; background: var(--blue-100); overflow: hidden; }
.mini-progress span { display: block; width: 0; height: 100%; background: var(--red); border-radius: inherit; transition: width .3s ease; }
.today-card small { display: block; color: var(--muted); line-height: 1.6; }

.content-shell { padding-block: 42px 70px; }
.toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 42px; }
.search-box { min-width: min(100%, 420px); display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; box-shadow: var(--shadow-soft); }
.search-box svg { width: 20px; fill: none; stroke: var(--blue-800); stroke-width: 2; stroke-linecap: round; }
.search-box input { width: 100%; height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 9px 12px; cursor: pointer; color: var(--muted); font-weight: 800; box-shadow: 0 3px 10px rgba(9,62,96,.04); }
.filter-chip small { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--blue-50); color: var(--blue-800); font-size: .66rem; text-align: center; }
.filter-chip.is-empty { opacity: .58; }
.filter-chip.is-active { background: var(--blue-900); color: white; border-color: var(--blue-900); }
.filter-chip.is-active small { background: rgba(255,255,255,.16); color: white; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2, .conversion-band h2 { margin: 6px 0 0; color: var(--blue-950); font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.result-count { color: var(--muted); font-weight: 800; font-size: .86rem; }
.deck-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.deck-card { position: relative; min-height: 285px; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.deck-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.deck-accent { height: 9px; background: var(--deck-accent, var(--blue-700)); }
.deck-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.deck-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.level-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; background: var(--blue-100); color: var(--blue-900); font-size: .73rem; font-weight: 900; }
.deck-count { color: var(--muted); font-size: .8rem; font-weight: 800; }
.deck-card h3 { margin: 18px 0 9px; color: var(--blue-950); font-size: 1.36rem; line-height: 1.35; }
.deck-card p { flex: 1; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.75; }
.deck-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.deck-tags span { background: var(--blue-50); color: var(--blue-800); padding: 5px 8px; border-radius: 7px; font-size: .7rem; font-weight: 800; }
.deck-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.deck-progress { flex: 1; }
.deck-progress small { display: block; color: var(--muted); margin-bottom: 6px; }
.deck-progress-bar { height: 6px; background: #edf3f6; overflow: hidden; border-radius: 999px; }
.deck-progress-bar span { display: block; height: 100%; width: 0; background: var(--deck-accent, var(--blue-700)); border-radius: inherit; }
.study-button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 10px 15px; background: var(--blue-900); color: white; cursor: pointer; font-weight: 900; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); background: white; }

.conversion-band { margin-top: 55px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 32px 35px; border-radius: var(--radius-xl); background: var(--cream); border: 1px solid #f0e4c9; box-shadow: var(--shadow-soft); }
.conversion-band p { margin: 10px 0 0; color: var(--muted); }
.conversion-band a { background: var(--red); color: white; text-decoration: none; font-weight: 900; border-radius: 999px; padding: 14px 20px; white-space: nowrap; }

.study-shell { max-width: 850px; padding-block: 30px 65px; }
.study-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.back-button { justify-self: start; color: var(--blue-800); padding: 8px 0; }
.study-title-wrap { min-width: 0; text-align: center; }
.study-title-wrap h1 { margin: 6px 0 0; color: var(--blue-950); font-size: clamp(1.1rem, 3vw, 1.55rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-button { justify-self: end; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; box-shadow: var(--shadow-soft); }
.study-progress-wrap { margin: 26px 0 22px; }
.study-progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; font-weight: 900; }
.study-progress { height: 9px; margin-top: 9px; background: #e7f0f4; border-radius: 999px; overflow: hidden; }
.study-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-700), var(--blue-500)); transition: width .25s ease; }

.study-stage { perspective: 1600px; }
.flashcard { position: relative; min-height: 485px; outline: none; cursor: pointer; }
.flashcard:focus-visible { outline: 4px solid rgba(91,184,238,.38); outline-offset: 8px; border-radius: var(--radius-xl); }
.card-inner { position: relative; width: 100%; min-height: inherit; transform-style: preserve-3d; transition: transform .56s cubic-bezier(.2,.75,.2,1); }
.flashcard.is-flipped .card-inner { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: var(--radius-xl); backface-visibility: hidden; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(14,86,127,.14); }
.card-front { background: linear-gradient(145deg, #fff, #f5fbff); pointer-events: auto; }
.card-back { background: linear-gradient(145deg, var(--blue-950), var(--blue-800)); color: white; transform: rotateY(180deg); pointer-events: none; }
.flashcard.is-flipped .card-front { pointer-events: none; }
.flashcard.is-flipped .card-back { pointer-events: auto; }
.card-topline { display: flex; justify-content: space-between; align-items: center; padding: 22px 25px 0; color: var(--muted); font-size: .76rem; font-weight: 900; }
.card-back .card-topline { color: rgba(255,255,255,.7); }
.round-action { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; box-shadow: var(--shadow-soft); }
.card-back .round-action { background: rgba(255,255,255,.12); color: white; border-color: rgba(255,255,255,.2); }
.card-center { flex: 1; display: grid; align-content: center; justify-items: center; text-align: center; padding: 30px; }
.card-prompt, .answer-label { color: var(--blue-700); font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.card-center h2, .card-answer h2 { margin: 12px 0; letter-spacing: -.04em; }
.card-center h2 { color: var(--blue-950); font-size: clamp(2.65rem, 8vw, 5.5rem); line-height: 1.05; }
.card-hint { color: var(--muted); margin: 4px 0 0; }
.flip-hint { padding: 17px; text-align: center; background: rgba(14,86,127,.05); color: var(--muted); font-size: .78rem; font-weight: 800; }
.card-back .flip-hint { color: rgba(255,255,255,.7); background: rgba(0,0,0,.08); }
.card-answer { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 38px 28px; text-align: center; overflow-y: auto; }
.card-back .answer-label { color: var(--yellow); }
.card-answer h2 { font-size: clamp(1.9rem, 6vw, 3.6rem); }
.card-reading { margin: -3px 0 20px; color: rgba(255,255,255,.72); }
.example-box { width: min(100%, 620px); display: grid; gap: 7px; padding: 18px 20px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius-md); }
.example-box strong { font-size: 1.05rem; line-height: 1.6; }
.example-box span { color: rgba(255,255,255,.74); font-size: .88rem; }
.card-note { width: min(100%, 620px); color: rgba(255,255,255,.8); font-size: .82rem; line-height: 1.7; margin: 16px 0 0; }
.resource-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.resource-links a { position: relative; z-index: 5; display: inline-flex; align-items: center; gap: 6px; color: white; text-decoration: none; padding: 8px 11px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .75rem; font-weight: 900; cursor: pointer; touch-action: manipulation; }
.resource-links a:hover { background: rgba(255,255,255,.2); }

.reveal-area { display: grid; justify-items: center; gap: 8px; margin-top: 22px; }
.primary-button, .secondary-button, .danger-button { border-radius: 999px; padding: 13px 22px; cursor: pointer; font-weight: 900; }
.primary-button { border: 0; background: var(--blue-900); color: white; box-shadow: var(--shadow-soft); }
.secondary-button { border: 1px solid var(--line); background: white; color: var(--blue-900); }
.danger-button { border: 1px solid #f2bdc6; background: #fff3f5; color: #b71e37; }
.reveal-area small, .keyboard-help { color: var(--muted); }
.rating-area { margin-top: 21px; text-align: center; }
.rating-area > p { margin: 0 0 11px; color: var(--muted); font-weight: 800; }
.rating-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rating { border: 1px solid var(--line); border-radius: var(--radius-md); background: white; min-height: 73px; display: grid; align-content: center; gap: 4px; cursor: pointer; box-shadow: 0 4px 12px rgba(9,62,96,.06); transition: transform .15s ease, border-color .15s ease; }
.rating:hover { transform: translateY(-2px); border-color: var(--blue-500); }
.rating strong { font-size: .86rem; }
.rating span { color: var(--muted); font-size: .7rem; }
.rating.again strong { color: #c62942; }
.rating.hard strong { color: #b06710; }
.rating.good strong { color: var(--blue-700); }
.rating.easy strong { color: var(--green); }
.keyboard-help { display: block; margin-top: 10px; font-size: .72rem; }

.complete-shell { max-width: 850px; padding-block: 55px 75px; }
.complete-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: clamp(30px, 7vw, 65px); text-align: center; }
.complete-icon { width: 75px; height: 75px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: #e2f7ef; color: var(--green); font-size: 2.3rem; font-weight: 900; }
.complete-card h1 { color: var(--blue-950); margin: 12px 0; font-size: clamp(2rem, 5vw, 3.4rem); }
.complete-card > p { color: var(--muted); line-height: 1.8; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0; }
.stats-grid div { padding: 18px; border-radius: var(--radius-md); background: var(--blue-50); }
.stats-grid strong { display: block; color: var(--blue-900); font-size: 1.9rem; }
.stats-grid span { color: var(--muted); font-size: .76rem; font-weight: 800; }
.complete-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.complete-resources { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.complete-resources a { text-decoration: none; color: var(--blue-900); font-weight: 900; border-bottom: 2px solid var(--blue-100); padding-bottom: 2px; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,30,46,.58); backdrop-filter: blur(5px); }
.modal-panel { position: relative; width: min(100%, 540px); max-height: calc(100vh - 36px); overflow-y: auto; background: white; border-radius: var(--radius-xl); box-shadow: 0 30px 80px rgba(0,0,0,.3); padding: 32px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--blue-50); color: var(--blue-900); cursor: pointer; font-size: 1.4rem; }
.modal-panel h2 { margin: 7px 0 22px; color: var(--blue-950); }
.setting-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.setting-row span { display: grid; gap: 4px; }
.setting-row small { color: var(--muted); line-height: 1.45; }
.setting-row input { width: 22px; height: 22px; accent-color: var(--blue-800); }
.data-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.data-actions .secondary-button, .data-actions .danger-button { font-size: .78rem; padding: 10px 13px; }
.file-button { display: inline-flex; align-items: center; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.privacy-note { margin: 18px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.65; }

.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .74rem; }
.footer-inner nav { display: flex; gap: 15px; }
.footer-inner a { text-decoration: none; font-weight: 800; color: var(--blue-800); }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr .6fr; gap: 30px; }
    .deck-grid { grid-template-columns: repeat(2, 1fr); }
    .toolbar { align-items: stretch; flex-direction: column; }
    .filter-chips { justify-content: flex-start; }
}
@media (max-width: 650px) {
    .shell { width: min(calc(100% - 24px), var(--shell)); }
    .header-inner { min-height: 64px; }
    .brand-copy small, .text-button { display: none; }
    .brand-mark { width: 42px; height: 42px; flex-basis: 42px; padding: 4px; }
    .pill-link { padding: 9px 12px; font-size: .72rem; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding-block: 50px; }
    .hero-copy h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
    .today-card { justify-self: stretch; width: 100%; transform: none; padding: 22px; }
    .today-primary strong { font-size: 3rem; }
    .today-secondary { margin-top: 8px; }
    .deck-grid { grid-template-columns: 1fr; }
    .conversion-band { grid-template-columns: 1fr; padding: 27px 23px; }
    .conversion-band a { text-align: center; }
    .study-shell { padding-top: 20px; }
    .study-topbar { grid-template-columns: auto 1fr auto; }
    .back-button { font-size: 0; }
    .back-button span { font-size: 1.4rem; }
    .flashcard { min-height: 455px; }
    .card-center { padding: 25px 18px; }
    .card-center h2 { font-size: clamp(2.4rem, 15vw, 4.4rem); }
    .card-answer { padding: 15px 20px 22px; }
    .rating-grid { grid-template-columns: repeat(2, 1fr); }
    .keyboard-help { display: none; }
    .stats-grid { gap: 7px; }
    .stats-grid div { padding: 15px 7px; }
    .stats-grid strong { font-size: 1.45rem; }
    .footer-inner { padding-block: 20px; flex-direction: column; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* v1.1 — classement par niveau de DELF/仏検 et message de sauvegarde */
.deck-groups { display: grid; gap: 42px; }
.deck-group { min-width: 0; }
.deck-group-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}
.deck-group-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.deck-group-heading h3 { margin: 0; color: var(--blue-950); font-size: 1.12rem; }
.deck-group-heading > span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.kentei-number {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--blue-900);
    color: #fff;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .02em;
}
.deck-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cefr-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
    font-size: .69rem;
    font-weight: 900;
}

.notice-panel { width: min(100%, 570px); text-align: left; }
.notice-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 19px;
    background: var(--blue-100);
    color: var(--blue-900);
    font-size: 2rem;
    font-weight: 900;
}
.notice-panel h2 { margin-bottom: 13px; font-size: clamp(1.55rem, 5vw, 2.15rem); }
.notice-panel > p { color: var(--muted); line-height: 1.75; }
.notice-panel > p strong { color: var(--blue-950); }
.notice-list {
    display: grid;
    gap: 9px;
    margin: 20px 0;
    padding: 17px 18px 17px 38px;
    border-radius: var(--radius-md);
    background: var(--blue-50);
    color: var(--ink);
    line-height: 1.65;
}
.notice-tip {
    padding-left: 13px;
    border-left: 4px solid var(--yellow);
    font-size: .86rem;
}
.notice-accept { width: 100%; margin-top: 12px; min-height: 50px; }

@media (max-width: 650px) {
    .brand { gap: 9px; }
    .brand-copy strong { font-size: .82rem; letter-spacing: .06em; }
    .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
    .filter-chip { flex: 0 0 auto; }
    .deck-groups { gap: 34px; }
    .deck-group-heading { align-items: start; }
    .deck-group-heading > div { display: grid; gap: 7px; }
    .notice-panel { padding: 27px 22px; }
}

/* v1.1.0 — navigation, aide mobile et support du projet */
.app-menu {
    position: relative;
    z-index: 45;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.app-menu-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.game-tabs,
.site-shortcuts {
    display: flex;
    align-items: center;
    gap: 8px;
}
.game-tab {
    min-height: 46px;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 8px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-align: left;
}
.game-tab > span {
    grid-row: 1 / 3;
    font-size: 1.1rem;
}
.game-tab strong {
    color: var(--blue-950);
    font-size: .84rem;
    line-height: 1.1;
}
.game-tab small {
    font-size: .64rem;
    line-height: 1.1;
}
.game-tab:hover,
.game-tab.is-active {
    border-color: var(--line);
    background: var(--blue-50);
}
.game-tab.is-active {
    box-shadow: inset 0 -3px 0 var(--blue-700);
}
.site-shortcuts a,
.help-shortcut {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--blue-800);
    text-decoration: none;
    font-size: .76rem;
    font-weight: 900;
    cursor: pointer;
}
.site-shortcuts a:hover,
.help-shortcut:hover {
    border-color: var(--line);
    background: var(--blue-50);
}
.site-shortcuts .support-link {
    border-color: #f0dfb9;
    background: var(--cream);
    color: #845315;
}
.help-shortcut {
    width: 36px;
    padding: 0;
    border-color: var(--line);
    background: #fff;
    font-size: 1rem;
}

.coming-soon-shell {
    max-width: 900px;
    padding-block: 62px 82px;
}
.coming-soon-card {
    padding: clamp(30px, 7vw, 70px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}
.coming-soon-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 24px;
    background: var(--blue-100);
    color: var(--blue-900);
    font-size: 2.2rem;
}
.coming-soon-card h1 {
    margin: 10px 0 14px;
    color: var(--blue-950);
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 1;
}
.coming-soon-card h1 small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: .27em;
    letter-spacing: .08em;
}
.coming-soon-card > p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.9;
}
.coming-soon-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 28px 0;
}
.coming-soon-features span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-800);
    font-size: .78rem;
    font-weight: 900;
}
.coming-soon-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.coming-soon-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sound-status {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    margin: 18px 0 4px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 5px 15px rgba(9,62,96,.05);
}
.sound-status[data-state="ready"] {
    border-color: #bfe6d7;
    background: #f2fbf7;
}
.sound-status[data-state="error"] {
    border-color: #f1bec8;
    background: #fff5f7;
}
.sound-status[data-state="playing"] {
    border-color: #b6ddf4;
    background: var(--blue-50);
}
.sound-status-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--blue-100);
}
.sound-status > div:nth-child(2) {
    display: grid;
    gap: 3px;
}
.sound-status strong {
    color: var(--blue-950);
    font-size: .84rem;
}
.sound-status small {
    color: var(--muted);
    line-height: 1.45;
}
.sound-status-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}
.sound-enable-button,
.sound-help-button {
    min-height: 36px;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: .74rem;
    font-weight: 900;
}
.sound-enable-button {
    border: 0;
    background: var(--blue-900);
    color: #fff;
}
.sound-help-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--blue-800);
}
.setting-test-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}
.setting-test-row > span {
    display: grid;
    gap: 4px;
}
.setting-test-row small {
    color: var(--muted);
    line-height: 1.45;
}
.setting-test-row .secondary-button {
    padding: 9px 13px;
    font-size: .75rem;
}

.help-panel {
    width: min(100%, 690px);
}
.help-section {
    padding: 19px 0;
    border-top: 1px solid var(--line);
}
.help-section h3 {
    margin: 0 0 10px;
    color: var(--blue-950);
    font-size: 1rem;
}
.help-section p,
.help-section li {
    color: var(--muted);
    line-height: 1.75;
}
.help-section ol,
.help-section ul {
    display: grid;
    gap: 7px;
    margin: 0 0 16px;
    padding-left: 24px;
}
.help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.help-links a {
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-900);
    text-decoration: none;
    font-size: .76rem;
    font-weight: 900;
}
.app-toast {
    position: fixed;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 160;
    width: min(calc(100% - 28px), 520px);
    transform: translateX(-50%);
    padding: 12px 15px;
    border-radius: 14px;
    background: var(--blue-950);
    color: #fff;
    box-shadow: 0 18px 42px rgba(0,0,0,.25);
    text-align: center;
    font-size: .82rem;
    font-weight: 800;
}
.app-toast.is-error {
    background: #9d2136;
}

@media (max-width: 850px) {
    .app-menu-inner {
        align-items: stretch;
        flex-direction: column;
        padding-block: 9px;
        gap: 7px;
    }
    .game-tabs,
    .site-shortcuts {
        width: 100%;
    }
    .game-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .game-tab {
        justify-content: center;
    }
    .site-shortcuts {
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }
    .site-shortcuts a,
    .help-shortcut {
        flex: 0 0 auto;
    }
}

@media (max-width: 650px) {
    .header-actions .text-button:first-child { display: none; }
    .app-menu .shell { width: min(calc(100% - 18px), var(--shell)); }
    .game-tab { min-height: 43px; padding: 6px 9px; }
    .site-shortcuts a { font-size: .71rem; padding: 6px 9px; }
    .sound-status {
        grid-template-columns: auto 1fr;
        align-items: start;
        margin-top: 14px;
        padding: 12px;
    }
    .sound-status-actions {
        grid-column: 1 / -1;
        width: 100%;
    }
    .sound-enable-button,
    .sound-help-button {
        flex: 1;
    }
    .coming-soon-shell { padding-block: 36px 58px; }
    .coming-soon-card { padding: 30px 20px; }
    .help-panel { padding: 27px 21px; }
    .setting-test-row { grid-template-columns: 1fr; gap: 10px; }
}

/* 1.4.0 — parcours virtuel 仏検5級 complet */
.deck-card.is-collection {
    border-width: 2px;
    border-color: color-mix(in srgb, var(--deck-accent) 45%, var(--line));
    background: linear-gradient(180deg, color-mix(in srgb, var(--deck-accent) 8%, white), var(--paper) 42%);
}
.deck-card.is-collection .study-button { background: var(--deck-accent, var(--blue-900)); }
.complete-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff4c7;
    color: #735100;
    border: 1px solid #ead48a;
    font-size: .69rem;
    font-weight: 900;
}


/* v1.6.0 — navigation par objectif */
.browse-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.browse-mode {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 11px;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-align: left;
}
.browse-mode > span { grid-row: 1 / 3; font-size: 1.2rem; color: var(--blue-700); }
.browse-mode strong { color: var(--blue-950); font-size: .9rem; }
.browse-mode small { margin-top: 3px; font-size: .7rem; line-height: 1.35; }
.browse-mode:hover { background: var(--blue-50); }
.browse-mode.is-active {
    border-color: var(--blue-100);
    background: var(--blue-900);
    color: rgba(255,255,255,.78);
    box-shadow: 0 7px 18px rgba(9,62,96,.13);
}
.browse-mode.is-active > span,
.browse-mode.is-active strong { color: #fff; }
.objective-pill { background: #fff0d2; color: #80500c; }
.deck-card.is-collection .deck-count { white-space: nowrap; }

@media (max-width: 650px) {
    .browse-switch { grid-template-columns: 1fr; }
    .browse-mode { padding: 12px 14px; }
}

/* v1.7.0 — messages NORUBI entre les cartes */
.promotion-panel {
    width: min(100%, 570px);
    padding: clamp(30px, 7vw, 50px);
    text-align: center;
    border: 1px solid rgba(17, 97, 139, .14);
}
.promotion-label {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-800);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.promotion-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 22px auto 12px;
    border-radius: 24px;
    background: var(--blue-900);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 14px 30px rgba(8, 67, 104, .18);
}
.promotion-panel h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.45rem, 5vw, 2.15rem);
    line-height: 1.35;
}
.promotion-panel > p {
    margin: 0 auto;
    max-width: 450px;
    color: var(--muted);
    line-height: 1.8;
}
.promotion-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}
.promotion-actions a { text-decoration: none; }
.promotion-panel > small {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: .67rem;
    line-height: 1.55;
}
@media (max-width: 520px) {
    .promotion-panel { padding: 32px 20px 25px; }
    .promotion-actions { flex-direction: column; }
    .promotion-actions .primary-button,
    .promotion-actions .secondary-button { width: 100%; }
}

/* v1.8.0 — lien unique, mode concentration et synchronisation facultative */
.study-top-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
}
.focus-mode-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    background: #fff;
    color: var(--blue-900);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 900;
}
.focus-mode-button.is-active {
    background: var(--blue-950);
    border-color: var(--blue-950);
    color: #fff;
}
.focus-exit-button {
    position: fixed;
    z-index: 90;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    min-height: 40px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(10,20,29,.88);
    color: rgba(255,255,255,.88);
    cursor: pointer;
    font-size: .76rem;
    font-weight: 900;
    backdrop-filter: blur(12px);
}
.resource-links a { max-width: min(100%, 540px); }

.account-sync-card {
    margin: 22px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--blue-50);
}
.account-sync-card h3 { margin: 5px 0 10px; color: var(--blue-950); }
.account-sync-card p { color: var(--muted); line-height: 1.7; }
.compact-setting-row { margin: 12px 0; padding: 12px 0; background: transparent; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 13px; }
.account-actions a { text-decoration: none; text-align: center; }
.text-link-button { color: var(--blue-800); font-weight: 900; padding: 10px 5px; }
.account-sync-status { display: block; margin-top: 12px; color: var(--muted); line-height: 1.6; }
.account-sync-status.is-error { color: #b71e37; }

body.is-focus-mode {
    color-scheme: dark;
    background: #050b10;
    color: #edf6fb;
}
body.is-focus-mode .site-header,
body.is-focus-mode .app-menu,
body.is-focus-mode .site-footer,
body.is-focus-mode .study-topbar,
body.is-focus-mode .study-progress-wrap,
body.is-focus-mode .sound-status {
    display: none !important;
}
body.is-focus-mode #studyView {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 18%, rgba(19,112,159,.18), transparent 34%),
        #050b10;
}
body.is-focus-mode .study-shell {
    width: min(calc(100% - 26px), 790px);
    max-width: 790px;
    padding-top: max(70px, calc(env(safe-area-inset-top) + 62px));
    padding-bottom: max(34px, env(safe-area-inset-bottom));
}
body.is-focus-mode .flashcard { min-height: min(560px, 66vh); }
body.is-focus-mode .card-face {
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 24px 70px rgba(0,0,0,.48);
}
body.is-focus-mode .card-front {
    background: linear-gradient(145deg, #111d26, #081119);
    color: #fff;
}
body.is-focus-mode .card-back {
    background: linear-gradient(145deg, #0a3550, #071e2e);
}
body.is-focus-mode .card-front .card-topline,
body.is-focus-mode .card-front .card-hint,
body.is-focus-mode .card-front .flip-hint { color: rgba(255,255,255,.65); }
body.is-focus-mode .card-front .card-center h2 { color: #fff; }
body.is-focus-mode .card-front .card-prompt { color: #86d3ff; }
body.is-focus-mode .card-front .round-action {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.18);
    box-shadow: none;
}
body.is-focus-mode .card-front .flip-hint { background: rgba(255,255,255,.035); }
body.is-focus-mode .resource-links { display: none !important; }
body.is-focus-mode .reveal-area { margin-top: 18px; }
body.is-focus-mode .reveal-area small,
body.is-focus-mode .rating-area > p,
body.is-focus-mode .keyboard-help { display: none; }
body.is-focus-mode .primary-button {
    background: #edf6fb;
    color: #07131c;
    box-shadow: none;
}
body.is-focus-mode .rating-area { margin-top: 17px; }
body.is-focus-mode .rating {
    border-color: rgba(255,255,255,.12);
    background: #101a22;
    color: #edf6fb;
    box-shadow: none;
}
body.is-focus-mode .rating span { color: rgba(255,255,255,.58); }
body.is-focus-mode .rating.again { border-color: rgba(233,52,81,.46); }
body.is-focus-mode .rating.hard { border-color: rgba(255,217,112,.42); }
body.is-focus-mode .rating.good,
body.is-focus-mode .rating.easy { border-color: rgba(91,184,238,.42); }
body.is-focus-mode .promotion-modal .modal-backdrop { background: rgba(0,0,0,.88); }
body.is-focus-mode .promotion-panel {
    background: #0c1720;
    color: #edf6fb;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 28px 90px rgba(0,0,0,.6);
}
body.is-focus-mode .promotion-panel > p,
body.is-focus-mode .promotion-panel > small { color: rgba(255,255,255,.68); }
body.is-focus-mode .promotion-label { background: rgba(91,184,238,.12); color: #9edbff; }
body.is-focus-mode .promotion-icon { background: #edf6fb; color: #07131c; box-shadow: none; }
body.is-focus-mode .promotion-panel .secondary-button {
    background: transparent;
    color: #edf6fb;
    border-color: rgba(255,255,255,.2);
}

@media (max-width: 650px) {
    .study-top-actions { gap: 6px; }
    .focus-mode-button { width: 42px; justify-content: center; padding: 0; font-size: 0; }
    .focus-mode-button span { font-size: 1rem; }
    .account-actions { flex-direction: column; align-items: stretch; }
    .account-actions .primary-button,
    .account-actions .secondary-button { width: 100%; }
    body.is-focus-mode .study-shell { width: min(calc(100% - 16px), 790px); }
    body.is-focus-mode .flashcard { min-height: min(520px, 64vh); }
}

/* v1.9.0 — reprise, catégories virtuelles, focus clair/sombre et transitions sûres */
.today-card {
    appearance: none;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.today-card:hover,
.today-card:focus-visible {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 30px 70px rgba(0,0,0,.23);
    outline: 4px solid rgba(91,184,238,.34);
    outline-offset: 4px;
}
.today-card.has-review .today-primary strong { color: var(--red); }
.today-card small::after { content: '  →'; color: var(--blue-700); font-weight: 900; }

.account-header-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
    color: var(--blue-900);
    text-decoration: none;
    font-size: .76rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}
.account-header-button.is-register { background: var(--blue-50); }
.account-benefit {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #e6f7ef;
    color: #195f45 !important;
    font-weight: 800;
}
.setting-select-row select {
    min-width: 120px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 12px;
    background: #fff;
    color: var(--blue-950);
    font: inherit;
}

.card-inner,
.card-face {
    -webkit-transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.flashcard.is-switching .card-inner {
    transition: none !important;
    opacity: 0;
    transform: rotateY(0deg) !important;
}
.flashcard .card-inner { transition: transform .38s cubic-bezier(.2,.75,.2,1), opacity .12s ease; }

/* Le mode focus peut maintenant rester clair. */
body.is-focus-mode.focus-theme-light {
    color-scheme: light;
    background: #eef5f9;
    color: var(--blue-950);
}
body.is-focus-mode.focus-theme-light #studyView {
    background:
        radial-gradient(circle at 50% 18%, rgba(91,184,238,.15), transparent 35%),
        #eef5f9;
}
body.is-focus-mode.focus-theme-light .card-face {
    border-color: rgba(14,86,127,.14);
    box-shadow: 0 22px 58px rgba(9,62,96,.18);
}
body.is-focus-mode.focus-theme-light .card-front {
    background: linear-gradient(145deg, #fff, #f5fbff);
    color: var(--blue-950);
}
body.is-focus-mode.focus-theme-light .card-back {
    background: linear-gradient(145deg, #f9fcff, #eaf4fa);
    color: var(--blue-950);
}
body.is-focus-mode.focus-theme-light .card-back .answer-label { color: var(--blue-700); }
body.is-focus-mode.focus-theme-light .card-back .card-topline,
body.is-focus-mode.focus-theme-light .card-back .card-reading,
body.is-focus-mode.focus-theme-light .card-back .card-note,
body.is-focus-mode.focus-theme-light .card-back .flip-hint { color: var(--muted); }
body.is-focus-mode.focus-theme-light .card-back .flip-hint { background: rgba(14,86,127,.05); }
body.is-focus-mode.focus-theme-light .card-front .card-topline,
body.is-focus-mode.focus-theme-light .card-front .card-hint,
body.is-focus-mode.focus-theme-light .card-front .flip-hint { color: var(--muted); }
body.is-focus-mode.focus-theme-light .card-front .card-center h2 { color: var(--blue-950); }
body.is-focus-mode.focus-theme-light .card-front .card-prompt { color: var(--blue-700); }
body.is-focus-mode.focus-theme-light .card-front .round-action,
body.is-focus-mode.focus-theme-light .card-back .round-action {
    background: #fff;
    color: var(--blue-900);
    border-color: var(--line);
    box-shadow: var(--shadow-soft);
}
body.is-focus-mode.focus-theme-light .example-box {
    background: rgba(14,86,127,.06);
    border-color: rgba(14,86,127,.12);
}
body.is-focus-mode.focus-theme-light .example-box span { color: var(--muted); }
body.is-focus-mode.focus-theme-light .primary-button {
    background: var(--blue-900);
    color: #fff;
}
body.is-focus-mode.focus-theme-light .rating {
    background: #fff;
    color: var(--blue-950);
    border-color: var(--line);
    box-shadow: var(--shadow-soft);
}
body.is-focus-mode.focus-theme-light .rating span { color: var(--muted); }
body.is-focus-mode.focus-theme-light .focus-exit-button {
    background: rgba(255,255,255,.92);
    color: var(--blue-900);
    border-color: var(--line);
}
body.is-focus-mode.focus-theme-light .promotion-modal .modal-backdrop { background: rgba(219,234,242,.82); }
body.is-focus-mode.focus-theme-light .promotion-panel {
    background: #fff;
    color: var(--blue-950);
    border-color: var(--line);
    box-shadow: var(--shadow);
}
body.is-focus-mode.focus-theme-light .promotion-panel > p,
body.is-focus-mode.focus-theme-light .promotion-panel > small { color: var(--muted); }
body.is-focus-mode.focus-theme-light .promotion-panel .secondary-button {
    background: #fff;
    color: var(--blue-900);
    border-color: var(--line);
}

@media (max-width: 850px) {
    .header-actions .account-header-button { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 650px) {
    .header-actions .account-header-button.is-register,
    .header-actions .pill-link { display: none; }
    .header-actions .account-header-button { padding: 8px 10px; }
}

/* v1.9.3 — liens cliquables sur les faces 3D, y compris sur mobile. */
.card-back .card-answer,
.card-back .resource-links,
.card-back .resource-links a {
    pointer-events: auto;
}
.card-back .resource-links {
    position: relative;
    z-index: 30;
    isolation: isolate;
}
.card-back .resource-links a {
    -webkit-tap-highlight-color: rgba(255,255,255,.18);
    user-select: none;
}

/* v1.9.3 — titre japonais, intitulé français conservé comme aide. */
.deck-french-title { display:block; margin-top:-4px; margin-bottom:9px; color:var(--muted); font-size:.78rem; font-weight:700; letter-spacing:.02em; }

/* v1.10.0 — choix simplifié : niveau direct ou parcours 0から. */
.zero-start-card {
    width: min(100%, 340px);
    transform: rotate(1deg);
}
.zero-start-card .today-primary strong { font-size: clamp(3.2rem, 6vw, 4.6rem); }
.zero-start-card .today-primary span { color: var(--muted); font-size: .88rem; }
.zero-start-card .today-secondary { align-items: center; }
.zero-start-card .today-secondary strong { font-size: 1rem; }

.simple-path-choice { display: grid; gap: 22px; }
.simple-choice-heading { margin-bottom: 0; }
.level-path-panel,
.zero-path-explanation,
.review-resume-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.level-path-panel { padding: 28px; }
.level-path-copy,
.zero-path-explanation {
    display: flex;
    align-items: center;
    gap: 18px;
}
.choice-number {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue-900);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
}
.level-path-panel h3,
.zero-path-explanation h3 { margin: 0 0 6px; color: var(--blue-950); font-size: 1.25rem; }
.level-path-panel p,
.zero-path-explanation p { margin: 0; color: var(--muted); line-height: 1.7; }

.kentei-quick-start {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}
.kentei-start-button {
    appearance: none;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: var(--blue-50);
    color: var(--blue-950);
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.kentei-start-button:hover,
.kentei-start-button:focus-visible {
    transform: translateY(-3px);
    border-color: var(--blue-500);
    box-shadow: var(--shadow-soft);
    outline: 3px solid rgba(91,184,238,.24);
    outline-offset: 2px;
}
.kentei-start-main { display: grid; gap: 4px; }
.kentei-start-main strong { font-size: 1.05rem; }
.kentei-start-main small { color: var(--muted); line-height: 1.4; }
.kentei-start-progress { display: grid; gap: 6px; color: var(--blue-800); font-size: .73rem; font-weight: 900; }
.kentei-start-progress i { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #dcecf5; }
.kentei-start-progress b { display: block; height: 100%; border-radius: inherit; background: var(--blue-700); }

.zero-path-explanation {
    padding: 24px 28px;
    background: linear-gradient(135deg, #f9fcfe, #eef7fb);
}
.zero-path-explanation > div { flex: 1; }
.zero-path-explanation .primary-button { flex: 0 0 auto; white-space: nowrap; }

.review-resume-card {
    appearance: none;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 17px 20px;
    color: var(--blue-950);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.review-resume-card:hover,
.review-resume-card:focus-visible { border-color: var(--blue-500); outline: 3px solid rgba(91,184,238,.22); outline-offset: 2px; }
.review-resume-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue-100); color: var(--blue-900); font-size: 1.35rem; }
.review-resume-copy { display: grid; gap: 3px; }
.review-resume-copy small { color: var(--muted); }
.review-resume-count { display: inline-flex; align-items: baseline; gap: 4px; }
.review-resume-count strong { color: var(--blue-800); font-size: 1.65rem; }
.review-resume-count small { color: var(--muted); font-weight: 900; }
.review-resume-card.has-review { border-color: #e5b3aa; background: #fffaf8; }
.review-resume-card.has-review .review-resume-count strong { color: var(--red); }

@media (max-width: 900px) {
    .kentei-quick-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .zero-start-card { width: 100%; transform: none; }
    .level-path-panel { padding: 20px; }
    .level-path-copy,
    .zero-path-explanation { align-items: flex-start; }
    .zero-path-explanation { flex-wrap: wrap; padding: 20px; }
    .zero-path-explanation .primary-button { width: 100%; }
    .kentei-quick-start { grid-template-columns: 1fr; }
    .kentei-start-button { min-height: 92px; }
    .review-resume-card { grid-template-columns: auto 1fr auto; padding: 15px; }
}

/* ===== v1.11 — guided QCM experience ===== */
.simple-app-menu .app-menu-inner { min-height: 54px; }
.simple-app-menu strong { color: var(--blue-950); font-size: .9rem; }
.launch-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-950), #145f8c);
}
.launch-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    top: -290px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
}
.launch-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: clamp(30px, 6vw, 84px);
    align-items: center;
    min-height: 520px;
    padding-block: 76px;
}
.launch-copy h1 {
    margin: 14px 0 22px;
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    line-height: .98;
    letter-spacing: -.06em;
}
.launch-copy h1 em { color: var(--yellow); font-style: normal; }
.launch-copy > p { max-width: 670px; margin: 0; color: rgba(255,255,255,.82); line-height: 1.9; font-size: 1.04rem; }
.launch-points { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.launch-points li { padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .8rem; font-weight: 800; }
.launch-card {
    padding: 30px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 30px;
    color: var(--ink);
    background: rgba(255,255,255,.97);
    box-shadow: 0 28px 65px rgba(0,0,0,.22);
}
.launch-label { color: var(--blue-700); font-weight: 900; letter-spacing: .12em; }
.launch-progress-copy { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.launch-progress-copy strong { color: var(--blue-950); font-size: clamp(3.6rem, 8vw, 5.6rem); line-height: 1; }
.launch-progress-copy span { color: var(--muted); font-weight: 900; }
.launch-card p { min-height: 1.6em; color: var(--muted); font-weight: 700; }
.launch-progress { height: 10px; overflow: hidden; border-radius: 999px; background: var(--blue-100); }
.launch-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--red); transition: width .3s ease; }
.launch-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 62px;
    margin-top: 22px;
    padding: 15px 22px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: var(--blue-900);
    box-shadow: 0 12px 24px rgba(7,51,79,.2);
    font-weight: 900;
    font-size: 1.05rem;
    cursor: pointer;
}
.launch-button:hover { transform: translateY(-1px); background: var(--blue-800); }
.launch-card small { display: block; margin-top: 12px; color: var(--muted); line-height: 1.6; text-align: center; }
.launch-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-block: 28px 50px;
    padding: 22px 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.launch-account-row p { margin: 5px 0 0; color: var(--muted); }
.launch-account-actions { display: flex; gap: 10px; flex: 0 0 auto; }

/* QCM session */
.qcm-study-view { min-height: 100vh; }
.qcm-focus-shell { width: min(calc(100% - 28px), 850px); margin: 0 auto; padding: 18px 0 44px; }
.qcm-session-bar { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 12px; margin-bottom: 16px; }
.qcm-exit, .qcm-theme-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: inherit;
    background: rgba(255,255,255,.08);
    cursor: pointer;
    font-size: 1.2rem;
}
.qcm-session-title { min-width: 0; text-align: center; }
.qcm-session-title h1 { overflow: hidden; margin: 5px 0 0; font-size: clamp(.9rem, 3vw, 1.1rem); text-overflow: ellipsis; white-space: nowrap; }
.qcm-progress-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .8rem; font-weight: 800; }
.qcm-progress { height: 8px; margin-bottom: 18px; background: rgba(255,255,255,.13); }
.qcm-card {
    width: 100%;
    min-height: min(690px, calc(100vh - 145px));
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 30px;
    background: rgba(10,48,75,.76);
    box-shadow: 0 22px 55px rgba(0,0,0,.24);
}
.qcm-card-topline { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 900; }
.qcm-prompt { margin: clamp(25px, 5vh, 48px) 0 10px; color: var(--yellow); text-align: center; font-weight: 900; }
.qcm-card h2 {
    margin: 0 auto 14px;
    max-width: 100%;
    color: #fff;
    font-size: clamp(2rem, 7vw, 4.65rem);
    line-height: 1.18;
    letter-spacing: -.045em;
    text-align: center;
    overflow-wrap: anywhere;
}
.qcm-hint { margin: 0 0 24px; color: rgba(255,255,255,.62); text-align: center; }
.qcm-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.qcm-choice {
    position: relative;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 17px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 18px;
    color: #fff;
    background: rgba(255,255,255,.08);
    text-align: left;
    line-height: 1.55;
    font-weight: 800;
    cursor: pointer;
    transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.qcm-choice:hover, .qcm-choice:focus-visible { transform: translateY(-2px); border-color: #8fd7ff; background: rgba(255,255,255,.14); outline: none; }
.qcm-choice:disabled { cursor: default; transform: none; opacity: .72; }
.qcm-choice-number { flex: 0 0 31px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.13); font-size: .8rem; }
.qcm-choice.is-correct { opacity: 1; border-color: #69dca8; background: rgba(43,154,112,.28); }
.qcm-choice.is-wrong { opacity: 1; border-color: #ff8294; background: rgba(233,52,81,.24); }
.qcm-feedback { margin-top: 18px; padding: 20px; border-radius: 20px; background: rgba(0,0,0,.2); text-align: center; }
.qcm-feedback > strong { display: block; margin-bottom: 8px; font-size: 1.15rem; }
.qcm-feedback > strong.is-correct { color: #8ce6ba; }
.qcm-feedback > strong.is-wrong { color: #ff9bab; }
.qcm-feedback > p { margin: 0; color: #fff; font-size: clamp(1.15rem, 4vw, 1.65rem); font-weight: 900; }
.qcm-example { display: grid; gap: 4px; margin: 14px auto 0; padding: 13px 15px; border-radius: 14px; background: rgba(255,255,255,.08); }
.qcm-example span { color: #fff; font-weight: 800; }
.qcm-example small { color: rgba(255,255,255,.66); }
.qcm-answer-speak { margin-top: 13px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; background: transparent; cursor: pointer; font-weight: 800; }
.qcm-next { max-width: 360px; margin-inline: auto; }
.qcm-sound-status { margin-top: 14px; }

body.is-focus-mode #studyView { min-height: 100vh; padding: 0; background: #071923; }
body.is-focus-mode .qcm-focus-shell { color: #fff; }
body.is-focus-mode.focus-theme-dark { background: #071923; }
body.is-focus-mode.focus-theme-dark .qcm-card { background: linear-gradient(160deg, #123f61, #09283d); }
body.is-focus-mode.focus-theme-light { background: #edf6fb; }
body.is-focus-mode.focus-theme-light #studyView { background: #edf6fb; }
body.is-focus-mode.focus-theme-light .qcm-focus-shell { color: var(--blue-950); }
body.is-focus-mode.focus-theme-light .qcm-exit,
body.is-focus-mode.focus-theme-light .qcm-theme-toggle { border-color: var(--line); color: var(--blue-950); background: #fff; }
body.is-focus-mode.focus-theme-light .qcm-progress { background: #d7e7ef; }
body.is-focus-mode.focus-theme-light .qcm-card { border-color: var(--line); background: #fff; box-shadow: var(--shadow); }
body.is-focus-mode.focus-theme-light .qcm-card-topline,
body.is-focus-mode.focus-theme-light .qcm-hint { color: var(--muted); }
body.is-focus-mode.focus-theme-light .qcm-card h2 { color: var(--blue-950); }
body.is-focus-mode.focus-theme-light .qcm-prompt { color: var(--blue-700); }
body.is-focus-mode.focus-theme-light .qcm-choice { border-color: var(--line); color: var(--blue-950); background: #f6fafc; }
body.is-focus-mode.focus-theme-light .qcm-choice:hover,
body.is-focus-mode.focus-theme-light .qcm-choice:focus-visible { border-color: var(--blue-500); background: var(--blue-50); }
body.is-focus-mode.focus-theme-light .qcm-choice-number { background: var(--blue-100); color: var(--blue-900); }
body.is-focus-mode.focus-theme-light .qcm-choice.is-correct { border-color: #58b990; background: #e6f7ef; }
body.is-focus-mode.focus-theme-light .qcm-choice.is-wrong { border-color: #e87284; background: #fff0f2; }
body.is-focus-mode.focus-theme-light .qcm-feedback { background: #edf5f9; }
body.is-focus-mode.focus-theme-light .qcm-feedback > strong.is-correct { color: #19714f; }
body.is-focus-mode.focus-theme-light .qcm-feedback > strong.is-wrong { color: #b7263e; }
body.is-focus-mode.focus-theme-light .qcm-feedback > p,
body.is-focus-mode.focus-theme-light .qcm-example span { color: var(--blue-950); }
body.is-focus-mode.focus-theme-light .qcm-example { background: #fff; border: 1px solid var(--line); }
body.is-focus-mode.focus-theme-light .qcm-example small { color: var(--muted); }
body.is-focus-mode.focus-theme-light .qcm-answer-speak { border-color: var(--line); color: var(--blue-900); background: #fff; }

@media (max-width: 820px) {
    .header-actions .text-button, .header-actions .pill-link { display: none; }
    .launch-shell { grid-template-columns: 1fr; min-height: auto; padding-block: 54px; }
    .launch-card { width: 100%; }
    .launch-account-row { align-items: stretch; flex-direction: column; }
    .launch-account-actions { width: 100%; }
    .launch-account-actions > * { flex: 1; text-align: center; }
}
@media (max-width: 620px) {
    .shell { width: min(calc(100% - 22px), var(--shell)); }
    .site-header .header-inner { min-height: 64px; }
    .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
    .brand-copy small { display: none; }
    .header-actions { gap: 6px; }
    .account-header-button { padding: 8px 10px; font-size: .72rem; }
    .simple-app-menu { display: none; }
    .launch-shell { padding-block: 42px; }
    .launch-copy h1 { font-size: clamp(2.3rem, 13vw, 4.2rem); }
    .launch-copy > p { font-size: .93rem; }
    .launch-card { padding: 23px; border-radius: 24px; }
    .launch-account-actions { flex-direction: column; }
    .qcm-focus-shell { width: min(calc(100% - 14px), 850px); padding-top: 8px; }
    .qcm-session-bar { grid-template-columns: 40px 1fr 40px; }
    .qcm-exit, .qcm-theme-toggle { width: 38px; height: 38px; }
    .qcm-card { min-height: calc(100vh - 95px); padding: 18px 14px 20px; border-radius: 22px; }
    .qcm-prompt { margin-top: 22px; }
    .qcm-card h2 { font-size: clamp(1.75rem, 10vw, 3rem); }
    .qcm-choices { grid-template-columns: 1fr; gap: 9px; }
    .qcm-choice { min-height: 64px; padding: 12px 13px; border-radius: 15px; }
    .qcm-feedback { padding: 15px; }
}


/* 1.12.0 — QCM plus lisible et sans surcharge */
.qcm-focus-shell { max-width: 980px; margin-inline: auto; }
.qcm-card { max-width: 900px; margin-inline: auto; }
.qcm-card h2,
#quizQuestion { font-size: clamp(1.7rem, 4.2vw, 3.35rem); line-height: 1.28; overflow-wrap: anywhere; }
.qcm-prompt { font-size: clamp(.92rem, 1.8vw, 1.08rem); }
.qcm-choice { min-height: 72px; font-size: clamp(.96rem, 1.8vw, 1.08rem); line-height: 1.45; text-align: left; }
.qcm-feedback #quizCorrectAnswer { font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.35; }
.launch-card small { display:block; margin-top:10px; line-height:1.55; }
@media (max-width: 700px) {
  .qcm-choices { grid-template-columns: 1fr !important; }
  .qcm-card { padding: 22px 16px; border-radius: 24px; }
  .qcm-focus-shell { padding-inline: 10px; }
  .qcm-choice { min-height: 62px; }
}


/* 1.13.0 — deux parcours clairs : 0から ou niveau 仏検 */
.mode-choice-layout { grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); }
.learning-mode-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.learning-mode-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 26px;
    color: var(--blue-950);
    background: rgba(255,255,255,.97);
    box-shadow: 0 24px 55px rgba(0,0,0,.18);
}
.learning-mode-card.is-recommended { border-color: rgba(255,215,68,.85); }
.mode-badge {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--blue-950);
    background: var(--yellow);
    font-size: .72rem;
    font-weight: 900;
}
.mode-number { color: var(--blue-600); font-size: .75rem; font-weight: 900; letter-spacing: .16em; }
.learning-mode-card h2 { margin: 8px 0 10px; color: var(--blue-950); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.25; }
.learning-mode-card > p { margin: 0; color: var(--muted); line-height: 1.72; }
.mode-progress-copy { display: flex; align-items: baseline; gap: 7px; margin-top: 18px; }
.mode-progress-copy strong { color: var(--blue-950); font-size: 2.7rem; line-height: 1; }
.mode-progress-copy span, .learning-mode-card > small { color: var(--muted); font-weight: 800; }
.mode-resume-text { min-height: 3.4em; margin-top: 10px !important; font-size: .83rem; }
.mode-level-preview { margin: 24px 0 5px; padding: 12px; border-radius: 14px; color: var(--blue-800); background: var(--blue-50); text-align: center; font-weight: 900; }
.launch-button.is-secondary { border: 1px solid var(--blue-800); color: var(--blue-900); background: #fff; box-shadow: none; }
.launch-button.is-secondary:hover { color: #fff; background: var(--blue-900); }
.level-picker-panel {
    margin-block: 30px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 90px;
}
.level-picker-panel[hidden] { display: none !important; }
.level-picker-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.level-picker-heading h2 { margin: 7px 0 6px; color: var(--blue-950); font-size: clamp(1.45rem, 3vw, 2rem); }
.level-picker-heading p { margin: 0; color: var(--muted); }
.level-picker-panel .kentei-start-button { background: #f7fbfd; }
@media (max-width: 1050px) {
    .mode-choice-layout { grid-template-columns: 1fr; }
    .learning-mode-picker { max-width: 850px; }
}
@media (max-width: 700px) {
    .learning-mode-picker { grid-template-columns: 1fr; }
    .learning-mode-card { padding: 20px; border-radius: 22px; }
    .level-picker-panel { padding: 20px 15px; border-radius: 22px; }
    .level-picker-heading { align-items: stretch; flex-direction: column; }
    .level-picker-heading .text-button { align-self: flex-end; }
}


/* v1.14.0 — apprentissage, choix QCM / cartes et interface simplifiée */
.study-format-picker {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid rgba(34, 79, 119, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
}
.study-format-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; }
.study-format-heading strong { color:#153a5c; font-size:1rem; }
.study-format-heading small { color:#6d7f91; }
.study-format-options { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.study-format-option {
    display:grid; grid-template-columns:auto 1fr; grid-template-areas:"icon title" "icon text";
    align-items:center; gap:2px 10px; min-height:78px; padding:13px 14px;
    border:1px solid #cfdae5; border-radius:18px; background:#fff; color:#173958; text-align:left;
    cursor:pointer; transition:border-color .16s ease, background .16s ease, transform .16s ease;
}
.study-format-option:hover { transform:translateY(-1px); border-color:#5f91b9; }
.study-format-option > span { grid-area:icon; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#e9f2f9; }
.study-format-option strong { grid-area:title; font-size:.94rem; }
.study-format-option small { grid-area:text; color:#718296; line-height:1.35; }
.study-format-option.is-active { border-color:#1d5f8f; background:#edf6fc; box-shadow:0 0 0 2px rgba(29,95,143,.08); }
.study-format-option.is-active > span { background:#1d5f8f; color:#fff; }
.session-mode-indicator { display:flex; align-items:center; justify-content:center; gap:12px; margin:0 auto 10px; color:inherit; }
.session-mode-indicator span { font-weight:800; }
.session-mode-indicator button { border:0; background:transparent; color:inherit; text-decoration:underline; cursor:pointer; opacity:.76; }
.flashcard-study-panel { width:100%; }
.flashcard-study-panel .study-stage { max-width:920px; margin-inline:auto; }
.flashcard-study-panel .flashcard { min-height:clamp(390px, 58vh, 560px); }
.flashcard-study-panel .reveal-area,
.flashcard-study-panel .rating-area { max-width:920px; margin-inline:auto; }
body.study-mode-flashcard .qcm-sound-status { max-width:920px; margin-inline:auto; }
body.study-mode-flashcard .qcm-focus-shell { max-width:1100px; }
body.study-mode-flashcard .card-face { border-color:rgba(255,255,255,.16); }
body.focus-theme-dark.study-mode-flashcard .card-front,
body.focus-theme-dark.study-mode-flashcard .card-back { background:#143f60; color:#fff; }
body.focus-theme-dark.study-mode-flashcard .card-back { background:#1e5077; }
body.focus-theme-dark.study-mode-flashcard .card-hint,
body.focus-theme-dark.study-mode-flashcard .card-reading,
body.focus-theme-dark.study-mode-flashcard .card-note,
body.focus-theme-dark.study-mode-flashcard .flip-hint { color:rgba(255,255,255,.76); }
body.focus-theme-light.study-mode-flashcard .card-front,
body.focus-theme-light.study-mode-flashcard .card-back { background:#fff; color:#143554; }
body.focus-theme-light.study-mode-flashcard .card-back { background:#edf5fb; }
@media (max-width: 720px) {
    .study-format-options { grid-template-columns:1fr; }
    .study-format-option { min-height:68px; }
    .session-mode-indicator { font-size:.85rem; }
    .flashcard-study-panel .flashcard { min-height:420px; }
    .flashcard-study-panel .card-center h2,
    .flashcard-study-panel .card-answer h2 { font-size:clamp(2rem, 10vw, 3.4rem); }
}


/* Révision rapide S. — plan 8/24 */
.revision-s-view { background:#f7f5fb; min-height:75vh; }
.revision-s-hero { padding:42px 0 28px; background:linear-gradient(135deg,#241d3c 0%,#4c3f78 58%,#6b5ca5 100%); color:#fff; }
.revision-s-shell { display:grid; gap:20px; }
.revision-s-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; }
.revision-s-heading h1 { margin:6px 0 8px; font-size:clamp(2.15rem,6vw,4rem); letter-spacing:-.04em; }
.revision-s-heading p { margin:0; max-width:720px; color:rgba(255,255,255,.82); font-size:1.05rem; }
.revision-s-heading .eyebrow { color:#e8dcff; }
.revision-s-exit { color:#fff !important; border-color:rgba(255,255,255,.45) !important; }
.revision-s-deadline { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.revision-s-deadline > div { padding:16px 18px; border:1px solid rgba(255,255,255,.18); border-radius:18px; background:rgba(255,255,255,.09); backdrop-filter:blur(9px); }
.revision-s-deadline span { display:block; margin-bottom:4px; color:rgba(255,255,255,.68); font-size:.78rem; font-weight:700; }
.revision-s-deadline strong { display:block; font-size:1.12rem; }
.revision-s-stats { padding:18px 20px; border-radius:20px; background:#fff; color:#201a31; box-shadow:0 14px 38px rgba(20,12,42,.18); }
.revision-s-progress-copy { display:flex; align-items:baseline; gap:8px; }
.revision-s-progress-copy strong { font-size:2rem; line-height:1; }
.revision-s-progress-copy span { color:#696277; font-weight:700; }
.revision-s-progress-copy em { margin-left:auto; color:#594988; font-style:normal; font-weight:900; }
.revision-s-main-progress,.revision-s-mini-progress { overflow:hidden; height:9px; margin:12px 0 8px; border-radius:999px; background:#ece8f4; }
.revision-s-main-progress span,.revision-s-mini-progress span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#6b5ca5,#9a80df); }
.revision-s-progress-meta { display:flex; justify-content:space-between; gap:12px; color:#706a7b; font-size:.82rem; font-weight:700; }
.revision-s-today { display:flex; align-items:center; justify-content:space-between; gap:22px; padding:22px; border-radius:22px; background:#fff7df; color:#2d260f; border:1px solid #f0d47b; }
.revision-s-today h2 { margin:6px 0 4px; font-size:1.5rem; }
.revision-s-today p { margin:0; color:#6d6034; }
.revision-s-alert,.revision-s-ok { display:inline-block; margin-left:7px; padding:3px 8px; border-radius:999px; font-size:.8rem; font-weight:800; }
.revision-s-alert { background:#ffe1df; color:#a43c36; }
.revision-s-ok { background:#def3e4; color:#28653b; }
.revision-s-content { padding-top:34px; padding-bottom:60px; display:grid; gap:30px; }
.revision-s-section { padding:26px; border:1px solid #e9e4f0; border-radius:24px; background:#fff; box-shadow:0 12px 30px rgba(45,35,65,.06); }
.revision-s-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:20px; }
.revision-s-section-heading h2 { margin:5px 0 5px; font-size:1.55rem; }
.revision-s-section-heading p { margin:0; color:#736d7c; }
.revision-s-day-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.revision-s-day-card { position:relative; padding:14px; border:1px solid #e7e1ed; border-radius:17px; background:#fbfafc; }
.revision-s-day-card.is-today { border-color:#6b5ca5; box-shadow:0 0 0 2px rgba(107,92,165,.12); background:#f8f5ff; }
.revision-s-day-card.is-complete { background:#f0f8f2; border-color:#cce3d2; }
.revision-s-day-top { display:flex; align-items:center; justify-content:space-between; gap:6px; color:#746e7d; font-size:.73rem; font-weight:800; }
.revision-s-day-top em { padding:2px 6px; border-radius:999px; background:#6b5ca5; color:#fff; font-size:.65rem; font-style:normal; }
.revision-s-day-card > strong { display:block; margin-top:6px; font-size:1.08rem; }
.revision-s-day-card > small { display:block; margin-top:2px; color:#746e7d; }
.revision-s-day-card .revision-s-mini-progress { height:6px; margin:9px 0; }
.revision-s-day-card > button { width:100%; padding:8px 10px; border:0; border-radius:10px; background:#ece7f6; color:#4d3f73; font-weight:800; cursor:pointer; }
.revision-s-day-card.is-today > button { background:#6b5ca5; color:#fff; }
.revision-s-theme-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.revision-s-theme-card { padding:18px; border:1px solid #e8e2ee; border-radius:18px; background:#fbfafc; }
.revision-s-theme-card > span { color:#806ea9; font-size:.75rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.revision-s-theme-card h3 { margin:5px 0 6px; font-size:1.04rem; }
.revision-s-theme-card p { margin:0; color:#77717f; font-size:.82rem; }
.revision-s-theme-card .revision-s-mini-progress { height:7px; }
.revision-s-theme-card button { width:100%; margin-top:5px; }
.revision-s-list-heading { align-items:center; }
.revision-s-list-panel { padding-top:4px; }
.revision-s-list-tools { position:sticky; top:0; z-index:3; display:grid; grid-template-columns:1.4fr 1fr auto; gap:10px; align-items:end; padding:12px; margin-bottom:16px; border-radius:16px; background:#f5f2f9; }
.revision-s-list-tools label { display:grid; gap:5px; color:#6e6678; font-size:.75rem; font-weight:800; }
.revision-s-list-tools input,.revision-s-list-tools select { width:100%; min-height:42px; padding:8px 11px; border:1px solid #dcd4e6; border-radius:11px; background:#fff; color:#221d2b; font:inherit; }
.revision-s-list-count { padding:0 5px 10px; color:#6b5ca5; font-weight:900; white-space:nowrap; }
.revision-s-word-list { display:grid; gap:14px; }
.revision-s-word-group { overflow:hidden; border:1px solid #e7e1ed; border-radius:16px; }
.revision-s-word-group-title { display:flex; justify-content:space-between; gap:12px; padding:11px 14px; background:#f3eff8; color:#4c3f6c; }
.revision-s-word-group-title span { color:#7c7287; font-size:.8rem; font-weight:700; }
.revision-s-word-rows { display:grid; }
.revision-s-word-row { display:grid; grid-template-columns:26px minmax(0,1fr) 24px minmax(0,1fr); gap:9px; align-items:center; min-height:46px; padding:9px 13px; border-top:1px solid #eee9f2; }
.revision-s-word-row:first-child { border-top:0; }
.revision-s-word-row:nth-child(even) { background:#fdfcfe; }
.revision-s-word-row.is-studied { background:#f4faf5; }
.revision-s-word-status { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#eeeaf3; color:#8a8095; font-size:.72rem; font-weight:900; }
.revision-s-word-row.is-studied .revision-s-word-status { background:#d7eedc; color:#2d7140; }
.revision-s-word-front { color:#3b3541; }
.revision-s-word-arrow { text-align:center; color:#aaa0b5; }
.revision-s-word-back { color:#241d32; }
.revision-s-empty { padding:30px; text-align:center; color:#766f7e; }
@media (max-width:1000px) {
    .revision-s-day-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .revision-s-theme-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
    .revision-s-hero { padding-top:28px; }
    .revision-s-heading,.revision-s-today,.revision-s-section-heading { align-items:stretch; flex-direction:column; }
    .revision-s-deadline { grid-template-columns:1fr 1fr; }
    .revision-s-deadline > div:first-child { grid-column:1 / -1; }
    .revision-s-day-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .revision-s-theme-grid { grid-template-columns:1fr; }
    .revision-s-section { padding:18px; border-radius:20px; }
    .revision-s-list-tools { position:static; grid-template-columns:1fr; }
    .revision-s-list-count { padding:0; }
    .revision-s-word-row { grid-template-columns:24px 1fr; gap:5px 9px; }
    .revision-s-word-arrow { display:none; }
    .revision-s-word-back { grid-column:2; padding-top:2px; color:#5d4c87; }
}

/* === NORUBI 2.0 · accueil guidé / activités === */
.v2-account-pitch[hidden],.v2-complete-account-pitch[hidden],.v2-typed-form[hidden],.v2-dictation-exercise[hidden],.v2-dictation-list[hidden],#v2SignupModal[hidden]{display:none!important}
.legacy-learning-data[hidden]{display:none!important}.v2-home{padding:34px 0 72px}.v2-home-shell{max-width:860px;display:grid;gap:18px}.v2-welcome-card,.v2-path-card,.v2-goal-card,.v2-account-pitch{background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow-soft)}.v2-welcome-card{padding:28px;background:linear-gradient(145deg,#fff,#f2faff)}.v2-welcome-copy h1{margin:8px 0 10px;font-size:clamp(2rem,6vw,3.7rem);line-height:1.04;color:var(--blue-950);letter-spacing:-.045em}.v2-welcome-copy h1 em{font-style:normal;color:var(--blue-700)}.v2-welcome-copy p{color:var(--muted);line-height:1.7}.v2-today-button{width:100%;margin-top:22px;min-height:92px;padding:18px 22px;border:0;border-radius:22px;background:linear-gradient(135deg,var(--blue-900),var(--blue-700));color:#fff;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;text-align:left;cursor:pointer;box-shadow:0 16px 34px rgba(10,65,102,.24)}.v2-today-button:hover{transform:translateY(-2px)}.v2-today-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.16)}.v2-today-copy{display:grid;gap:4px}.v2-today-copy strong{font-size:1.45rem}.v2-today-copy small{color:rgba(255,255,255,.8)}.v2-today-arrow{font-size:1.7rem}.v2-home-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.v2-home-stats>div{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:6px;padding:11px 13px;background:#fff;border:1px solid var(--line);border-radius:14px}.v2-home-stats small{color:var(--muted);font-size:.72rem}.v2-path-card,.v2-goal-card,.v2-account-pitch{padding:22px}.v2-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:14px}.v2-section-heading h2,.v2-goal-card h2{margin:5px 0 0;color:var(--blue-950)}.v2-current-level{display:grid;grid-template-columns:auto 1fr;gap:12px 14px;align-items:center;margin-top:18px}.v2-level-badge{display:inline-grid;place-items:center;min-width:48px;height:34px;padding:0 10px;border-radius:999px;background:var(--blue-100);color:var(--blue-900);font-weight:900}.v2-level-progress-copy{display:grid;gap:3px}.v2-level-progress-copy small{color:var(--muted)}.v2-level-progress{grid-column:1/-1;height:9px;background:var(--blue-100);border-radius:999px;overflow:hidden}.v2-level-progress span{display:block;height:100%;width:0;background:var(--green);transition:width .25s ease}.v2-path-panel{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px}.v2-path-panel button,.v2-quick-actions button,.v2-goal-buttons button{border:1px solid var(--line);background:#fff;border-radius:16px;padding:14px;cursor:pointer}.v2-path-panel button{display:grid;gap:4px;text-align:left}.v2-path-panel small,.v2-quick-actions small,.v2-goal-card p{color:var(--muted)}.v2-quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.v2-quick-actions button{display:grid;gap:3px;text-align:left}.v2-quick-actions button>span{font-size:1.25rem;color:var(--blue-700)}.v2-goal-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.v2-goal-card p{margin:6px 0 0}.v2-goal-buttons{display:flex;gap:8px}.v2-goal-buttons button{min-width:82px;display:grid;gap:2px;text-align:center}.v2-goal-buttons button.is-active{background:var(--blue-900);border-color:var(--blue-900);color:#fff}.v2-goal-buttons button.is-active small{color:rgba(255,255,255,.8)}.v2-account-pitch{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px}.v2-account-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:var(--blue-100);font-size:1.3rem}.v2-account-pitch h3{margin:0 0 4px}.v2-account-pitch p{margin:0;color:var(--muted);font-size:.84rem}.v2-lesson-cta,.v2-complete-lesson-cta{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 22px;border-radius:22px;background:#fff7e2;border:1px solid #f2dfaa;text-decoration:none}.v2-lesson-cta-icon{font-size:1.7rem}.v2-lesson-cta strong{display:block}.v2-lesson-cta small{display:block;margin-top:3px;color:#776a49}.v2-dictation-shell{max-width:760px;padding:34px 0 70px}.v2-subview-header{display:flex;align-items:flex-start;gap:16px;margin-bottom:22px}.v2-subview-header h1{margin:4px 0 7px;color:var(--blue-950)}.v2-subview-header p{margin:0;color:var(--muted)}.v2-dictation-list{display:grid;gap:10px}.v2-dictation-pack{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;text-align:left;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff;cursor:pointer;box-shadow:var(--shadow-soft)}.v2-dictation-pack span:nth-child(2){display:grid;gap:4px}.v2-dictation-pack small{color:var(--muted)}.v2-dictation-exercise{padding:24px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-soft)}.v2-dictation-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.v2-audio-button{width:100%;min-height:70px;margin:18px 0;border:0;border-radius:18px;background:var(--blue-900);color:#fff;font-weight:900;cursor:pointer}.v2-typed-form{display:grid;gap:9px}.v2-typed-form label{font-weight:800}.v2-typed-form input{width:100%;min-height:52px;border:2px solid var(--line);border-radius:14px;padding:0 14px;outline:0}.v2-typed-form input:focus{border-color:var(--blue-500)}.v2-typed-form button{justify-self:start}.v2-typed-feedback{margin-top:16px;padding:16px;border-radius:16px;background:var(--blue-50)}.v2-typed-feedback .is-correct,.qcm-feedback .is-correct{color:var(--green)}.v2-typed-feedback .is-wrong,.qcm-feedback .is-wrong{color:var(--red)}.v2-study-typed{margin-top:14px}.qcm-activity-badge,#quizActivityBadge{display:inline-flex;margin-bottom:8px;padding:5px 9px;border-radius:999px;background:#eaf6ff;color:var(--blue-900);font-size:.68rem;font-weight:900;letter-spacing:.06em}.v2-complete-account-pitch{margin:18px 0;padding:18px;border:1px solid var(--line);border-radius:18px;background:#f2faff}.v2-complete-account-pitch h3{margin:0 0 5px}.v2-signup-panel{max-width:480px}.v2-signup-form{display:grid;gap:13px}.v2-signup-form label{display:grid;gap:6px;font-weight:800}.v2-signup-form input{min-height:48px;border:1px solid var(--line);border-radius:12px;padding:0 12px}.v2-honeypot{position:absolute!important;left:-9999px!important}.v2-signup-login{text-align:center;color:var(--muted);font-size:.85rem}.v2-settings-learning{margin-bottom:18px}.primary-button{cursor:pointer}.primary-button:disabled{opacity:.6;cursor:wait}
@media(max-width:720px){.shell{width:min(calc(100% - 24px),var(--shell))}.v2-home{padding-top:18px}.v2-welcome-card{padding:19px}.v2-home-stats{grid-template-columns:1fr 1fr 1fr}.v2-home-stats>div{grid-template-columns:1fr;text-align:center;gap:2px}.v2-path-panel{grid-template-columns:1fr 1fr}.v2-quick-actions{grid-template-columns:1fr}.v2-goal-card{align-items:stretch;flex-direction:column}.v2-goal-buttons{display:grid;grid-template-columns:repeat(3,1fr)}.v2-goal-buttons button{min-width:0;padding:11px 8px}.v2-account-pitch{grid-template-columns:auto 1fr}.v2-account-pitch .primary-button{grid-column:1/-1;width:100%}.v2-today-button{min-height:84px;padding:15px}.v2-today-icon{width:42px;height:42px}.v2-today-copy strong{font-size:1.25rem}.site-header .header-actions .pill-link{display:none}.v2-dictation-shell{padding-top:22px}.v2-dictation-exercise{padding:18px}}

/* V2.1 — exercices, séries et consentements email */
.v2-quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
.v2-signup-check{display:grid!important;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#f8fbfd}
.v2-signup-check input{margin-top:4px}
.v2-signup-check span{display:grid;gap:3px}
.v2-signup-check small{color:var(--muted);line-height:1.45}
.v2-continue-guest{justify-self:center;margin-top:-2px}
.v2-choice-panel,.v2-series-panel{width:min(760px,calc(100vw - 28px));max-height:min(86vh,820px);overflow:auto}
.v2-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.v2-choice-grid button{border:1px solid var(--line);background:#fff;border-radius:16px;padding:18px;text-align:left;display:grid;gap:5px;cursor:pointer}
.v2-choice-grid button:hover{border-color:var(--blue-500);box-shadow:var(--shadow-soft)}
.v2-choice-grid button strong{color:var(--blue-950);font-size:1rem}
.v2-choice-grid button small{color:var(--muted);line-height:1.45}
.v2-series-search{width:100%;margin:12px 0 14px;padding:13px 15px;border:1px solid var(--line);border-radius:14px;font:inherit}
.v2-series-list{display:grid;gap:8px}
.v2-series-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--line);border-radius:15px;background:#fff}
.v2-series-row>div:first-child{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 10px;min-width:0}
.v2-series-row>div:first-child strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--blue-950)}
.v2-series-row>div:first-child small{grid-column:2;color:var(--muted)}
.v2-series-actions{display:flex;gap:6px;flex:none}
.v2-series-actions button{border:1px solid var(--line);background:var(--blue-50);color:var(--blue-900);border-radius:10px;padding:8px 10px;font-weight:800;cursor:pointer}
.v2-dictation-pack:disabled{opacity:.56;cursor:not-allowed;filter:grayscale(.15)}
@media(max-width:760px){.v2-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-choice-grid{grid-template-columns:1fr}.v2-series-row{align-items:stretch;flex-direction:column}.v2-series-actions button{flex:1}}

/* 2.1.1 — hard separation between QCM and typed activities. */
.qcm-choices[hidden],
.qcm-hint[hidden],
.qcm-feedback[hidden],
.qcm-example[hidden],
.qcm-card .round-action[hidden],
.v2-study-typed[hidden] {
    display: none !important;
}

/* V2.3 — activités visuelles + mode enfant */
.v2-quick-actions{grid-template-columns:repeat(5,minmax(0,1fr))}
.v2-kids-action{background:linear-gradient(145deg,#fff7fb,#f5fbff)!important;border-color:#f0c6dc!important}
.qcm-context{margin:0 auto 14px;max-width:760px;padding:13px 15px;border-radius:14px;background:rgba(255,255,255,.08);line-height:1.65;white-space:pre-line;text-align:left}
.qcm-question-media{display:grid;place-items:center;margin:4px auto 16px;max-width:540px}
.qcm-question-media[hidden],.qcm-context[hidden]{display:none!important}
.qcm-question-media img{max-width:100%;max-height:300px;object-fit:contain;border-radius:18px;box-shadow:0 10px 32px rgba(0,0,0,.2)}
.qcm-choice.has-image{min-height:190px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;align-items:center}
.qcm-choice-image{grid-column:2;display:block;width:100%;height:130px;object-fit:contain;border-radius:13px;background:rgba(255,255,255,.08)}
.qcm-choice-text{grid-column:2;display:block}
.qcm-choice-audio{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.16);font-size:1rem}
body.is-kids-session .qcm-card{border:2px solid rgba(255,215,238,.55);background:linear-gradient(160deg,#173f64,#403b77)}
body.is-kids-session .qcm-prompt{font-size:clamp(1.05rem,3vw,1.35rem);color:#fff3a7}
body.is-kids-session #quizQuestion{font-size:clamp(2rem,7vw,4.4rem)}
body.is-kids-session .qcm-choice{font-size:clamp(1.15rem,3vw,1.45rem);border-width:2px}
body.is-kids-session .qcm-choice-number{font-size:1rem;width:38px;height:38px}
body.is-focus-mode.focus-theme-light .qcm-context{background:#eef6fb;color:var(--blue-950)}
body.is-focus-mode.focus-theme-light .qcm-question-media img{box-shadow:0 10px 28px rgba(20,60,90,.12)}
body.is-focus-mode.focus-theme-light .qcm-choice-image{background:#fff}
@media(max-width:900px){.v2-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.qcm-choice.has-image{min-height:155px}.qcm-choice-image{height:105px}.qcm-question-media img{max-height:230px}}

/* 2.4 — série spéciale visible sans réintroduire la bibliothèque de paquets */
.v2-revision-s-shortcut{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid rgba(107,92,165,.28);border-radius:18px;background:linear-gradient(135deg,rgba(107,92,165,.12),rgba(244,196,90,.14));box-shadow:0 10px 28px rgba(20,35,60,.06)}
.v2-revision-s-shortcut[hidden]{display:none!important}
.v2-revision-s-shortcut-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.v2-revision-s-shortcut-copy strong{font-size:19px;color:var(--blue-950)}.v2-revision-s-shortcut-copy small{color:var(--muted);line-height:1.45}
.v2-revision-s-shortcut button{border:0;border-radius:12px;padding:11px 14px;background:#5f4f9a;color:#fff;font-weight:900;cursor:pointer;white-space:nowrap}
.v2-series-row.is-featured{border-color:rgba(107,92,165,.38);background:linear-gradient(135deg,rgba(107,92,165,.08),rgba(244,196,90,.08))}.v2-series-featured{grid-column:2;font-size:11px;font-style:normal;font-weight:900;color:#694f95}
@media(max-width:640px){.v2-revision-s-shortcut{align-items:stretch;flex-direction:column}.v2-revision-s-shortcut button{width:100%}}

/* 2.4.1 — visible fallback if the static activity catalogue cannot load */
.v2-load-error{position:relative;z-index:9999;margin:18px auto;max-width:760px;padding:16px 18px;border-radius:14px;background:#fff4f4;border:1px solid #d8a1a1;color:#6e2222;font-weight:700;line-height:1.55}

/* V2.5 — vraie bibliothèque enfant par thème */
.v2-kids-panel{width:min(820px,calc(100vw - 28px));max-height:min(88vh,860px);overflow:auto;background:linear-gradient(180deg,#fffafd,#fff)}
.v2-kids-random{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 16px;padding:16px 18px;border:1px solid #efc7dc;border-radius:16px;background:linear-gradient(135deg,#fff0f7,#f1f9ff);cursor:pointer;text-align:left}.v2-kids-random strong{font-size:1.08rem;color:#543b6e}.v2-kids-random small{color:var(--muted)}
.v2-kids-series-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v2-kids-series-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:14px;border:1px solid #ead9e5;border-radius:16px;background:#fff;cursor:pointer;text-align:left}.v2-kids-series-card:hover{border-color:#df9fbe;box-shadow:var(--shadow-soft)}.v2-kids-series-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#fff1f7;font-size:1.65rem}.v2-kids-series-card span:nth-child(2){display:grid;gap:3px}.v2-kids-series-card strong{color:var(--blue-950)}.v2-kids-series-card small{color:var(--muted)}.v2-kids-series-card b{color:#9a5f82}
.qcm-question-visual{display:grid;place-items:center;min-width:120px;min-height:120px;padding:10px;border-radius:22px;background:rgba(255,255,255,.08);font-size:clamp(4rem,12vw,7.5rem);font-weight:900;line-height:1}
.qcm-choice.has-visual{min-height:150px}.qcm-choice-visual{grid-column:2;display:grid;place-items:center;font-size:clamp(3rem,8vw,5.5rem);line-height:1}.qcm-choice.is-visual-only .qcm-choice-visual{grid-row:1 / span 2}.qcm-choice.is-visual-only .qcm-choice-image{grid-row:1 / span 2}
body.is-kids-session .qcm-question-media{margin-top:8px}body.is-kids-session .qcm-question-visual{background:rgba(255,255,255,.12)}body.is-kids-session .qcm-choice.has-visual{min-height:170px}
body.is-focus-mode.focus-theme-light .qcm-question-visual{background:#fff;color:var(--blue-950);box-shadow:0 8px 24px rgba(20,60,90,.08)}
@media(max-width:650px){.v2-kids-series-list{grid-template-columns:1fr}.qcm-choice.has-visual{min-height:135px}.qcm-choice-visual{font-size:3.7rem}.qcm-question-visual{min-height:95px;font-size:4.5rem}}

/* V2.6 — parcours quotidien enfant */
.v2-kids-today-card{margin:16px 0 20px;padding:16px;border:1px solid #efc7dc;border-radius:18px;background:linear-gradient(135deg,#fff1f8,#f3f9ff)}
.v2-kids-today-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.v2-kids-today-copy{display:grid;gap:3px;padding:12px;border-radius:14px;background:rgba(255,255,255,.88);border:1px solid #f0dce8}.v2-kids-today-copy span{font-size:.78rem;color:#a05f82;font-weight:800}.v2-kids-today-copy strong{color:#3e355f;font-size:1.02rem}.v2-kids-today-copy small{color:#72808d}
.v2-kids-path-progress{grid-column:1/-1;height:8px;border-radius:999px;background:#eadfea;overflow:hidden}.v2-kids-path-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e69bc0,#78bce7)}
.v2-kids-today-button{margin:0;background:#fff!important;border-color:#e8a9c9!important}.v2-kids-today-button strong{font-size:1.15rem}.v2-kids-free-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:6px 0 10px;color:#503e69}.v2-kids-free-heading small{color:#9a7c90}
body.is-kids-session .v2-study-typed label{font-size:1.1rem;color:#fff3a7}body.is-kids-session .v2-study-typed input{font-size:1.25rem;min-height:52px}
@media(max-width:600px){.v2-kids-today-summary{grid-template-columns:1fr}.v2-kids-path-progress{grid-column:auto}.v2-kids-today-card{padding:13px}}


/* V2.7 — onboarding + mode enfant principal */
.v2-onboarding-panel{max-width:720px}
.v2-onboarding-lead{margin-top:-4px;color:var(--muted,#637083)}
.v2-onboarding-section{display:grid;gap:10px;margin:20px 0}
.v2-onboarding-section>strong{font-size:.92rem}
.v2-onboarding-mode-grid,.v2-onboarding-level-grid,.v2-onboarding-goals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.v2-onboarding-goals{grid-template-columns:repeat(3,minmax(0,1fr))}
.v2-onboarding-mode-grid button,.v2-onboarding-level-grid button,.v2-onboarding-goals button{appearance:none;border:1px solid rgba(30,65,95,.18);background:#fff;border-radius:16px;padding:15px;text-align:left;display:grid;gap:4px;cursor:pointer;color:#17324d}
.v2-onboarding-mode-grid button>span{font-size:1.75rem}
.v2-onboarding-mode-grid button small,.v2-onboarding-level-grid button small,.v2-onboarding-goals button small{color:#68798a}
.v2-onboarding-mode-grid button.is-selected,.v2-onboarding-level-grid button.is-selected,.v2-onboarding-goals button.is-selected{border-color:#1d6d99;box-shadow:0 0 0 2px rgba(29,109,153,.12);background:#f3fbff}
.v2-onboarding-save-note{display:flex;gap:12px;align-items:flex-start;border-radius:16px;padding:14px;background:#f5f8fb;border:1px solid #dce7ef;margin:18px 0}
.v2-onboarding-save-note>span{font-size:1.5rem}
.v2-onboarding-save-note p{margin:0}
.v2-onboarding-start{width:100%;min-height:52px}
.is-kids-main{background:linear-gradient(135deg,#f9c5df,#d7c7ff)!important;color:#382549!important}
.is-kids-home .v2-path-card.is-kids-path .v2-section-heading button[data-toggle-v2-path],
.is-kids-home .v2-path-card.is-kids-path .v2-path-panel{display:none!important}
.is-kids-home .v2-quick-actions>button:not(.v2-kids-action){display:none}
.is-kids-home .v2-quick-actions .v2-kids-action{grid-column:1/-1}
@media(max-width:620px){
  .v2-onboarding-mode-grid,.v2-onboarding-level-grid{grid-template-columns:1fr}
  .v2-onboarding-goals{grid-template-columns:repeat(3,minmax(0,1fr))}
  .v2-onboarding-panel{padding:22px 18px}
}


/* V2.7.1 — sélecteur de profil permanent + CTA cours repensé */
.v2-home-mode{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(320px,1.25fr);
    align-items:center;
    gap:18px;
    padding:18px 20px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:var(--shadow-soft);
}
.v2-home-mode-copy{display:grid;gap:4px}
.v2-home-mode-copy>strong{font-size:1.05rem;color:var(--blue-950)}
.v2-home-mode-copy>small{color:var(--muted);font-size:.78rem}
.v2-home-mode-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.v2-home-mode-buttons button{
    appearance:none;
    border:1px solid var(--line);
    background:#f8fbfd;
    border-radius:15px;
    padding:11px 12px;
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:10px;
    text-align:left;
    color:var(--blue-950);
    cursor:pointer;
    transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.v2-home-mode-buttons button:hover{transform:translateY(-1px);border-color:rgba(14,79,120,.35)}
.v2-home-mode-buttons button>span:first-child{font-size:1.35rem}
.v2-home-mode-buttons button>span:last-child{display:grid;gap:2px}
.v2-home-mode-buttons button small{font-size:.7rem;color:var(--muted)}
.v2-home-mode-buttons button.is-active{
    border-color:var(--blue-700);
    background:#edf7fd;
    box-shadow:0 0 0 2px rgba(14,79,120,.09);
}
body.is-kids-home .v2-home-mode-buttons button[data-home-mode="kids"].is-active{
    background:#fff5fb;
    border-color:#d96aa7;
    box-shadow:0 0 0 2px rgba(217,106,167,.09);
}

.v2-lesson-cta{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:16px;
    padding:22px 24px;
    border:0;
    border-radius:24px;
    background:linear-gradient(135deg,#102f49 0%,#0e4f78 58%,#176d98 100%);
    color:#fff;
    text-decoration:none;
    box-shadow:0 16px 36px rgba(11,54,83,.18);
    overflow:hidden;
    position:relative;
}
.v2-lesson-cta::after{
    content:"";
    position:absolute;
    width:150px;
    height:150px;
    right:-58px;
    top:-72px;
    border-radius:50%;
    background:rgba(255,255,255,.07);
    pointer-events:none;
}
.v2-lesson-cta:hover{transform:translateY(-2px);box-shadow:0 20px 42px rgba(11,54,83,.23)}
.v2-lesson-cta-icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:rgba(255,255,255,.12);
    font-size:1.45rem;
}
.v2-lesson-cta-copy{display:grid;gap:3px;min-width:0}
.v2-lesson-cta-copy strong{font-size:1rem;line-height:1.45;color:#fff}
.v2-lesson-cta-copy>small{color:rgba(255,255,255,.74);font-size:.77rem}
.v2-lesson-cta-copy .v2-lesson-cta-kicker{
    color:#aee6ff;
    font-size:.68rem;
    font-weight:900;
    letter-spacing:.04em;
}
.v2-lesson-cta-action{
    position:relative;
    z-index:1;
    display:inline-flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
    padding:11px 14px;
    border-radius:13px;
    background:#fff;
    color:#0d496e;
    font-weight:900;
    font-size:.78rem;
}
.v2-lesson-cta-action b{font-size:1rem}

@media(max-width:720px){
    .v2-home-mode{grid-template-columns:1fr;padding:16px}
    .v2-home-mode-buttons{grid-template-columns:1fr 1fr}
    .v2-home-mode-buttons button{padding:10px}
    .v2-lesson-cta{grid-template-columns:auto 1fr;padding:18px}
    .v2-lesson-cta-action{grid-column:1/-1;justify-content:center;width:100%}
}
@media(max-width:420px){
    .v2-home-mode-buttons{grid-template-columns:1fr}
}

/* === NORUBI 2.8 · profils, enfants sans pub, inscription et indices === */
.v2-home-mode{order:-20}
.v2-signup-brand{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:-4px 0 14px;border:1px solid var(--line);border-radius:16px;background:#f7fbfe}
.v2-signup-brand img{width:48px;height:48px;object-fit:contain;border-radius:12px;background:#fff}
.v2-signup-brand div{display:grid;gap:2px}.v2-signup-brand strong{color:var(--blue-950)}.v2-signup-brand small{color:var(--muted)}
.v2-signup-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.v2-typed-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.v2-hint-button{min-height:46px}
.v2-typed-hint{margin:0;padding:12px 14px;border:1px dashed rgba(14,79,120,.28);border-radius:13px;background:#f4f9fd;color:var(--blue-950);font-weight:700}
body.is-kids-session .v2-typed-hint{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.28);color:#fff}
body.is-kids-home .nrb-promo-surface,body.is-kids-session .nrb-promo-surface{display:none!important}
body.is-kids-home .header-actions .pill-link,body.is-kids-session .header-actions .pill-link{display:none!important}
body.is-kids-home .v2-account-pitch .v2-signup-check{display:none!important}
body.is-kids-home #v2QuickActions>button:not(.v2-kids-action):not([data-start-review]){display:none!important}
body.is-kids-home #v2QuickActions .v2-kids-action,body.is-kids-home #v2QuickActions [data-start-review]{display:grid!important}
body.is-kids-home #v2QuickActions{grid-template-columns:1fr 1fr}
body.is-kids-home .site-shortcuts a{display:none}
@media(max-width:720px){.v2-signup-name-grid{grid-template-columns:1fr}.v2-home-mode{margin-top:0}body.is-kids-home #v2QuickActions{grid-template-columns:1fr}}
body.is-kids-home .nrb-promo-setting,body.is-kids-session .nrb-promo-setting{display:none!important}

/* V2.9 — email confirmation */
.nrb-account-notice{margin-top:18px;padding:14px 18px;border-radius:16px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:.9rem}
.nrb-account-notice.is-success{background:#ecfbf3;border:1px solid #b9ead0;color:#175f43}
.nrb-account-notice.is-error{background:#fff2f3;border:1px solid #f2c7cd;color:#8b2534}
.nrb-account-notice span{opacity:.85}

/* V4.2 — Kaiwa / conversations */
.nrb-kaiwa-player{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 20px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.07)}
.nrb-kaiwa-speakers{font-weight:800;font-size:18px;letter-spacing:.01em}
.nrb-kaiwa-player small{opacity:.72}
.qcm-example #quizExampleFr,.qcm-example #quizExampleJa{white-space:pre-line}
body.is-focus-mode.focus-theme-light .nrb-kaiwa-player{background:#f3f8fc;border-color:#d7e4ee;color:#173b5f}

/* 4.3 — signalement qualité depuis une activité */
.nrb-card-report-row{display:flex;justify-content:center;margin:14px 0 0}
.nrb-card-report-button{appearance:none;border:0;background:transparent;color:#6f8496;font:inherit;font-size:13px;font-weight:700;padding:8px 12px;border-radius:999px;cursor:pointer;text-decoration:underline;text-decoration-color:rgba(111,132,150,.35);text-underline-offset:3px}
.nrb-card-report-button:hover,.nrb-card-report-button:focus-visible{color:#b42318;background:rgba(180,35,24,.07);outline:none}
.nrb-card-report-panel{max-width:620px;text-align:left}
.nrb-card-report-intro{color:#62778a;margin:0 0 14px;line-height:1.65}
.nrb-card-report-preview{background:#eef5f9;border:1px solid #d6e5ee;border-radius:14px;padding:12px 14px;margin:0 0 16px;font-weight:700;color:#163955;overflow-wrap:anywhere}
.nrb-card-report-form fieldset{border:0;padding:0;margin:0 0 16px}
.nrb-card-report-form legend{font-weight:800;margin:0 0 10px;color:#173b58}
.nrb-card-report-form fieldset label{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #d9e5ed;border-radius:12px;margin:7px 0;background:#fff;cursor:pointer;font-weight:700}
.nrb-card-report-form fieldset label:has(input:checked){border-color:#2f78a8;background:#eef8ff}
.nrb-card-report-message{display:block;font-weight:800;color:#173b58}
.nrb-card-report-message span{display:block;margin-bottom:8px}
.nrb-card-report-message textarea{width:100%;box-sizing:border-box;border:1px solid #cbdbe6;border-radius:12px;padding:12px 14px;font:inherit;resize:vertical;min-height:100px}
.nrb-card-report-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.nrb-card-report-status{min-height:22px;margin:12px 0 0;color:#607486;font-weight:700}
.nrb-card-report-status.is-success{color:#18794e}.nrb-card-report-status.is-error{color:#b42318}
body.focus-theme-dark .nrb-card-report-button{color:#9db4c5}
body.focus-theme-dark .nrb-card-report-button:hover{color:#ffd1d7;background:rgba(255,130,150,.09)}
@media(max-width:640px){.nrb-card-report-panel{max-width:calc(100vw - 24px)}.nrb-card-report-actions>*{flex:1 1 100%}}

/* V5.0 — Parcours guidé visible */
.v5-course-card{overflow:hidden}.v5-course-summary{padding:18px;border:1px solid rgba(31,78,121,.12);border-radius:22px;background:linear-gradient(180deg,#f9fcff,#eef7ff)}
.v5-course-topline{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center}.v5-course-copy{min-width:0}.v5-course-copy strong{display:block;font-size:1.15rem;color:#173653}.v5-course-copy small{display:block;margin-top:4px;color:#64788d}.v5-unit-state{font-size:.78rem;font-weight:800;letter-spacing:.04em;color:#28689b;background:#fff;padding:8px 10px;border-radius:999px;border:1px solid #d9e7f3;white-space:nowrap}
.v5-progress-labels{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px;color:#64798c;font-size:.75rem;font-weight:750}.v5-progress-labels span:last-child{color:#2d6e9c}.v5-lesson-steps{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.v5-lesson-steps span{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;border:1px solid #d3e0e9;background:#fff;color:#648096;font-size:.69rem;font-weight:850}.v5-lesson-steps span.is-current{border-color:#4a98d2;background:#e9f5ff;color:#155c90;box-shadow:0 0 0 2px rgba(74,152,210,.12)}.v5-lesson-steps span.is-done{border-color:#9dd3aa;background:#edf9f0;color:#287442}.v5-lesson-steps span.is-locked{opacity:.48}.v5-course-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.v5-course-stats span{background:#fff;border:1px solid #dce8f2;border-radius:14px;padding:9px 10px;text-align:center}.v5-course-stats strong{display:block;color:#173653;font-size:1.05rem}.v5-course-stats small{display:block;color:#718398;margin-top:2px;font-size:.72rem}.v5-course-hint{margin:12px 2px 0;color:#5f7387;font-size:.86rem;line-height:1.6}
.v5-roadmap-panel{display:block!important;margin-top:14px}.v5-roadmap-panel[hidden]{display:none!important}.v5-roadmap{display:grid;gap:9px;margin-bottom:14px}.v5-roadmap-unit{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #dce6ef;border-radius:16px;background:#f7f9fb;opacity:.66}.v5-roadmap-unit.is-active{opacity:1;background:#eef7ff;border-color:#8dbfe8;box-shadow:0 7px 20px rgba(35,93,140,.08)}.v5-roadmap-unit.is-complete{opacity:1;background:#f1fbf4;border-color:#a9d9b5}.v5-roadmap-index{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#fff;border:1px solid #d9e5ef;font-weight:800;color:#2b668f}.v5-roadmap-unit strong{display:block;color:#193a56}.v5-roadmap-unit small{display:block;margin-top:2px;color:#718397;font-size:.74rem}.v5-roadmap-unit em{font-style:normal;font-size:.72rem;font-weight:800;color:#51728d;white-space:nowrap}.v5-mini-progress{display:block;height:4px;margin-top:7px;background:#dfeaf2;border-radius:999px;overflow:hidden}.v5-mini-progress i{display:block;height:100%;background:#4b95cf;border-radius:999px}.v5-roadmap-unit.is-complete .v5-mini-progress i{background:#56a66c}.v5-level-switcher{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.v5-level-switcher button{border:1px solid #dbe6ee;background:#fff;border-radius:14px;padding:10px}.v5-level-switcher strong,.v5-level-switcher small{display:block}.v5-level-switcher small{font-size:.7rem;color:#73869a;margin-top:2px}
@media(max-width:640px){.v5-course-topline{grid-template-columns:auto 1fr}.v5-unit-state{grid-column:1/-1;justify-self:start}.v5-roadmap-unit{grid-template-columns:30px 1fr}.v5-roadmap-unit em{grid-column:2}.v5-level-switcher{grid-template-columns:repeat(2,1fr)}}


/* V5.2 — mini-tests de placement volontaires */
.v5-level-skip-box{margin-top:18px;padding:18px;border:1px solid rgba(25,72,112,.14);border-radius:18px;background:linear-gradient(180deg,#f8fbff,#f2f7fb)}
.v5-level-skip-head strong{display:block;font-size:1.05rem;margin:3px 0 5px;color:#173a5a}.v5-level-skip-head p{margin:0;color:#5a6d7c;font-size:.9rem;line-height:1.55}
.v5-level-skip-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}.v5-level-skip-buttons button{border:1px solid rgba(31,92,142,.17);background:#fff;border-radius:14px;padding:12px 10px;text-align:left;cursor:pointer;color:#183b59}.v5-level-skip-buttons button strong,.v5-level-skip-buttons button small{display:block}.v5-level-skip-buttons button small{margin-top:3px;color:#687b8b}.v5-level-skip-buttons button:hover:not(:disabled){border-color:#317bb5;transform:translateY(-1px)}.v5-level-skip-buttons button.is-passed{background:#f1fbf5;border-color:#99d2ad}.v5-level-skip-buttons button:disabled{opacity:.45;cursor:not-allowed}.v5-level-skip-status{display:block;margin-top:10px;color:#687b8b;line-height:1.45}
body.is-kids-home .v5-level-skip-box{display:none!important}
@media(max-width:680px){.v5-level-skip-buttons{grid-template-columns:1fr}.v5-level-skip-box{padding:15px}}


/* 5.3 — micro-dictées A0 sur papier + auto-évaluation */
.v2-dictation-paper-note{margin:14px 0 4px;padding:12px 14px;border-radius:14px;background:#f6f9fb;color:var(--muted);line-height:1.65}
.v2-dictation-reveal{width:100%;min-height:52px;justify-content:center;margin:0 0 6px}
.v2-dictation-feedback #v2DictationAnswer{font-size:1.45rem;font-weight:900;color:var(--blue-950);margin:8px 0 4px}
.v2-dictation-ratings{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.v2-dictation-rating{min-height:54px;border:0;border-radius:15px;font-weight:900;cursor:pointer;font-size:1rem}
.v2-dictation-rating.is-good{background:#e7f7ed;color:#17683a}
.v2-dictation-rating.is-again{background:#fff3cf;color:#775b08}
.v2-dictation-pack .v2-dictation-session-status{justify-self:end;white-space:nowrap;font-size:.72rem;font-weight:900;padding:5px 8px;border-radius:999px}
.v2-dictation-session-status.is-passed{background:#e7f7ed;color:#17683a}
.v2-dictation-session-status.is-retry{background:#fff3cf;color:#775b08}
.v2-dictation-result{padding:28px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-soft);text-align:center}
.v2-dictation-result-status{display:inline-flex;padding:7px 12px;border-radius:999px;font-weight:900;margin-bottom:8px}
.v2-dictation-result.is-passed .v2-dictation-result-status{background:#e7f7ed;color:#17683a}
.v2-dictation-result.is-retry .v2-dictation-result-status{background:#fff3cf;color:#775b08}
.v2-dictation-result h2{margin:8px 0;color:var(--blue-950)}
.v2-dictation-result p{color:var(--muted);line-height:1.7}
.v2-dictation-result-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:18px}
@media(max-width:560px){.v2-dictation-ratings{grid-template-columns:1fr}.v2-dictation-pack{grid-template-columns:auto 1fr}.v2-dictation-pack>span:last-child{grid-column:2}.v2-dictation-pack .v2-dictation-session-status{justify-self:start}}


/* V5.7 — liens SEO vers les hubs pédagogiques crawlables */
.v57-seo-level-links{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow-soft)}
.v57-seo-level-links>div:first-child{display:grid;gap:3px}.v57-seo-level-links strong{color:var(--blue-950)}.v57-seo-level-links small{color:var(--muted)}
.v57-seo-level-buttons{display:flex;gap:7px;flex-wrap:wrap}.v57-seo-level-buttons a{min-width:44px;padding:9px 11px;border:1px solid #d6e5ef;border-radius:12px;background:#f4f9fd;color:var(--blue-900);font-weight:900;text-align:center;text-decoration:none}.v57-seo-level-buttons a:hover{background:#e6f3fc;border-color:#9fc9e4}
@media(max-width:680px){.v57-seo-level-links{align-items:stretch;flex-direction:column}.v57-seo-level-buttons{display:grid;grid-template-columns:repeat(4,1fr)}.v57-seo-level-buttons a{min-width:0}}


/* V5.7 — dictée : écoute normale ou ralentie sans TTS */
.v57-dictation-audio-actions{display:grid;grid-template-columns:2fr 1fr;gap:9px;margin:18px 0 6px}.v57-dictation-audio-actions .v2-audio-button{margin:0}.v57-dictation-slow{min-height:70px;justify-content:center}.v57-dictation-listen-count{display:block;margin:0 0 14px;color:var(--muted);text-align:center}
@media(max-width:560px){.v57-dictation-audio-actions{grid-template-columns:1fr}.v57-dictation-slow{min-height:50px}}

/* V5.9 — choix audio / vidéo du professeur sur les flashcards */
.nrb-study-media-choice{display:flex;align-items:center;justify-content:center;gap:10px 14px;flex-wrap:wrap;margin:10px auto 14px;padding:10px 12px;border:1px solid var(--line);border-radius:16px;background:#fff;max-width:720px}
.nrb-study-media-choice>span{font-size:.78rem;font-weight:900;color:var(--blue-950)}
.nrb-study-media-choice>div{display:flex;gap:7px;flex-wrap:wrap}
.nrb-study-media-choice button{appearance:none;border:1px solid #d2e0e9;background:#f5f8fa;color:#31536c;border-radius:999px;padding:8px 13px;font:inherit;font-size:.82rem;font-weight:850;cursor:pointer;transition:.16s ease}
.nrb-study-media-choice button:hover:not(:disabled){transform:translateY(-1px);border-color:#8ab8d5}
.nrb-study-media-choice button.is-active{background:#e9f5ff;border-color:#72add3;color:#155f91;box-shadow:0 0 0 2px rgba(70,143,194,.10)}
.nrb-study-media-choice button:disabled{opacity:.42;cursor:not-allowed}
.nrb-study-media-choice small{flex:1 1 100%;text-align:center;color:var(--muted);font-size:.72rem;line-height:1.4}
.nrb-study-video-panel{max-width:440px;margin:12px auto 18px;padding:10px;border:1px solid #cadde9;border-radius:20px;background:#fff;box-shadow:var(--shadow-soft)}
.nrb-study-video-panel[hidden]{display:none!important}
.nrb-study-video-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 4px 9px;color:var(--blue-950)}
.nrb-study-video-head button{width:34px;height:34px;border:0;border-radius:50%;background:#edf3f7;color:#425f74;font-size:1.25rem;line-height:1;cursor:pointer}
.nrb-study-video-panel video{display:block;width:100%;max-height:min(62vh,720px);aspect-ratio:9/16;object-fit:contain;border-radius:14px;background:#111}
body.is-focus-mode.focus-theme-dark .nrb-study-media-choice,body.is-focus-mode.focus-theme-dark .nrb-study-video-panel{background:#132636;border-color:rgba(255,255,255,.16)}
body.is-focus-mode.focus-theme-dark .nrb-study-media-choice>span,body.is-focus-mode.focus-theme-dark .nrb-study-video-head{color:#f2f8fc}
body.is-focus-mode.focus-theme-dark .nrb-study-media-choice button{background:#1b3345;border-color:rgba(255,255,255,.18);color:#dbeaf4}
body.is-focus-mode.focus-theme-dark .nrb-study-media-choice button.is-active{background:#234a66;border-color:#6eb4e3;color:#fff}
@media(max-width:560px){.nrb-study-media-choice{align-items:stretch;flex-direction:column}.nrb-study-media-choice>div{display:grid;grid-template-columns:1fr 1fr}.nrb-study-video-panel{max-width:calc(100vw - 28px)}}
