/* ============================================================
   En Osmose — feuille de style du front (mobile d'abord)
   Palette : Mauve #9877B5 · Prune #5E466F · Lavande #DCCFE8 · Ivoire #FAF7FC · Champagne #D9BE97
   ============================================================ */
@font-face { font-family: 'Bodoni Moda'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/bodoni-moda-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/bodoni-moda-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/bodoni-moda-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/bodoni-moda-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-weight: 500; font-style: italic; font-display: swap; src: url(../fonts/bodoni-moda-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-weight: 600; font-style: italic; font-display: swap; src: url(../fonts/bodoni-moda-latin-600-italic.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap; src: url(../fonts/jost-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-display: swap; src: url(../fonts/jost-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 600; font-display: swap; src: url(../fonts/jost-latin-600-normal.woff2) format('woff2'); }

:root {
  --ivoire: #FAF7FC;
  --blanc: #FFFFFF;
  --lavande: #DCCFE8;
  --lavande-2: #EEE6F5;
  --mauve: #9877B5;
  --mauve-d: #7B5A9C;      /* boutons : texte blanc lisible (5,5:1) */
  --prune: #5E466F;
  --prune-d: #3F2C4E;
  --doux: #76618A;         /* texte secondaire (5,4:1) */
  --champagne: #D9BE97;
  --champagne-d: #8C6A3F;  /* texte doré lisible */
  --ligne: #E6DDEE;
  --ombre: 0 10px 30px rgba(94, 70, 111, .12), 0 2px 6px rgba(94, 70, 111, .06);
  --r: 20px;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--prune); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  background:
    radial-gradient(120% 60% at 50% -10%, #EADFF4 0%, rgba(234, 223, 244, 0) 60%),
    radial-gradient(80% 50% at 100% 100%, #F3E9DC 0%, rgba(243, 233, 220, 0) 60%),
    var(--ivoire);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mauve-d); }
h1, h2, h3 { font-family: var(--serif); color: var(--prune); margin: 0; line-height: 1.12; font-weight: 700; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.fine { font-size: 13px; color: var(--doux); margin: 22px 0 0; }
.eyebrow { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); font-weight: 500; }
:focus-visible { outline: 3px solid var(--champagne); outline-offset: 2px; border-radius: 10px; }

/* ---------- Logo horizontal ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-sym { width: 54px; height: auto; }
.brand-txt { display: flex; flex-direction: column; align-items: center; line-height: .9; }
.brand-en { display: block; color: #4E2E5C; line-height: 0; }
.brand-en svg { height: 18px; width: auto; display: block; }
.brand-osmose { font-family: var(--serif); font-weight: 700; font-size: 29px; letter-spacing: .01em; color: #4E2E5C; line-height: 1; margin-top: 2px; }
.brand-sign { font-family: var(--serif); font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: #4E2E5C; margin-top: 5px; font-weight: 600; }
.brand-sm .brand-sym { width: 44px; }
.brand-sm .brand-en svg { height: 15px; }
.brand-sm .brand-osmose { font-size: 24px; }

/* ---------- Structure ---------- */
.shell { max-width: 560px; margin: 0 auto; min-height: 100vh; padding: 0 16px calc(32px + var(--safe-b)); }
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 0 8px; }
.top-brand { text-decoration: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--prune); background: rgba(255, 255, 255, .7); border: 1px solid var(--ligne); text-decoration: none; cursor: pointer; }
.icon-btn.ghost { visibility: hidden; }
.icon-btn.avatar { font-family: var(--serif); font-weight: 700; font-size: 20px; background: var(--lavande-2); }

/* ---------- Menu à pictos ---------- */
.tabs {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
  margin: 4px -6px 14px; padding: 6px; border-radius: 24px; background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--ombre); border: 1px solid rgba(255, 255, 255, .9);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 18px; text-decoration: none; color: var(--doux); transition: background .25s, color .25s; }
.tab-ico { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--lavande-2); color: var(--prune); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .25s, color .25s; }
.tab-lbl { font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.tab.on { color: var(--prune); }
.tab.on .tab-ico { background: linear-gradient(145deg, var(--mauve) 0%, var(--mauve-d) 100%); color: #fff; transform: translateY(-1px) scale(1.06); box-shadow: 0 6px 14px rgba(123, 90, 156, .35); --icon-fill: rgba(255,255,255,.18); }
.tab.on .tab-lbl { font-weight: 600; }
.tab:active .tab-ico { transform: scale(.94); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(145deg, var(--mauve) 0%, var(--mauve-d) 70%); color: #fff; box-shadow: 0 8px 18px rgba(123, 90, 156, .3); }
.btn-soft { background: var(--lavande-2); color: var(--prune); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--prune); border: 1.5px solid var(--lavande); }
.btn-lg { min-height: 54px; font-size: 17px; }
.btn-block { display: flex; width: 100%; margin-top: 16px; }
.link { background: none; border: 0; padding: 8px 0; color: var(--mauve-d); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.center-link { display: flex; margin: 8px auto 0; justify-content: center; }

/* ---------- Écrans publics ---------- */
.public { min-height: 100vh; }
.welcome, .auth { max-width: 440px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top, 0px)) 22px 36px; text-align: center; }
.welcome-logo { width: 210px; margin: 6px auto 4px; filter: drop-shadow(0 12px 24px rgba(152, 119, 181, .25)); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.welcome-title { font-size: 34px; margin-top: 14px; }
.welcome-title em, .desk h1 em { font-style: italic; font-weight: 600; color: var(--mauve-d); }
.welcome-sub { color: var(--doux); font-size: 16px; margin: 10px 0 22px; }
.welcome-pictos { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 12px; font-weight: 500; }
.welcome-pictos li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.welcome-cta { display: flex; flex-direction: column; gap: 12px; }
.auth-logo img { width: 150px; margin: 0 auto 8px; }
.auth h1 { font-size: 32px; }
.auth-sub { color: var(--doux); margin: 8px 0 20px; }
.auth-alt { margin-top: 20px; color: var(--doux); }
.form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--prune); }
.field input, .field textarea, .ask textarea {
  width: 100%; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--ligne); background: #fff; padding: 12px 16px;
  font: inherit; font-size: 16px; color: var(--prune-d); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .ask textarea:focus { outline: none; border-color: var(--mauve); box-shadow: 0 0 0 4px rgba(152, 119, 181, .18); }
