/* My Little Deen v4, couleurs façon Headspace : fond clair chaud, bleu pour l'action,
   une couleur vive par fonctionnalité, la nuit en indigo pour les histoires. */
:root {
  --bg: #F7F3EE;
  --card: #FFFFFF;
  --soft: #F1EBE3;            /* fonds de pastilles */
  --text: #1F1B2D;
  --text-2: #6B6577;
  --text-3: #A9A3B3;
  --line: #E8E2DA;
  --action: #2F5BEA;          /* bouton principal (bleu Headspace) */
  --action-ink: #FFFFFF;
  --progress: #FFB81F;        /* série, progrès */
  --progress-soft: #FFF0C2;
  --spirit: #DCE6FF;          /* contenu du jour */
  --spirit-2: #EEF3FF;
  --spirit-ink: #2448C7;
  --ok: #22A86B;              /* coches */
  --danger: #E5484D;
  --night: #23215A;           /* histoires et nuit (indigo) */
  --night-2: #34317C;
  --night-ink: #F4F1FF;
  --moon: #FFD66B;
  /* une couleur par fonctionnalité */
  --f-histoire: #3D3AA8;
  --f-quedire: #FF7A1A;
  --f-priere: #22A86B;
  --f-grossesse: #F2557F;
  --f-journal: #2F9BEA;
  --f-ramadan: #FFB81F;
  --radius: 22px;
  --radius-s: 16px;
  --pad: 16px;
  --tab-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-kid: 'Baloo 2', 'Poppins', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

#app { max-width: 480px; margin: 0 auto; padding: calc(10px + var(--safe-t)) var(--pad) calc(var(--tab-h) + 30px + var(--safe-b)); }
body.no-tabbar #app { padding-bottom: calc(120px + var(--safe-b)); }
body.night { background: var(--night); color: var(--night-ink); }
body.night #app { padding-left: 0; padding-right: 0; }

/* Typographie : une seule police, le contraste par la taille et la graisse */
.t-page { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.t-section { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.t-card { font-size: 16px; font-weight: 600; line-height: 1.3; }
.t-sub { color: var(--text-2); font-size: 14px; margin: 4px 0 0; }
.t-small { font-size: 12.5px; color: var(--text-2); }
.t-ref { font-style: italic; color: var(--text-2); font-size: 12.5px; }

/* En-tête de l'accueil : un seul, avec les enfants en onglets (modèle Greenlight) */
.hello { display: flex; align-items: flex-end; gap: 12px; margin: 8px 0 0; }
.hello > div { flex: 1; min-width: 0; }
.hello .cap { margin: 0 0 2px; }
.hello .cap::first-letter { text-transform: uppercase; }
.ktabs { display: flex; gap: 18px; margin: 16px calc(var(--pad) * -1) 0; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.ktabs::-webkit-scrollbar { display: none; }
.ktabs button { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 0 12px; font-weight: 500; font-size: 14.5px; color: var(--text-2); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.ktabs button[aria-pressed="true"] { color: var(--text); font-weight: 600; border-color: var(--kid, var(--action)); }
.ktabs .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; }
.ktabs .av.add { background: var(--card); color: var(--text-2); border: 1.5px dashed var(--text-3); }
.ktabs .av.add svg { width: 14px; height: 14px; }

/* La carte du soir : l'histoire au centre */
.tonight { display: block; margin-top: 18px; border-radius: var(--radius); overflow: hidden; background: var(--night); color: var(--night-ink); }
.tonight .art { position: relative; aspect-ratio: 16 / 10; }
.tonight .art svg, .tonight .art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tonight .art .pill { position: absolute; top: 12px; left: 12px; }
.tonight .body { padding: 4px 18px 18px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin: 0; }
.tonight .eyebrow, .feature .eyebrow { color: var(--moon); }
.t-title { font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; }
.tonight p { margin: 6px 0 0; font-size: 14px; opacity: .8; }
.tonight .btn { margin-top: 16px; background: var(--night-ink); color: var(--night); }

/* Le fil du jour (modèle Headspace) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.flow li { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; }
.flow li:not(:last-child)::before { content: ''; position: absolute; left: 12px; top: 50%; height: calc(100% + 12px); border-left: 2px dashed var(--line); }
.flow .node { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--text-3); background: var(--bg); display: grid; place-items: center; }
.flow li.done .node { background: var(--ok); border-color: var(--ok); color: #fff; }
.flow .node svg { width: 14px; height: 14px; }
.fcard { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--radius-s); padding: 12px 12px 12px 14px; min-height: 84px; }
.fcard .fm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fcard .when { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.fcard .thumb { width: 62px; height: 62px; flex: none; border-radius: 12px; overflow: hidden; }
.fcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ith { width: 100%; height: 100%; display: grid; place-items: center; background: var(--soft); color: var(--action); }
.ith.spirit { background: var(--spirit); color: var(--spirit-ink); }
.ith svg { width: 26px; height: 26px; }
.trialnote { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 22px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--progress-soft); font-size: 14px; font-weight: 500; }
.trialnote span { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 500; }
.trialnote svg { width: 15px; height: 15px; }

.home-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.home-head .t-page { flex: 1; }
.streak { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 13px; background: var(--card); font-weight: 700; font-size: 18px; }
.streak svg { width: 18px; height: 18px; color: var(--progress); }

/* Pastilles enfants (modèle May + une couleur par enfant comme Huckleberry) */
.kids { display: flex; gap: 8px; overflow-x: auto; margin: 14px calc(var(--pad) * -1) 0; padding: 2px var(--pad) 4px; scrollbar-width: none; }
.kids::-webkit-scrollbar { display: none; }
.kid { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px; background: var(--card); font-weight: 500; font-size: 14px; border: 2px solid transparent; }
.kid .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; }
.kid[aria-pressed="true"] { border-color: var(--kid, var(--action)); }
.kid.add { padding: 0 14px; color: var(--text-2); }

/* Pastilles */
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(43, 30, 20, .55); color: #fff; backdrop-filter: blur(6px); }
.pill svg { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: var(--soft); color: var(--action); }

/* Titre de section + bouton « Tout voir » */
.sec { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.sec .more { height: 34px; padding: 0 14px; border-radius: 999px; background: color-mix(in srgb, var(--text) 5%, var(--card)); font-size: 14px; display: inline-flex; align-items: center; }

/* Cartes du jour (carrousel horizontal, la suivante dépasse) */
.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.daycard { width: 72%; background: var(--card); border-radius: var(--radius); padding: 16px; position: relative; min-height: 150px; display: flex; flex-direction: column; }
.daycard.spirit { background: linear-gradient(160deg, var(--spirit), var(--spirit-2)); }
.daycard .k { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.daycard.spirit .k { color: var(--spirit-ink); }
.daycard .t-card { margin-top: 6px; }
.daycard .t-sub { margin-top: auto; padding-top: 10px; }
.status { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; background: var(--card); }
.status.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.status svg { width: 14px; height: 14px; }
.dots { display: flex; gap: 5px; margin-top: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--progress); }

/* Cartes de parcours illustrées (modèle « Jour 1 / Jour 2 ») */
.pcard { width: 66%; border-radius: var(--radius-s); overflow: hidden; background: var(--card); }
.pcard .art { aspect-ratio: 5 / 4; position: relative; background: linear-gradient(170deg, var(--spirit), var(--progress-soft)); }
.pcard .art img { width: 100%; height: 100%; object-fit: cover; }
.pcard .art .pill { position: absolute; top: 10px; left: 10px; }
.pcard .art .status { top: 10px; right: 10px; }
.pcard.locked .art { filter: sepia(.6) brightness(.6); }
.pcard .lock { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.pcard .lock svg { width: 34px; height: 34px; }
.pcard .t-card { padding: 12px 14px 14px; }

/* Listes */
.list { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; min-height: 58px; }
.row + .row { border-top: 1px solid var(--line); }
.row .ri { width: 38px; height: 38px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; flex: none; color: var(--action); }
.row .ri svg { width: 19px; height: 19px; }
.row .rm { flex: 1; min-width: 0; }
.row .rt { font-weight: 500; }
.row .rs { font-size: 13px; color: var(--text-2); margin-top: 1px; }
.row .re { color: var(--text-3); display: flex; align-items: center; gap: 6px; font-size: 13px; }
.row .re svg { width: 16px; height: 16px; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar span { display: block; height: 100%; background: var(--progress); border-radius: 6px; }

/* Boutons : un seul bouton principal par écran */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 53px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; background: var(--action); color: var(--action-ink); width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: .35; }
.btn.light { background: var(--soft); color: var(--action); }
.btn.ghost { background: transparent; color: var(--text-2); font-weight: 500; height: 44px; }
.btn.small { height: 40px; width: auto; font-size: 14px; padding: 0 16px; }
.round { width: 52px; height: 52px; border-radius: 50%; background: var(--card); display: grid; place-items: center; flex: none; }
.round svg { width: 22px; height: 22px; }
.bottom { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--pad) calc(16px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 72%, transparent); z-index: 15; }
.bottom > div { max-width: 448px; margin: 0 auto; }
body:not(.no-tabbar) .bottom { bottom: calc(var(--tab-h) + var(--safe-b)); padding-bottom: 12px; }

/* Barre d'onglets : 4 entrées (5 quand il y a un bébé) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--card); border-radius: 22px 22px 0 0; box-shadow: 0 -4px 24px rgba(43, 30, 20, .06); display: flex; justify-content: center; z-index: 20; }
.tabbar[hidden] { display: none; }
.tabbar .tabs { display: flex; width: 100%; max-width: 480px; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-3); font-size: 11px; font-weight: 500; }
.tabbar a svg { width: 25px; height: 25px; }
.tabbar a[aria-current="page"] { color: var(--action); }

/* Questionnaire (fond dégradé, comme le quiz web d'AyahPath) */
body.quiz { background: radial-gradient(120% 80% at 50% 0%, #FFF6EA 0%, #F7EFE6 100%) fixed; }
body.quiz.pause { background: radial-gradient(120% 80% at 50% 0%, #FFF9F1 0%, #F7F0E8 100%) fixed; }
.qtop { display: flex; align-items: center; gap: 12px; height: 52px; }
.qtop .back { width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; }
.qtop .back svg { width: 20px; height: 20px; }
.qtop .logo { height: 26px; margin: 0 auto; }
.qbar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.8); overflow: hidden; margin: 6px 0 26px; }
.qbar span { display: block; height: 100%; background: var(--progress); transition: width .2s; }
.q { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; text-align: center; }
.qsub { color: var(--text-2); text-align: center; margin: 0 0 22px; }
.answers { display: grid; gap: 10px; }
.answer { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 14px 16px; border-radius: var(--radius-s); background: rgba(255,255,255,.7); text-align: left; font-weight: 500; border: 2px solid transparent; }
.answer[aria-pressed="true"] { background: var(--card); border-color: var(--action); }
.answer .chev { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; }
.answer .chev svg { width: 14px; height: 14px; }
.answer[aria-pressed="true"] .chev { background: var(--action); color: var(--action-ink); }
.answer .chev.multi { background: transparent; border: 2px solid var(--text-3); }
.answer[aria-pressed="true"] .chev.multi { background: var(--action); border-color: var(--action); }
.answers.duo { grid-template-columns: 1fr 1fr; }
.answers.duo .answer { flex-direction: column; justify-content: center; min-height: 120px; text-align: center; font-weight: 600; font-size: 16px; }
.answers.duo .answer .chev { margin: 8px 0 0; }
.linkbtn { display: block; margin: 18px auto 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.field { display: block; width: 100%; padding: 16px; border-radius: var(--radius-s); border: 2px solid transparent; background: var(--card); font-size: 17px; outline: none; text-align: center; }
.field:focus { border-color: var(--action); }
.selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
select.field { appearance: none; text-align: center; }
.quote { background: var(--card); border-radius: var(--radius-s); padding: 14px 16px; margin-top: 12px; text-align: left; }
.quote .stars { color: var(--progress); letter-spacing: 2px; font-size: 13px; }
.quote p { margin: 6px 0 4px; }
.loader { width: 128px; height: 128px; margin: 10vh auto 18px; border-radius: 50%; background: conic-gradient(var(--progress) calc(var(--p) * 1%), rgba(255,255,255,.8) 0); display: grid; place-items: center; }
.loader::before { content: ''; width: 108px; height: 108px; border-radius: 50%; background: #FFFAF4; grid-area: 1/1; }
.loader span { grid-area: 1/1; font-size: 26px; font-weight: 700; z-index: 1; }

/* Journal bébé (modèle Baby Daybook + Huckleberry) */
.j-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.j-head .kid { height: 44px; }
.j-head .age-mini { color: var(--text-2); font-size: 14px; flex: 1; }
.jnow { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 14px; min-height: 96px; }
.jnow.live { background: var(--night); color: var(--night-ink); }
.jnow .ni { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--action); }
.jnow.live .ni { background: rgba(255,255,255,.12); color: var(--night-ink); }
.jnow .ni svg { width: 24px; height: 24px; }
.jnow .nm { flex: 1; min-width: 0; }
.jnow .nt { font-weight: 600; font-size: 16px; }
.jnow .nc { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.jnow .ns { font-size: 13px; opacity: .75; }
.jnow .btn { width: auto; height: 44px; padding: 0 16px; font-size: 14px; background: var(--night-ink); color: var(--night); }
.day24 { background: var(--card); border-radius: var(--radius); padding: 12px 14px 8px; margin-top: 12px; }
.day24 svg { width: 100%; height: 34px; display: block; }
.day24 .hrs { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-top: 4px; }
.jtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.jtile { border-radius: var(--radius); background: var(--card); padding: 14px; text-align: left; min-height: 104px; display: flex; flex-direction: column; gap: 6px; border-left: 5px solid var(--c); }
.jtile .jt { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.jtile .jt svg { width: 20px; height: 20px; color: var(--c); }
.jtile .jv { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.jtile .js { font-size: 12.5px; color: var(--text-2); }
.jmini { display: flex; gap: 10px; overflow-x: auto; margin: 12px calc(var(--pad) * -1) 0; padding: 0 var(--pad); scrollbar-width: none; }
.jmini button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-2); }
.jmini button span { width: 52px; height: 52px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--c); }
.jmini svg { width: 21px; height: 21px; }
.jlist .row { min-height: 52px; }
.jlist .gap { padding: 2px 16px 2px 68px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line); }
.jlist .bar-c { width: 4px; align-self: stretch; border-radius: 3px; background: var(--c); }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0 6px; }
.side button { aspect-ratio: 1; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 34px; font-weight: 700; position: relative; border: 3px solid transparent; }
.side button small { position: absolute; bottom: 22%; font-size: 12px; font-weight: 500; color: var(--text-2); }
.side button.last { border-color: var(--progress); }
.side button.on { background: var(--action); color: var(--action-ink); }
.bottle { display: flex; gap: 20px; align-items: center; justify-content: center; margin: 10px 0; }
.bottle .glass { position: relative; width: 92px; height: 210px; border-radius: 22px 22px 30px 30px; background: var(--card); overflow: hidden; touch-action: none; border: 3px solid var(--line); }
.bottle .milk { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#FFF7EA, #F3E0C4); }
.bottle .ml { font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.seg { display: flex; background: color-mix(in srgb, var(--text) 6%, transparent); border-radius: 12px; padding: 3px; margin: 8px 0 14px; }
.seg button { flex: 1; height: 36px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex: none; white-space: nowrap; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--action); color: var(--action-ink); }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.big3 button { height: 96px; border-radius: var(--radius-s); background: var(--card); font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.big3 button svg { width: 24px; height: 24px; color: var(--c, var(--ok)); }

/* Journal v4 (modèle Huckleberry) */
.tfield { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.tfield input { height: 50px; border-radius: 14px; border: 0; background: var(--card); padding: 0 12px; font-size: 18px; color: var(--text); }
.jhead { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.jhead > div { flex: 1; }
.jhead .t-small { margin: 0; }
.jhead .round { width: 44px; height: 44px; }
.jsweet { border-radius: var(--radius); padding: 18px; color: var(--night-ink); background: linear-gradient(160deg, #3C3AA8, #23215A); }
.jsweet.live { background: linear-gradient(160deg, #23215A, #15143A); }
.jsweet.feed { background: linear-gradient(160deg, #F2557F, #B83461); }
.jsweet .jk { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.jsweet .jk svg { width: 17px; height: 17px; color: var(--moon); }
.jbigtime, .jbigclock { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.jsub { margin: 6px 0 0; font-size: 14px; opacity: .85; }
.jwin { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.jwin .ws svg { width: 20px; height: 20px; color: var(--moon); display: block; }
.wbar { flex: 1; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.wbar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--moon), #FF9D5C); }
.jnote { margin: 10px 0 0; font-size: 12px; opacity: .6; }
.jwake { margin-top: 16px; background: var(--moon); color: var(--night); }
.jsides { display: flex; gap: 12px; margin-top: 14px; }
.jsides button { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 22px; font-weight: 700; }
.jsides button.on { background: #fff; color: #B83461; }
.jrounds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.jround { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.jround .jr { position: relative; width: 70px; height: 70px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 70%, #000); }
.jround .jr svg { width: 30px; height: 30px; }
.jround .jr b { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); color: var(--c); display: grid; place-items: center; font-size: 17px; line-height: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.jround .jl { font-weight: 600; font-size: 13.5px; margin-top: 6px; }
.jround .jw { font-size: 12px; color: var(--text-2); }
.jstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jstats div { background: var(--card); border-radius: var(--radius-s); padding: 12px; border-top: 4px solid var(--c); }
.jstats b { display: block; font-size: 18px; }
.jstats span { font-size: 12.5px; color: var(--text-2); }
.jlog { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.jlog button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: var(--card); font-size: 11.5px; font-weight: 500; color: var(--text-2); }
.jlog svg { width: 22px; height: 22px; color: var(--c); }
.jlist { margin-top: 12px; }
.jico { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, #fff); color: var(--c); }
.jico svg { width: 19px; height: 19px; }

/* Intro de leçon / fiche (illustration en haut, bouton rond, étiquette) */
.hero { position: relative; margin: calc(-10px - var(--safe-t)) calc(var(--pad) * -1) 0; aspect-ratio: 4 / 3; background: linear-gradient(170deg, var(--spirit), var(--progress-soft)); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .round { position: absolute; top: calc(14px + var(--safe-t)); left: var(--pad); }
.hero .tag { position: absolute; left: var(--pad); bottom: -13px; background: var(--action); color: var(--action-ink); }
.after-hero { padding-top: 26px; }

/* Texte long */
.prose { font-size: 15.5px; line-height: 1.6; }
.prose h2 { font-size: 18px; margin: 24px 0 8px; }
.prose h3 { font-size: 16px; margin: 20px 0 6px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 12px; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 0 0 12px; padding: 12px 14px; background: var(--soft); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }
details.more-info { margin-top: 14px; }
details.more-info summary { color: var(--text-2); font-size: 13px; cursor: pointer; }
details.more-info .prose { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }

/* Coffret : l'appli renvoie vers le produit, elle ne le remplace pas */
.coffret { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 10px; }
.coffret img { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; flex: none; }
.coffret .t-card { font-size: 14.5px; }

/* Histoires : bibliothèque (modèle Opal + Duolingo ABC) */
.feature { display: block; position: relative; margin-top: 16px; border-radius: var(--radius); overflow: hidden; background: var(--night); color: var(--night-ink); }
.feature .art { aspect-ratio: 4 / 3; width: 100%; }
.feature .art svg, .feature .art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.feature .over { padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.feature .meta { font-size: 13.5px; opacity: .8; }
.feature .btn { margin-top: 12px; background: var(--night-ink); color: var(--night); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.tile .cover { position: relative; aspect-ratio: 1; border-radius: var(--radius-s); overflow: hidden; background: var(--night); }
.tile .cover svg { width: 100%; height: 100%; display: block; }
.tile .cover .pill { position: absolute; left: 8px; bottom: 8px; height: 26px; font-size: 12px; }
.tile .read { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.tile .read svg { width: 14px; height: 14px; }
.tile .t-card { font-size: 14.5px; margin-top: 8px; }
.tile.soon .cover svg { filter: saturate(.6) brightness(.8); }
.tile.soon .t-card { color: var(--text-2); }

/* Lecteur de nuit (modèle Headway + ElevenReader) */
.reader { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; background: transparent; color: var(--night-ink); padding: calc(10px + var(--safe-t)) 0 calc(10px + var(--safe-b)); max-width: 480px; margin: 0 auto; }
.rtop { display: flex; align-items: center; gap: 10px; padding: 0 14px; }
/* Le ciel derrière l'histoire : des étoiles qui flottent et scintillent, très doucement. */
.rciel { position: fixed; inset: 0; z-index: 4; background: radial-gradient(120% 70% at 50% 0%, #2E2B72, var(--night) 70%); overflow: hidden; pointer-events: none; }
.rciel i { position: absolute; width: var(--s); height: var(--s); color: var(--moon); animation: flotte var(--f) ease-in-out var(--d) infinite alternate, scintille var(--t) ease-in-out var(--d) infinite alternate; }
.rciel .pt { border-radius: 50%; background: #FFF6DA; }
.rciel svg { width: 100%; height: 100%; display: block; fill: currentColor; filter: drop-shadow(0 0 4px rgba(255, 214, 107, .55)); }
@keyframes flotte { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(6px, -12px) rotate(14deg); } }
@keyframes scintille { from { opacity: .2; } to { opacity: .9; } }
/* Le passage de page : l'image arrive en glissant du côté où l'on va, le texte suit. */
.rmid.in-next > *, .rmid.in-prev > * { animation: page-txt .5s .12s cubic-bezier(.2, .7, .2, 1) both; }
.rmid.in-next > .pic { animation: page-next .6s cubic-bezier(.2, .7, .2, 1) both; }
.rmid.in-prev > .pic { animation: page-prev .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes page-next { from { opacity: 0; transform: translateX(42px) rotate(1.5deg) scale(.96); } }
@keyframes page-prev { from { opacity: 0; transform: translateX(-42px) rotate(-1.5deg) scale(.96); } }
@keyframes page-txt { from { opacity: 0; transform: translateY(12px); } }
/* L'étoile filante qui traverse l'écran à chaque page : elle file dans le sens de la lecture. */
.rfil { position: fixed; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.filante { position: absolute; left: 0; top: var(--y); width: 150px; height: 18px; animation: fil-next 1s cubic-bezier(.35, .1, .35, 1) forwards; }
.filante.prev { animation-name: fil-prev; }
.filante span { position: absolute; inset: 0; }
.filante.prev span { transform: scaleX(-1); }
.filante span::before { content: ''; position: absolute; right: 9px; top: 7.5px; width: 140px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255, 236, 190, .55) 55%, #FFE9A8); box-shadow: 0 0 8px rgba(255, 214, 107, .55); }
.filante svg { position: absolute; right: 0; top: 0; width: 18px; height: 18px; fill: #FFF3C4; filter: drop-shadow(0 0 6px #FFD66B); }
@keyframes fil-next { 0% { transform: translate(-170px, 0) rotate(9deg); opacity: 0; } 12%, 80% { opacity: 1; } 100% { transform: translate(calc(100vw + 30px), 16vw) rotate(9deg); opacity: 0; } }
@keyframes fil-prev { 0% { transform: translate(calc(100vw + 20px), 0) rotate(-9deg); opacity: 0; } 12%, 80% { opacity: 1; } 100% { transform: translate(-180px, 16vw) rotate(-9deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rciel i, .rmid > * { animation: none !important; } }
.rbtn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; flex: none; }
.rbtn svg { width: 20px; height: 20px; }
.rhead { flex: 1; text-align: center; }
.rvoix { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--night-ink); font-size: 13px; font-weight: 600; }
.rvoix svg { width: 15px; height: 15px; }
.rtitle { font-weight: 600; font-size: 14.5px; }
.rpg { font-size: 12px; opacity: .6; letter-spacing: .04em; text-transform: uppercase; }
.segs { display: flex; gap: 4px; padding: 12px 18px 0; }
.segs i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.segs i.past, .segs i.now { background: var(--moon); }
.segs.light { padding: 0; }
.segs.light i { background: var(--line); }
.segs.light i.past, .segs.light i.now { background: var(--action); }
.rmid { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 16px 18px 0; }
.reader .pic { overflow: hidden; aspect-ratio: 4 / 3; flex: none; background: #F4EBDD;
  /* Le cadre unique des histoires : une arche en plein cintre, comme une fenêtre de mosquée. */
  border-radius: 50% 50% 16px 16px / 66.67% 66.67% 16px 16px; outline: 1.5px solid rgba(255, 214, 107, .4); outline-offset: 5px; margin: 6px; }
.reader .pic svg, .reader .pic img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* Tablette : le livre s'agrandit, et à l'horizontale l'image et le texte se mettent côte à côte. */
@media (min-width: 700px) {
  .reader { max-width: 760px; }
  .rmid { padding: 24px 40px 0; }
  .reader .txt { font-size: 29px; }
  .reader .txt.big8 { font-size: 25px; }
  .rtitle { font-size: 16px; }
}
@media (min-width: 900px) and (orientation: landscape) {
  .reader { max-width: 1280px; }
  .rmid:has(> .pic) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 20px 56px 0; }
  .rmid:has(> .pic) .pic { max-height: 100%; width: auto; }
  .rmid:has(> .pic) .txt { padding: 0; font-size: 32px; }
  .rmid:has(> .pic) .txt.big8 { font-size: 27px; }
}
.reader .txt { font-family: var(--font-kid); font-size: 23px; line-height: 1.45; padding: 18px 4px 0; }
.reader .txt.big8 { font-size: 20px; }
.reader .txt span { transition: color .3s, opacity .3s; }
.reader .txt span.on { color: var(--moon); }
.reader .txt span.past { opacity: .55; }
.reader .ctl { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 14px 18px 0; }
.reader .ctl button, .reader .ctl a { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--night-ink); display: grid; place-items: center; }
.reader .ctl button:disabled { opacity: .25; }
.reader .ctl .big { width: 68px; height: 68px; background: var(--night-ink); color: var(--night); }
.reader .ctl .big.ghost { background: transparent; }
.reader .ctl .big.done { background: var(--ok); color: #fff; }
.reader .ctl svg { width: 24px; height: 24px; }
.reader .hint { text-align: center; font-size: 12px; opacity: .55; margin: 10px 24px 0; min-height: 16px; }
.reader .dua, .reader .end { margin: auto 0; text-align: center; padding: 10px 6px 20px; }
.reader .kick { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .65; margin: 0 0 18px; }
.reader .dua .ar { font-size: 34px; line-height: 1.7; margin: 0; color: var(--moon); font-family: 'Amiri', 'Geeza Pro', serif; }
.reader .dua .tr { font-family: var(--font-kid); font-size: 22px; margin: 14px 0 6px; }
.reader .dua .fr { font-size: 15px; opacity: .85; margin: 0; }
.reader .dua .src { font-size: 12.5px; opacity: .55; margin: 12px 0 0; font-style: italic; }
.reader .night { font-family: var(--font-kid); font-size: 26px; line-height: 1.35; margin: 0 0 26px; }
.reader .night-c { background: rgba(255, 255, 255, .07); text-align: left; }
.reader .night-c .t-small { color: rgba(245, 235, 221, .7); }
.reader .end .btn.ghost { color: var(--moon); margin-top: 6px; }

/* Fiches en cartes courtes (modèle Oura + stories) */
.deck { display: flex; flex-direction: column; min-height: calc(100dvh - 140px); }
.dtop { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.dtop .round { width: 44px; height: 44px; }
.dtop .segs { flex: 1; }
.dtitle { font-size: 23px; margin-top: 4px; }
.track { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 16px calc(var(--pad) * -1) 0; }
.track::-webkit-scrollbar { display: none; }
.dcard { flex: none; width: 100%; scroll-snap-align: start; padding: 0 var(--pad); }
.dc { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.dcard .dimg { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.dcard .dnum { margin: 0; padding: 18px 20px 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.dcard h2 { margin: 0; padding: 6px 20px 0; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.dcard .prose { padding: 10px 20px 20px; font-size: 16px; line-height: 1.55; }
.dcard .prose > :last-child { margin-bottom: 0; }
.dcard.dua .dc { background: var(--spirit-2); }
.dcard.dua .prose ul { list-style: none; padding: 0; }
.dcard.dua .prose li { margin-bottom: 10px; }
.dcard.dua .translit { font-family: var(--font-kid); font-size: 21px; line-height: 1.4; color: var(--spirit-ink); }
.tick { display: inline-block; vertical-align: -5px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--text-3); margin-right: 8px; }
.tick[aria-pressed="true"] { background: var(--ok) center/14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); border-color: var(--ok); }
.dnav { display: flex; gap: 10px; }
.dnav .dprev { width: 53px; flex: none; padding: 0; }
.dnav .btn[hidden] { display: none; }

/* Grossesse : cartes en couleurs, comme les stories de Flo */
.deck.story .dc { color: #fff; }
.deck.story .dcard:nth-child(5n+1) .dc { background: linear-gradient(170deg, #F77FA0, #F2557F); }
.deck.story .dcard:nth-child(5n+2) .dc { background: linear-gradient(170deg, #FFB27A, #FF8A4C); }
.deck.story .dcard:nth-child(5n+3) .dc { background: linear-gradient(170deg, #9C82EE, #7B5CE0); }
.deck.story .dcard:nth-child(5n+4) .dc { background: linear-gradient(170deg, #5AB2F2, #2F9BEA); }
.deck.story .dcard:nth-child(5n+5) .dc { background: linear-gradient(170deg, #4CC48C, #22A86B); }
.deck.story .dcard .dnum { color: rgba(255, 255, 255, .75); }
.deck.story .dcard .prose { font-size: 17px; }
.deck.story .dcard.dua .translit { color: #fff; }
.deck.story .dc { min-height: 52dvh; }
.deck.story .tick { border-color: #fff; }

/* Écran d'abonnement (modèle Vocabulary + Centr) */
.pw { padding-bottom: 120px; }
.pwtop { display: flex; height: 48px; align-items: center; }
.pwtop .round { width: 40px; height: 40px; }
.pw .eyebrow { margin-bottom: 8px; color: var(--progress); }
.unlock { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.unlock li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.unlock li svg { width: 22px; height: 22px; flex: none; color: var(--ok); margin-top: 1px; }
.unlock b { font-weight: 600; }
.plans { display: grid; gap: 10px; margin-top: 22px; }
.plan-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: var(--radius-s); background: var(--card); border: 2px solid transparent; text-align: left; }
.plan-opt[aria-pressed="true"] { border-color: var(--action); }
.plan-opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--text-3); flex: none; }
.plan-opt[aria-pressed="true"] .radio { border: 7px solid var(--action); }
.plan-opt .pm { flex: 1; display: flex; flex-direction: column; }
.plan-opt .pl { font-size: 13px; color: var(--text-2); font-weight: 500; }
.plan-opt .pl em { font-style: normal; font-weight: 600; font-size: 11.5px; color: #fff; background: var(--ok); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.plan-opt .pp { font-size: 17px; font-weight: 600; }
.plan-opt .pper { font-size: 12.5px; color: var(--text-2); text-align: right; }
.trial { list-style: none; padding: 0; margin: 22px 0 0; position: relative; }
.trial::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: linear-gradient(var(--ok), var(--progress-soft)); }
.trial li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.trial .ti { width: 37px; height: 37px; border-radius: 50%; background: var(--card); display: grid; place-items: center; flex: none; color: var(--ok); }
.trial li:first-child .ti { background: var(--ok); color: #fff; }
.trial .ti svg { width: 18px; height: 18px; }
.trial b { display: block; font-weight: 600; }
.trial span { font-size: 13.5px; color: var(--text-2); }

/* Questionnaire : compléments */
.flabel { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 18px 0 6px; }
.field.left { text-align: left; }
.aic { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--action); display: grid; place-items: center; flex: none; }
.aic.big { width: 46px; height: 46px; }
.aic svg { width: 18px; height: 18px; }
.hours { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.hours button { height: 92px; border-radius: var(--radius-s); background: rgba(255, 255, 255, .7); border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 16px; }
.hours button svg { width: 18px; height: 18px; color: var(--progress); }
.hours button[aria-pressed="true"] { background: var(--action); color: var(--action-ink); }
.hours button[aria-pressed="true"] svg { color: var(--action-ink); }
.ready { text-align: center; margin-top: 4vh; }
.ready-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.ready-ic svg { width: 30px; height: 30px; }
.ready-list { display: grid; gap: 10px; margin-top: 8px; }
.ready-list > div { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: var(--radius-s); padding: 14px 16px; }
.ready-list .ck { width: 24px; height: 24px; border-radius: 50%; background: var(--spirit); color: var(--spirit-ink); display: grid; place-items: center; flex: none; margin-top: 1px; }
.ready-list .ck svg { width: 13px; height: 13px; }
.ready-list b { display: block; font-weight: 600; }
.ready-list span span { font-size: 13.5px; color: var(--text-2); }

/* Accueil v4 : en-tête avec le rond de l'enfant, cartes de couleur par fonctionnalité (modèle Headspace) */
.kidbtn { width: 48px; height: 48px; border-radius: 50%; flex: none; display: block; box-shadow: 0 0 0 3px var(--card); }
.kidbtn svg { width: 100%; height: 100%; display: block; }
.hello { align-items: center; }
.hello.dark { color: var(--night-ink); }
.hello.dark .t-small { color: rgba(244, 241, 255, .7); }
.hello.dark .streak { background: rgba(255, 255, 255, .1); color: var(--night-ink); }
.streak svg { color: var(--f-quedire); }
.stack { display: grid; gap: 14px; margin-top: 14px; }
.fcard2 { display: block; border-radius: var(--radius); padding: 18px; color: #fff; position: relative; overflow: hidden; }
.fcard2 .fhead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fcard2 .fic { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.fcard2 .fic svg { width: 19px; height: 19px; }
.fcard2 .fk { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; flex: 1; }
.fcard2 .more { height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 13px; display: inline-flex; align-items: center; }
.fcard2 .t-title { font-size: 21px; }
.fcard2 p { margin: 4px 0 0; font-size: 14px; opacity: .9; }
.fcard2 .btn.light { margin-top: 14px; background: #fff; color: var(--text); height: 46px; }
.fcard2.priere { background: var(--f-priere); }
.fcard2.quedire { background: var(--f-quedire); }
.fcard2.ramadan { background: var(--f-ramadan); color: #3A2A00; }
.fcard2.ramadan .fic { background: rgba(255, 255, 255, .45); }
.fcard2.journal { background: var(--f-journal); }
.fcard2.grossesse { background: var(--f-grossesse); }
.minipath { display: flex; gap: 8px; margin-top: 14px; }
.minipath i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.minipath i.done { background: #fff; }
.minipath i.now { background: var(--moon); box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.fake-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 14px; background: #fff; color: var(--text-2); font-size: 15px; }
.fake-search svg { width: 18px; height: 18px; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qchips a { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 13.5px; font-weight: 500; }
.jsum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jsum div { background: rgba(255, 255, 255, .18); border-radius: 14px; padding: 10px 12px; }
.jsum b { display: block; font-size: 17px; }
.jsum span { font-size: 12.5px; opacity: .85; }
.jquick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.jquick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border-radius: 14px; background: #fff; color: var(--f-journal); font-size: 12px; font-weight: 600; }
.jquick svg { width: 22px; height: 22px; }
.jsleep { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 500; }
.jsleep svg { width: 17px; height: 17px; }
.jsleep svg:last-child { margin-left: auto; }
.invrow { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--radius-s); padding: 12px 14px; }
.invrow .ith { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.invrow .fm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.invrow .when { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.invrow > svg { width: 18px; height: 18px; color: var(--text-3); }
.invrow.done > svg { color: var(--ok); }
.alllink { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.alllink svg { width: 15px; height: 15px; }
.tonight { background: var(--night); }
.tonight .btn { background: var(--moon); color: var(--night); }

/* Grossesse : la nuit et l'anneau de lunes (modèle Stardust), puis les cartes de la semaine (modèle Flo) */
.preg { margin: calc(-10px - var(--safe-t)) calc(var(--pad) * -1) 0; padding: calc(14px + var(--safe-t)) var(--pad) 20px; background: radial-gradient(120% 70% at 50% 40%, #3B2C86 0%, #1D1846 70%); color: var(--night-ink); border-radius: 0 0 28px 28px; }
.preg-hero { position: relative; width: min(320px, 86vw); margin: 10px auto 0; }
.ring { width: 100%; display: block; }
.preg-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.preg-mid .pnum { font-size: 56px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.preg-mid .pl { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.preg-size { text-align: center; font-size: 17px; font-weight: 600; margin: 8px 0 2px; }
.preg-meta { text-align: center; font-size: 13.5px; opacity: .7; margin: 0; }
.weeks { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px calc(var(--pad) * -1) 0; padding: 0 var(--pad); }
.weeks::-webkit-scrollbar { display: none; }
.weeks a { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 13.5px; font-weight: 500; }
.weeks a.on { background: #fff; color: var(--night); font-weight: 600; }
.insights { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; }
.insights::-webkit-scrollbar { display: none; }
.ins { flex: none; width: 128px; height: 168px; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.25; background: linear-gradient(170deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 60%, #fff); }

.insic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .28); display: grid; place-items: center; }
.insic svg { width: 22px; height: 22px; }

/* Parcours prière (modèle Duolingo) */
.pathtop { display: flex; gap: 8px; margin: 6px 0 14px; }
.pathtop .stat { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--card); font-weight: 600; font-size: 14px; }
.pathtop .stat:last-child { margin-left: auto; color: var(--text-2); font-weight: 500; }
.pathtop svg { width: 16px; height: 16px; color: var(--f-quedire); }
.pathtop .star svg { color: var(--f-ramadan); }
.unit { margin-top: 22px; }
.ubar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--u); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--u) 70%, #000); }
.ubar small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.ubar b { font-size: 19px; }
.ubar svg { width: 22px; height: 22px; }
.path { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 52px 0 6px; }
.node { position: relative; transform: translateX(var(--x)); display: flex; flex-direction: column; align-items: center; }
.disc { width: 70px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #E3DED8; color: #A9A3B3; box-shadow: 0 6px 0 #CFC8C0; }
.disc svg { width: 28px; height: 28px; }
.node.done .disc { background: var(--u); color: #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--u) 70%, #000); }
.node.now .disc { background: var(--u); color: #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--u) 70%, #000), 0 0 0 8px var(--bg), 0 0 0 12px color-mix(in srgb, var(--u) 35%, transparent); }
.node .bubble { position: absolute; top: -40px; white-space: nowrap; padding: 7px 12px; border-radius: 12px; background: var(--card); color: var(--u); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 2px 0 var(--line); }
.node.chest .disc { width: 78px; border-radius: 22px; background: var(--progress-soft); color: var(--f-ramadan); box-shadow: 0 6px 0 #F2D98C; }
.node .cap { font-size: 12.5px; color: var(--text-2); margin-top: 10px; }

/* Test « Prêt ? » du parcours prière */
.quiz { display: grid; gap: 10px; }
.qz { background: var(--card); border-radius: var(--radius-s); padding: 14px 16px; }
.qzq { margin: 0 0 10px; font-weight: 600; }
.qzb { display: flex; gap: 8px; }
.qzb button { flex: 1; height: 42px; border-radius: 12px; background: var(--soft); font-weight: 600; }
.qzb button[aria-pressed="true"] { background: var(--f-priere); color: #fff; }
.qza { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--spirit-2); color: var(--spirit-ink); font-size: 14.5px; }

/* Quête des 365 histoires */
.node .nlab { font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-top: 10px; }
.node.done .nlab, .node.now .nlab { color: var(--text-2); }
.node.wait .disc { background: color-mix(in srgb, var(--u) 35%, #fff); color: #fff; box-shadow: 0 6px 0 color-mix(in srgb, var(--u) 45%, #ccc); }
.node.wait .bubble { color: var(--text-2); }
.node.lock .disc svg { width: 22px; height: 22px; }
.locked-seasons { display: grid; gap: 8px; margin-top: 18px; }
.locked-seasons div { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--card); color: var(--text-2); font-weight: 500; border-left: 5px solid var(--u); }
.locked-seasons svg { width: 18px; height: 18px; }
.nuit { text-align: center; padding-top: 8px; }
.nuit .round { width: 44px; height: 44px; }
.nuit .disc.big { width: 120px; height: 110px; margin: 24px auto 20px; background: var(--u); color: #fff; box-shadow: 0 8px 0 color-mix(in srgb, var(--u) 70%, #000); }
.nuit .disc.big svg { width: 44px; height: 44px; }
.reader .won { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 22px; }
.reader .won span { width: 76px; height: 76px; border-radius: 50%; background: var(--moon); color: var(--night); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 214, 107, .18); }
.reader .won svg { width: 38px; height: 38px; }
.reader .won b { font-size: 20px; margin-top: 12px; }
.reader .won small { opacity: .7; }

/* Que dire quand (modèle Good Inside + grille d'humeurs Calm) */
.qdhead { margin: calc(-10px - var(--safe-t)) calc(var(--pad) * -1) 0; padding: calc(24px + var(--safe-t)) var(--pad) 22px; background: var(--f-quedire); color: #fff; border-radius: 0 0 28px 28px; }
.qdhead p { margin: 6px 0 16px; opacity: .92; }
.qsearch { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: #fff; color: var(--text-2); }
.qsearch svg { width: 18px; height: 18px; flex: none; }
.qsearch input { flex: 1; border: 0; outline: none; font-size: 16px; color: var(--text); background: none; min-width: 0; }
.moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.moods button { aspect-ratio: 1 / .9; border-radius: 18px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.moods svg { width: 26px; height: 26px; color: var(--f-quedire); }
.qdlist { display: grid; gap: 10px; }
.qd { display: block; background: var(--card); border-radius: var(--radius-s); padding: 14px 16px; border-left: 5px solid var(--f-quedire); }
.qdt { display: block; font-weight: 600; }
.qds { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 3px; }

/* Ramadan en famille */
.ramhead { margin: calc(-10px - var(--safe-t)) calc(var(--pad) * -1) 0; padding: calc(24px + var(--safe-t)) var(--pad) 22px; background: linear-gradient(170deg, #FFC94A, var(--f-ramadan)); color: #3A2A00; border-radius: 0 0 28px 28px; }
.ramhead .fic { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .5); display: grid; place-items: center; margin-bottom: 10px; }
.ramhead .fic svg { width: 24px; height: 24px; }
.ramhead .eyebrow { color: #6B4E00; }
.ramhead p { margin: 6px 0 0; }
.ramgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 16px; }
.ramgrid a { aspect-ratio: 1; border-radius: 14px; background: var(--card); display: grid; place-items: center; font-weight: 600; }
.ramgrid a.done { background: var(--f-ramadan); color: #3A2A00; }
.ramgrid a.now { box-shadow: 0 0 0 3px var(--f-ramadan); }

/* Sélecteur d'enfant en haut de chaque onglet */
.topkid { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; }
.kswitch { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px 0 5px; border-radius: 999px; background: var(--card); box-shadow: 0 1px 3px rgba(31, 27, 45, .08); font-weight: 600; font-size: 15px; color: var(--text); }
.kswitch .ka { width: 36px; height: 36px; display: block; }
.kswitch .ka svg { width: 100%; height: 100%; display: block; }
.kswitch .kc svg { width: 16px; height: 16px; transform: rotate(90deg); color: var(--text-2); display: block; }
.kswitch .kadd { width: 24px; height: 24px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; margin-left: 2px; }
.kswitch .kadd svg { width: 14px; height: 14px; }
.kswitch.dark { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.kswitch.dark .kc svg { color: rgba(255, 255, 255, .8); }
.hello { display: block; }
.hello .t-page { margin-top: 2px; }

.invcode { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--card); }
.invcode small { color: var(--text-2); }
.invcode b { font-size: 24px; letter-spacing: .2em; }

/* Choix de l'enfant (modèle Spotify Kids) */
.who { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; padding: 0 var(--pad); }
.whotop { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.whox { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.whox svg { width: 20px; height: 20px; }
.bornbtn { display: block; margin: 12px auto 0; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--moon); color: var(--night); font-weight: 600; font-size: 14px; }
.whopar { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; opacity: .8; }
.whopar svg { width: 16px; height: 16px; }
.who h1 { text-align: center; font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 6vh 0 5vh; }
.whogrid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; justify-items: center; }
.whogrid button { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wav { width: 132px; height: 132px; border-radius: 50%; display: block; transition: transform .15s; }
.wav svg { width: 100%; height: 100%; display: block; }
.whogrid button.on .wav { box-shadow: 0 0 0 4px var(--night), 0 0 0 7px var(--moon); }
.whogrid button:active .wav { transform: scale(.95); }
.wav.add { border: 3px dashed rgba(255, 255, 255, .4); display: grid; place-items: center; color: rgba(255, 255, 255, .8); }
.wav.add svg { width: 40px; height: 40px; }
.wn { font-weight: 600; font-size: 17px; }

/* Feuille du bas, message éphémère */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 14, 10, .35); z-index: 40; }
.sheet { color: var(--text); position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px var(--pad) calc(22px + var(--safe-b)); max-height: 90dvh; overflow: auto; max-width: 480px; margin: 0 auto; animation: up .22s ease; }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px + var(--safe-b)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 50; white-space: nowrap; }
.toast button { color: var(--progress-soft); font-weight: 600; margin-left: 10px; }
.empty { text-align: center; color: var(--text-2); padding: 26px 12px; }
.sp { height: 14px; }
.center { text-align: center; }

/* ===== Accueil des histoires, façon série pour enfants (Netflix Kids, Hulu, Spotify Kids) ===== */
body.serie { background: radial-gradient(120% 50% at 50% 0%, #2F2B7A 0%, var(--night) 60%) fixed; color: var(--night-ink); }
body.serie .tabbar { background: #15133A; box-shadow: 0 -4px 24px rgba(0, 0, 0, .35); }
body.serie .tabbar a { color: #8E89C2; }
body.serie .tabbar a[aria-current="page"] { color: var(--moon); }
body.serie .t-small { color: #9A96C8; }
body.serie .topkid { display: flex; align-items: center; gap: 8px; }
.sh-chip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: 13.5px; font-weight: 600; }
.sh-chip:first-of-type { margin-left: auto; }
.sh-chip svg { width: 15px; height: 15px; color: var(--moon); }
.sh-chip b { color: var(--moon); }

.sh-hero { display: block; margin-top: 14px; border-radius: 26px; overflow: hidden; background: #2E2B6E; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); color: var(--night-ink); }
.sh-hero .art { display: block; aspect-ratio: 4 / 3; }
.sh-hero .art img, .sh-hero .art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-hero .over { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 18px 18px; gap: 3px; }
.sh-hero .eyebrow { font-size: 11px; letter-spacing: .12em; font-weight: 700; color: var(--moon); text-transform: uppercase; }
.sh-hero .titre { font-family: var(--font-kid); font-weight: 700; font-size: 30px; line-height: 1.08; margin: 4px 0 2px; }
.sh-hero .tags, .sh-hero .meta { font-size: 13px; color: #B9B4E0; }
.sh-hero .btns { display: flex; gap: 10px; width: 100%; margin-top: 12px; }
.sh-hero .btn { flex: 1; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; }
.sh-hero .btn.play { background: #fff; color: var(--night); flex: 1.6; }
.sh-hero .btn.alt { background: rgba(255, 255, 255, .14); color: var(--night-ink); font-size: 14px; }
.sh-hero .btn svg { width: 18px; height: 18px; }

.sh-h { font-size: 19px; font-weight: 700; margin: 28px 0 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sh-h small { font-size: 12.5px; font-weight: 500; color: #B9B4E0; }
.sh-sub { font-size: 13px; color: #B9B4E0; margin: -6px 0 10px; }

.sh-resume { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .07); color: var(--night-ink); }
.sh-resume img { width: 92px; height: 70px; object-fit: cover; border-radius: 12px; flex: none; }
.sh-resume .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sh-resume b { font-size: 15px; line-height: 1.25; }
.sh-resume small { font-size: 12px; color: #B9B4E0; }
.sh-resume .bar, .sh-mini .line { display: block; height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 6px; }
.sh-resume .bar i, .sh-mini .line i, .sh-ep .prog i { display: block; height: 100%; background: var(--moon); }
.sh-resume .pp, .sh-mini .pp { width: 42px; height: 42px; flex: none; border-radius: 50%; background: #fff; color: var(--night); display: grid; place-items: center; }
.sh-resume .pp svg, .sh-mini .pp svg { width: 18px; height: 18px; }

.sh-row { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.sh-row::-webkit-scrollbar { display: none; }
.sh-ep { flex: none; width: 168px; scroll-snap-align: start; color: var(--night-ink); }
.sh-ep .pic { position: relative; display: block; aspect-ratio: 4 / 3.2; border-radius: 18px; overflow: hidden; background: #2E2B6E; }
.sh-ep .pic img, .sh-ep .pic svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-ep .num { position: absolute; left: 8px; bottom: 2px; font-family: var(--font-kid); font-weight: 700; font-size: 44px; line-height: 1; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.sh-ep .badge { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 8px; }
.sh-ep .badge svg { width: 11px; height: 11px; }
.sh-ep .badge.done { background: #3DD68C; color: #053; }
.sh-ep .badge.now { background: var(--moon); color: #3A2A00; }
.sh-ep .lock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; backdrop-filter: blur(6px) brightness(.5); -webkit-backdrop-filter: blur(6px) brightness(.5); font-size: 12.5px; }
.sh-ep .lock span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sh-ep .lock svg { width: 22px; height: 22px; color: var(--moon); }
.sh-ep .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .4); }
.sh-ep .t { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; margin-top: 7px; }
.sh-ep .s { display: block; font-size: 12px; color: #B9B4E0; }

.sh-heros { display: flex; gap: 14px; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 4px; scrollbar-width: none; }
.sh-heros::-webkit-scrollbar { display: none; }
.sh-heros a { flex: none; width: 78px; text-align: center; font-size: 12px; font-weight: 600; color: var(--night-ink); }
.sh-heros img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 6px; border: 3px solid var(--moon); }
.sh-heros a.cache img { filter: blur(3px) brightness(.55); border-color: rgba(255, 255, 255, .25); }

.sh-saisons { display: grid; gap: 8px; margin-top: 28px; }
.sh-saisons div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: #B9B4E0; font-size: 14px; }
.sh-saisons svg { width: 16px; height: 16px; }
.sh-note { margin-top: 18px; }

.sh-mini { position: fixed; left: 50%; transform: translateX(-50%); width: calc(100% - 20px); max-width: 460px; bottom: calc(var(--tab-h) + var(--safe-b) + 8px); z-index: 19; display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-radius: 18px; background: #3B37A0; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); color: var(--night-ink); }
.sh-mini img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.sh-mini > span:nth-of-type(1) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sh-mini b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-mini small { font-size: 11.5px; color: #C9C5EE; }
.sh-mini .pp { width: 38px; height: 38px; }
.sh-mini .line { position: absolute; left: 14px; right: 14px; bottom: 5px; margin: 0; height: 3px; }
body.serie #hist { padding-bottom: 70px; }

/* Tablette : des cartes plus grandes, l'affiche à côté de son texte en paysage. */
@media (min-width: 700px) {
  body.serie #app { max-width: 760px; }
  .sh-ep { width: 220px; }
  .sh-heros a { width: 96px; } .sh-heros img { width: 96px; height: 96px; }
  .sh-hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; }
  .sh-hero .over { padding: 22px; }
  .sh-hero .btns { flex-direction: column; }
  .sh-hero .btn.play, .sh-hero .btn.alt { flex: none; }
}
@media (min-width: 900px) and (orientation: landscape) {
  body.serie #app { max-width: 1000px; }
}
.sh-teaser { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 6px; }
.sh-teaser .round { align-self: flex-start; background: rgba(255, 255, 255, .12); color: #fff; }
.sh-teaser .pic { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; margin: 14px 0 18px; }
.sh-teaser .pic img, .sh-teaser .pic svg { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(8px) brightness(.55); transform: scale(1.08); }
.sh-teaser .lock { position: absolute; inset: 0; display: grid; place-items: center; }
.sh-teaser .lock svg { width: 46px; height: 46px; color: var(--moon); filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.sh-teaser .eyebrow { font-size: 11.5px; letter-spacing: .12em; font-weight: 700; color: var(--moon); text-transform: uppercase; }
.sh-teaser .titre { font-family: var(--font-kid); font-size: 30px; line-height: 1.1; margin: 6px 0; }
.sh-teaser .sub { color: #B9B4E0; font-size: 15px; max-width: 340px; }
.sh-teaser .btn { width: 100%; max-width: 420px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-top: 14px; }
.sh-teaser .btn.play { background: #fff; color: var(--night); }
.sh-teaser .btn.alt { background: rgba(255, 255, 255, .14); color: var(--night-ink); }
/* Mini-lecteur global (player.js) : au-dessus des onglets, sur tous les écrans sauf l'histoire. */
#mini[hidden] { display: none; }
#mini .sh-mini .pp { border: 0; cursor: pointer; }
body:not(.serie) #mini .sh-mini { background: var(--night); }
body:has(#mini:not([hidden])) #app { padding-bottom: calc(var(--tab-h) + 100px + var(--safe-b)); }
.sh-hero .soi { margin-top: 10px; font-size: 14px; color: #CFCBF2; text-decoration: underline; text-underline-offset: 3px; padding: 6px 10px; }
.sh-chip:first-of-type svg { color: #FF9A3D; }

/* Profils façon Netflix : carrés arrondis avec un animal de nos histoires. */
.kav { width: 100%; height: 100%; object-fit: cover; display: block; }
.kswitch .ka { border-radius: 10px; overflow: hidden; }
.wav { border-radius: 26px; overflow: hidden; position: relative; }
.whogrid button.on .wav { box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--moon); }
.wav.add { border-radius: 26px; }
.wedit { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 18, 58, .55); }
.wedit svg { width: 34px; height: 34px; color: #fff; }
.whoedit { margin: 34px auto 0; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: 15px; }
.whoedit svg { width: 18px; height: 18px; }
.avgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.avgrid button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.avgrid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; display: block; border: 3px solid transparent; }
.avgrid button.on img { border-color: var(--action); }

/* ===== Une seule ambiance pour toute l'appli : le bleu nuit des histoires (décision du 31/10/2026). ===== */
:root {
  --bg: #1C1A4A;
  --card: #2A2768;
  --soft: rgba(255, 255, 255, .08);
  --text: #F4F1FF;
  --text-2: #B9B4E0;
  --text-3: #8E89C2;
  --line: rgba(255, 255, 255, .12);
  --action: #FFFFFF;          /* bouton principal : blanc sur nuit, comme « Écouter l'histoire » */
  --action-ink: #1C1A4A;
  --progress-soft: rgba(255, 184, 31, .18);
  --spirit: rgba(140, 150, 255, .18);
  --spirit-2: rgba(140, 150, 255, .10);
  --spirit-ink: #C9D2FF;
  --night: #1C1A4A;
}
html, body { background: var(--bg); color: var(--text); }
body, body.quiz, body.quiz.pause, body.night { background: radial-gradient(120% 50% at 50% 0%, #2F2B7A 0%, #1C1A4A 60%) fixed; color: var(--text); }
.tabbar { background: #15133A; box-shadow: 0 -4px 24px rgba(0, 0, 0, .35); }
.tabbar a { color: #8E89C2; }
.tabbar a[aria-current="page"] { color: var(--moon); }
.kswitch { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.kswitch .kc svg { color: rgba(255, 255, 255, .8); }
.fake-search, .jquick a, .qsearch, .loader::before { background: var(--card); }
.jsides button.on, .weeks a.on { background: var(--card); color: var(--text); }
input.field, select.field, textarea.field, .field { background: var(--card); color: var(--text); border-color: var(--line); }
.sheet { background: #24215E; color: var(--text); }
.avgrid button { color: var(--text); }
.avgrid button.on img { border-color: var(--moon); }
.disc { background: #34317C; color: #8E89C2; box-shadow: 0 6px 0 #14123A; }
.node.now .disc, .node.done .disc { box-shadow: 0 6px 0 color-mix(in srgb, var(--u) 60%, #000), 0 0 0 8px var(--bg), 0 0 0 12px color-mix(in srgb, var(--u) 35%, transparent); }
.node.done .disc { box-shadow: 0 6px 0 color-mix(in srgb, var(--u) 60%, #000); }
.node .bubble { background: var(--card); }
.fav { width: 42px; height: 42px; flex: none; border-radius: 12px; overflow: hidden; display: block; } .fav svg { width: 100%; height: 100%; display: block; }

/* Icônes de la barre d'onglets et de l'accès Parents : aquarelles générées (Higgsfield), validées le 31/10/2026.
   Onglet inactif : estompé ; onglet actif : en couleur. */
.tabbar a .tico { width: 34px; height: 34px; opacity: .62; filter: saturate(.55); transition: opacity .2s, filter .2s, transform .2s; }
.tabbar a[aria-current="page"] .tico { opacity: 1; filter: none; transform: scale(1.06); }
.whopar .pico { width: 24px; height: 24px; }

/* ===== Couleurs V3 « Le voyage de la Sira » (choisies le 01/11/2026) : sable, brun et or, aux couleurs de la marque.
   Le jour (accueil, Prière, Famille) est en papier sable ; la nuit (lecteur, profils, ciel, dua) en brun chaud.
   Remplace l'ambiance bleu nuit unique du 31/10. ===== */
:root {
  --bg: #F1E4CE;
  --card: #FFFBF4;
  --soft: #EAD9BE;
  --text: #3A2A1C;
  --text-2: #7A6552;
  --text-3: #A8927A;
  --line: #E2CFB2;
  --action: #4D3524;          /* bouton principal : brun de la marque */
  --action-ink: #FFFFFF;
  --progress: #C98E35;
  --progress-soft: #F6E3BF;
  --spirit: #F3E3C6;
  --spirit-2: #F8EEDC;
  --spirit-ink: #7A4E17;
  --gold: #C98E35;            /* or sur papier */
  --moon: #E9B65C;            /* or sur fond de nuit */
  --night: #2A1F17;           /* la nuit en brun chaud */
  --night-2: #3D2D20;
  --night-ink: #F6EBDB;
  --f-histoire: #8A5A2B;
}
html, body { background: var(--bg); color: var(--text); }
body, body.quiz, body.quiz.pause { background: radial-gradient(70% 40% at 15% 10%, #F7EEDD 0%, transparent 70%), radial-gradient(60% 40% at 95% 60%, #EAD8BA 0%, transparent 70%), var(--bg) fixed; color: var(--text); }
body.night { background: radial-gradient(120% 60% at 50% 0%, #4A3524 0%, var(--night) 65%) fixed; color: var(--night-ink); }
.tabbar { background: #FBF4E8; box-shadow: 0 -1px 0 #E6D6BD, 0 -6px 24px rgba(77, 53, 36, .06); }
.tabbar a { color: #9A8670; }
.tabbar a[aria-current="page"] { color: var(--action); font-weight: 700; }
.kswitch { background: #FFFAF2; color: var(--text); box-shadow: 0 2px 8px rgba(77, 53, 36, .1); }
.kswitch .kc svg { color: var(--text-2); }
.kswitch.dark { background: rgba(255, 255, 255, .12); color: var(--night-ink); box-shadow: none; }
.kswitch.dark .kc svg { color: rgba(255, 255, 255, .8); }
.fake-search, .jquick a, .qsearch, .loader::before { background: var(--card); }
.jsides button.on, .weeks a.on { background: var(--card); color: var(--text); }
input.field, select.field, textarea.field, .field { background: var(--card); color: var(--text); border-color: var(--line); }
.sheet { background: var(--bg); color: var(--text); }
.avgrid button { color: var(--text); }
.avgrid button.on img { border-color: var(--gold); }
.disc { background: var(--soft); color: var(--text-2); box-shadow: 0 6px 0 #D8C2A0; }
.round { background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(77, 53, 36, .1); }
body.night .round { background: rgba(255, 255, 255, .1); color: var(--night-ink); box-shadow: none; }
.eyebrow { color: var(--gold); }
#mini .sh-mini, body:not(.serie) #mini .sh-mini { background: var(--action); color: #fff; box-shadow: 0 10px 30px rgba(58, 42, 28, .35); }
.sh-mini small { color: #E6D3BB; }
.sh-mini .pp { background: var(--moon); color: var(--night); }

/* L'accueil des histoires, sur papier sable */
body.serie { background: radial-gradient(70% 40% at 15% 10%, #F7EEDD 0%, transparent 70%), radial-gradient(60% 40% at 95% 60%, #EAD8BA 0%, transparent 70%), var(--bg) fixed; color: var(--text); }
body.serie .tabbar { background: #FBF4E8; box-shadow: 0 -1px 0 #E6D6BD; }
body.serie .tabbar a { color: #9A8670; }
body.serie .tabbar a[aria-current="page"] { color: var(--action); }
body.serie .t-small { color: var(--text-2); }
.sh-h small, .sh-sub, .sh-ep .s, .sh-resume small { color: var(--text-2); }
.sh-ep, .sh-heros a { color: var(--text); }
.sh-ep .pic { background: var(--soft); box-shadow: 0 2px 0 #E2CFB2; }
.sh-ep.cur .pic { box-shadow: 0 0 0 3px var(--gold); }
.sh-ep .badge.done { background: #FFFBF4; color: #4E7A3A; }
.sh-ep .badge.now { background: var(--gold); color: #fff; }
.sh-ep .lock { backdrop-filter: blur(6px) brightness(.62); -webkit-backdrop-filter: blur(6px) brightness(.62); color: #fff; }
.sh-ep .lock svg { color: #F6D9A3; }
.sh-heros img { border-color: var(--gold); }
.sh-heros a.cache img { filter: blur(3px) brightness(.8) grayscale(.4); border-color: var(--line); }
.sh-resume { background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(77, 53, 36, .08); }
.sh-resume .bar { background: var(--soft); }
.sh-resume .bar i, .sh-ep .prog i { background: var(--gold); }
.sh-resume .pp { background: var(--action); color: #fff; }
.sh-saisons div { background: rgba(255, 251, 244, .6); color: var(--text-2); }

.sh-ciel { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: #FFFAF2; box-shadow: 0 2px 8px rgba(77, 53, 36, .1); font-weight: 700; color: var(--text); }
.sh-ciel svg { width: 16px; height: 16px; fill: var(--gold); }

/* La carte « Ce soir » (V3) */
.soir { margin-top: 16px; background: var(--card); border-radius: 26px; overflow: hidden; box-shadow: 0 10px 30px rgba(77, 53, 36, .14), 0 2px 0 #E2CFB2; }
.soir-art { position: relative; display: block; aspect-ratio: 4 / 3; }
.soir-art img, .soir-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.soir.ferme .soir-art img { filter: grayscale(.5) blur(2px) brightness(.85); }
.soir-art .cad { position: absolute; inset: 0; display: grid; place-items: center; }
.soir-art .cad svg { width: 46px; height: 46px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4)); }
.soir-txt { padding: 14px 18px 18px; }
.soir-txt small { font-size: 11px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: var(--gold); }
.soir-txt h1 { font-family: var(--font-kid); font-weight: 700; font-size: 29px; line-height: 1.08; margin: 4px 0 4px; }
.soir-txt p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.soir-txt .ferme-txt { margin-top: 10px; color: var(--text); }
.soir-btns { display: flex; gap: 10px; margin-top: 14px; }
.soir .btn, .bn .btn { height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; width: auto; }
.soir .btn svg, .bn .btn svg { width: 18px; height: 18px; flex: none; }
.soir .btn.go { flex: 1.6; background: var(--action); color: #fff; width: 100%; margin-top: 14px; }
.soir-btns .btn.go { margin-top: 0; }
.soir .btn.lis { flex: 1; background: var(--soft); color: var(--text); font-size: 15px; }

/* La semaine en étoiles jusqu'au coffre */
.sem { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--text-2); font-size: 13px; }
.sem-et { display: inline-flex; align-items: center; gap: 4px; }
.sem-et i { width: 18px; height: 18px; display: block; }
.sem-et i svg { width: 100%; height: 100%; display: block; fill: #DCC7A6; }
.sem-et i.on svg { fill: var(--gold); filter: drop-shadow(0 0 3px rgba(201, 142, 53, .5)); }
.sem-et i.now svg { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.sem-et b { width: 26px; height: 26px; margin-left: 4px; border-radius: 8px; border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold); background: #FFF4DF; }
.sem-et b svg { width: 15px; height: 15px; }
.sem-et b.ouvert { background: var(--gold); color: #fff; }

/* « Bonne nuit » après l'histoire (V1) */
.bn { margin-top: 18px; text-align: center; }
.bn-ok { width: 74px; height: 74px; margin: 6px auto 12px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(201, 142, 53, .16); }
.bn-ok svg { width: 34px; height: 34px; }
.bn h1 { font-family: var(--font-kid); font-size: 31px; line-height: 1.1; margin: 0; }
.bn > p { color: var(--text-2); margin: 6px 0 0; }
.bn .sem { justify-content: center; }
.bn-demain { display: flex; gap: 14px; align-items: center; text-align: left; margin-top: 20px; padding: 12px; border-radius: 20px; background: var(--card); box-shadow: 0 2px 8px rgba(77, 53, 36, .08); }
.bn-demain .pic { position: relative; width: 92px; height: 72px; border-radius: 14px; overflow: hidden; flex: none; display: grid; place-items: center; }
.bn-demain .pic img, .bn-demain .pic > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(4px) brightness(.75); }
.bn-demain .pic > svg:last-child { position: relative; width: 24px; height: 24px; color: #fff; }
.bn-demain small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.bn-demain b { display: block; font-size: 16px; line-height: 1.25; }
.bn-demain em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-2); }
.bn-q { text-align: left; margin-top: 12px; padding: 14px 16px; border-radius: 20px; background: var(--spirit-2); border: 1px solid var(--line); }
.bn-q small { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.bn-q small svg { width: 15px; height: 15px; }
.bn-q p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.bn-btns { display: flex; gap: 10px; margin-top: 14px; }
.bn-btns .btn { flex: 1; background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(77, 53, 36, .08); font-size: 15px; }
.bn-btns .btn svg { fill: var(--gold); color: var(--gold); }

/* L'épisode à venir */
.sh-teaser .round { background: var(--card); color: var(--text); }
.sh-teaser .eyebrow { color: var(--gold); }
.sh-teaser .sub { color: var(--text-2); }
.sh-teaser .lock svg { color: #fff; }
.sh-teaser .btn { gap: 8px; text-align: center; padding: 0 14px; line-height: 1.2; }
.sh-teaser .btn svg { width: 18px; height: 18px; flex: none; }
.sh-teaser .btn.play { background: var(--action); color: #fff; }
.sh-teaser .btn.alt { background: var(--card); color: var(--text); font-size: 14.5px; }

/* La porte des parents */
.porte { max-width: 420px; margin: 0 auto; padding: 4px 6px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); }
.porte-x { align-self: flex-start; width: 44px; height: 44px; }
.porte-cle { width: 84px; height: 84px; margin: 14px 0 6px; }
.porte h1 { font-family: var(--font-kid); font-size: 30px; margin: 0; }
.porte-sous { color: var(--text-2); margin: 4px 0 0; max-width: 300px; }
.porte-cons { margin: 22px 0 2px; font-size: 13.5px; color: var(--text-2); }
.porte-mots { margin: 0; font-weight: 800; font-size: 19px; letter-spacing: .08em; color: var(--action); }
.porte-cases { display: flex; gap: 12px; margin: 18px 0 22px; }
.porte-cases i { width: 52px; height: 60px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 26px; font-weight: 700; }
.porte-cases i.on { border-color: var(--action); }
.porte-pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 330px; }
.porte-pave button { height: 60px; border-radius: 16px; background: var(--card); font-size: 24px; font-weight: 600; color: var(--text); box-shadow: 0 2px 0 #E2CFB2; }
.porte-pave button:active { transform: scale(.96); }
.porte-pave button[data-k="del"] { background: transparent; box-shadow: none; }
.porte.faux .porte-cases { animation: secoue .4s; }
.porte.faux .porte-cases i { border-color: var(--danger); }
@keyframes secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.porte-ov { position: fixed; inset: 0; z-index: 60; overflow: auto; padding: calc(14px + var(--safe-t)) var(--pad) calc(20px + var(--safe-b)); background: var(--bg); animation: up .22s ease; }

/* L'abonnement (V1) */
.pw-lus { text-align: center; color: var(--text-2); margin: 6px 0 0; }
.pw-gratuit { margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; border: 1px dashed #CDB48F; font-size: 13.5px; color: var(--text-2); }
.pw-gratuit b { color: var(--text); }
.unlock li svg { color: var(--gold); }
.plan-opt[aria-pressed="true"] { border-color: var(--gold); }
.plan-opt[aria-pressed="true"] .radio { border-color: var(--gold); }
.plan-opt .pper { font-weight: 700; color: var(--gold); }
.plan-opt .pl em { background: var(--gold); }

/* Le lecteur, en brun chaud : un ciel de nuit, l'or pour la phrase lue, un bouton or plutôt que blanc. */
.rciel { background: radial-gradient(120% 70% at 50% 0%, #4A3524, var(--night) 70%); }
.reader .pic { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); filter: brightness(.9) saturate(.92); }
.reader .ctl .big { background: var(--moon); color: var(--night); }
.reader .ctl button, .reader .ctl a { background: rgba(255, 255, 255, .09); }
.rvoix { background: rgba(255, 255, 255, .1); }
.rchips { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 18px 0; font-size: 12px; color: rgba(246, 235, 219, .55); }
.rchips button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(233, 182, 92, .45); color: var(--night-ink); font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .05); }
.rchips svg { width: 14px; height: 14px; fill: var(--moon); }
.reader .won { color: var(--night-ink); }
.reader .won span { background: var(--moon); color: var(--night); box-shadow: 0 0 0 10px rgba(233, 182, 92, .18); }
.reader .won span svg { fill: var(--night); }
.reader .won small { text-decoration: underline; text-underline-offset: 3px; }

/* La dua, mot à mot (V2) */
.dua-et { display: block; width: 46px; height: 46px; margin: 0 auto 10px; filter: drop-shadow(0 0 14px rgba(233, 182, 92, .6)); }
.dua-et svg { width: 100%; height: 100%; fill: var(--moon); }
.reader .dua .tr span, .duaseule .tr span, .veille .tr span { transition: color .3s, opacity .3s; }
.dua .tr span.on { color: var(--moon); }
.dua .tr span.past { opacity: .55; }
.motamot { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; margin-top: 18px; border-radius: 999px; border: 1.5px solid var(--moon); color: var(--moon); font-weight: 600; font-size: 15px; background: transparent; }
.motamot svg { width: 16px; height: 16px; }
.motamot:disabled { opacity: .45; }
.duaseule { position: relative; z-index: 5; min-height: calc(100dvh - 40px); display: flex; flex-direction: column; color: var(--night-ink); padding: 0 var(--pad); max-width: 480px; margin: 0 auto; }
.duaseule .rbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.duaseule .rbtn svg { width: 20px; height: 20px; }
.duaseule .dua { margin: auto 0; text-align: center; padding: 10px 6px 20px; }
.dua .kick { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--moon); font-weight: 700; margin: 0 0 14px; }
.dua .ar { font-size: 34px; line-height: 1.7; margin: 0; color: var(--moon); font-family: 'Amiri', 'Geeza Pro', serif; }
.dua .tr { font-family: var(--font-kid); font-size: 23px; margin: 14px 0 6px; }
.dua .fr { font-size: 15px; opacity: .85; margin: 0; }
.dua .src { font-size: 12.5px; opacity: .55; margin: 12px 0 0; font-style: italic; }
.btn.bonne { background: var(--moon); color: var(--night); height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 17px; }
.btn.bonne svg { width: 20px; height: 20px; }
.duaseule .hint { text-align: center; font-size: 12.5px; opacity: .55; margin: 12px 0 20px; }

/* L'écran noir : une veilleuse (V2), avec une étoile qui respire, jamais de lune. */
.veille { position: fixed; inset: 0; z-index: 30; background: radial-gradient(90% 55% at 50% 42%, #22180F 0%, #0E0A07 70%); color: var(--night-ink); display: flex; align-items: stretch; justify-content: center; padding: calc(30px + var(--safe-t)) 24px calc(24px + var(--safe-b)); transition: background 2s; }
.v-corps { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: opacity 1.5s; }
.v-k { margin: 30px 0 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--moon); font-weight: 700; }
.v-t { margin: 4px 0 0; font-size: 19px; font-weight: 600; }
.v-r { margin: 2px 0 0; font-size: 13px; opacity: .6; min-height: 18px; }
.v-ring { position: relative; width: 230px; height: 230px; margin: 38px 0 26px; }
.v-ring svg { width: 100%; height: 100%; }
.v-ring circle { fill: none; stroke-width: 3; }
.v-ring .bg { stroke: rgba(246, 235, 219, .08); }
.v-ring .pr { stroke: var(--moon); stroke-linecap: round; stroke-dasharray: 578; stroke-dashoffset: 578; transition: stroke-dashoffset 1s linear; opacity: .8; }
.v-star { position: absolute; inset: 50px; display: grid; place-items: center; animation: respire 5s ease-in-out infinite; }
.v-star svg { width: 100%; height: 100%; fill: var(--moon); filter: drop-shadow(0 0 24px rgba(233, 182, 92, .55)); }
@keyframes respire { 0%, 100% { transform: scale(.86); opacity: .75; } 50% { transform: scale(1); opacity: 1; } }
.v-phrase { font-style: italic; font-size: 14px; line-height: 1.5; opacity: .55; min-height: 44px; max-width: 320px; margin: 0; }
.v-ctl { display: flex; gap: 26px; margin-top: auto; }
.v-ctl button { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(246, 235, 219, .18); color: var(--night-ink); display: grid; place-items: center; font-size: 24px; background: transparent; }
.v-ctl .v-pp { width: 70px; height: 70px; }
.v-ctl svg { width: 24px; height: 24px; }
.v-foot { font-size: 12px; opacity: .45; margin: 18px 0 0; }
.veille.dort .v-corps > :not(.v-ring) { opacity: .06; }
.veille.dort .v-ring { opacity: .45; transition: opacity 1.5s; }
.v-dua { width: 100%; margin: auto 0; display: flex; flex-direction: column; }
.v-dua .dua { text-align: center; }
.v-dua .btn.bonne { margin-top: 26px; }
.veille.eteint { background: #000; align-items: center; transition: background 3s; }
.veille.eteint p { font-family: var(--font-kid); font-size: 28px; color: var(--night-ink); animation: sendort 6s ease forwards; }
@keyframes sendort { 0% { opacity: 0; } 25% { opacity: .85; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .v-star, .veille.eteint p { animation: none; } }

/* Le ciel de l'enfant (V2) */
.ciel { position: relative; color: var(--night-ink); padding-bottom: 30px; }
.ciel::before { content: ''; position: fixed; inset: 0; z-index: -1; background: radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 78% 9%, #fff7 50%, transparent 51%), radial-gradient(1.5px 1.5px at 55% 33%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 30% 64%, #fff6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 72%, #fff7 50%, transparent 51%), radial-gradient(1px 1px at 8% 88%, #fff5 50%, transparent 51%); }
.ciel-top { display: flex; align-items: center; justify-content: space-between; }
.ciel-top .round { width: 44px; height: 44px; }
.ciel-top .topkid { margin: 0; }
.ciel h1 { font-family: var(--font-kid); font-size: 32px; margin: 18px 0 4px; }
.ciel-sous { margin: 0; color: rgba(246, 235, 219, .75); }
.ciel-sous b { color: var(--moon); }
.csts { margin-top: 10px; }
.cst { position: relative; }
.cst svg { width: 100%; display: block; }
.cst-l { position: absolute; left: 0; top: 6px; font-size: 12.5px; color: rgba(246, 235, 219, .6); }
.cst-l b { margin-left: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--moon); }
.cst .ln line { stroke: rgba(233, 182, 92, .55); stroke-width: 1.2; }
.cst g path { fill: rgba(246, 235, 219, .22); }
.cst g.on path { fill: var(--moon); filter: drop-shadow(0 0 6px rgba(233, 182, 92, .8)); }
.ciel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ciel-stats div { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.ciel-stats b { display: block; font-family: var(--font-kid); font-size: 22px; color: var(--moon); }
.ciel-stats small { font-size: 12.5px; color: rgba(246, 235, 219, .7); }

/* Les profils, la nuit en brun */
.whogrid button.on .wav { box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--moon); }
.wedit { background: rgba(42, 31, 23, .55); }
.soir .btn { white-space: nowrap; }

/* Le rituel du coucher (V2) : trois temps, un seul gros bouton. */
.couch { position: relative; z-index: 5; max-width: 480px; margin: 0 auto; color: var(--night-ink); padding: 0 var(--pad) 20px; }
.couch-top { display: flex; align-items: center; justify-content: space-between; }
.couch-top .topkid { margin: 0; }
.couch-tard { height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(246, 235, 219, .8); font-size: 14px; font-weight: 500; }
.couch-k { margin: 26px 0 0; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--moon); font-weight: 700; }
.couch h1 { font-family: var(--font-kid); font-size: 34px; line-height: 1.1; margin: 4px 0 2px; }
.couch-sous { margin: 0; color: rgba(246, 235, 219, .7); }
.couch-et { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.couch-et li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07); }
.couch-et .n { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid rgba(233, 182, 92, .6); color: var(--moon); display: grid; place-items: center; font-weight: 700; }
.couch-et li.ok .n { background: var(--moon); color: var(--night); border-color: var(--moon); }
.couch-et .n svg { width: 16px; height: 16px; }
.couch-et li > div { flex: 1; min-width: 0; }
.couch-et b { display: block; font-size: 16px; margin-top: 4px; }
.couch-prep { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.couch-prep button { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(246, 235, 219, .2); color: var(--night-ink); font-size: 14px; background: transparent; }
.couch-prep button[aria-pressed="true"] { background: rgba(233, 182, 92, .18); border-color: var(--moon); color: var(--moon); }
.couch-prep svg { width: 14px; height: 14px; }
.couch-h { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.couch-h img { width: 74px; height: 58px; border-radius: 12px; object-fit: cover; flex: none; filter: brightness(.9); }
.couch-h > span { display: flex; flex-direction: column; font-weight: 600; line-height: 1.25; }
.couch-h em { font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--moon); }
.couch-h small, .couch-d { font-weight: 400; font-size: 12.5px; color: rgba(246, 235, 219, .6); }
.couch-d { display: block; margin-top: 2px; }
.couch-go { margin-top: 22px; height: 66px; font-size: 19px; }
.couch-lis { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin-top: 6px; color: var(--night-ink); font-weight: 600; font-size: 15px; }
.couch-lis svg { width: 18px; height: 18px; }
.couch-note { text-align: center; font-size: 12.5px; color: rgba(246, 235, 219, .5); margin: 6px 20px 0; }
.sh-rituel { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: 18px; background: var(--night); color: var(--night-ink); }
.sh-rituel > svg:first-child { width: 22px; height: 22px; fill: var(--moon); flex: none; }
.sh-rituel span { flex: 1; display: flex; flex-direction: column; }
.sh-rituel small { color: rgba(246, 235, 219, .65); font-size: 12px; }
.sh-rituel > svg:last-child { width: 16px; height: 16px; }
.hc { margin-top: 12px; }
.hc b { display: block; margin-bottom: 8px; }
.soir-btns .btn { padding: 0 14px; min-width: 0; } .soir-btns .btn.lis { flex: none; }
/* La barre « encore 2 min » d'un épisode commencé : posée dans l'image, pas collée au bord doré. */
.sh-ep .prog { left: 10px; right: 10px; bottom: 9px; height: 5px; border-radius: 9px; background: rgba(255, 251, 244, .55); overflow: hidden; }
.sh-ep.cur .pic { box-shadow: 0 0 0 3px var(--gold); }
.sh-ep .pic:has(.prog) .num { bottom: 16px; }

/* Le coffre de la semaine : un quiz et un dessin à colorier */
.cof { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 30px; }
.cof > .round { align-self: flex-start; width: 44px; height: 44px; }
.cof-ic { width: 88px; height: 88px; margin: 8px 0 12px; border-radius: 26px; border: 3px solid var(--gold); background: #FFF4DF; color: var(--gold); display: grid; place-items: center; }
.cof-ic svg { width: 44px; height: 44px; fill: none; }
.cof-ic.ouvert { background: var(--gold); color: #fff; box-shadow: 0 0 0 10px rgba(201, 142, 53, .16); }
.cq-fin .cof-ic svg { fill: #fff; }
.cof h1 { font-family: var(--font-kid); font-size: 29px; line-height: 1.1; margin: 2px 0 6px; }
.cof-sous { color: var(--text-2); margin: 0 0 18px; max-width: 340px; }
.cof-c { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px; border-radius: 22px; background: var(--card); box-shadow: 0 2px 8px rgba(77, 53, 36, .08); margin-top: 12px; color: var(--text); }
.cof-c > span:not(.cof-q) { flex: 1; display: flex; flex-direction: column; }
.cof-c b { font-size: 17px; }
.cof-c small { color: var(--text-2); font-size: 13px; }
.cof-c > svg { width: 18px; height: 18px; color: var(--text-3); }
.cof-q { width: 58px; height: 58px; flex: none; border-radius: 18px; background: var(--action); color: #fff; display: grid; place-items: center; font-family: var(--font-kid); font-size: 32px; font-weight: 700; }
.cof-d { flex-direction: column; align-items: stretch; }
.cof-d img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.cof-d .ko, .cof-d.vide .ok, .cof-d.vide .cof-btns { display: none; }
.cof-d.vide .ko { display: block; }
.cof-d.vide img { visibility: hidden; height: 0; aspect-ratio: auto; border: 0; }
.cof-btns { display: flex; gap: 10px; }
.cof-btns .btn { flex: 1; height: 50px; }
.cof-sem { justify-content: center; }
.cst-l a { margin-left: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--moon); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.cq { max-width: 480px; margin: 0 auto; text-align: center; padding-bottom: 30px; }
.cq-top { display: flex; align-items: center; gap: 14px; }
.cq-top .round { width: 44px; height: 44px; }
.cq-pts { flex: 1; display: flex; gap: 6px; }
.cq-pts i { flex: 1; height: 8px; border-radius: 9px; background: var(--soft); }
.cq-pts i.ok { background: var(--gold); }
.cq-pts i.now { background: #E6C78F; }
.cq-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; margin: 16px 0 12px; }
.cq h1 { font-family: var(--font-kid); font-size: 25px; line-height: 1.2; margin: 4px 0 16px; }
.cq-ch { display: grid; gap: 10px; }
.cq-ch button { min-height: 60px; padding: 10px 16px; border-radius: 18px; background: var(--card); color: var(--text); font-size: 17px; font-weight: 600; box-shadow: 0 2px 0 #E2CFB2; border: 2px solid transparent; }
.cq-ch button.bon { background: #E6F2DC; border-color: #6E9F4F; color: #2F5A1A; }
.cq-ch button.faux { border-color: var(--danger); animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.cq-bravo { margin: 16px 0 12px; font-size: 16px; color: #2F5A1A; }
.cq-encore { margin: 14px 0 0; color: var(--text-2); }
.cq-fin { display: flex; flex-direction: column; align-items: center; padding-top: 40px; }
.cq-fin h1 { font-size: 40px; }
.cq-fin p { color: var(--text-2); max-width: 320px; margin: 0 0 20px; }
.cq-fin .btn { margin-top: 8px; }

/* Impression du coloriage : rien d'autre que le dessin, en pleine page paysage. */
#a-imprimer { display: none; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body > *:not(#a-imprimer) { display: none !important; }
  body { background: #fff !important; }
  #a-imprimer { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 100vh; }
  #a-imprimer img { max-width: 100%; max-height: 100%; }
}

/* L'onglet Comptines */
.cp-h1 { font-family: var(--font-kid); font-size: 32px; margin: 14px 0 2px; }
.cp-sous { color: var(--text-2); margin: 0; }
.cp-t { position: relative; flex: none; width: 150px; height: 150px; border-radius: 22px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; scroll-snap-align: start; overflow: hidden;
  background: radial-gradient(90% 70% at 80% 10%, rgba(255, 255, 255, .25), transparent 60%), var(--t); box-shadow: 0 4px 0 color-mix(in srgb, var(--t) 70%, #000); }
.cp-t b { font-size: 14.5px; line-height: 1.2; position: relative; }
.cp-t small { font-size: 11.5px; opacity: .85; position: relative; }
.cp-tn { position: absolute; left: 12px; top: 6px; font-family: var(--font-kid); font-weight: 700; font-size: 34px; opacity: .9; }
.cp-tnote { position: absolute; right: -8px; top: 8px; width: 78px; height: 78px; opacity: .22; color: #fff; }
.cp-tnote svg, .cp1-tete .cp-tnote svg { width: 100%; height: 100%; fill: currentColor; }
.cp-row { padding-bottom: 8px; }
.cp-num { width: 40px; height: 40px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--t) 18%, #fff); color: var(--t); display: grid; place-items: center; font-weight: 700; }
.cp-play { width: 36px; height: 36px; border-radius: 50%; background: var(--action); color: #fff; display: grid; place-items: center; }
.cp-play svg { width: 15px; height: 15px; }
.cp1 { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 40px; }
.cp1 > .round { align-self: flex-start; width: 44px; height: 44px; }
.cp1-tete { position: relative; width: 120px; height: 120px; border-radius: 32px; margin: 6px 0 14px; background: radial-gradient(90% 70% at 80% 10%, rgba(255, 255, 255, .25), transparent 60%), var(--t); color: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 6px 0 color-mix(in srgb, var(--t) 70%, #000); }
.cp1-tete .cp-tn { position: static; font-size: 52px; }
.cp1-tete .cp-tnote { right: -10px; top: 10px; width: 90px; height: 90px; }
.cp1 h1 { font-family: var(--font-kid); font-size: 29px; line-height: 1.1; margin: 2px 0 16px; }
.cp1 .btn { max-width: 340px; }
.cp1 .btn.light { margin-top: 10px; }
.cp1-bientot { color: var(--text-2); max-width: 320px; }
#vbox video { width: 100%; border-radius: 18px; margin-top: 14px; background: #000; }
.cp1-par { margin-top: 22px; width: 100%; padding: 18px; border-radius: 22px; background: var(--card); font-family: var(--font-kid); font-size: 20px; line-height: 1.45; }
.cp1-par p { margin: 0 0 14px; }
.cp1-par .cp-ref { font-family: var(--font); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 6px 0 4px; }
.cp1-src { font-size: 12.5px; color: var(--text-3); font-style: italic; margin-top: 12px; }

/* Le chemin de la prière (couleurs V3) : une route dorée, un rond par jour */
.pu { margin-top: 24px; }
.pu-tete { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--card); box-shadow: 0 2px 8px rgba(77, 53, 36, .08); color: var(--text); }
.pu-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--u); color: #fff; display: grid; place-items: center; }
.pu-ic svg { width: 24px; height: 24px; }
.pu-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pu-t small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--u); font-weight: 700; }
.pu-t b { font-size: 18px; }
.pu-av { font-weight: 700; color: var(--text-2); font-size: 14px; }
.pu-route { position: relative; margin: 6px 0 0; }
.pu-route svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pu-route path { fill: none; stroke: #D9BF93; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 10; vector-effect: non-scaling-stroke; }
.pn { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 1; color: var(--text); }
.pn-d { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 3px solid #E2CFB2; font-family: var(--font-kid); font-size: 24px; font-weight: 700; color: var(--text-2); box-shadow: 0 4px 0 #E2CFB2; }
.pn-d svg { width: 26px; height: 26px; }
.pn-l { position: absolute; top: 100%; margin-top: 6px; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.pn.done .pn-d { background: var(--u); border-color: var(--u); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--u) 70%, #000); }
.pn.now .pn-d { width: 76px; height: 76px; background: var(--action); border: 4px solid var(--gold); color: #fff; font-size: 30px; box-shadow: 0 0 0 8px rgba(201, 142, 53, .2), 0 6px 0 #2E1F14; }
.pn.now .pn-l { color: var(--text); }
.pn-bulle { position: absolute; bottom: 100%; margin-bottom: 10px; white-space: nowrap; padding: 6px 12px; border-radius: 12px; background: var(--gold); color: #fff; font-weight: 700; font-size: 12.5px; }
.pn.coffre .pn-d { border-radius: 20px; width: 70px; background: #FFF4DF; border-color: var(--gold); color: var(--gold); }
.pathtop .stat.star svg { color: var(--gold); }
/* Le cadre doré de l'épisode du soir est dessiné DANS l'image : la rangée qui défile ne peut plus le couper. */
.sh-ep.cur .pic { box-shadow: none; }
.sh-ep.cur .pic::after { content: ''; position: absolute; inset: 0; border: 3px solid var(--gold); border-radius: inherit; pointer-events: none; z-index: 2; }

/* Comptines : un simple lecteur (01/11/2026). Grille de grandes images, cœur, recherche par nom. */
.cp-cherche { display: flex; align-items: center; gap: 10px; height: 50px; margin-top: 14px; padding: 0 16px; border-radius: 16px; background: var(--card); box-shadow: 0 2px 8px rgba(77, 53, 36, .06); color: var(--text-3); }
.cp-cherche svg { width: 20px; height: 20px; flex: none; }
.cp-cherche input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); outline: none; }
.cp-filtres { display: flex; gap: 8px; margin: 12px 0 16px; }
.cp-filtres .chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; }
.cp-filtres .chip svg { width: 16px; height: 16px; fill: #C0504D; }
.cp-filtres .chip[aria-pressed="true"] svg { fill: #fff; }
.cp-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-grille .empty { grid-column: 1 / -1; }
.cp-c { position: relative; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.cp-art { position: relative; display: block; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: radial-gradient(90% 70% at 80% 10%, rgba(255, 255, 255, .28), transparent 60%), var(--t); box-shadow: 0 4px 0 color-mix(in srgb, var(--t) 70%, #000); }
.cp-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-artn { position: absolute; inset: 22%; color: #fff; opacity: .55; }
.cp-artn svg { width: 100%; height: 100%; fill: currentColor; }
.cp-c.joue .cp-art::after { content: ''; position: absolute; inset: 0; border: 4px solid var(--gold); border-radius: inherit; }
.cp-c b { font-size: 15px; line-height: 1.25; }
.cp-coeur { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 251, 244, .92); display: grid; place-items: center; }
.cp-coeur svg { width: 22px; height: 22px; fill: none; stroke: #9A8670; stroke-width: 2; }
.cp-coeur.on svg { fill: #C0504D; stroke: #C0504D; }

.cp1 { display: flex; flex-direction: column; align-items: center; padding-bottom: 30px; }
.cp1 > .round { align-self: flex-start; width: 44px; height: 44px; }
.cp1-carte { width: min(270px, 74vw); margin-top: 6px; padding: 8px 8px 14px; border-radius: 28px; background: #fff; box-shadow: 0 16px 34px rgba(77, 53, 36, .2); transform: rotate(-2deg); text-align: center; }
.cp1-carte .cp-art { border-radius: 22px; box-shadow: none; }
.cp1-carte b { display: block; font-family: var(--font-kid); font-size: 22px; line-height: 1.1; margin-top: 12px; }
.cp1-ctl { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 30px; }
.cp1-cote { width: 64px; height: 64px; border-radius: 50%; background: var(--card); color: var(--text); display: grid; place-items: center; box-shadow: 0 4px 0 #D6BF9C; }
.cp1-cote svg { width: 28px; height: 28px; }
.cp1-centre { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.cp1-anneau { position: absolute; inset: -10px; width: 152px; height: 152px; }
.cp1-anneau circle { fill: none; stroke: #E7D3B3; stroke-width: 7; }
.cp1-anneau .pr { stroke: var(--action); stroke-linecap: round; stroke-dasharray: 452; stroke-dashoffset: 452; transition: stroke-dashoffset .3s linear; }
.cp1-pp { width: 116px; height: 116px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 0 #9C6A22; }
.cp1-pp svg { width: 48px; height: 48px; }
.cp1-coeur { display: inline-flex; align-items: center; gap: 8px; height: 48px; margin-top: 26px; padding: 0 20px; border-radius: 999px; background: var(--card); color: var(--text); font-weight: 600; }
.cp1-coeur svg { width: 22px; height: 22px; fill: none; stroke: #9A8670; stroke-width: 2; }
.cp1-coeur.on svg { fill: #C0504D; stroke: #C0504D; }
.cp1-vid { max-width: 320px; margin-top: 14px; }

/* Les jeux de la prière : des cartes, recto pour l'enfant, verso pour le parent. */
.cj-art { position: relative; display: block; overflow: hidden; background: radial-gradient(90% 70% at 80% 10%, rgba(255, 255, 255, .3), transparent 60%), var(--u); }
.cj-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cj-ic { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.cj-ic svg { width: 42%; height: 42%; opacity: .75; }
.cj-soirc { display: flex; flex-direction: column; margin-top: 16px; border-radius: 26px; overflow: hidden; background: var(--card); color: var(--text); box-shadow: 0 10px 30px rgba(77, 53, 36, .14), 0 2px 0 #E2CFB2; }
.cj-soirc .cj-art { aspect-ratio: 16 / 10; }
.cj-st { display: flex; flex-direction: column; padding: 14px 18px 18px; }
.cj-st small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.cj-st b { font-family: var(--font-kid); font-size: 28px; line-height: 1.1; margin: 4px 0 2px; }
.cj-st em { font-style: normal; font-size: 13.5px; color: var(--text-2); }
.cj-row { padding-bottom: 6px; }
.cj-mini { position: relative; flex: none; width: 118px; display: flex; flex-direction: column; gap: 6px; color: var(--text); scroll-snap-align: start; }
.cj-mini .cj-art, .cj-dos { aspect-ratio: 3 / 4; border-radius: 16px; }
.cj-dos { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #4D3524 0 10px, #563C29 10px 20px); color: #E9B65C; border: 3px solid #E9B65C55; }
.cj-dos b { font-family: var(--font-kid); font-size: 34px; }
.cj-dos svg { width: 36px; height: 36px; }
.cj-mini.cesoir .cj-art::after { content: ''; position: absolute; inset: 0; border: 3px solid var(--gold); border-radius: inherit; }
.cj-soir { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 99px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; }
.cj-ok { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #4E7A3A; display: grid; place-items: center; }
.cj-ok svg { width: 15px; height: 15px; }
.cj-mn { font-size: 13px; font-weight: 600; line-height: 1.25; }
.cj-dec { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 14px; border-radius: 18px; background: var(--card); color: var(--text); }
.cj-dec > svg:first-child { width: 26px; height: 26px; color: #6E8F5A; }
.cj-dec span { flex: 1; display: flex; flex-direction: column; }
.cj-dec small { color: var(--text-2); font-size: 12.5px; }
.cj-dec > svg:last-child { width: 16px; height: 16px; color: var(--text-3); }

.cj { max-width: 460px; margin: 0 auto; padding-bottom: 30px; }
.cj-top { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.cj-top .round { width: 44px; height: 44px; }
.cj-carte { position: relative; margin-top: 16px; perspective: 1400px; }
.cj-recto, .cj-verso { border-radius: 28px; background: var(--card); box-shadow: 0 16px 34px rgba(77, 53, 36, .18); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s cubic-bezier(.3, .7, .3, 1); }
.cj-recto { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 10px 18px; }
.cj-recto .cj-art { width: 100%; aspect-ratio: 4 / 3.4; border-radius: 22px; }
.cj-recto small { margin-top: 14px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.cj-recto b { font-family: var(--font-kid); font-size: 34px; line-height: 1.05; margin: 4px 12px 16px; }
.cj-recto .btn { max-width: 300px; }
.cj-pour { font-size: 12.5px; color: var(--text-3); margin-top: 10px; }
.cj-verso { position: absolute; inset: 0; overflow: auto; padding: 18px; transform: rotateY(180deg); background: #FFFBF4; border: 3px solid color-mix(in srgb, var(--u) 35%, #fff); }
.cj-carte.tournee .cj-recto { transform: rotateY(-180deg); }
.cj-carte.tournee .cj-verso { transform: rotateY(0); }
.cj-vk { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--u); font-weight: 700; }
.cj-b { margin-bottom: 12px; }
.cj-b small { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 2px; }
.cj-b p { margin: 0; font-size: 15px; line-height: 1.45; }
.cj-b.dire p { font-family: var(--font-kid); font-size: 20px; line-height: 1.3; color: var(--action); padding: 10px 14px; border-radius: 14px; background: var(--spirit-2); }
.cj-case { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 14px; border-radius: 16px; background: var(--soft); color: var(--text); font-weight: 600; text-align: left; margin-top: 6px; }
.cj-case svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 7px; border: 2px solid var(--text-3); color: transparent; box-sizing: content-box; }
.cj-case.on { background: #E6F2DC; color: #2F5A1A; }
.cj-case.on svg { background: #6E9F4F; border-color: #6E9F4F; color: #fff; }
.cj-retour { display: block; margin: 14px auto 0; color: var(--text-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .cj-recto, .cj-verso { transition: none; } }

/* Le recto et le verso partagent la même case : la carte prend la hauteur du plus long, rien n'est coupé. */
.cj-carte { display: grid; }
.cj-recto, .cj-verso { grid-area: 1 / 1; }
.cj-verso { position: relative; inset: auto; overflow: visible; }

/* Comptines, version L4 « Le lecteur d'abord » : l'image en grand, de gros boutons, la bibliothèque dans un tiroir. */
.cl { position: relative; padding-bottom: 96px; }
.cl-art { position: relative; display: block; overflow: hidden; background: radial-gradient(90% 70% at 80% 10%, rgba(255, 255, 255, .28), transparent 60%), var(--t); }
.cl-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-note { position: absolute; inset: 26%; color: #fff; opacity: .5; }
.cl-note svg { width: 100%; height: 100%; fill: currentColor; }
.cl-art.mini { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.cl-art.mini .cl-note { inset: 22%; }
.cl-haut { position: relative; margin: calc(-10px - var(--safe-t)) calc(var(--pad) * -1) 0; height: min(52vh, 430px); }
.cl-art.grand { position: absolute; inset: 0; }
.cl-voile { position: absolute; inset: 0; background: linear-gradient(rgba(42, 31, 23, .35), transparent 22%, transparent 62%, var(--bg) 99%); pointer-events: none; }
.cl-barre { position: absolute; top: calc(10px + var(--safe-t)); left: var(--pad); right: var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 8px; z-index: 2; }
.cl-barre .topkid { margin: 0; }
.cl-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 99px; background: rgba(255, 251, 244, .92); font-size: 13px; font-weight: 600; color: var(--text); }
.cl-pill svg { width: 15px; height: 15px; fill: #C0504D; }
.cl-corps { position: relative; margin-top: -26px; }
.cl-titre { display: flex; align-items: center; gap: 12px; }
.cl-titre > span { flex: 1; min-width: 0; }
.cl-titre h1 { font-family: var(--font-kid); font-size: 28px; line-height: 1.1; margin: 0; }
.cl-titre small { color: var(--text-2); font-size: 13px; }
.cl-coeur { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: 0 2px 0 #E2CFB2; }
.cl-coeur svg, .cl-lc svg { width: 26px; height: 26px; fill: none; stroke: #9A8670; stroke-width: 2; }
.cl-coeur.on svg, .cl-lc.on svg { fill: #C0504D; stroke: #C0504D; }
.cl-prog { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 12px 0 0; background: transparent; --f: 0%; }
.cl-prog::-webkit-slider-runnable-track { height: 7px; border-radius: 7px; background: linear-gradient(var(--action), var(--action)) 0 / var(--f) 100% no-repeat, var(--soft); }
.cl-prog::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -5.5px; border-radius: 50%; background: var(--action); }
.cl-prog::-moz-range-track { height: 7px; border-radius: 7px; background: var(--soft); }
.cl-prog::-moz-range-progress { height: 7px; border-radius: 7px; background: var(--action); }
.cl-prog::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--action); }
.cl-temps { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.cl-ctl { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 8px; }
.cl-m { width: 64px; height: 64px; border-radius: 50%; background: var(--card); color: var(--action); display: grid; place-items: center; box-shadow: 0 3px 0 #E2CFB2; }
.cl-m svg { width: 26px; height: 26px; }
.cl-pp { width: 96px; height: 96px; border-radius: 50%; background: var(--action); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 0 #2E1F14; }
.cl-pp svg { width: 38px; height: 38px; }
.cl-vid { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px auto 0; height: 46px; padding: 0 18px; border-radius: 99px; background: var(--card); font-weight: 600; color: var(--text); }
.cl-vid svg { width: 16px; height: 16px; }
.cl-tiroir { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; bottom: calc(var(--tab-h) + var(--safe-b) - 14px); z-index: 18; padding: 8px 16px 26px; border-radius: 26px 26px 0 0; background: var(--card); box-shadow: 0 -8px 24px rgba(77, 53, 36, .12); text-align: left; color: var(--text); }
.cl-grab { display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 10px; border: 0; padding: 0; }
.cl-ens { display: flex; align-items: center; gap: 12px; }
.cl-ens > span:not(.cl-art) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-ens small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.cl-ens b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ens em { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--soft); font-style: normal; font-size: 13px; font-weight: 600; }
.cl-ens em svg { width: 16px; height: 16px; }
.cl-fond { position: fixed; inset: 0; z-index: 45; background: rgba(42, 31, 23, 0); transition: background .25s; }
.cl-fond.ouvert { background: rgba(42, 31, 23, .4); }
.cl-feuille { position: absolute; left: 50%; transform: translate(-50%, 100%); width: 100%; max-width: 480px; top: 70px; bottom: 0; overflow: auto; padding: 8px 16px calc(20px + var(--safe-b)); border-radius: 28px 28px 0 0; background: var(--bg); transition: transform .3s cubic-bezier(.3, .7, .3, 1); }
.cl-fond.ouvert .cl-feuille { transform: translate(-50%, 0); }
.cl-feuille .cl-grab { width: 60px; height: 6px; margin-bottom: 12px; cursor: pointer; }
.cl-now { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: var(--action); color: #FFF6E6; }
.cl-now > span:not(.cl-art) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-now b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-now small { font-size: 11.5px; color: #D8C3A2; }
.cl-nowpp { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; }
.cl-nowpp svg { width: 16px; height: 16px; }
.cl-onglets { display: flex; padding: 4px; margin-top: 12px; border-radius: 14px; background: var(--card); }
.cl-onglets button { flex: 1; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.cl-onglets button[aria-pressed="true"] { background: var(--action); color: #fff; }
.cl-onglets svg { width: 14px; height: 14px; fill: #E07B72; }
.cl-favh { display: flex; gap: 8px; margin-top: 12px; }
.cl-favh .btn { flex: 1; height: 50px; }
.cl-favh .btn.light { flex: none; width: 54px; padding: 0; }
.cl-favh .btn.light svg { width: 20px; height: 20px; }
.cl-boucle { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--text-2); }
.cl-boucle input { position: absolute; opacity: 0; }
.cl-boucle span { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--line); flex: none; transition: background .2s; }
.cl-boucle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.cl-boucle input:checked + span { background: #6E9F4F; }
.cl-boucle input:checked + span::after { left: 21px; }
.cl-feuille .cp-cherche { margin-top: 12px; height: 46px; }
.cl-liste { margin-top: 6px; }
.cl-l { display: flex; align-items: center; gap: 4px; min-height: 60px; border-bottom: 1px solid var(--line); }
.cl-lj { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px 0; color: var(--text); }
.cl-lj > span:not(.cl-art) { min-width: 0; display: flex; flex-direction: column; }
.cl-lj b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-lj small { font-size: 12px; color: var(--text-3); }
.cl-l.on b { color: var(--gold); }
.cl-lc { width: 44px; height: 44px; display: grid; place-items: center; }
.cl-lc svg { width: 22px; height: 22px; }
.cl-la { width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--action); }
.cl-la svg { width: 18px; height: 18px; }
/* Le choix de la saison au-dessus des épisodes (abonnés : tout est ouvert). */
.sh-saisonsc { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 12px; padding: 0 var(--pad) 2px; scrollbar-width: none; }
.sh-saisonsc::-webkit-scrollbar { display: none; }
.sh-saisonsc .chip { height: 40px; }
.bn-demain.libre .pic img { filter: none; }
.soir-btns .btn.go { flex: 1; }
/* Comptines : le gros bouton lecture, avec l'anneau du temps, un retour immédiat et une attente visible. */
.cl-ppz { position: relative; width: 116px; height: 116px; display: grid; place-items: center; }
.cl-anneau { position: absolute; inset: 0; width: 100%; height: 100%; }
.cl-anneau circle { fill: none; stroke: var(--soft); stroke-width: 6; }
.cl-anneau .pr { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 345.6; stroke-dashoffset: 345.6; transition: stroke-dashoffset .4s linear; }
.cl-pp { width: 92px; height: 92px; box-shadow: 0 5px 0 #2E1F14; transition: transform .12s, box-shadow .12s, background .2s; }
.cl-pp:active { transform: translateY(4px) scale(.97); box-shadow: 0 1px 0 #2E1F14; }
.cl-pp svg { width: 40px; height: 40px; }
.cl-pp:not(.joue) svg { margin-left: 5px; }
.cl-pp.attente { background: #6B4E37; }
.cl-pp.attente::after { content: ''; position: absolute; width: 104px; height: 104px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--gold); animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.cl-m:active { transform: translateY(2px); box-shadow: 0 1px 0 #E2CFB2; }
/* La liste « Toutes » de A à Z, avec ses lettres ; l'en-tête des préférées. */
.cl-lettre { margin: 14px 0 2px 2px; font-family: var(--font-kid); font-weight: 800; font-size: 17px; color: var(--gold); }
.cl-favt { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.cl-favt > span:last-child { display: flex; flex-direction: column; }
.cl-favt b { font-family: var(--font-kid); font-size: 21px; line-height: 1.1; }
.cl-favt small { font-size: 13px; color: var(--text-2); }
.cl-mos { width: 84px; height: 84px; flex: none; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.cl-mos .cl-art { width: 100%; height: 100%; }
.cl-mos .cl-note { display: none; }
.cl-mos.un { grid-template-columns: 1fr; }
/* Étoiles et coffre en aquarelle : l'image passe devant le dessin vectoriel (qui reste en secours). */
.sem-et i, .sem-et b, .cof-ic { position: relative; }
.sem-et i img, .sem-et b img, .cof-ic img { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); object-fit: contain; }
.sem-et i:has(img) svg, .sem-et b:has(img) svg, .cof-ic:has(img) svg { visibility: hidden; }
.sem-et i { width: 22px; height: 22px; }
.sem-et i:not(.on) img { filter: grayscale(1) opacity(.35); }
.sem-et i.now img { filter: grayscale(.4) opacity(.75); }
.sem-et b:has(img) { width: 34px; height: 34px; border: 0; background: none; border-radius: 0; }
.sem-et b.ouvert:has(img) { background: none; }
.cof-ic:has(img) { border: 0; background: none; box-shadow: none; width: 120px; height: 120px; }
.cof-ic:has(img) img { inset: 0; width: 100%; height: 100%; }
.cof-ic.ouvert:has(img) { background: none; box-shadow: none; }
/* L'anneau du temps est dessiné par-dessus le bouton : il ne doit pas attraper le toucher. */
.cl-anneau { pointer-events: none; }
.cl-pp { position: relative; z-index: 1; }

/* Inscription D1 « Goûte d'abord » (+ l'écran des enfants de la D4) */
body.quiz, body.quiz.pause { background: radial-gradient(70% 40% at 15% 10%, #F7EEDD 0%, transparent 70%), radial-gradient(60% 40% at 95% 60%, #EAD8BA 0%, transparent 70%), var(--bg) fixed; }
.ob-pts { flex: 1; display: flex; gap: 6px; }
.ob-pts i { flex: 1; height: 5px; border-radius: 5px; background: var(--soft); }
.ob-pts i.on { background: var(--gold); }
.q.left, .qsub.left { text-align: left; }
.ob-lab { margin: 18px 0 8px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--text-2); }
.ob-ages, .ob-heures { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-ages button { width: 48px; height: 48px; border-radius: 14px; background: var(--card); font-weight: 700; font-size: 16px; color: var(--text); box-shadow: 0 2px 0 #E2CFB2; }
.ob-heures button { min-width: 78px; height: 46px; padding: 0 12px; border-radius: 14px; background: var(--card); font-weight: 600; color: var(--text); box-shadow: 0 2px 0 #E2CFB2; }
.ob-ages button[aria-pressed="true"], .ob-heures button[aria-pressed="true"] { background: var(--action); color: #fff; box-shadow: none; }
.ob-av { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 6px; scrollbar-width: none; }
.ob-av::-webkit-scrollbar { display: none; }
.ob-av button { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.ob-av img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid transparent; box-shadow: 0 2px 6px rgba(77, 53, 36, .15); }
.ob-av button.on img { border-color: var(--gold); }
.ob-av button.on { color: var(--text); }
.sheet .ob-lab:first-of-type { margin-top: 8px; }

.ob-ec { margin: calc(-10px - var(--safe-t)) calc(var(--pad) * -1) 0; padding-bottom: 150px; }
.ob-art { position: relative; height: min(46vh, 380px); overflow: hidden; }
.ob-art > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.ob-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, var(--bg) 100%); }
.ob-logo { position: absolute; top: calc(14px + var(--safe-t)); left: 50%; transform: translateX(-50%); height: 30px; padding: 6px 14px; box-sizing: content-box; border-radius: 99px; background: rgba(255, 251, 244, .9); z-index: 1; }
.ob-pill { display: inline-flex; align-items: center; gap: 6px; margin: -18px var(--pad) 0; position: relative; z-index: 1; padding: 6px 12px; border-radius: 99px; background: var(--action); color: #fff; font-size: 12px; font-weight: 600; }
.ob-pill svg { width: 12px; height: 12px; }
.ob-txt { margin: 14px var(--pad) 0; font-family: var(--font-kid); font-size: 21px; line-height: 1.45; color: var(--text-3); min-height: 120px; }
.ob-txt span { transition: color .3s; }
.ob-txt span.on { color: var(--text); background: linear-gradient(transparent 55%, rgba(201, 142, 53, .3) 55%); }
.ob-txt span.past { color: var(--text-2); }
.ob-lect { display: flex; align-items: center; gap: 12px; margin: 10px var(--pad) 0; color: var(--text-2); font-size: 13px; }
.ob-pp { width: 58px; height: 58px; border-radius: 50%; background: var(--action); color: #fff; display: grid; place-items: center; flex: none; }
.ob-pp svg { width: 24px; height: 24px; }
.linkbtn { display: block; text-align: center; margin: 10px auto 0; min-height: 40px; line-height: 40px; color: var(--text-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.ob-kids { display: grid; gap: 10px; margin-top: 16px; }
.ob-kid { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--card); text-align: left; color: var(--text); box-shadow: 0 2px 8px rgba(77, 53, 36, .06); }
.ob-kid img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.ob-kid > span { flex: 1; display: flex; flex-direction: column; }
.ob-kid small { color: var(--text-2); font-size: 12.5px; }
.ob-kid em { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 99px; background: var(--soft); font-style: normal; font-weight: 700; font-size: 13.5px; }
.ob-kid em svg { width: 14px; height: 14px; color: var(--gold); }
.ob-ajout { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 2px dashed #D6BF9C; color: var(--text-2); font-weight: 600; }
.ob-ajout span { width: 44px; height: 44px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--gold); }
.ob-ajout svg { width: 20px; height: 20px; }
.ob-notif { display: flex; gap: 12px; margin-top: 18px; padding: 12px; border-radius: 18px; background: rgba(255, 251, 244, .75); backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(77, 53, 36, .12); }
.ob-notif img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.ob-notif span { display: flex; flex-direction: column; font-size: 13px; }
.ob-notif small { color: var(--text); font-size: 12.5px; }
.ob-notif em { font-style: normal; color: var(--text-3); font-size: 11.5px; margin-top: 2px; }
.ob-rappel { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--text); }
.ob-rappel input { position: absolute; opacity: 0; }
.ob-rappel span { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--line); flex: none; transition: background .2s; }
.ob-rappel span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.ob-rappel input:checked + span { background: #6E9F4F; }
.ob-rappel input:checked + span::after { left: 21px; }
.ob-info { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); }
.ob-info svg { width: 16px; height: 16px; color: var(--gold); flex: none; }

.ob-essai-t { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.ob-essai-t img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.ob-essai-t .q { margin: 0; font-size: 24px; }
.ob-frise { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ob-frise li { display: flex; gap: 12px; }
.ob-frise li > span { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--card); color: var(--gold); display: grid; place-items: center; }
.ob-frise li:first-child > span { background: var(--gold); color: #fff; }
.ob-frise svg { width: 16px; height: 16px; }
.ob-frise b { display: block; }
.ob-frise small { color: var(--text-2); font-size: 13px; }
.ob-prix { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--card); font-size: 13px; color: var(--text-2); }
.ob-prix b { color: var(--text); }
.ob-liens { text-align: center; font-size: 11.5px; color: var(--text-3); margin: 8px 0 0; }
.ob-liens a { text-decoration: underline; }
.btn.or { background: var(--gold); color: #fff; }
/* L'heure du coucher, façon D5 : la nuit, une roue comme un réveil, un enfant à la fois. */
body.ob-nuit, body.ob-nuit.quiz { background: radial-gradient(90% 50% at 50% 30%, #4A3524, var(--night) 70%) fixed; color: var(--night-ink); }
body.ob-nuit .q { color: var(--night-ink); text-align: center; }
body.ob-nuit .qtop .back { background: rgba(255, 255, 255, .1); color: var(--night-ink); }
body.ob-nuit .ob-pts i { background: rgba(255, 255, 255, .12); }
body.ob-nuit .ob-pts i.on { background: var(--moon); }
body.ob-nuit .bottom { background: linear-gradient(to top, var(--night) 72%, transparent); }
body.ob-nuit .btn.or { background: var(--moon); color: var(--night); }
.ob-kidrow { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ob-kidrow button { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--night-ink); font-weight: 600; font-size: 15px; }
.ob-kidrow button.on { box-shadow: inset 0 0 0 2px var(--moon); }
.ob-kidrow img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ob-kidrow .add { padding: 0 14px; color: rgba(246, 235, 219, .7); }
.ob-kidrow svg { width: 18px; height: 18px; }
.ob-roue { position: relative; display: flex; justify-content: center; align-items: center; gap: 10px; margin: 26px auto 0; width: 260px; height: 230px; }
.ob-bande { position: absolute; left: 0; right: 0; top: 92px; height: 46px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 2px rgba(233, 182, 92, .35); pointer-events: none; }
.ob-col { position: relative; width: 90px; height: 230px; overflow-y: auto; scroll-snap-type: y mandatory; padding: 92px 0; box-sizing: border-box; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.ob-col::-webkit-scrollbar { display: none; }
.ob-col span { display: block; height: 46px; line-height: 46px; text-align: center; scroll-snap-align: center; font-family: var(--font-kid); font-weight: 700; font-size: 28px; color: #8C765F; cursor: pointer; transition: color .15s, font-size .15s; }
.ob-col span.on { color: var(--moon); font-size: 42px; }
/* La roue de la date de naissance : trois colonnes (jour, mois, année). */
.ob-roue.ob-date { width: auto; gap: 6px; }
.ob-date .ob-col span { font-size: 24px; }
.ob-date .ob-col span.on { font-size: 32px; }
.ob-sep { position: relative; font-family: var(--font-kid); font-size: 38px; color: var(--moon); }
.ob-hint { text-align: center; font-size: 14px; color: rgba(246, 235, 219, .7); margin-top: 12px; line-height: 1.45; }
.ob-hint b { color: var(--night-ink); }
body.ob-nuit .ob-rappel { justify-content: center; color: var(--night-ink); margin-top: 16px; }
body.ob-nuit .ob-rappel span { background: rgba(255, 255, 255, .15); }
body.ob-nuit .ob-rappel input:checked + span { background: #6E9F4F; }

/* Page 1 de l'inscription : V1 « Le grand écran » + la confiance de la V4 */
body.ob-p1 { background: var(--night) !important; }
.p1 { position: relative; margin: calc(-10px - var(--safe-t)) calc(var(--pad) * -1) 0; min-height: 100dvh; color: #FFF6E6; padding-bottom: 150px; }
.p1-art { position: absolute; inset: 0 0 auto; height: 78dvh; overflow: hidden; cursor: pointer; }
.p1-art img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; animation: p1zoom 40s ease-in-out infinite alternate; }
.p1-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(42, 31, 23, .6), transparent 16%, transparent 32%, rgba(42, 31, 23, .9) 62%, var(--night) 100%); }
@keyframes p1zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .p1-art img { animation: none; } }
.p1-haut { position: absolute; top: calc(14px + var(--safe-t)); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: center; z-index: 3; }
.p1-nuit { padding: 8px 12px; border-radius: 99px; background: rgba(42, 31, 23, .7); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.p1-son { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 99px; background: rgba(42, 31, 23, .75); color: #FFF6E6; font-weight: 600; font-size: 14px; }
.p1-son svg { width: 15px; height: 15px; }
.p1-son.on { background: var(--moon); color: var(--night); }
.p1-bas { position: relative; z-index: 2; padding: 34dvh var(--pad) 0; }
.p1-txt { font-family: var(--font-kid); font-size: 20px; line-height: 1.5; margin: 0 0 22px; min-height: 90px; }
.p1-txt span { transition: opacity .3s, background .3s, color .3s; }
.p1-txt .next { opacity: .5; }
.p1-txt .past { opacity: .75; }
.p1-txt .on { color: var(--night); background: #F2D19A; border-radius: 6px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.p1 h1 { font-family: var(--font-kid); font-weight: 800; font-size: 31px; line-height: 1.05; margin: 0; }
.p1 h1 .ar { font-family: 'Amiri', serif; font-size: .9em; }
.p1-sous { color: #E2CFB2; font-size: 14px; margin: 6px 0 0; }
.p1-conf { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.p1-conf li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #E2CFB2; line-height: 1.35; }
.p1-conf b { color: #FFF6E6; }
.p1-conf svg { width: 18px; height: 18px; flex: none; color: var(--moon); margin-top: 1px; }
.p1-avis { margin: 16px 0 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); }
.p1-avis blockquote { margin: 0; font-size: 14px; line-height: 1.4; }
.p1-avis figcaption { margin-top: 6px; font-size: 12px; color: #BFA98C; }
.p1-cta { background: linear-gradient(to top, var(--night) 75%, transparent) !important; }
.p1-tp { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; font-size: 12.5px; color: #D8C3A2; flex-wrap: wrap; }
.p1-tp .tp-et { height: 18px; }
.p1-tp .tp-logo { height: 18px; }
/* Les icônes des preuves : aquarelle quand elle existe (img/icones/), le trait vectoriel en secours. */
.p1-conf li { align-items: center; }
.p1-ic { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(233, 182, 92, .12); }
.p1-ic img { position: absolute; inset: -2px; width: 40px; height: 40px; object-fit: contain; }
.p1-ic:has(img) { background: none; }
.p1-ic:has(img) svg { visibility: hidden; }
/* Page 1 : le gros bouton « Écouter l'histoire » au milieu de l'image, tant que le son n'est pas allumé. */
.p1-go { position: absolute; z-index: 4; left: 50%; top: 22dvh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: #FFF6E6; font-weight: 700; font-size: 16px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.p1-go[hidden] { display: none; }
.p1-go span { width: 88px; height: 88px; border-radius: 50%; background: var(--moon); color: var(--night); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(233, 182, 92, .6); animation: p1pouls 1.8s ease-out infinite; }
.p1-go svg { width: 36px; height: 36px; margin-left: 4px; }
@keyframes p1pouls { 0% { box-shadow: 0 0 0 0 rgba(233, 182, 92, .55); } 100% { box-shadow: 0 0 0 26px rgba(233, 182, 92, 0); } }
@media (prefers-reduced-motion: reduce) { .p1-go span { animation: none; } }

/* Page 1 V3 « Comme une story » : plein écran, des barres en haut, une aquarelle par page, la phrase en grand. */
.st { position: fixed; inset: 0; z-index: 10; background: var(--night); color: #FFF6E6; max-width: 480px; margin: 0 auto; overflow: hidden; }
.st-art { position: absolute; inset: 0; }
.st-art img { width: 100%; height: 100%; object-fit: cover; animation: stzoom 9s ease-out forwards, stfondu .5s ease; }
@keyframes stzoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes stfondu { from { opacity: .3; } to { opacity: 1; } }
.st-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(42, 31, 23, .7), transparent 22%, transparent 48%, rgba(42, 31, 23, .92) 78%, var(--night) 100%); }
.st-barres { position: absolute; top: calc(10px + var(--safe-t)); left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.st-barres i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.st-barres b { display: block; height: 100%; width: 0; background: #fff; }
.st-qui { position: absolute; top: calc(24px + var(--safe-t)); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; z-index: 4; }
.st-qui > img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.st-qui span { display: flex; flex-direction: column; line-height: 1.2; }
.st-qui b { font-size: 14px; }
.st-qui small { font-size: 12px; opacity: .85; }
.st-son { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 99px; background: rgba(42, 31, 23, .7); color: #FFF6E6; font-weight: 600; font-size: 14px; }
.st-son svg { width: 14px; height: 14px; }
.st-son.on { background: var(--moon); color: var(--night); }
.st-zone { position: absolute; top: 80px; bottom: 190px; z-index: 2; background: transparent; }
.st-g { left: 0; width: 34%; }
.st-d { right: 0; width: 66%; }
.st-tap { position: absolute; right: 12px; top: 40%; display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px 6px 12px; border-radius: 99px; background: rgba(42, 31, 23, .6); color: #fff; font-size: 12.5px; font-weight: 600; }
.st-tap svg { width: 16px; height: 16px; }
.st-cap { position: absolute; left: 22px; right: 22px; bottom: calc(150px + var(--safe-b)); z-index: 3; pointer-events: none; }
.st-cap p { margin: 0; font-family: var(--font-kid); font-weight: 700; font-size: 25px; line-height: 1.25; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.st-cap small { display: block; margin-top: 10px; font-size: 13px; color: #E2CFB2; }
.st-cta { z-index: 12 !important; background: linear-gradient(to top, var(--night) 70%, transparent) !important; }
.st-cta .btn { background: #FFF6E6; color: var(--action); }
/* La rangée d'animaux défile dans sa largeur : elle ne doit jamais élargir l'écran (écran 2 mal cadré sur téléphone). */
.ob-av { width: calc(100% + 2 * var(--pad)); max-width: 100vw; box-sizing: border-box; contain: inline-size; overscroll-behavior-x: contain; }
#app { overflow-x: clip; }
.ob-ages { flex-wrap: nowrap; gap: 6px; } .ob-ages button { flex: 1; width: auto; min-width: 0; height: 48px; }
/* Le choix de l'animal : tous visibles d'un coup, en grille de 4, au lieu d'une rangée coupée qui défile. */
.ob-av { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; width: auto; max-width: none; margin: 0; padding: 4px 0 0; overflow: visible; contain: none; }
.ob-av button { width: auto; }
.ob-av img { width: 64px; height: 64px; }
#avtxt { margin-top: 14px !important; }
/* Comptines réservées à l'abonnement (version gratuite : 3 comptines) */
.cl-l.ferme .cl-art { filter: grayscale(.6) opacity(.6); }
.cl-l.ferme b { color: var(--text-2); }
.cl-cad { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-3); }
.cl-cad svg { width: 18px; height: 18px; }
.sh-suite { margin-top: 14px; }

/* ===== QA iPhone et tablette (01/11/2026, contenu/35_qa_iphone_tablette.md) ===== */
/* B1. Lecteur sur petit écran : l'image rétrécit pour laisser la place au texte (le JS réduit encore la police si besoin). */
@media (max-width: 699px) and (max-height: 760px) {
  .reader .pic { width: auto; height: 30vh; align-self: center; }
  .reader .rmid .txt { font-size: 20px; padding-top: 12px; }
  .reader .rmid .txt.big8 { font-size: 18px; }
}
.rmid.deborde { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
/* G2. Tablette : la grande police du lecteur n'est plus écrasée par la règle de base. */
@media (min-width: 700px) {
  .reader .rmid .txt { font-size: 29px; }
  .reader .rmid .txt.big8 { font-size: 25px; }
}
@media (min-width: 900px) and (orientation: landscape) {
  .reader .rmid:has(> .pic) .txt { font-size: 32px; }
  .reader .rmid:has(> .pic) .txt.big8 { font-size: 27px; }
}

/* B2. Comptines sur petit écran : l'image du haut rétrécit, le bouton lecture reste au-dessus du tiroir. */
@media (max-height: 700px) {
  .cl-haut { height: 36vh; }
  .cl-titre h1 { font-size: 24px; }
}

/* G1, F1, F10. Tablette : une colonne plus large, la barre d'onglets et le tiroir à la même largeur. */
@media (min-width: 700px) {
  #app { max-width: 620px; }
  .bottom > div { max-width: 560px; }
  .tabbar .tabs { max-width: 640px; }
  .tabbar a span { font-size: 13px; }
  .cl-tiroir { max-width: 620px; }
  .cl-haut { height: min(48vh, 520px); }
  .cl-haut .cl-art.grand { border-radius: 0 0 28px 28px; }
  body.quiz #app, #app:has(> .pw) { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
  .t-small, .soir-txt p, .t-sub { font-size: 15px; }
}

/* G3. Histoires, iPad à l'horizontale : l'image et le texte côte à côte, le bouton visible sans défiler. */
@media (min-width: 900px) and (orientation: landscape) {
  .soir { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; }
  .soir-art { max-height: 62vh; height: 100%; aspect-ratio: auto; }
  .soir-txt { padding: 24px 28px; }
}

/* G4. Le ciel : des marges comme partout ailleurs. */
.ciel { padding: 0 var(--pad) 30px; }

/* G5, G6. Inscription sur petit écran : les animaux et l'interrupteur restent au-dessus du bouton. */
@media (max-height: 700px) {
  h1.q { font-size: 24px; }
  .qsub { margin-bottom: 4px; }
  .ob-av { gap: 8px 6px; }
  .ob-av img { width: 54px; height: 54px; }
  #avtxt { margin-top: 8px !important; }
  .ob-roue { height: 170px; margin-top: 12px; }
  .ob-col { height: 170px; padding: 62px 0; }
  .ob-bande { top: 62px; }
  .ob-kidrow { flex-wrap: nowrap; margin-top: 12px; }
  .ob-kidrow button { padding: 0 10px 0 4px; font-size: 14px; }
}

/* G7, G8. Abonnement : les deux offres visibles, les liens obligatoires et faciles à toucher. */
.pw { padding-bottom: calc(170px + var(--safe-b)); }
@media (max-height: 700px) {
  .pw h1 { font-size: 24px; }
  .pw ul li { margin-bottom: 4px; }
}
.ob-liens { font-size: 13px; }
.ob-liens a { display: inline-block; padding: 12px 4px; }
.pw .ob-liens { margin-top: 18px; }

/* F3. La poignée du tiroir des comptines : une vraie zone de toucher. */
.cl-feuille .cl-grab { position: relative; width: 120px; height: 44px; margin: -8px auto 0; background: none; }
.cl-feuille .cl-grab::before { content: ''; position: absolute; left: 30px; right: 30px; top: 19px; height: 6px; border-radius: 6px; background: var(--line); }

/* F4. Cibles d'au moins 44 px. */
.chip, .sh-saisonsc .chip, .cl-pill, .sh-ciel, .couch-prep button, .couch-tard { min-height: 44px; }
.round, .rbtn, .sh-mini .pp, .cl-la { width: 44px; height: 44px; }
.whopar { min-height: 44px; }
.cl-prog { height: 44px; margin-top: 4px; }
details > summary { padding: 12px 0; }

/* F5. Les titres de comptines sur 2 lignes au lieu d'être coupés. */
.cl-ens b, .cl-lj b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* F6. Plus aucun texte sous 12 px. */
.soir-txt small, .badge, .tabbar a span, .cl-ens small, .couch-h em, .ob-av button { font-size: 12px; }

/* F7. Le coffre sur grand écran : le dessin ne pousse plus les boutons hors de l'écran. */
@media (min-width: 900px) {
  .cof { max-width: 640px; margin-left: auto; margin-right: auto; }
  .cof-d img { max-height: 55vh; }
}

/* F8. Profils, ciel et coucher : plus de défilement dans le vide. */
#app:has(> .who), #app:has(> .ciel), #app:has(> .couch) { padding-bottom: var(--safe-b); }

/* F12. La semaine : le texte passe sous les étoiles. */
.soir .sem { flex-wrap: wrap; }
.soir .sem-t { flex-basis: 100%; }
/* G7 (suite). Petit écran : la phrase d'intro est redite par le titre et l'encadré « gratuit », on la retire pour voir les 2 offres. */
@media (max-height: 700px) {
  .pw .eyebrow { margin-bottom: 4px; }
  .pw-lus { display: none; }
  .pw .unlock { margin-top: 12px; }
  .pw .unlock li { font-size: 14px; line-height: 1.35; }
}

/* La série de soirs dans le ciel (façon Duolingo), 01/11/2026 */
section.serie { margin-top: 18px; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(233, 182, 92, .3); }
section.serie.gardee { background: linear-gradient(160deg, rgba(233, 182, 92, .2), rgba(255, 255, 255, .05)); }
.serie-h { display: flex; align-items: center; gap: 14px; }
.serie-ic { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(233, 182, 92, .16); }
.serie-ic svg { width: 30px; height: 30px; fill: var(--moon); filter: drop-shadow(0 0 8px rgba(233, 182, 92, .8)); }
section.serie.attente .serie-ic svg { fill: rgba(246, 235, 219, .45); filter: none; }
.serie-h b { display: block; font-family: var(--font-kid); font-size: 30px; line-height: 1; color: var(--moon); }
.serie-h small { font-size: 13px; color: rgba(246, 235, 219, .75); }
.serie-j { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.serie-j i { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(246, 235, 219, .18); font-style: normal; }
.serie-j svg { width: 16px; height: 16px; fill: var(--night); }
.serie-j li.lu i { background: var(--moon); border-color: var(--moon); }
.serie-j li.repos i { border-style: dashed; border-color: rgba(233, 182, 92, .6); }
.serie-j li.repos em { font-style: normal; font-size: 12px; color: var(--moon); }
.serie-j li.auj i { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px rgba(233, 182, 92, .7); }
.serie-j span { display: block; margin-top: 5px; font-size: 12px; color: rgba(246, 235, 219, .6); }
.serie-j li.auj span { color: var(--moon); font-weight: 700; }
.serie-m { margin: 14px 0 0; font-size: 14.5px; color: var(--night-ink); }
.serie-go { margin-top: 12px; background: var(--moon); color: var(--night); }
.serie-n { margin: 10px 0 0; font-size: 12px; color: rgba(246, 235, 219, .5); }

/* ===== Dé-slop (UX10, appliqué le 02/11/2026, contenu/44_fiche_notifs_unslop.md) =====
   Un seul arrondi, un seul espacement, une seule couleur d'accent (l'or), une seule ombre douce, des badges discrets,
   pas de décoration inutile, un en-tête allégé et une barre d'onglets plus légère. Les blocs plus haut empilent
   trois thèmes (bleu, nuit indigo, sable) : ce bloc a le dernier mot. */
:root {
  --r-carte: 22px;            /* toute carte, liste ou vignette d'épisode */
  --r-vignette: 12px;         /* petites vignettes : avatars, icônes de ligne */
  --esp-1: 8px;               /* dans un groupe */
  --esp-2: 16px;              /* dans une carte et entre deux cartes */
  --esp-3: 24px;              /* avant un titre de section */
  --accent: var(--gold);
  --ombre: 0 2px 8px rgba(77, 53, 36, .08);
}
/* 1. Un seul arrondi */
.soir, .cof-c, .list, .plan-opt, .sh-resume, #mini .sh-mini, section.serie, .ciel-stats div, .sh-ep .pic, .card, .pr-stats div { border-radius: var(--r-carte) !important; }
.cl-tiroir { border-radius: var(--r-carte) var(--r-carte) 0 0 !important; }
.soir .btn, .bn .btn, .btn.bonne { border-radius: 999px !important; }
.cof-q, .cl-art.mini, .row .ri, .fav, .kswitch .ka, .cof-ic, .cof-d img, .sh-mini img { border-radius: var(--r-vignette) !important; }
.cof-ic.ouvert { border-radius: var(--r-carte) !important; }
/* 2. Un seul espacement */
.soir { margin-top: var(--esp-2) !important; } .soir-txt { padding: var(--esp-2) !important; } .soir .btn.go { margin-top: var(--esp-2) !important; }
.sem { margin-top: var(--esp-2) !important; gap: var(--esp-1) !important; }
.cof-c { padding: var(--esp-2) !important; gap: var(--esp-2) !important; margin-top: var(--esp-2) !important; }
.row { padding: var(--esp-2) !important; gap: var(--esp-2) !important; }
.sec { margin: var(--esp-3) 0 var(--esp-1) !important; }
.ciel-stats { gap: var(--esp-1) !important; margin-top: var(--esp-2) !important; } .ciel-stats div { padding: var(--esp-2) !important; }
section.serie { padding: var(--esp-2) !important; margin-top: var(--esp-2) !important; }
.plans { gap: var(--esp-1) !important; } .plan-opt { padding: var(--esp-2) !important; }
.topkid, .soir-btns, .cof-btns, .home-head, .unlock li, .cl-titre, .serie-j, .sh-ciel { gap: var(--esp-1) !important; }
.sh-row, .sh-heros, .serie-h, .unlock { gap: var(--esp-2) !important; }
.cl-ctl { gap: var(--esp-3) !important; }
.sec .more, .cl-pill { padding: 0 var(--esp-2) !important; }
/* 3. Une seule couleur d'accent : l'or. Plus de vert ni de caramel. */
.sh-ep .badge.done { background: rgba(255, 251, 244, .92) !important; color: var(--text) !important; }
.cl-art.mini { background-color: var(--soft) !important; }
.plan-opt .pl em { background: none !important; color: var(--accent) !important; padding: 0 !important; }
/* 4. Une seule ombre, douce, pour ce qui flotte. Plus de fausse 3D. */
.soir { box-shadow: var(--ombre) !important; }
#mini .sh-mini { padding: var(--esp-1) var(--esp-2) 12px var(--esp-1) !important; gap: var(--esp-1) !important; box-shadow: var(--ombre) !important; }
.sh-ep .pic, .cl-coeur, .cl-m, .cl-pp, .kswitch, .sh-ciel, .round, .sh-loupe { box-shadow: none !important; }
.cl-pp { transition: none !important; }
.cl-tiroir { box-shadow: 0 -1px 0 #E6D6BD !important; }
/* 5 et 6. Des badges discrets, sans décoration : plus de pointillés, de bordures doublées ni de badge redondant. */
.pw-gratuit { border: 0 !important; border-radius: 0 !important; padding: 0 4px !important; background: none !important; }
.serie-j i { border-style: solid !important; }
section.serie, .ciel-stats div { border: 0 !important; }
.serie-j li.auj i { box-shadow: none !important; border: 2px solid var(--moon) !important; }
.sh-ep .badge.now { display: none !important; }
/* 7. Un en-tête allégé : le sélecteur d'enfant et le compteur sans pastille ni ombre. */
.kswitch, .sh-ciel { background: transparent !important; padding-left: 0 !important; }
.sh-ciel { padding: 0 4px !important; }
/* 8. Une barre d'onglets plus légère : un filet, pas d'ombre ni d'arrondi, des icônes plus petites. */
.tabbar { border-radius: 0 !important; box-shadow: 0 -1px 0 #E6D6BD !important; height: calc(58px + var(--safe-b)) !important; }
.tabbar a .tico { width: 28px !important; height: 28px !important; }
/* 9. Moins de tailles de texte : 12, 13, 15, 20, 28 (et les titres « enfant » en Baloo). */
.soir-txt p, .sem, .rs, .plan-opt .pl, .pw-gratuit, .cof-c small, .sh-mini b { font-size: 13px !important; }
.t-small, .soir-txt small, .eyebrow, .ciel-stats small, .plan-opt .pper, .cst-l, .sh-mini small, .sh-ep .badge, .plan-opt .pl em, .sh-h small { font-size: 12px !important; }
.chip, .serie-m, .plan-opt b, .unlock span, .unlock b, .cl-ens b, .sec .more, .btn, .soir .btn, .serie-go { font-size: 15px !important; }
.sh-h, .ciel-stats b { font-size: 20px !important; }
.soir-txt h1, .cof-h1, h1.q, .ciel h1, .serie-h b, #app > h1, .cof h1 { font-size: 28px !important; }

/* ===== UX9 : les 5 changements (02/11/2026, contenu/43_ux_changements.md) ===== */
/* La loupe de l'accueil, entre le sélecteur d'enfant et l'étoile. */
.sh-loupe { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); border-radius: 50%; }
.sh-loupe svg { width: 22px; height: 22px; }
.topkid .sh-loupe + .sh-ciel { margin-left: 0; }
/* La page de fin du lecteur : la pastille du jour d'écoute, puis « Écouter la suite » et « Revenir à l'accueil ». */
.fin-jour { display: inline-flex; align-items: center; gap: var(--esp-1); margin: 0 auto 18px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 600; color: var(--moon); }
.fin-jour img { width: 22px; height: 22px; }
.fin-btns { display: grid; gap: 6px; padding: 0 20px 10px; }
.fin-btns .btn { width: 100%; }
.fin-suite { flex-direction: column; height: auto !important; min-height: 56px; padding: 10px 16px; gap: 2px; background: var(--moon); color: var(--night); }
.fin-suite small { display: block; font-size: 12px; font-weight: 500; opacity: .75; }
.fin-acc { background: transparent; color: var(--night-ink); }
/* Le Profil : 3 chiffres en haut. */
.pr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--esp-1); margin-top: 12px; }
.pr-stats div { background: var(--card); padding: 10px 8px 12px; text-align: center; }
.pr-stats img { width: 32px; height: 32px; display: block; margin: 0 auto; }
.pr-stats b { display: block; font-family: var(--font-kid); font-size: 20px; line-height: 1.15; margin-top: 2px; }
.pr-stats small { display: block; font-size: 12px; color: var(--text-2); line-height: 1.25; }
/* L'onglet Profil : l'animal rond de l'enfant à la place de l'icône. */
.tabbar a .tico.tav { display: block; border-radius: 50%; overflow: hidden; filter: none; }
.tabbar a .tico.tav img, .tabbar a .tico.tav svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.tabbar a[aria-current="page"] .tico.tav { box-shadow: 0 0 0 2px var(--action); }
/* La recherche. */
.ch-top { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.ch-champ { flex: 1; box-shadow: 0 0 0 2px var(--action); }
.ch-champ input::-webkit-search-cancel-button { display: none; }
.ch-annuler { font-weight: 600; color: var(--action); font-size: 15px; padding: 12px 0; }
.ch-k { margin: var(--esp-2) 4px var(--esp-1); }
.ch-img { width: 52px; height: 52px; flex: none; border-radius: var(--r-vignette); overflow: hidden; background: var(--soft); }
.ch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#res .rt b { color: var(--accent); }
#res .re svg { color: var(--text-2); }
.ch-idees { display: flex; flex-wrap: wrap; gap: var(--esp-1); }
.ch-vide { text-align: center; margin-top: 56px; }
.ch-vide img { width: 72px; height: 72px; margin: 0 auto 12px; display: block; opacity: .8; }
/* Profil > Notifications : interrupteurs, heure, jours. */
.tg { width: 50px; height: 30px; flex: none; border-radius: 999px; background: var(--line); position: relative; margin-left: auto; }
.tg::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .2s; }
.tg[aria-checked="true"] { background: var(--action); }
.tg[aria-checked="true"]::after { left: 23px; }
.nf-col { flex-wrap: wrap; }
.nf-col .rm { flex-basis: 100%; }
.nf-jours button { width: 40px; height: 40px; padding: 0; justify-content: center; }
.nf-heure { margin-left: auto; border: 0; background: var(--soft); color: var(--text); font: inherit; font-weight: 600; font-size: 15px; height: 40px; padding: 0 12px; border-radius: 999px; }
.nf-col .chip:not([aria-pressed="true"]) { background: var(--soft); }
.nf-jours { gap: 4px !important; flex-wrap: nowrap; }
.nf-jours button.chip { width: 40px; height: 40px; min-height: 40px; flex: none; }
.card a.more { padding: 0 !important; font-weight: 600; color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
/* iPhone : le champ de recherche ne doit pas pousser « Annuler » hors de l'écran. */
.ch-champ { min-width: 0; }
.ch-champ input { -webkit-appearance: none; appearance: none; width: 100%; }
.ch-annuler { flex: none; }

/* L'onglet Quiz : le chemin des 30 premiers jours (UX12 « B », 02/11/2026). */
#chemin { padding-bottom: 40px; }
.ch-serie { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px; border-radius: 13px; background: var(--card); color: var(--gold); font-weight: 700; font-size: 16px; }
.ch-serie img { width: 20px; height: 20px; }
.ch-saison { background: var(--action); color: #fff; border-radius: 18px; padding: 12px 16px; margin-bottom: 18px; }
.ch-saison b { display: block; font-size: 16px; }
.ch-saison small { font-size: 12.5px; opacity: .85; }
.ch-chemin { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 10px 0 20px; }
.ch-ligne { display: flex; flex-direction: column; align-items: center; gap: 12px; transform: translateX(var(--x)); }
.ch-pas { position: relative; width: 72px; height: 72px; border-radius: 50%; padding: 0; border: 0; display: grid; place-items: center; background: #E4D3B6; box-shadow: 0 6px 0 #C9B08A, 0 0 0 4px #F5EAD7; color: #A8927A; font: 700 21px var(--font-kid); }
.ch-pas > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ch-pas.fait, .ch-pas.attend, .ch-pas.now { box-shadow: 0 6px 0 #B98B4F, 0 0 0 4px #FFFBF4; }
.ch-pas.now { width: 96px; height: 96px; box-shadow: 0 7px 0 #8F6430, 0 0 0 5px #FFFBF4, 0 0 0 11px rgba(201, 142, 53, .35); animation: ch-pulse 2.4s ease-in-out infinite; }
.ch-pas.ferme { opacity: .75; }
.ch-num { position: absolute; top: -8px; left: -8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: var(--action); color: #fff; font: 700 13px var(--font-kid); display: grid; place-items: center; }
.ch-pas.vide .ch-num, .ch-pas.ferme .ch-num { position: static; background: none; color: #A8927A; font-size: 21px; }
.ch-pas i { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 3px #FFFBF4; font-style: normal; }
.ch-pas i svg { width: 15px; height: 15px; }
.ch-ok { background: var(--gold); color: #fff; }
.ch-ok svg { stroke-width: 3; }
.ch-q { background: var(--action); color: #fff; font: 700 15px var(--font-kid); }
.ch-cad { background: #C9B08A; color: #fff; }
.ch-cof { width: 84px; height: 84px; background: none; box-shadow: none; border-radius: 0; transform: translateX(var(--x)); }
.ch-cof img { width: 84px; height: 84px; object-fit: contain; opacity: .7; }
.ch-cof.ouvert img { opacity: 1; }
.ch-bulle { position: relative; display: block; transform: translateX(calc(var(--x) * -1)); background: var(--action); color: #fff; border-radius: 16px; padding: 10px 14px; min-width: 200px; max-width: 250px; text-align: left; font-size: 13px; }
.ch-bulle::before { content: ''; position: absolute; left: calc(50% + var(--x)); top: -8px; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--action); }
.ch-bulle b { display: block; font-size: 14.5px; line-height: 1.25; margin-bottom: 3px; }
.ch-bulle span { display: inline-flex; align-items: center; gap: 5px; opacity: .9; }
.ch-bulle svg { width: 13px; height: 13px; }
.ch-suite { text-align: center; color: var(--text-2); font-size: 14px; margin: 0 20px; }
.ch-pas.secoue { animation: secoue .4s; }
@keyframes ch-pulse { 50% { box-shadow: 0 7px 0 #8F6430, 0 0 0 5px #FFFBF4, 0 0 0 16px rgba(201, 142, 53, .18); } }
.chq { max-width: 480px; margin: 0 auto; padding-bottom: 230px; text-align: center; }
.chq-top { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; }
.chq-x { color: var(--text-3); display: grid; place-items: center; width: 36px; height: 36px; }
.chq-x svg { width: 26px; height: 26px; }
.chq-barre { flex: 1; height: 14px; border-radius: 99px; background: #E4D3B6; overflow: hidden; }
.chq-barre i { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .4s; }
.chq-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; margin-bottom: 14px; }
.chq h1 { font-family: var(--font-kid); font-size: 24px; line-height: 1.2; margin: 4px 0 16px; }
.chq-reec { display: inline-block; margin-top: 16px; color: var(--text-2); font-size: 14px; text-decoration: underline; }
.chq-bravo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--progress-soft); border-radius: 26px 26px 0 0; padding: 20px 20px calc(24px + var(--safe-b)); text-align: left; animation: ch-monte .3s ease-out; }
.chq-bravo h2 { margin: 0 0 4px; font: 700 21px var(--font-kid); color: #7A4E17; }
.chq-bravo p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.4; color: #7A4E17; }
@keyframes ch-monte { from { transform: translateY(100%); } }
