/* cultureEZ — styles. Mobile d'abord, thème clair/sombre (automatique ou choisi dans Paramètres), sans police externe. */

:root {
  --bg: #f6f3ee; --surface: #ffffff; --surface-2: #efeae2; --ink: #1d2433; --muted: #5b6475; --line: #e3ddd2;
  --accent: #d9482e; --accent-soft: #fbe3dc; --on-accent: #ffffff;
  --fr: #2f5bd3; --fr-soft: #e3eafc; --int: #0f7a5c; --int-soft: #dcf2ea;
  --ok: #1f7a4d; --warn: #9a5b00; --err: #b3261e;
  --radius: 16px; --radius-s: 10px; --shadow: 0 1px 2px rgba(29,36,51,.06), 0 6px 20px rgba(29,36,51,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabs-h: 0px; --top-h: 56px;
  --tone-facts: #2457c5; --tone-facts-soft: #e6eefc; --tone-vocab: #7a3fb8; --tone-vocab-soft: #f1e8fb; --tone-discover: #0b7c75; --tone-discover-soft: #dcf3f0;
  --tone-recul: #9a5800; --tone-recul-soft: #fcefd6; --tone-end: #be2d6c; --tone-end-soft: #fde5ef;   /* 5 cartes d'une fiche (fiche.js) */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151c; --surface: #1b2029; --surface-2: #232a35; --ink: #eef0f4; --muted: #a3abba; --line: #2c3340;
    --accent: #ff7a5c; --accent-soft: #3a2420; --on-accent: #1b1210;
    --fr: #8eaaff; --fr-soft: #1f2a46; --int: #5fd3ad; --int-soft: #15332b;
    --ok: #6fd39c; --warn: #f0b45b; --err: #ff8a80;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    --tone-facts: #9db8ff; --tone-facts-soft: #1c2846; --tone-vocab: #d2acf6; --tone-vocab-soft: #2e2142; --tone-discover: #63d6c9; --tone-discover-soft: #11322f;
    --tone-recul: #f3c062; --tone-recul-soft: #3a2a12; --tone-end: #ff9cc5; --tone-end-soft: #3e1a2b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12151c; --surface: #1b2029; --surface-2: #232a35; --ink: #eef0f4; --muted: #a3abba; --line: #2c3340;
  --accent: #ff7a5c; --accent-soft: #3a2420; --on-accent: #1b1210;
  --fr: #8eaaff; --fr-soft: #1f2a46; --int: #5fd3ad; --int-soft: #15332b;
  --ok: #6fd39c; --warn: #f0b45b; --err: #ff8a80;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  --tone-facts: #9db8ff; --tone-facts-soft: #1c2846; --tone-vocab: #d2acf6; --tone-vocab-soft: #2e2142; --tone-discover: #63d6c9; --tone-discover-soft: #11322f;
  --tone-recul: #f3c062; --tone-recul-soft: #3a2a12; --tone-end: #ff9cc5; --tone-end-soft: #3e1a2b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: pan-x pan-y; overscroll-behavior: none; } /* pas de zoom, ni au double appui ni à deux doigts, ni rebond de la page, comme une appli native */
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font);
  min-height: 100dvh; padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom));
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 750; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 .9rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 2000; background: var(--surface); padding: .5rem 1rem; }
[hidden] { display: none !important; }

/* Bandeau STAGING */
#staging { display: none; position: fixed; top: 0; left: 0; right: 0; height: 22px; line-height: 22px; text-align: center;
  background: #c62828; color: #fff; font-weight: 700; font-size: .75rem; letter-spacing: .15em; z-index: 1000; }