.field input:disabled { background: var(--lavande-2); color: var(--doux); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--doux); line-height: 1.4; }
.check input { width: 22px; height: 22px; accent-color: var(--mauve-d); flex: none; margin-top: 1px; }
.flash { border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; font-size: 15px; text-align: left; background: #EAF5EC; color: #2F5E3A; }
.flash.err { background: #FBEAEA; color: #8A2E2E; }

/* PC : accès mobile uniquement */
.desktop { display: flex; align-items: center; justify-content: center; }
.desk { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; max-width: 1040px; padding: 40px; }
.desk-logo { width: 150px; margin-bottom: 18px; }
.desk h1 { font-size: 56px; }
.desk p { font-size: 19px; color: var(--doux); max-width: 460px; }
.desk-qr { display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne-d); font-weight: 600; }
.qr { width: 260px; height: 260px; padding: 18px; background: #fff; border-radius: 28px; box-shadow: var(--ombre); }
.qr svg { width: 100%; height: 100%; }
.qr svg path, .qr svg rect[fill="#000000"] { fill: var(--prune-d); }
@media (max-width: 760px) { .desk { grid-template-columns: 1fr; text-align: center; gap: 28px; } .desk-logo { margin: 0 auto 18px; } .desk h1 { font-size: 40px; } }

/* ---------- Pages ---------- */
.intro { margin: 6px 2px 18px; }
.intro h1 { font-size: 32px; }
.intro p { margin: 6px 0 0; color: var(--doux); }
.list, .stack { display: flex; flex-direction: column; gap: 12px; }
.stack { gap: 16px; }
.empty { text-align: center; color: var(--doux); padding: 36px 16px; border: 1.5px dashed var(--lavande); border-radius: var(--r); }
.empty p { margin: 8px 0 0; }

.row-card, .book-card, .fcard, .mcard, .resume, .chap {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); background: rgba(255, 255, 255, .86);
  box-shadow: var(--ombre); text-decoration: none; color: var(--prune); border: 1px solid rgba(255, 255, 255, .9); transition: transform .15s;
}
.row-card:active, .book-card:active, .fcard:active, .mcard:active, .chap:active { transform: scale(.985); }
.row-cover, .mcard-cover { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; }
.book-cover { width: 76px; height: 108px; border-radius: 10px; object-fit: cover; flex: none; box-shadow: 0 6px 14px rgba(63, 44, 78, .2); }
.cover-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #EADFF4, #DCCFE8 55%, #EFE2CF); }
.cover-empty img { width: 52%; height: auto; opacity: .9; }
.row-body, .fcard-body, .mcard-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.row-title, .mcard-title { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.15; color: var(--prune-d); }
.row-sub { font-size: 14px; color: var(--doux); line-height: 1.35; }
.play-dot { width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--mauve), var(--mauve-d)); color: #fff; box-shadow: 0 6px 12px rgba(123, 90, 156, .3); }
.play-dot .ico { margin-left: 2px; }
.play-dot.off { background: var(--lavande); box-shadow: none; }
.bar { display: block; height: 5px; border-radius: 3px; background: var(--lavande-2); overflow: hidden; flex: 1; margin-top: 4px; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--mauve), var(--champagne)); }
.bar-line { display: flex; align-items: center; gap: 10px; }
.bar-line small { font-size: 12px; color: var(--doux); min-width: 40px; text-align: right; display: inline-flex; align-items: center; gap: 3px; justify-content: flex-end; }
.badge-done { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #4D7A57; font-weight: 500; }
.is-off { opacity: .6; }

.resume { margin-bottom: 14px; background: linear-gradient(135deg, #fff, var(--lavande-2)); }
.resume-ico { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--champagne); color: var(--prune-d); flex: none; }
.resume-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.resume-txt b { font-family: var(--serif); font-size: 19px; color: var(--prune-d); }
.resume-txt small { color: var(--doux); }

/* Vidéos */
.vcard { background: rgba(255, 255, 255, .9); border-radius: 24px; overflow: hidden; box-shadow: var(--ombre); }
.vcard-media { position: relative; display: block; aspect-ratio: 16 / 9; }
.vcard-img { width: 100%; height: 100%; object-fit: cover; }
.vcard-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(123, 90, 156, .85); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 8px 20px rgba(63, 44, 78, .35); }
.vcard-play .ico { margin-left: 3px; }
.vcard-dur { position: absolute; right: 10px; bottom: 10px; background: rgba(40, 28, 50, .75); color: #fff; font-size: 13px; padding: 2px 9px; border-radius: 8px; }
.vcard-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .5); }
.vcard-bar span { display: block; height: 100%; background: var(--champagne); }
.vcard-body { padding: 14px 16px 16px; }
.vcard-body h2 { font-size: 23px; }
.vcard-body p { margin: 4px 0 12px; color: var(--doux); font-size: 15px; }
.vcard-body .btn { width: 100%; }
.vplayer { margin: 4px 0 16px; background: #1d1424; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 34px rgba(63, 44, 78, .22); border: 3px solid #fff; }
.vplayer video { width: 100%; display: block; max-height: 70vh; border-radius: 19px; }

/* Livre */
.book-hero { display: flex; gap: 16px; align-items: flex-end; margin: 4px 0 12px; }
.book-hero-cover { width: 118px; height: 168px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: 0 12px 26px rgba(63, 44, 78, .28); }
.book-hero h1 { font-size: 30px; }
.book-sub { font-family: var(--serif); font-style: italic; font-size: 18px; margin: 6px 0 8px; color: var(--prune); }
.book-quote { margin: 4px 0 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .7); font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--doux); border: 1px solid var(--ligne); }
.book-accroche { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: var(--prune-d); }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.book-actions .btn { flex: 1 1 200px; }
.chapters { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.chapters .part { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mauve-d); font-weight: 600; padding: 14px 4px 2px; border-bottom: 1px solid var(--ligne); }
.chap-num { width: 34px; flex: none; text-align: center; font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--champagne-d); display: inline-flex; justify-content: center; }
.chap-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chap-title { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--prune-d); line-height: 1.2; }
.chap-dur { font-size: 12px; color: var(--doux); flex: none; }

/* Conseils + question */
.advice-card { background: rgba(255, 255, 255, .9); border-radius: var(--r); padding: 18px; box-shadow: var(--ombre); margin-top: 16px; }
.stack .advice-card { margin-top: 0; }
.advice-card h2 { font-size: 23px; display: flex; align-items: center; gap: 8px; }
.advice-ess { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--prune); margin: 8px 0 10px; }
.advice-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.advice-list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.advice-ico { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--lavande-2); color: var(--mauve-d); }
.advice-list b { color: var(--prune-d); }
.advice-quote { margin: 14px 0 6px; padding-left: 14px; border-left: 3px solid var(--champagne); font-family: var(--serif); font-style: italic; font-size: 18px; }

.ask { margin-top: 24px; padding: 18px; border-radius: 24px; background: linear-gradient(160deg, #fff 0%, var(--lavande-2) 100%); box-shadow: var(--ombre); }
.ask-head { display: flex; gap: 12px; align-items: flex-start; }
.ask-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--mauve), var(--mauve-d)); color: #fff; }
.ask h2 { font-size: 23px; }
.ask-head p { margin: 4px 0 0; font-size: 14.5px; color: var(--doux); }
.ask-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ask textarea { resize: vertical; min-height: 64px; }
.ask-answer { margin-top: 14px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--ligne); font-size: 15.5px; line-height: 1.55; }
.ask-answer p { margin: 0 0 10px; }
.ask-src { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ask-src a { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 12px; border-radius: 12px; background: var(--lavande-2); text-decoration: none; color: var(--prune); }
.ask-src b { color: var(--mauve-d); }

/* Formation */
.fcard { align-items: stretch; padding: 0; overflow: hidden; flex-direction: column; gap: 0; }
.fcard-cover { width: 100%; height: 150px; object-fit: cover; }
.fcard-body { padding: 14px 16px 16px; }
.mcard { align-items: center; }

/* ---------- Lecteur ---------- */
.player { display: flex; flex-direction: column; }
.pl-cover { position: relative; width: min(78vw, 320px); aspect-ratio: 1; margin: 8px auto 20px; }
.pl-cover-img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; box-shadow: 0 20px 40px rgba(63, 44, 78, .28); position: relative; z-index: 1; }
.pl-halo { position: absolute; inset: -14px; border-radius: 40px; background: radial-gradient(circle, rgba(217, 190, 151, .55), rgba(152, 119, 181, 0) 70%); opacity: 0; transition: opacity 1s; }
.player.is-playing .pl-halo { opacity: 1; animation: halo 6s ease-in-out infinite; }
@keyframes halo { 0%, 100% { transform: scale(.97); } 50% { transform: scale(1.04); } }
.pl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pl-title { font-size: 28px; margin-top: 2px; }
.pl-sub { margin: 4px 0 0; color: var(--doux); font-size: 15px; }
.fav.on { color: #C2547A; background: #FBEAF0; }
.fav.on .ico path { fill: currentColor; }
.pl-progress { margin: 18px 0 6px; }
.pl-progress input[type=range], .music-vol input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.pl-progress input::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--mauve) var(--p, 0%), var(--lavande) var(--p, 0%)); }
.pl-progress input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--mauve-d); margin-top: -6.5px; box-shadow: 0 0 0 5px rgba(152, 119, 181, .22); }
.pl-progress input::-moz-range-track { height: 5px; border-radius: 3px; background: var(--lavande); }
.pl-progress input::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--mauve); }
.pl-progress input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--mauve-d); }
.pl-times { display: flex; justify-content: space-between; font-size: 13px; color: var(--doux); font-variant-numeric: tabular-nums; }
.pl-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 8px 0 6px; position: relative; }
.ctl { width: 58px; height: 58px; border: 0; background: none; color: var(--prune); justify-self: center; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ctl:active { background: var(--lavande-2); }
.ctl-main { width: 82px; height: 82px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(145deg, var(--mauve), var(--mauve-d)); box-shadow: 0 12px 26px rgba(123, 90, 156, .38); display: inline-flex; align-items: center; justify-content: center; }
.ctl-main .i-pause, .player.is-playing .ctl-main .i-play { display: none; }
.player.is-playing .ctl-main .i-pause { display: inline-flex; }
.ctl-main .i-play .ico { margin-left: 4px; }
.speed { position: absolute; right: 0; top: 50%; transform: translateY(-50%); min-width: 50px; height: 36px; border-radius: 999px; border: 1.5px solid var(--lavande); background: #fff; font-weight: 600; font-size: 14px; color: var(--prune); cursor: pointer; }
.pl-controls .ctl[data-fwd] { margin-right: 46px; }

.music { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .9); border: 1px solid var(--ligne); box-shadow: var(--ombre); }
.music-ico { width: 52px; height: 52px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--lavande-2); color: var(--mauve-d); }
.music-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.music-txt b { font-family: var(--serif); font-size: 20px; color: var(--prune-d); }
.music-txt small { font-size: 13px; color: var(--doux); line-height: 1.35; }
.music-vol { display: none; }
.music.on .music-vol { display: block; }
.music-vol input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--lavande); }
.music-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--champagne-d); margin-top: -6px; }
.switch { position: relative; flex: none; width: 56px; height: 34px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch-ui { position: absolute; inset: 0; border-radius: 999px; background: var(--lavande); transition: background .25s; }
.switch-ui::after { content: ''; position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .25s; }
.switch input:checked + .switch-ui { background: var(--mauve-d); }
.switch input:checked + .switch-ui::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--champagne); outline-offset: 2px; }