.is-staging #staging { display: block; }
.is-staging .top { top: 22px; }
.is-staging body { padding-top: 22px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 1rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.logo { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.1; font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -.02em; }
.logo b { color: var(--accent); }
.logo { flex-direction: row; gap: .5rem; }   /* logo café du matin : icône + nom (30/11/2026) */
.logo img { flex: none; width: 30px; height: 30px; border-radius: 8px; }

main { max-width: 40rem; margin: 0 auto; padding: 1rem 1rem 2rem; outline: none; }
.loading { color: var(--muted); padding: 3rem 0; text-align: center; }

/* Icônes de navigation dans l'en-tête (28/11/2026 : plus de barre en bas) */
.tabs { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.tabs[hidden] { display: none; }
.tabs a, .tabs button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { color: var(--accent); }
.tabs a[aria-current="page"] svg { stroke-width: 2.2; }
.tabs a[data-tab="favoris"][aria-current="page"] svg { fill: currentColor; }

/* Blocs */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card.soft { background: var(--surface-2); box-shadow: none; }
.hero { padding: .5rem 0 1rem; }
.hero .date { color: var(--muted); font-size: .9rem; font-weight: 600; text-transform: capitalize; margin-bottom: .25rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.stack > * + * { margin-top: .75rem; }
.row { display: flex; align-items: center; gap: .75rem; }
.row.between { justify-content: space-between; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .big { font-size: 2.5rem; margin-bottom: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.chip.fr { background: var(--fr-soft); color: var(--fr); }
.chip.int { background: var(--int-soft); color: var(--int); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.date { background: var(--ink); color: var(--surface); }   /* date des news dans l'admin : bien visible, clair comme sombre */
/* Motifs à cocher (« Qu'est-ce qui n'allait pas ? », types d'idée dans Paramètres) : pastilles qui se cochent */
.chip-toggle { font: inherit; font-size: .88rem; font-weight: 600; padding: .45rem .8rem; border-radius: 999px; border: 1.5px solid var(--line, var(--surface-2)); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip-toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
/* Semaine : 7 petites cases grises à droite du « Salut », discrètes (le regard va aux news du jour) */
.hero-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem .75rem; }
.hero-head h1 { margin: 0; }
.hero-badge { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-left: .35em; vertical-align: .1em; font-size: .7em; border-radius: 50%; background: var(--accent-soft); }
.week { display: flex; align-items: center; opacity: .75; }
.week-days { display: grid; grid-template-columns: repeat(7, 14px); gap: 3px; }
.week-day { height: 14px; border-radius: 4px; display: grid; place-items: center; font-size: .5rem; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.week-day.on { background: color-mix(in srgb, var(--muted) 70%, var(--surface)); color: var(--surface); }
.week-check { display: grid; place-items: center; }
.week-check svg { stroke-width: 3; width: 9px; height: 9px; }
.week { position: relative; }
.week-big { margin-bottom: 1rem; }
.week-big .week { opacity: 1; justify-content: center; }
.week-big .week-days { grid-template-columns: repeat(7, 28px); gap: 5px; }
.week-big .week-day { height: 28px; border-radius: 7px; font-size: .75rem; }
.week-big .week-check svg { width: 14px; height: 14px; }
.week-day.pop { animation: week-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes week-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.cheer-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 1rem;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); animation: cheer-fade .25s ease-out; transition: opacity .3s; }
.cheer-modal.out { opacity: 0; }
.cheer-box { width: min(22rem, 100%); text-align: center; background: var(--surface); color: var(--ink); border-radius: var(--radius);
  padding: 1.6rem 1.3rem 1.3rem; box-shadow: var(--shadow); border: 3px solid var(--ok); animation: cheer-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.cheer-smile { font-size: 5rem; line-height: 1; animation: cheer-bounce 1s ease-in-out .5s 2; }
.cheer-text { margin: .8rem 0 .2rem; font-size: 1.7rem; font-weight: 900; line-height: 1.2; color: var(--ok); }
@keyframes cheer-fade { from { opacity: 0; } }
@keyframes cheer-in { 0% { opacity: 0; transform: scale(.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes cheer-bounce { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.2) rotate(-8deg); } 60% { transform: scale(1.1) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .cheer-modal, .cheer-box, .cheer-smile { animation: none; } }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti span { position: absolute; border-radius: 2px; }
.week-day.today { box-shadow: inset 0 0 0 1px var(--muted); }
.week-day.future { opacity: .5; }

/* Formulaires */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
input[type="email"], input[type="text"], input[type="search"], input[type="url"], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: .75rem .85rem; min-height: 48px; }
textarea { min-height: 6rem; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
input.code { font-size: 1.8rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding-left: 1rem; }
.field { margin-bottom: 1rem; }
.hint { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.error { color: var(--err); font-size: .9rem; font-weight: 600; margin: .5rem 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 700; border: 0; cursor: pointer;
  min-height: 48px; padding: .7rem 1.2rem; border-radius: 12px; background: var(--ink); color: var(--bg); text-decoration: none; }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.link { background: none; color: var(--muted); padding: .5rem; min-height: 44px; text-decoration: underline; font-weight: 600; }
.btn.danger { background: transparent; color: var(--err); border: 1.5px solid currentColor; }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: .35rem .8rem; font-size: .88rem; border-radius: 9px; }
.btn[disabled] { opacity: .55; cursor: default; }

.segmented { display: flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button { flex: 1; font: inherit; font-weight: 600; font-size: .9rem; border: 0; background: transparent; color: var(--muted); border-radius: 9px; min-height: 40px; cursor: pointer; }
.segmented.wrap { flex-wrap: wrap; }
.segmented.wrap button { flex: 1 1 auto; padding: 0 .7rem; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.segmented button:disabled { opacity: .45; cursor: default; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; margin: 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); }

/* Listes */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.menu a { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); min-height: 48px; }
.menu a:last-child { border-bottom: 0; }
.menu a::after { content: "›"; color: var(--muted); font-size: 1.3rem; }

/* Profil */
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
.stats div { background: var(--surface-2); border-radius: 12px; padding: .7rem .3rem; }
.stats b { display: block; font-size: 1.4rem; }
.stats span { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* Connexion */
.auth { max-width: 26rem; margin: 0 auto; padding-top: 1.5rem; }
.bullets { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.bullets li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .6rem; color: var(--muted); }
.bullets li span:first-child { font-size: 1.2rem; line-height: 1.4; }

/* Notifications éphémères */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + .75rem); display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: 3000; pointer-events: none; padding: 0 1rem; }
.toast { background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); max-width: 30rem; pointer-events: auto; animation: toast-in .2s ease-out; }
.toast.err { background: var(--err); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.noscript { padding: 2rem; text-align: center; }

@media (min-width: 48rem) {
  main { padding-top: 2rem; }
  h1 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Installation de la PWA */
.install { display: flex; gap: .8rem; align-items: flex-start; position: relative; }
.install.card { padding-right: 2.5rem; }
.install img { border-radius: 11px; flex: none; }
.install .grow { flex: 1; min-width: 0; }
.install-close { position: absolute; top: .4rem; right: .4rem; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.steps { list-style: none; padding: .4rem 1.1rem; }
.steps li { display: flex; align-items: center; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li svg { vertical-align: -4px; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.step-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--fr); }
.step-txt { font-weight: 800; font-size: .8rem; }
.auth .install-slot:not(:empty) { margin-bottom: 1rem; }
.install-hero { text-align: center; margin: .5rem 0 1rem; }
.install-hero img { border-radius: 18px; box-shadow: var(--shadow); }
.install-hero h1 { margin: .75rem 0 .35rem; }
.install-hero p { margin: 0 auto; max-width: 30rem; }
.benefits { list-style: none; padding: .4rem 1.1rem; }
.benefits li { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.benefits li:last-child { border-bottom: 0; }
.benefits p { margin: .15rem 0 0; }
.benefit-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.15rem; }
.install-page h2 { margin: 1.25rem 0 .6rem; }
.install-alt { margin: 1.25rem 0 .5rem; }
.install-alt summary { cursor: pointer; text-align: center; padding: .4rem 0; }

/* Connexion : Google, mot de passe */
.btn.google { background: #fff; color: #1f1f1f; border: 1.5px solid #dadce0; }
:root[data-theme="dark"] .btn.google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.google { background: #131314; color: #e3e3e3; border-color: #8e918f; } }
/* « Se connecter avec Apple » (app iOS) : noir, blanc en mode sombre (règles de présentation d'Apple) ; même taille que Google */
.btn.apple { background: #000; color: #fff; border: 1.5px solid #000; margin-bottom: .6rem; }
.btn.apple .apple-logo { font-family: -apple-system, system-ui, sans-serif; font-size: 1.15em; line-height: 1; margin-right: .1rem; }
:root[data-theme="dark"] .btn.apple { background: #fff; color: #000; border-color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.apple { background: #fff; color: #000; border-color: #fff; } }
.or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pw { position: relative; }
.pw input { padding-right: 5.5rem; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 40px; padding: 0 .75rem; border: 0; background: none; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; border-radius: 8px; }
input[type="password"] { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: .75rem .85rem; min-height: 48px; }
input[type="password"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.spinner { width: 36px; height: 36px; margin: .5rem auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Accueil, historique, favoris : actualités */
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.chip.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
/* Carrousel des actualités du jour */
a.card.news { display: block; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.card.news:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
a.card.news:active { transform: scale(.99); }
.card.news h2, .card.news h3 { margin: .6rem 0 .4rem; }
.card.news > .row:last-child { margin-top: .6rem; }
.card.news { position: relative; }
.card.news.done { background: color-mix(in srgb, var(--ok) 7%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.card.news.done h2, .card.news.done h3 { color: color-mix(in srgb, var(--ink) 75%, var(--surface)); }
.news-check { position: absolute; top: .8rem; right: .8rem; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--surface); }
.news-check svg { stroke-width: 3; }
.card.news.done > .row-wrap:first-of-type { padding-right: 2.4rem; }
.card.news.off { opacity: .6; box-shadow: none; }
/* Image d'illustration du sujet de société (Wikimedia Commons), crédit sous l'image */
/* Parcours commencé et pas terminé : bordure de l'accent, progression et « Reprendre » */
.card.news.started { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.card.news .resume { margin-top: .6rem; }
.resume-go { display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; color: var(--accent); }
.card.news.busy { cursor: progress; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.carousel { margin-bottom: 1rem; }
.carousel-track { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1rem; margin: 0 -1rem; padding: .2rem 1rem .6rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 86%; scroll-snap-align: start; display: flex; }
.carousel-slide > .card.news { flex: 1; margin-bottom: 0; }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.carousel-dot[aria-current="true"] { width: 22px; background: var(--accent); }
/* Attente de la rédaction par l'IA */
.ai-modal { width: min(26rem, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); animation: ai-modal-in .25s ease-out; }
.ai-modal::backdrop { background: rgba(0, 0, 0, .5); backdrop-filter: blur(2px); }
@keyframes ai-modal-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.ai-tip { margin-top: 1rem; padding: .8rem .9rem; border-radius: var(--radius-s); background: var(--accent-soft); }
.ai-tip b { display: block; font-size: .8rem; color: var(--accent); margin-bottom: .25rem; }
.ai-tip-text { margin: 0; font-weight: 600; line-height: 1.35; min-height: 2.7em; }
.ai-tip-text.in { animation: ai-fade .6s ease-out; }
.ai-wait-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; font-size: .95rem; }
.ai-wait-head b { animation: ai-fade .6s ease-out; }
.ai-orb { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); animation: ai-pulse 1.4s ease-in-out infinite; }
.ai-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); overflow: hidden; margin-bottom: .55rem; }
.ai-bar span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1s linear;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--surface)), var(--accent)); background-size: 200% 100%; animation: ai-shimmer 1.6s linear infinite; }
@keyframes ai-pulse { 0%, 100% { transform: scale(.75); opacity: .55; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 7px transparent; } }
@keyframes ai-shimmer { to { background-position: -200% 0; } }
@keyframes ai-fade { from { opacity: 0; transform: translateY(3px); } }
.section-title { font-size: 1.05rem; margin: 1.2rem 0 .6rem; }
.section-date { display: block; font-size: .9rem; font-weight: 700; color: var(--accent); text-transform: capitalize; margin-bottom: .15rem; }
.meter { flex: 1; max-width: 9rem; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.offline-note { background: var(--surface-2); border-radius: var(--radius-s); padding: .6rem .8rem; font-size: .88rem; color: var(--muted); font-weight: 600; }
.day { margin-bottom: 1.25rem; }
.day-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; text-transform: capitalize; margin: 1rem 0 .6rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Lecture d'un parcours (plein écran : sans en-tête ni onglets) */
body.immersive { padding-bottom: 0; }
body.immersive .top, body.immersive #tabs { display: none !important; }
.icon-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.fav { color: var(--muted); margin: -.5rem -.5rem -.5rem 0; }
.icon-btn.fav[aria-pressed="true"] { color: var(--accent); }
.icon-btn.fav[aria-pressed="true"] svg { fill: currentColor; }
.reader { display: flex; flex-direction: column; min-height: calc(100dvh - 3rem); }
.reader-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem; padding: calc(env(safe-area-inset-top) + .25rem) 0 .4rem; background: var(--bg); }
.is-staging .reader-top { top: 22px; }
.segments { display: flex; gap: 4px; }
.segments span { flex: 1; height: 5px; border-radius: 999px; background: var(--line); transition: background .2s; }
.segments span.on { background: var(--accent); }
.counter { font-size: .8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: right; }
.reader-title { font-size: .85rem; color: var(--muted); font-weight: 600; margin: .25rem 0 .75rem; }
.stage { flex: 1; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem 1.2rem 1.1rem; box-shadow: var(--shadow); }
.lcard h2 { font-size: 1.45rem; font-weight: 800; margin: .8rem 0 .7rem; }
.lcard .body { font-size: 1.08rem; line-height: 1.6; }
.lcard .body ul { padding-left: 1.2rem; margin: 0 0 .9rem; }
.lcard .body li { margin-bottom: .35rem; }
.lcard.type-hook h2 { font-size: 1.7rem; }
.lcard.type-question { background: var(--accent-soft); border-color: transparent; }
.lcard.type-takeaways .body li::marker { color: var(--accent); }
.lcard.from-right { animation: from-right .34s cubic-bezier(.22,.61,.36,1); }
.lcard.from-left { animation: from-left .34s cubic-bezier(.22,.61,.36,1); }
@keyframes from-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-40px); } }
.media { margin: 0 0 1rem; }
.media img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--surface-2); }
.media figcaption { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.interaction { border-top: 1px dashed var(--line); padding-top: .9rem; margin-top: .3rem; }
.interaction .q { font-weight: 700; margin-bottom: .6rem; }
.choices { display: grid; gap: .5rem; }
.choices.row-wrap { display: flex; }
.choice { font: inherit; font-weight: 600; text-align: left; min-height: 46px; padding: .6rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.choices.row-wrap .choice { text-align: center; flex: 1 1 auto; }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.choice.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.choice.wrong { border-color: var(--err); background: color-mix(in srgb, var(--err) 10%, var(--surface)); }
.choice[disabled] { cursor: default; opacity: 1; }
.feedback, .revealed { margin: .7rem 0 0; font-weight: 600; }
.sources { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.sources summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.sources ul { padding-left: 1.1rem; margin: .3rem 0 0; }
.sources a { color: var(--fr); overflow-wrap: anywhere; }
/* Précédent / Suivant fixés en bas de l'écran (15/11/2026 : en sticky, sur iPhone, la barre restait parfois au milieu d'une carte longue
   et en cachait le texte) ; .reader garde en bas la place de la barre, la fin de la carte défile au-dessus des boutons */
.reader { padding-bottom: calc(env(safe-area-inset-bottom) + 6rem); }
.reader-nav { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(40rem, 100%); box-sizing: border-box;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: .6rem; padding: 1rem 1rem calc(env(safe-area-inset-bottom) + .8rem); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.kb-open .reader-nav { position: static; transform: none; width: auto; padding-inline: 0; }   /* clavier ouvert : la barre reprend sa place sous la carte */
.kb-open .reader { padding-bottom: 0; }

/* Fin de parcours */
.end { padding-top: 1rem; }
.big-emoji { font-size: 3.2rem; line-height: 1; margin-bottom: .5rem; }
.end .card.retain { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }   /* synthèse mise en avant */
.takeaways { margin: .8rem 0 0; padding-left: 1.3rem; }
.takeaways li { margin-bottom: .55rem; font-weight: 600; }
.takeaways li::marker { color: var(--accent); font-weight: 800; }
.fq { font-size: 1.1rem; font-weight: 700; margin: .75rem 0 0; }
.btn.big { padding: 1rem 1.2rem; font-size: 1.1rem; }
.end-cta { position: sticky; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); z-index: 20; padding: .9rem 0; background: linear-gradient(to top, var(--bg) 75%, transparent); }
.end-cta + .btn { margin-top: .25rem; }
/* « Terminé » : « Terminé ! » en grand dans l'explosion de confettis, puis retour à l'accueil */
.end > * { transition: opacity .4s; }
.end-burst { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; pointer-events: none; text-align: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent); transition: opacity .4s; }
.end-burst.cover { background: var(--bg); }
.end-burst.out { opacity: 0; }
.burst-box { animation: burst-in .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.burst-word { display: block; font-size: clamp(2.6rem, 14vw, 5.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; color: var(--accent); }
.burst-points { margin-top: .4rem; font-size: clamp(1.8rem, 9vw, 3rem); font-weight: 900; color: var(--ink); }
.burst-note { margin-top: .4rem; font-weight: 700; color: var(--muted); }
@keyframes burst-in { 0% { opacity: 0; transform: scale(.3) rotate(-6deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .burst-box { animation: none; } }
/* Quiz du jour proposé à l'arrivée sur l'accueil */
.quiz-box { border-color: var(--accent); }
.quiz-box h2 { margin: .9rem 0 .4rem; }
.quiz-box .stack { margin-top: 1rem; }

/* Quiz du lendemain et récompenses */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quiz-line { display: flex; align-items: center; gap: .75rem; text-decoration: none; padding: .8rem 1rem; }
.quiz-line .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.quiz-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.quiz-tag { font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.quiz-pts { display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; font-weight: 700; color: var(--muted); }
.quiz-pts svg { width: 14px; height: 14px; }
.reader-nav.single { grid-template-columns: 1fr; }
.lcard.type-quiz .choices { margin-top: .4rem; }
.lcard.type-quiz .feedback:empty { display: none; }
.lcard.type-quiz .feedback { font-weight: 400; background: var(--surface-2); border-radius: var(--radius-s); padding: .75rem .9rem; }
.reward { text-align: center; }
.reward .points { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.reward .points span { font-size: 1rem; font-weight: 700; }
.new-badge { display: flex; align-items: center; gap: .75rem; text-align: left; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.badge-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--accent-soft); }
.badges { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.badges li { display: flex; align-items: center; gap: .75rem; }
.badges li:not(.on) .badge-icon { background: var(--surface-2); filter: grayscale(1); opacity: .55; }
.badges li:not(.on) b { color: var(--muted); }
.corrections { margin: 0; padding-left: 1.3rem; }
.corrections li { margin-bottom: 1rem; }
.corrections li::marker { font-weight: 800; color: var(--muted); }
.corrections p { margin: .3rem 0; }
.corrections .ok { color: var(--ok); font-weight: 700; }
.corrections .ko { color: var(--err); font-weight: 700; }

/* Administration */
.btn.link.back { padding-left: 0; margin-bottom: .25rem; text-decoration: none; }
.chip.ko { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.chip.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }   /* rédaction IA en cours (admin, 20/11/2026) */
.notice.warn { padding: .6rem .8rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--ink); }
.error-text { color: var(--err); margin-top: .2rem; }
.list li.feed { flex-wrap: wrap; align-items: flex-start; }
.list li.feed.off .grow > .row-wrap b { color: var(--muted); }
.feed-form { flex-basis: 100%; background: var(--surface-2); border-radius: var(--radius-s); padding: .9rem; }
.switch.compact { flex: none; }
.row select { width: auto; min-width: 0; max-width: 55%; }
.list.articles a { text-decoration: none; }
.list.articles a:hover b { text-decoration: underline; }
.candidate h3 { margin: .6rem 0 .4rem; }
.candidate .score { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; flex: none; }
.candidate .score span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.criteria { list-style: none; padding: 0; margin: .4rem 0 0; }
.criteria li { display: flex; align-items: center; gap: .6rem; padding: .2rem 0; }
.criteria .meter { flex: none; width: 5rem; }
.meter.wide { max-width: none; width: 100%; margin-top: .35rem; }
.checks { margin: .3rem 0 .6rem; padding-left: 1.1rem; }
.editor .field { margin-bottom: .8rem; }
.editor textarea { min-height: 3.5rem; line-height: 1.5; }
.editor input:disabled, .editor textarea:disabled, .editor select:disabled { opacity: .7; }
.editor-bar { position: sticky; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; box-shadow: var(--shadow); margin-top: 1rem; }
.it-edit { border-top: 1px dashed var(--line); padding-top: .8rem; margin-top: .4rem; }
.row.opt { align-items: center; gap: .6rem; }
.row.opt input[type="radio"] { width: 22px; height: 22px; flex: none; margin-top: .9rem; accent-color: var(--accent); }
.srcs { border: 1px solid var(--line); border-radius: var(--radius-s); padding: .5rem .8rem .7rem; margin: 0 0 .8rem; }
.srcs legend { font-weight: 600; font-size: .92rem; padding: 0 .3rem; }
label.check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; margin: .35rem 0; cursor: pointer; }
label.check input { width: 20px; height: 20px; flex: none; margin-top: .15rem; accent-color: var(--accent); }
.claims { list-style: none; padding: 0; margin: 0; }
.claims .claim-note { display: block; margin-top: .15rem; }
.claims.small li { margin: .3rem 0; }
.review-box { margin-top: .6rem; padding: .6rem .75rem; border-left: 3px solid var(--line); }
input[type="date"] { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: .55rem .7rem; min-height: 44px; display: block; margin-top: .35rem; }
.ed-list li { flex-wrap: wrap; }
/* Texte d'une news : toute la largeur sur mobile, les boutons passent dessous (sinon flex: 1 le laisse écraser en colonne étroite). */
.ed-list li > .grow { flex: 1 1 16rem; }
.ed-list label.check > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ed-list li.off { opacity: .55; }
.list li.off { opacity: .55; }
/* Admin, sujets du jour d'un lecteur : sur mobile, les pastilles passent sous le titre au lieu de l'écraser. */
.list li.offer { flex-wrap: wrap; }
.list li.offer > .grow { flex: 1 1 14rem; }
.ed-list a { text-decoration: none; }
.ed-list .icon-btn { width: 36px; height: 36px; font-size: 1.05rem; }
input[type="search"] { flex: 1; min-width: 0; }
.it-edit h4 { margin: 0 0 .5rem; font-size: .95rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-top: .6rem; }
.media-pick { display: flex; flex-direction: column; gap: .25rem; padding: .3rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--muted); font: inherit; font-size: .72rem; text-align: left; cursor: pointer; }
.media-pick:hover, .media-pick:focus-visible { border-color: var(--accent); }
.media-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.media-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small-media img { max-height: 180px; width: auto; max-width: 100%; }
.bullets-plain { margin: 0 0 .6rem; padding-left: 1.1rem; font-size: .92rem; }
.bullets-plain li { margin-bottom: .4rem; }
.privacy h2 { font-size: 1.05rem; }

/* « Voir comme » (admin) : bandeau fixe sous le bandeau STAGING */
#viewas { position: fixed; left: 0; right: 0; top: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: calc(.35rem + env(safe-area-inset-top)) 1rem .35rem; background: #6a1b9a; color: #fff; font-size: .85rem; }
#viewas button { border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; border-radius: 999px; padding: .15rem .8rem; font: inherit; font-weight: 700; cursor: pointer; }
.is-staging #viewas { top: 22px; padding-top: .35rem; }
.is-viewas body { padding-top: 2.4rem; }
.is-staging.is-viewas body { padding-top: calc(22px + 2.4rem); }
.is-viewas .top { top: 2.4rem; }
.is-staging.is-viewas .top { top: calc(22px + 2.4rem); }


/* Design « Nouveau » (choisi dans Paramètres, data-design="pop" sur <html>) : maquette « Modern Editorial Tactile » du 30/10/2026
   (nouveau design.zip) : fond coquille d'œuf, accent carmin, badges pastel, bleu cobalt pour le quiz, cartes très arrondies,
   barre d'onglets flottante, tout en Plus Jakarta Sans (police OFL hébergée dans assets/fonts, la CSP interdit les polices externes).
   Seuls les styles changent, pas le contenu : clair et sombre suivent le réglage Thème. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root[data-design="pop"] {
  --bg: #f6f3ee; --surface: #ffffff; --surface-2: #f0ede8; --ink: #1c1e21; --muted: #636870; --faint: #94989e; --line: #e5e1d8;
  --accent: #c83c2a; --accent-soft: #fde4df; --on-accent: #ffffff; --streak: #e0533c;
  --fr: #3353b7; --fr-soft: #e8eefd; --int: #1e7e55; --int-soft: #ddf5eb; --society: #79339e; --society-soft: #f5e9fc;
  --cobalt: #1c46d3; --cobalt-2: #3e61ec;
  --ok: #1e7e55; --warn: #916000; --err: #ba1a1a;
  --radius: 20px; --radius-s: 14px;
  --shadow: 0 4px 12px rgba(28,30,33,.03); --shadow-2: 0 8px 24px rgba(28,30,33,.07);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root[data-design="pop"]:not([data-theme="light"]) {
    --bg: #141311; --surface: #1f1d1b; --surface-2: #2a2825; --ink: #f3f0eb; --muted: #aba69e; --faint: #7c7770; --line: #34312d;
    --accent: #ff8a73; --accent-soft: #3d1f19; --on-accent: #2a0904; --streak: #ff7a5c;
    --fr: #a9bbff; --fr-soft: #1e2849; --int: #6fd6a6; --int-soft: #12322a; --society: #dcb2f5; --society-soft: #33203f;
    --cobalt: #2a4fd6; --cobalt-2: #4c6cf0;
    --ok: #6fd6a6; --warn: #f0c25b; --err: #ffb4ab;
    --shadow: 0 4px 12px rgba(0,0,0,.25); --shadow-2: 0 8px 24px rgba(0,0,0,.4);
  }
}
:root[data-design="pop"][data-theme="dark"] {
  --bg: #141311; --surface: #1f1d1b; --surface-2: #2a2825; --ink: #f3f0eb; --muted: #aba69e; --faint: #7c7770; --line: #34312d;
  --accent: #ff8a73; --accent-soft: #3d1f19; --on-accent: #2a0904; --streak: #ff7a5c;
  --fr: #a9bbff; --fr-soft: #1e2849; --int: #6fd6a6; --int-soft: #12322a; --society: #dcb2f5; --society-soft: #33203f;
  --cobalt: #2a4fd6; --cobalt-2: #4c6cf0;
  --ok: #6fd6a6; --warn: #f0c25b; --err: #ffb4ab;
  --shadow: 0 4px 12px rgba(0,0,0,.25); --shadow-2: 0 8px 24px rgba(0,0,0,.4);
}

/* Typographie */
[data-design="pop"] body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
[data-design="pop"] ::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
[data-design="pop"] h1 { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -.03em; }
[data-design="pop"] h2 { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -.02em; }
[data-design="pop"] h3 { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -.01em; }
[data-design="pop"] .small { font-size: 13px; line-height: 18px; }
[data-design="pop"] label { font-size: 14px; }
@media (min-width: 48rem) { [data-design="pop"] h1 { font-size: 32px; line-height: 38px; } }

/* En-tête : logo à gauche, icônes de navigation à droite */
[data-design="pop"] .top { justify-content: space-between; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 0; box-shadow: 0 1px 8px rgba(0,0,0,.03); }
[data-design="pop"] .logo { flex-direction: row; align-items: center; justify-content: space-between; gap: .75rem; text-align: left;
  font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
[data-design="pop"] .logo b { color: var(--accent); font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
[data-design="pop"] .logo > span { flex-shrink: 0; }
[data-design="pop"] .logo { gap: .55rem; font-size: 19px; font-weight: 800; letter-spacing: -.025em; }
[data-design="pop"] .logo b { font-size: inherit; font-weight: 800; letter-spacing: inherit; }
@media (max-width: 399px) {   /* téléphones étroits : le nom sur deux lignes, à côté des 4 icônes */
  .logo > span { display: flex; flex-direction: column; font-size: 15px; line-height: 1; }
  [data-design="pop"] .logo > span { font-size: 15px; }
}

/* Icônes de navigation de l'en-tête */
[data-design="pop"] .tabs svg { width: 22px; height: 22px; stroke-width: 1.7; }

/* Blocs */
[data-design="pop"] .card { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow); }
[data-design="pop"] .card.soft { background: var(--surface-2); border-color: transparent; }
[data-design="pop"] .chip { min-height: 26px; padding: 0 10px; gap: .35rem; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .02em;
  background: var(--bg); color: var(--muted); }
[data-design="pop"] .chip.fr { background: var(--fr-soft); color: var(--fr); }
[data-design="pop"] .chip.int { background: var(--int-soft); color: var(--int); }
[data-design="pop"] .chip.accent { background: var(--accent-soft); color: var(--accent); }
[data-design="pop"] .chip.date { background: var(--ink); color: var(--surface); }
[data-design="pop"] .muted { color: var(--muted); }

/* Accueil : salutation et semaine en pastilles (« Cette semaine ») */
[data-design="pop"] .hero { padding: .25rem 0 1rem; }
/* Semaine remontée vers l'en-tête, plus d'espace avant la date du jour (28/11/2026) */
.hero.has-week { margin-top: -.6rem; padding-top: 0; padding-bottom: .75rem; }
.hero.has-week .date { margin: 1.75rem 0 0; }   /* sans news : date dans le bloc, loin de la semaine, près de la suite */
.hero.has-week + .section-title, .hero.has-week ~ .section-title { margin-top: 1.75rem; }   /* avec des news : date en tête du titre */
[data-design="pop"] .hero .date { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); }
[data-design="pop"] .hero-head { flex-direction: column; align-items: stretch; gap: .8rem; }
[data-design="pop"] .hero-badge { background: var(--surface); box-shadow: var(--shadow-2); }
[data-design="pop"] .week { opacity: 1; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .25rem 0; }   /* discrète : ni cadre ni fond (28/11/2026) */
[data-design="pop"] .week::before { content: "Cette semaine"; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
[data-design="pop"] .week-days { grid-template-columns: repeat(7, 26px); gap: 5px; }
[data-design="pop"] .week-day { height: 26px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--faint); background: var(--surface-2); }
[data-design="pop"] .week-day.on { background: color-mix(in srgb, var(--streak) 15%, transparent); color: var(--streak); }
[data-design="pop"] .week-day.today { background: var(--accent); color: var(--on-accent);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
[data-design="pop"] .week-day.future { opacity: 1; }
[data-design="pop"] .week-check svg { width: 13px; height: 13px; }

/* Quiz du jour : bannière bleu cobalt, bouton rond blanc */
[data-design="pop"] .card.quiz-line { position: relative; overflow: hidden; gap: 1rem; padding: 1rem 1rem 1rem 1.1rem; border: 0; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--cobalt-2), var(--cobalt)); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--cobalt) 25%, transparent); }
[data-design="pop"] .card.quiz-line::after { content: ""; position: absolute; right: -1rem; bottom: -1.5rem; width: 6rem; height: 6rem; border-radius: 50%;
  background: rgba(255,255,255,.12); filter: blur(14px); pointer-events: none; }
[data-design="pop"] .quiz-line .grow { position: relative; z-index: 1; gap: .25rem; }
[data-design="pop"] .quiz-tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 .5rem; border-radius: 999px; background: rgba(255,255,255,.2);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
[data-design="pop"] .quiz-pts { color: #dde1ff; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
[data-design="pop"] .quiz-line .grow b { font-size: 15px; line-height: 20px; letter-spacing: -.01em; }
[data-design="pop"] .quiz-line .grow .small { color: rgba(255,255,255,.9); font-size: 13px; line-height: 18px; }
[data-design="pop"] .quiz-line .muted { color: rgba(255,255,255,.85); }
[data-design="pop"] .quiz-line > span:last-child { position: relative; z-index: 1; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--cobalt); font-size: 1.6rem; font-weight: 700; line-height: 1; padding-bottom: 3px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }

/* Sujets du jour : date en capitales carmin précédée d'un point, cartes en carrousel */
[data-design="pop"] .section-title { font-size: 18px; line-height: 24px; margin: 1.4rem 0 .75rem; }
[data-design="pop"] .section-date { display: flex; align-items: center; gap: .45rem; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
[data-design="pop"] .section-date::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
[data-design="pop"] .card.news { display: flex; flex-direction: column; padding: 1.1rem; border-radius: 22px; transition: transform .15s, box-shadow .15s; }
[data-design="pop"] a.card.news:hover { border-color: var(--line); box-shadow: var(--shadow-2); }
[data-design="pop"] a.card.news:active { transform: scale(.98); box-shadow: var(--shadow-2); }
[data-design="pop"] .card.news > .chip { align-self: flex-start; }
[data-design="pop"] .card.news > .row-wrap + h3, [data-design="pop"] .card.news > .row-wrap + h2 { margin-top: .8rem; }
[data-design="pop"] .card.news h3 { font-size: 18px; line-height: 24px; }
[data-design="pop"] .card.news > p.muted { color: var(--muted); font-size: 14px; line-height: 21px; }
[data-design="pop"] .card.news > :last-child { margin-top: auto; }
[data-design="pop"] .card.news > p.muted:not(:last-child) { margin-bottom: 1rem; }
[data-design="pop"] .card.news.started { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
[data-design="pop"] .card.news.done { background: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
[data-design="pop"] .carousel-track { gap: .75rem; padding-bottom: .8rem; }
[data-design="pop"] .carousel-slide { flex-basis: 84%; }
[data-design="pop"] .carousel-slide .card.news > p.muted { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
[data-design="pop"] .carousel-dots { gap: 6px; padding-top: .1rem; }
[data-design="pop"] .carousel-dot { width: 6px; height: 6px; background: var(--line); }
[data-design="pop"] .carousel-dot[aria-current="true"] { width: 20px; background: var(--accent); }
[data-design="pop"] .carousel + p.muted.small { font-size: 11px; line-height: 14px; font-weight: 600; color: var(--faint); margin-top: .75rem; }
[data-design="pop"] .resume-go { color: var(--accent); }
[data-design="pop"] .meter { background: var(--surface-2); }
[data-design="pop"] .meter span { background: var(--accent); }
[data-design="pop"] .news-check { background: var(--ok); }
[data-design="pop"] .offline-note { border-radius: var(--radius-s); background: var(--surface-2); }

/* Boutons : primaire carmin, secondaire blanc bordé */
[data-design="pop"] .btn { border-radius: 16px; font-size: 15px; font-weight: 700; letter-spacing: 0; transition: transform .12s, background .15s, box-shadow .15s; }
[data-design="pop"] .btn:active:not([disabled]) { transform: scale(.98); }
[data-design="pop"] .btn.accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 22%, transparent); }
[data-design="pop"] .btn.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); padding-top: .85rem; padding-bottom: .85rem; box-shadow: var(--shadow); }
[data-design="pop"] .btn.ghost:hover { background: var(--surface-2); }
[data-design="pop"] .btn.ghost > svg { color: var(--accent); }
[data-design="pop"] .btn.danger { background: transparent; border: 1.5px solid currentColor; box-shadow: none; }
[data-design="pop"] .btn.link { color: var(--muted); }
[data-design="pop"] .btn.small { min-height: 36px; border-radius: 999px; font-size: 13px; padding: .35rem .9rem; }
[data-design="pop"] .btn.google, [data-design="pop"] .btn.apple { border-radius: 16px; }
[data-design="pop"] .icon-btn.fav[aria-pressed="true"] { color: var(--accent); }

/* Formulaires et réglages */
[data-design="pop"] input[type="email"], [data-design="pop"] input[type="text"], [data-design="pop"] input[type="search"], [data-design="pop"] input[type="url"],
[data-design="pop"] input[type="password"], [data-design="pop"] input[type="date"], [data-design="pop"] textarea, [data-design="pop"] select {
  border-radius: var(--radius-s); border-color: var(--line); background: var(--surface); }
[data-design="pop"] input:focus, [data-design="pop"] textarea:focus, [data-design="pop"] select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
[data-design="pop"] .segmented { background: var(--surface-2); border-radius: 14px; }
[data-design="pop"] .segmented button { border-radius: 10px; font-size: 14px; }
[data-design="pop"] .segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-2); }
[data-design="pop"] .switch input:checked { background: var(--accent); }
[data-design="pop"] .menu a::after { color: var(--faint); }

/* Profil */
[data-design="pop"] .avatar { background: var(--accent); color: var(--on-accent); }
[data-design="pop"] .stats div { background: var(--bg); border-radius: 16px; }
[data-design="pop"] .stats b { font-weight: 800; letter-spacing: -.02em; }
[data-design="pop"] .badge-icon { background: var(--accent-soft); }

/* Lecture d'un parcours, quiz, fin */
[data-design="pop"] .reader-top { background: var(--bg); }
[data-design="pop"] .segments span { height: 6px; background: var(--line); }
[data-design="pop"] .segments span.on { background: var(--accent); }
[data-design="pop"] .lcard { border-radius: 24px; padding: 1.3rem 1.25rem 1.15rem; box-shadow: var(--shadow); }
[data-design="pop"] .lcard h2 { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -.02em; }
[data-design="pop"] .lcard.type-hook h2 { font-size: 26px; line-height: 32px; letter-spacing: -.03em; }
[data-design="pop"] .lcard .body { font-size: 16px; line-height: 24px; }
[data-design="pop"] .lcard.type-question { background: var(--accent-soft); }
[data-design="pop"] .media img { border-radius: 14px; }
[data-design="pop"] .choice { border-radius: 14px; border-color: var(--line); transition: border-color .15s, background .15s, transform .12s; }
[data-design="pop"] .choice:active:not([disabled]) { transform: scale(.99); }
[data-design="pop"] .choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
[data-design="pop"] .sources a { color: var(--cobalt-2); }
[data-design="pop"] .lcard.type-quiz .feedback { background: var(--bg); }
[data-design="pop"] .burst-word, [data-design="pop"] .reward .points, [data-design="pop"] .cheer-text { letter-spacing: -.03em; font-weight: 800; }
[data-design="pop"] .cheer-box, [data-design="pop"] .ai-modal { border-radius: 24px; }
[data-design="pop"] .quiz-box { border-color: var(--cobalt-2); }
[data-design="pop"] .toast { border-radius: 16px; }
[data-design="pop"] .step-n { background: var(--accent); color: var(--on-accent); }
[data-design="pop"] .step-ic, [data-design="pop"] .benefit-ic { border-radius: 12px; background: var(--bg); }

/* ===== Culture générale (notion.js) : choix des thèmes, fiche ===== */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin: 1rem 0 .5rem; }
.theme-pick { display: flex; align-items: center; gap: .5rem; min-height: 52px; padding: .5rem .75rem; font: inherit; font-weight: 600; font-size: .95rem; text-align: left;
  color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-s); cursor: pointer; }
.theme-pick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.theme-pick:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-emoji { font-size: 1.3rem; line-height: 1; }
.fiche h1 { margin: .6rem 0 .4rem; text-wrap: balance; }
.fiche-photo { margin: .6rem 0 .8rem; }
.fiche-photo img { aspect-ratio: 16 / 9; max-height: 28vh; object-fit: cover; }
.fiche-photo figcaption a { color: inherit; }
.news-photo { margin: 0 0 .6rem; }
.news-photo img { aspect-ratio: 16 / 9; max-height: 22vh; object-fit: cover; }
/* Vidéo « Aller plus loin » lue dans l'app (reader.js videoPlayer) : façade jusqu'à l'appui, puis lecteur YouTube sans cookies */
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #111; }
.video-frame.short { aspect-ratio: 9 / 16; width: auto; height: min(60vh, 520px); max-width: 100%; margin: 0 auto; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1rem;
  border: 0; background: linear-gradient(135deg, #2a1d1a, #111); color: #fff; font: inherit; cursor: pointer; text-align: center; }
.video-play-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.3rem; padding-left: 4px; }
.video-play-title { font-weight: 600; font-size: .95rem; line-height: 1.3; max-width: 32ch; }
.video-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.video-out { text-align: center; }
.fiche-hook { font-size: 1.12rem; font-weight: 600; line-height: 1.45; margin: 0 0 1.2rem; }
.fiche-detail h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin: 0 0 .4rem; }
.fiche .body p { line-height: 1.6; }
.fiche-detail { margin-bottom: 1.2rem; }
.fiche-credit { margin: 1rem 0 .4rem; overflow-wrap: anywhere; }   /* source et licence CC BY-SA, en une ligne discrète */
.fiche-further { margin: 1rem 0 0; overflow-wrap: anywhere; }   /* « Pour aller plus loin » (Curio D10) */
.lcard.fiche h1 { font-size: 1.6rem; }
/* Carte « Vocabulaire » d'une fiche (04/11/2026) : 1 ou 2 mots employés dans la suite, avec leur définition */
.vocab { margin: .8rem 0 0; }
.vocab dt { font-size: 1.25rem; font-weight: 800; color: var(--accent); margin-top: 1rem; }
.vocab dt:first-child { margin-top: 0; }
.vocab dd { margin: .25rem 0 0; line-height: 1.55; }
/* Fiche de culture générale, format v2 (08/11/2026) : faits, pourquoi ça compte, ton avis, à retenir, question à se poser */
.fiche-facts { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .7rem; }
.fiche-facts li { display: grid; grid-template-columns: minmax(3.2rem, auto) 1fr; gap: .2rem .8rem; align-items: baseline; }
.fiche-facts .fact-value { font-size: 1.35rem; font-weight: 800; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fiche-facts li > span:only-child { grid-column: 1 / -1; }
.fiche-why, .fiche-ask { margin-top: 1rem; }
.fiche-why h2, .fiche-ask h2 { font-size: 1rem; margin: 0 0 .3rem; }
.fiche-ask p { margin: 0; font-weight: 600; }
.debate-q { margin: .6rem 0 .8rem; }
.debate-args { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: .8rem; }
.debate-side { min-width: 0; padding: .6rem .7rem; border-radius: 12px; background: var(--surface-2); }
.debate-side h3 { font-size: .85rem; margin: 0 0 .3rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.debate-side ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.debate-side li + li { margin-top: .3rem; }
.debate-reaction { margin: .8rem 0 0; padding: .7rem .9rem; border-radius: 12px; background: var(--accent-soft); font-weight: 600; }
@media (max-width: 360px) { .debate-args { grid-template-columns: 1fr; } }
.fiche-takeaways { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; font-weight: 600; }
/* Mots du vocabulaire surlignés dans la fiche (CEZ.markText, 08/11/2026) */
mark.vocab-word { background: var(--accent-soft); color: inherit; font-weight: 700; padding: 0 .15em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Pouces haut / bas de la fiche de culture générale (notion.js, CEZ.notionThumbs) : accueil et barre du bas de la fiche */
.thumbs { display: flex; gap: .4rem; flex: none; }
.thumb { width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 1.2rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; filter: grayscale(1); opacity: .75;
  transition: transform .15s, opacity .15s, filter .15s; }
.thumb[aria-pressed="true"] { filter: none; opacity: 1; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.thumb:active { transform: scale(.92); }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.notion-wrap { position: relative; }
.notion-wrap .thumbs { position: absolute; right: .75rem; bottom: 1.75rem; }   /* la carte garde sa marge du bas (1rem) */
.carousel-slide > .notion-wrap { flex: 1; display: flex; }
.carousel-slide > .notion-wrap > .card.news { flex: 1; margin-bottom: 0; }
.carousel-slide > .notion-wrap .thumbs { bottom: .75rem; }
.notion-wrap .thumb { width: 2.4rem; height: 2.4rem; font-size: 1.05rem; }
.notion-wrap > .card { padding-bottom: 3.6rem; }

/* ===== Fiche en 5 cartes, une couleur par carte (fiche.js, 14/11/2026) : faits bleu, vocabulaire violet, découverte vert d'eau, recul ambre, fin rose ===== */
.lcard.tone-facts { --tone: var(--tone-facts); --tone-soft: var(--tone-facts-soft); }
.lcard.tone-vocab { --tone: var(--tone-vocab); --tone-soft: var(--tone-vocab-soft); }
.lcard.tone-discover { --tone: var(--tone-discover); --tone-soft: var(--tone-discover-soft); }
.lcard.tone-recul { --tone: var(--tone-recul); --tone-soft: var(--tone-recul-soft); }
.lcard.tone-end { --tone: var(--tone-end); --tone-soft: var(--tone-end-soft); }
.lcard.tone { background: color-mix(in srgb, var(--tone-soft) 45%, var(--surface)); border-color: color-mix(in srgb, var(--tone) 25%, var(--line)); border-top: 5px solid var(--tone); }
.lcard.tone .chip.tone { background: var(--tone-soft); color: var(--tone); border-color: transparent; }
.lcard.tone .fact-value, .lcard.tone .vocab dt { color: var(--tone); }
.lcard.tone .fiche-takeaways li::marker { color: var(--tone); }
.lcard.tone mark.vocab-word { background: color-mix(in srgb, var(--tone) 18%, transparent); }
.lcard.tone mark.vocab-word[data-def] { cursor: pointer; text-decoration: underline dotted color-mix(in srgb, var(--tone) 70%, transparent); text-underline-offset: 3px; }
.lcard.tone mark.vocab-word[data-def]:focus-visible { outline: 2px solid var(--tone); outline-offset: 1px; }
.lcard.tone .debate-reaction { background: var(--tone-soft); }
.lcard.tone .choice[aria-pressed="true"] { border-color: var(--tone); background: var(--tone-soft); }
.vocab-hint { margin: .2rem 0 0; }
/* Fiche au format libre (thème Random, fiche.js CEZ.fiche.libre) : question en grand, réponse au toucher */
.libre-q { font-size: 1.3rem; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; margin: .6rem 0 1.2rem; white-space: pre-line; }
.libre-answer { padding: .9rem 1rem; border-radius: 14px; background: var(--tone-soft, var(--surface)); border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 30%, var(--line)); }
.libre-a { font-size: 1.1rem; font-weight: 800; color: var(--tone, var(--accent)); margin: 0; line-height: 1.4; }
.libre-more { margin: .5rem 0 0; line-height: 1.5; }
.fiche-box { margin-top: .9rem; padding: .8rem .9rem; border-radius: 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 20%, var(--line)); }
.fiche-box > h2 { font-size: .8rem; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--tone, var(--accent)); margin: 0 0 .4rem; }
/* Titre du piège et question de « Ton avis » : même style */
.fiche-box h3, .fiche-box .debate-q { font-size: 1.05rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 .25rem; }
.fiche-box p { margin: 0; line-height: 1.5; }
.fiche-box .debate-q { margin-bottom: .5rem; }
.fiche-idea p { font-size: 1.1rem; font-weight: 700; }
.fiche-share { background: var(--tone-soft, var(--accent-soft)); border-color: transparent; }
.fiche-share p { font-size: 1.1rem; font-weight: 700; }
.certainty { display: inline-block; margin: 0 0 .4rem; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 800; border: 1.5px solid var(--tone, var(--accent)); color: var(--tone, var(--accent)); }
.certainty.c-etabli { background: var(--tone); color: var(--surface); }
.fiche-quiz { margin-top: 1rem; }
.fiche-quiz h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.fiche-quiz-feedback { margin: .7rem 0 0; padding: .7rem .9rem; border-radius: 12px; background: var(--surface); }
/* Infobulle de définition au toucher (mot du vocabulaire surligné) */
.vocab-tip { position: absolute; z-index: 1000; max-width: min(20rem, calc(100vw - 32px)); padding: .6rem .8rem; border-radius: 12px;
  background: var(--ink); color: var(--surface); font-size: .95rem; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: none;
  animation: tip-in .12s ease-out; }
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vocab-tip { animation: none; } }
/* Mes mots (15/11/2026) : « ☆ Garder » dans l'infobulle et la carte Vocabulaire */
.vocab-tip-actions { margin-top: .5rem; pointer-events: auto; }
.word-save { font: inherit; font-size: .85rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; cursor: pointer; border: 1.5px solid currentColor;
  background: transparent; color: inherit; min-height: 32px; }
.vocab dt .word-save { margin-left: .6rem; vertical-align: middle; font-size: .8rem; color: var(--tone, var(--accent)); }
.vocab dt .word-save[aria-pressed="true"] { background: var(--tone, var(--accent)); color: var(--surface); border-color: var(--tone, var(--accent)); }
.word-list .word-def { margin: .2rem 0 .3rem; }

/* Plan pro (23/11/2026, analysis.js) : carte en pointillés (dernière du carrousel de l'accueil), pastille « Pro », fenêtre de discussion */
.card.pro-card, [data-design="pop"] .card.pro-card { background: transparent; border: 2px dashed var(--accent); box-shadow: none; display: flex; flex-direction: column; justify-content: center; }
.card.pro-card.locked, [data-design="pop"] .card.pro-card.locked { border-color: var(--line); }
.card.pro-card.locked .pro-ask { opacity: .55; }
.card.pro-card h3 { margin: .5rem 0 0; }
.pro-ask { justify-content: flex-start; text-align: left; }
.pro-ask.accent { justify-content: center; text-align: center; }   /* « Let's go » (28/11/2026) */
.card.analysis-card.preparing h3 { opacity: .8; }
.chip.pro { background: var(--accent); color: var(--on-accent); }
body.chat-open { overflow: hidden; }
body.chat-open .tabs { display: none; }   /* icônes de navigation cachées tant que la fenêtre est ouverte */
.chat-modal { position: fixed; left: 0; right: 0; top: 0; height: 100dvh; z-index: 900; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); }   /* hauteur et haut recalés sur la zone visible (analysis.js, clavier iOS) */
.chat-box { display: flex; flex-direction: column; width: 100%; max-width: 520px; height: 100%; background: var(--bg); color: var(--ink); }
@media (min-width: 600px) { .chat-box { height: min(640px, 90dvh); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); } }
.chat-head { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; padding-top: max(.75rem, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .5rem; padding: 1rem; }
.chat-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 16px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.chat-msg.typing { color: var(--muted); letter-spacing: .2em; }
.chat-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-self: flex-start; }
.chat-msg.error { border-color: var(--err); color: var(--err); }
.chat-form { display: flex; gap: .5rem; align-items: flex-end; padding: .75rem 1rem; padding-bottom: max(.75rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; min-height: calc(4.2em + 1rem); max-height: 180px; line-height: 1.4; font-size: 16px; -webkit-user-select: text; user-select: text; }
.chat-form .btn { flex: none; }
/* Carte « Tu veux un sujet particulier ? » : champ qui ouvre la discussion en page complète (29/11/2026) */
.pro-write { display: block; width: 100%; min-height: calc(4.2em + 1rem); padding: .6rem .8rem; text-align: left; font: inherit; font-size: 16px; line-height: 1.4; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: text; }
.chat-intro { padding-bottom: .25rem; }
.chat-intro h3 { margin: 0 0 .25rem; }
.chat-intro p { margin: 0; }
/* Discussion dans la carte « Tu veux un sujet particulier ? » de l'accueil (28/11/2026, plus utilisée depuis le 29/11/2026) */
.chat-box.inline { height: auto; max-width: none; background: transparent; }
.chat-box.inline .chat-log { flex: none; max-height: 16rem; padding: 0 0 .6rem; }
.chat-box.inline .chat-form { padding: 0; border: 0; background: transparent; }