/* ---------- Tarot ---------- */
.tarot { display: flex; flex-direction: column; align-items: center; }
.tcard { position: relative; width: min(66vw, 280px); aspect-ratio: 2 / 3; border: 0; padding: 0; background: none; perspective: 1400px; cursor: pointer; margin: 4px 0 10px; }
.tcard-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(.3, .9, .3, 1); }
.tcard.flipped .tcard-inner { transform: rotateY(180deg); }
.tcard-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; overflow: hidden; box-shadow: 0 22px 40px rgba(63, 44, 78, .32); }
.tcard-face img { width: 100%; height: 100%; object-fit: cover; }
.tcard-front { transform: rotateY(180deg); }
.tcard:not(.flipped) .tcard-inner { animation: float 4.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.tcard-glow { position: absolute; inset: -30px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(217, 190, 151, .7), rgba(217, 190, 151, 0) 65%); animation: halo 5s ease-in-out infinite; }
.tarot-read { width: 100%; transition: opacity .8s .5s, transform .8s .5s; }
.tarot-read.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; height: 0; overflow: hidden; }
.tarot-name { font-size: 36px; text-align: center; margin-top: 2px; }
.tarot-kw { text-align: center; color: var(--champagne-d); font-weight: 500; margin: 4px 0 16px; font-size: 15px; }
.tarot-block { background: rgba(255, 255, 255, .9); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--ombre); margin-bottom: 12px; }
.tarot-block h3 { font-size: 21px; display: flex; align-items: center; gap: 8px; color: var(--prune-d); }
.tarot-block h3 .ico { color: var(--mauve-d); }
.tarot-block p { margin: 6px 0 0; font-size: 16px; }
.tarot-block.conseil { background: linear-gradient(150deg, #fff 0%, #F6EEDF 100%); border: 1px solid #EDDFC6; }
.conseil-txt { font-family: var(--serif); font-size: 21px !important; font-weight: 600; line-height: 1.3; color: var(--prune-d); }
.tarot-block.elsa { background: linear-gradient(150deg, #fff 0%, var(--lavande-2) 100%); }
.elsa-advice { font-weight: 500; color: var(--prune-d); }
.tarot-wait { text-align: center; color: var(--doux); font-size: 14px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mauve); animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- Compte ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stats div { background: rgba(255, 255, 255, .9); border-radius: 18px; padding: 14px 8px; text-align: center; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.stats b { font-family: var(--serif); font-size: 26px; color: var(--prune-d); }
.stats span { font-size: 12.5px; color: var(--doux); }
.card-form { background: rgba(255, 255, 255, .9); border-radius: var(--r); padding: 18px; box-shadow: var(--ombre); }
.install-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 14px; border-radius: 16px; background: #F6EEDF; font-size: 14.5px; }
.install-tip p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Page d'accueil (vitrine + connexion) — visible sur téléphone et ordinateur
   ============================================================ */
.landing { background:
    radial-gradient(70% 50% at 15% 0%, #E9DDF4 0%, rgba(233, 221, 244, 0) 70%),
    radial-gradient(60% 40% at 100% 20%, #F4E8D8 0%, rgba(244, 232, 216, 0) 70%),
    var(--ivoire); }
.l-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 4vw, 48px); background: rgba(250, 247, 252, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(230, 221, 238, .7); }
.l-brand { text-decoration: none; }
.l-nav { display: flex; align-items: center; gap: 22px; }
.l-nav a { color: var(--prune); text-decoration: none; font-weight: 500; }
.l-nav .l-login { min-height: 42px; padding: 0 18px; }
@media (max-width: 760px) { .l-nav a:not(.l-login) { display: none; } }

.landing main > section { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px); }
.l-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(28px, 5vw, 60px) !important; }
.l-hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; margin: 10px 0 0; }
.l-hero h1 em { font-style: italic; font-weight: 600; color: var(--mauve-d); }
.l-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--doux); margin: 18px 0 26px; max-width: 520px; }
.l-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.l-reassure { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 18px; font-size: 14px; color: var(--doux); }
.l-reassure .ico { color: #4D7A57; }
.l-hero-img { margin: 0; }
.l-hero-img img { width: 100%; border-radius: 28px; box-shadow: 0 30px 60px rgba(63, 44, 78, .22); }
@media (max-width: 760px) {
  .l-hero { grid-template-columns: 1fr; text-align: center; }
  .l-lead { margin-left: auto; margin-right: auto; }
  .l-cta { flex-direction: column; } .l-reassure { justify-content: center; }
  .l-hero-img img { max-width: 360px; margin: 0 auto; }
}

.l-h2 { font-size: clamp(32px, 4vw, 46px); text-align: center; }
.l-h2.left { text-align: left; }
.l-sub { text-align: center; color: var(--doux); margin: 8px 0 0; }
.l-pictos { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.l-pictos li { background: rgba(255, 255, 255, .85); border-radius: 22px; padding: 22px 16px; text-align: center; box-shadow: var(--ombre); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.l-pictos b { font-family: var(--serif); font-size: 22px; color: var(--prune-d); }
.l-pictos li > span:last-child { font-size: 14.5px; color: var(--doux); line-height: 1.4; }
.l-pic { width: 62px; height: 62px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(145deg, var(--mauve), var(--mauve-d)); box-shadow: 0 10px 20px rgba(123, 90, 156, .3); }
@media (max-width: 900px) { .l-pictos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .l-pictos li:last-child { grid-column: 1 / -1; } }

.l-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 70px); align-items: center; }
.l-split p { font-size: 17px; color: var(--prune); }
@media (max-width: 760px) { .l-split { grid-template-columns: 1fr; } .l-livres > div:first-child { order: 2; } }
.l-cards { position: relative; height: clamp(340px, 40vw, 460px); }
.l-cards img { position: absolute; width: clamp(150px, 18vw, 220px); border-radius: 14px; box-shadow: 0 24px 44px rgba(63, 44, 78, .3); top: 50%; left: 50%; }
.l-cards .c1 { transform: translate(-115%, -50%) rotate(-12deg); }
.l-cards .c2 { transform: translate(-50%, -54%) rotate(0deg); z-index: 2; }
.l-cards .c3 { transform: translate(15%, -50%) rotate(12deg); }
.l-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.l-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.l-list .ico { flex: none; color: var(--mauve-d); margin-top: 2px; }
.l-player { justify-self: center; width: min(320px, 100%); background: rgba(255, 255, 255, .9); border-radius: 30px; padding: 22px; box-shadow: 0 26px 50px rgba(63, 44, 78, .18); display: flex; flex-direction: column; gap: 6px; }
.l-player-cover { aspect-ratio: 1; border-radius: 20px; background: linear-gradient(150deg, #EADFF4, #DCCFE8 55%, #EFE2CF); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.l-player-cover img { width: 60%; }
.l-player b { font-family: var(--serif); font-size: 24px; color: var(--prune-d); }
.l-player-ctl { display: flex; align-items: center; justify-content: space-around; margin-top: 12px; color: var(--prune); }
.l-player-ctl .ctl-main { width: 64px; height: 64px; }

.l-plans, .plans-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; align-items: stretch; }
.plans-in { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; text-align: left; }
@media (max-width: 900px) { .l-plans { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } }
.l-plan { position: relative; background: rgba(255, 255, 255, .92); border-radius: 26px; padding: 26px 24px; box-shadow: var(--ombre); border: 1.5px solid var(--ligne); display: flex; flex-direction: column; }
.l-plan.best { border-color: var(--mauve); box-shadow: 0 20px 44px rgba(123, 90, 156, .22); }
.l-plan h3 { font-size: 27px; }
.l-ribbon { position: absolute; top: -13px; left: 24px; background: linear-gradient(145deg, var(--champagne), #C9A675); color: var(--prune-d); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 5px 13px; border-radius: 999px; }
.l-price { margin: 8px 0 14px; color: var(--doux); }
.l-price b { font-family: var(--serif); font-size: 44px; color: var(--prune-d); line-height: 1; }
.l-price small { display: block; font-size: 13px; }
.l-plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.l-plan li { display: flex; gap: 10px; align-items: center; font-size: 15.5px; }
.l-tick { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--lavande-2); color: var(--mauve-d); }
.l-plan .btn-block { margin-top: auto; }
.l-plan-f { background: linear-gradient(160deg, #fff 0%, #F6EEDF 100%); }
.l-pay { text-align: center; color: var(--doux); font-size: 14px; margin-top: 22px; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }

.l-elsa img { border-radius: 28px; box-shadow: var(--ombre); }
.l-login-box { display: flex; justify-content: center; }
.l-login-card { width: min(460px, 100%); background: rgba(255, 255, 255, .94); border-radius: 30px; padding: 30px clamp(20px, 4vw, 34px); box-shadow: 0 26px 50px rgba(63, 44, 78, .16); text-align: center; }
.l-login-sym { width: 70px; margin: 0 auto 6px; }
.l-login-card .form { margin-top: 18px; }
.l-desk-note { display: flex; gap: 6px; align-items: center; justify-content: center; }
@media (pointer: coarse) { .l-desk-note { display: none; } }
.l-faq { max-width: 780px !important; }
.l-faq details { background: rgba(255, 255, 255, .88); border-radius: 18px; padding: 16px 20px; margin-top: 12px; box-shadow: var(--ombre); }
.l-faq summary { cursor: pointer; font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--prune-d); }
.l-faq p { margin: 10px 0 0; color: var(--doux); }
.l-foot { text-align: center; padding: 40px 16px 50px; border-top: 1px solid var(--ligne); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.l-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.l-foot a { color: var(--prune); }

/* Inscription : choix du forfait */
.plan-pick { border: 0; padding: 0; margin: 0 0 4px; display: flex; flex-direction: column; gap: 10px; }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt-ui { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--ligne); background: #fff; transition: border-color .2s, box-shadow .2s; }
.plan-opt-ui b { font-family: var(--serif); font-size: 20px; color: var(--prune-d); }
.plan-opt-ui > small { grid-column: 1; font-size: 13px; color: var(--doux); }
.plan-opt-price { grid-row: 1 / 3; grid-column: 2; align-self: center; font-weight: 600; color: var(--prune-d); text-align: right; }
.plan-opt-price small { display: block; font-weight: 400; color: var(--doux); font-size: 12px; }
.plan-opt input:checked + .plan-opt-ui { border-color: var(--mauve-d); box-shadow: 0 0 0 4px rgba(152, 119, 181, .18); }
.plan-opt input:focus-visible + .plan-opt-ui { outline: 3px solid var(--champagne); }
.auth.wide { max-width: 520px; }
.pay-sum { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--ombre); margin: 16px 0; display: flex; flex-direction: column; gap: 4px; }
.pay-sum b { font-family: var(--serif); font-size: 23px; color: var(--prune-d); }
.pay-price { font-size: 20px; font-weight: 600; color: var(--mauve-d); }
.pay-sum small { color: var(--doux); }
.legal { text-align: left; } .legal h1, .legal .auth-logo { text-align: center; } .legal h2 { font-size: 22px; margin-top: 20px; }

/* Verrous dans l'appli */
.upsell { background: linear-gradient(160deg, #fff 0%, var(--lavande-2) 100%); border-radius: 24px; padding: 22px; box-shadow: var(--ombre); margin: 16px 0; text-align: left; }
.upsell h2 { font-size: 27px; margin: 10px 0 4px; }
.upsell-ico { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(145deg, var(--mauve), var(--mauve-d)); }
.locked-list { opacity: .55; filter: saturate(.7); pointer-events: none; }
.lock { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--lavande-2); color: var(--prune); }
.unlock-pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 8px; padding: 7px 14px; border-radius: 999px; background: linear-gradient(145deg, var(--champagne), #C9A675); color: var(--prune-d); font-weight: 600; font-size: 14px; }
.renew { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 16px; background: #F6EEDF; color: var(--prune-d); text-decoration: none; font-weight: 500; margin-bottom: 14px; }
.forfait-card { background: rgba(255, 255, 255, .92); border-radius: var(--r); padding: 18px; box-shadow: var(--ombre); margin-bottom: 16px; }
.forfait-card b { display: block; font-family: var(--serif); font-size: 21px; color: var(--prune-d); margin-top: 2px; }
.forfait-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.forfait-actions .btn { flex: 1 1 160px; }
.l-trial { display: inline-block !important; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #F6EEDF; color: var(--champagne-d); font-weight: 600; font-size: 12.5px !important; }
.sumup-box { background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--ombre); min-height: 200px; }
.l-player .bar { flex: none; height: 5px; margin: 10px 0 2px; }
.auth .welcome-logo { width: 150px; margin: 0 auto 6px; }
.annexe { margin-top: 14px; background: rgba(255, 255, 255, .88); border-radius: 18px; padding: 14px 18px; box-shadow: var(--ombre); }
.annexe summary { cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--prune-d); display: flex; gap: 8px; align-items: center; }
.annexe-txt { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--prune); }
.book-gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 4px -16px 14px; padding: 4px 16px 10px; scrollbar-width: none; }
.book-gallery::-webkit-scrollbar { display: none; }
.book-gallery figure { margin: 0; flex: 0 0 62%; scroll-snap-align: center; }
.book-gallery img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 30px rgba(63, 44, 78, .22); }
.book-gallery figcaption { font-size: 12.5px; color: var(--doux); text-align: center; margin-top: 6px; }
.back-text summary { font-style: italic; }

/* ---------- Onglet Outils ---------- */
.tool-hero { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 24px; text-decoration: none; color: var(--prune);
  background: radial-gradient(120% 120% at 0% 0%, #F3E7D5 0%, #fff 55%, var(--lavande-2) 100%); box-shadow: var(--ombre); margin-bottom: 14px; }
.tool-hero-card { flex: none; width: 92px; transform: rotate(-4deg); }
.tool-hero-card img { width: 100%; border-radius: 10px; box-shadow: 0 12px 24px rgba(63, 44, 78, .3); }
.tool-hero-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tool-hero-txt b { font-family: var(--serif); font-size: 24px; color: var(--prune-d); line-height: 1.1; }
.tool-hero-txt small { font-size: 14px; color: var(--doux); line-height: 1.4; }
.tool-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 600; font-size: 14px; color: var(--mauve-d); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-radius: 22px; text-decoration: none; color: var(--prune); background: #fff; box-shadow: var(--ombre); min-height: 172px; }
.tool-tile b { font-family: var(--serif); font-size: 19px; line-height: 1.15; color: var(--prune-d); }
.tool-tile small { font-size: 13.5px; color: var(--doux); line-height: 1.35; }
.tool-ico { width: 50px; height: 50px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 4px; }
.tool-carte { background: linear-gradient(160deg, #fff 40%, #F1E8FA 100%); } .tool-carte .tool-ico { background: linear-gradient(145deg, #A98BD0, #7B5A9C); }
.tool-energie { background: linear-gradient(160deg, #fff 40%, #FBEDE6 100%); } .tool-energie .tool-ico { background: linear-gradient(145deg, #E9A08A, #C7735E); }
.tool-chemin { background: linear-gradient(160deg, #fff 40%, #F6EEDF 100%); } .tool-chemin .tool-ico { background: linear-gradient(145deg, #D9BE97, #A9844F); }
.tool-chakras { background: linear-gradient(160deg, #fff 40%, #E9F1FA 100%); } .tool-chakras .tool-ico { background: linear-gradient(145deg, #8FB4E0, #4F7FB8); }
.tool-last { margin-top: auto; display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: #4D7A57; font-weight: 500; }

/* Parrainage (Mon compte) */
.parrain-card { background: linear-gradient(150deg, #fff 0%, var(--lavande-2) 100%); border: 1px solid var(--ligne); border-radius: var(--r); padding: 20px 18px; margin: 0 0 18px; box-shadow: var(--ombre); }
.parrain-card h2 { font-size: 23px; margin: 6px 0 8px; }
.parrain-card p { margin: 0 0 12px; color: var(--prune); }
.parrain-lien { display: flex; gap: 8px; margin: 0 0 10px; }
.parrain-lien input { flex: 1; min-width: 0; border: 1px solid var(--ligne); border-radius: 14px; padding: 12px; font: inherit; font-size: 14px; color: var(--prune-d); background: #fff; }
.parrain-lien .btn { flex: none; }
.parrain-ruban { display: inline-flex; align-items: center; gap: 8px; margin: 4px auto 10px; padding: 8px 14px; border-radius: 999px; background: #FBF4E8; border: 1px solid var(--champagne); color: var(--champagne-d); font-size: 15px; }
.souvenir { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; font-size: 15px; color: var(--prune); cursor: pointer; text-align: left; }
.souvenir input { width: 20px; height: 20px; accent-color: var(--mauve-d); margin: 0; flex: none; }
.version { opacity: .75; font-size: 12.5px; }

/* Livre : les visuels en petites vignettes douces, agrandies au toucher */
.book-vis { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 18px; padding: 10px 14px; border-radius: 18px; background: linear-gradient(160deg, #FBF7FE, #F6EFF8); border: 1px solid var(--ligne); }
.book-vis-t { width: 72px; display: grid; gap: 5px; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: center; font: inherit; }
.book-vis-t img { width: 72px; height: 92px; object-fit: cover; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(63, 44, 78, .10); opacity: .96; transition: transform .25s ease, box-shadow .25s ease; }
.book-vis-t:hover img, .book-vis-t:focus-visible img { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(63, 44, 78, .18); }
.book-vis-t span { font-size: 11px; line-height: 1.2; color: var(--doux); }
.book-hero-cover { box-shadow: 0 10px 24px rgba(63, 44, 78, .16) !important; border-radius: 12px !important; }
.vis-voile { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(63, 44, 78, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: visIn .25s ease; }
.vis-voile[hidden] { display: none; }
.vis-voile figure { margin: 0; max-width: min(92vw, 520px); text-align: center; }
.vis-voile img { max-width: 100%; max-height: 78vh; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.vis-voile figcaption { margin-top: 10px; color: #fff; font-size: 14px; }
.vis-x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--prune); display: grid; place-items: center; cursor: pointer; }
@keyframes visIn { from { opacity: 0; } to { opacity: 1; } }

/* Vidéo : épisodes suivants */
.vintro h1 { font-size: 24px; line-height: 1.15; }
.vnext { margin: 6px 0 12px; }
.vnext h2 { font-size: 22px; margin: 0 0 10px; }
.vnext-l { display: grid; gap: 10px; }
.vnext-i { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid var(--ligne); box-shadow: 0 6px 16px rgba(63, 44, 78, .06); color: inherit; text-decoration: none; }
.vnext-img { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--lavande), var(--lavande-2)); }
.vnext-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.vnext-img .cover-empty { width: 100%; height: 100%; display: grid; place-items: center; }
.vnext-img .cover-empty img { width: 36px; height: auto; opacity: .7; }
.vnext-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--mauve-d); }
.vnext-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(29, 20, 36, .7); color: #fff; font-size: 11px; }
.vnext-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vnext-txt small { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--champagne-d); }
.vnext-txt b { font-family: var(--serif); font-size: 16.5px; line-height: 1.2; color: var(--prune); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vnext-txt em { font-style: normal; font-size: 12.5px; color: var(--mauve-d); display: flex; align-items: center; gap: 4px; }
.vnext-i.is-soon { opacity: .7; }
.vnext-i.is-soon em { color: var(--doux); }

/* ---------- Menu en bas, comme une appli de téléphone, légèrement transparent ---------- */
.tabs {
  position: fixed; top: auto; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 40; width: min(calc(100% - 24px), 536px); margin: 0; padding: 6px 6px 5px; border-radius: 26px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(63, 44, 78, .16), 0 1px 0 rgba(255, 255, 255, .6) inset;
}
.tab { padding: 5px 2px 4px; }
.tab-ico { width: 38px; height: 38px; background: rgba(238, 230, 245, .7); }
.tab-lbl { font-size: 11.5px; }
.shell { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
.top { position: sticky; top: 0; z-index: 30; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px;
  background: rgba(250, 247, 252, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ---------- Bandeau d'image en tête de chaque rubrique ---------- */
.cat-ban { position: relative; display: flex; align-items: flex-end; min-height: 188px; margin: 2px 0 16px; padding: 18px 20px; border-radius: 26px; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, rgba(63, 44, 78, 0) 30%, rgba(63, 44, 78, .72) 100%), var(--img) center / cover no-repeat, var(--lavande);
  box-shadow: 0 14px 34px rgba(63, 44, 78, .18); }
.cat-ban::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); pointer-events: none; }
.cat-ban-txt { position: relative; z-index: 1; display: grid; gap: 4px; max-width: 92%; }
.cat-ban-k { justify-self: start; padding: 4px 11px; border-radius: 99px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.cat-ban h1 { margin: 2px 0 0; color: #fff; font-size: 29px; line-height: 1.08; text-shadow: 0 2px 14px rgba(40, 24, 52, .45); }
.cat-ban h1 em { color: #F3DFBC; }
.cat-ban p { margin: 0; font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(40, 24, 52, .4); }

/* ===== Listes fines et paginées (chapitres, modules) ===== */
.sec-t { display: flex; align-items: baseline; gap: 8px; margin: 18px 2px 10px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--prune); }
.sec-t small { font-family: var(--sans, inherit); font-size: 12px; font-weight: 500; color: var(--doux); padding: 1px 8px; border-radius: 99px; background: var(--lavande-2); }
.book-actions { display: grid; gap: 8px; justify-items: center; margin: 4px 0 6px; }
.book-actions .btn-block { width: 100%; }
.link-soft { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 14px; color: var(--mauve-d); text-decoration: none; }
.chaps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chaps-part { grid-column: 1 / -1; margin: 6px 2px 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne-d); font-weight: 500; }
.chaps .pg-item { display: flex; }
.chap2 { flex: 1; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; min-height: 108px; padding: 11px 12px 10px; border-radius: 16px; background: rgba(255, 255, 255, .86); border: 1px solid var(--ligne); color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.chap2:hover { border-color: var(--lavande); box-shadow: 0 6px 16px rgba(63, 44, 78, .08); transform: translateY(-1px); }
.chap2-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.chap2-k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }
.chap2-p { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--lavande-2); color: var(--mauve-d); flex: none; }
.chap2.is-done .chap2-p { background: var(--champagne); color: #fff; }
.chap2-t { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--prune-d); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chap2-f { display: grid; gap: 4px; font-size: 11.5px; color: var(--doux); }
.chap2-f .bar { height: 3px; }
.chap2.is-off { opacity: .6; }
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 12px 0 16px; }
.pager button { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 99px; border: 1px solid transparent; background: transparent; color: var(--doux); font: 500 13.5px var(--sans, inherit); cursor: pointer; }
.pager .pg-n.on { background: var(--prune); color: #fff; }
.pager .pg-n:not(.on):hover { background: var(--lavande-2); color: var(--prune); }
.pager .pg-a { font-size: 18px; color: var(--prune); border-color: var(--ligne); background: #fff; }
.pager .pg-a:disabled { opacity: .35; cursor: default; }
[data-paginer] > [hidden] { display: none !important; }

/* ===== Menu du bas : fond prune, pictos lavande, brillance quand actif ===== */
.tabs { background: rgba(94, 70, 111, .9); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 12px 30px rgba(40, 24, 52, .35); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.tab { color: rgba(220, 207, 232, .78); }
.tab-ico { background: rgba(220, 207, 232, .16); color: #DCCFE8; box-shadow: none; }
.tab-lbl { font-weight: 400; }
.tab.on { color: #fff; }
.tab.on .tab-ico { color: var(--prune-d); background: radial-gradient(circle at 35% 28%, #FFFFFF 0%, #EFE6F7 35%, #DCCFE8 70%, #C8B4DC 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 0 18px rgba(220, 207, 232, .75), 0 4px 12px rgba(20, 10, 30, .3); transform: translateY(-2px) scale(1.06); --icon-fill: rgba(94, 70, 111, .12); }
.tab.on .tab-lbl { font-weight: 500; }
.book-hero-txt h1 { font-size: 24px !important; font-weight: 600; line-height: 1.15; } .book-sub { font-size: 15px !important; }

/* Logo officiel (image) */
.brand .brand-logo { display: block; height: 72px; width: auto; max-width: 100%; }
.brand-sm .brand-logo { height: 46px; }
.brand-lg .brand-logo { height: 110px; }
.brand-sm .brand-logo { height: 54px; image-rendering: auto; }
.icon-btn.avatar { background: #5E466F; color: #DCCFE8; border-color: #5E466F; box-shadow: 0 4px 12px rgba(94,70,111,.25); }

/* Épisode avec vidéo : elle tourne dans le cadre arrondi, au format de la vidéo */
.pl-cover.is-video { width: 100%; aspect-ratio: 16 / 9; }
.pl-video { background: #2E2338; object-fit: cover; cursor: pointer; display: block; }
