*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#eae0e8;color:#493b4b;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #c177ba;outline-offset:3px}.shell{min-height:100vh;max-width:760px;margin:auto;background:#fbf7f0;box-shadow:0 12px 50px #35233818;padding-bottom:100px}.top{height:74px;padding:12px 22px;display:flex;justify-content:space-between;align-items:center;background:#fffaf5;border-bottom:1px solid #e9dce2}.brand{display:flex;gap:10px;align-items:center}.brand strong{font-family:Georgia,serif;font-size:22px;color:#67415e;display:block}.brand small{display:block;font-size:11px;color:#896e85;letter-spacing:.06em}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:#eee0e9;border-radius:13px;font-size:25px;color:#a36b96}.icon-button{border:0;border-radius:50%;background:#f2e7ed;color:#6e4d70;width:35px;height:35px;font-size:22px}.view{display:none;padding:0 22px 30px;animation:fade .2s ease}.view.active{display:block}@keyframes fade{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.welcome{text-align:center;padding:30px 0 18px}.eyebrow{font-size:10px;letter-spacing:.15em;font-weight:800;color:#98658b}.welcome h1{font-family:Georgia,serif;font-size:clamp(26px,5vw,36px);line-height:1.16;margin:12px 0;color:#513d50}.welcome h1 em{color:#925d85;font-weight:normal}.welcome p,.page-head p{color:#756a73;line-height:1.55;font-size:14px;margin:8px 0}.hero{overflow:hidden;border-radius:20px;background:#35294d;box-shadow:0 8px 20px #392a3d22}.hero img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}.hero-caption{text-align:center;font-weight:650;color:white;background:#60436a;padding:13px 8px;font-size:13px}.section-title{font-family:Georgia,serif;font-size:23px;margin:28px 0 15px}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.tile{padding:0;border:1px solid #ece3e3;background:white;text-align:left;overflow:hidden;border-radius:17px;box-shadow:0 3px 10px #4f2d4910;transition:transform .15s}.tile:active{transform:scale(.98)}.tile img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.tile span{display:block;padding:12px 12px 15px}.tile strong{display:block;font-size:13px;color:#5c4058}.tile small{font-size:11px;color:#8a7c86;line-height:1.35;display:block;margin-top:4px}.info-strip{margin-top:24px;background:#f0e4ed;border-radius:17px;padding:16px;display:flex;gap:12px;align-items:center}.info-strip>span{font-size:27px}.info-strip strong{font-size:13px}.info-strip p{font-size:11px;line-height:1.4;margin:5px 0 0;color:#756b76}.text-link{border:0;background:none;color:#805076;font-weight:700;white-space:nowrap;font-size:12px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);background:#fffaf7;border-top:1px solid #e9dee6;display:grid;grid-template-columns:repeat(4,1fr);padding:9px 7px calc(9px + env(safe-area-inset-bottom));z-index:10;box-shadow:0 -5px 24px #402c3b12}.nav-item{background:none;border:0;display:flex;align-items:center;flex-direction:column;gap:3px;color:#8d818c;font-size:11px}.nav-item span{font-size:26px;line-height:28px}.nav-item.selected{color:#8c5482;font-weight:800}.page-head{padding:32px 0 19px}.page-head h1{font-family:Georgia,serif;color:#513d50;font-size:31px;margin:8px 0}.feature-image{display:block;width:100%;height:auto;border-radius:19px;margin-bottom:18px}.book-card{background:white;display:grid;grid-template-columns:100px 1fr;gap:17px;border:1px solid #eee4ea;border-radius:18px;padding:16px}.book-art{background:#f3e4ee;border-radius:12px;display:grid;place-items:center;font-size:46px;min-height:155px}.book-card h2{font-family:Georgia,serif;font-size:20px;margin:11px 0 6px}.book-card p{font-size:12px;color:#746b72;line-height:1.5}.chip{display:inline-block;color:#825c76;background:#f3e7f0;border-radius:20px;padding:5px 10px;font-size:10px;font-weight:800}.secondary-action{border:1px solid #b88eae;background:white;color:#81577a;padding:10px 12px;border-radius:10px;font-weight:700;font-size:11px}.note,.demo-block{background:#f1e7ee;border-radius:16px;padding:19px;margin:19px 0;line-height:1.5;font-size:13px}.note p,.demo-block p{font-size:12px;color:#70676f}.primary-action{border:0;background:#79527a;color:white;border-radius:12px;padding:13px 18px;font-weight:750;min-height:44px}.player{position:fixed;z-index:20;bottom:calc(79px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 20px),730px);padding:14px;background:white;border:1px solid #e7d7e5;border-radius:17px;box-shadow:0 8px 35px #3a29364a}.player[hidden]{display:none}.player-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}.player-heading strong{display:block;font-size:12px;max-width:270px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.player-heading small{display:block;font-size:10px;color:#7e7480}.player audio{width:100%}dialog{border:0;border-radius:19px;max-width:min(90vw,440px);box-shadow:0 12px 70px #1a152a55;padding:25px;color:#534050}dialog::backdrop{background:#24152599}.dialog-content h2{font-family:Georgia,serif}.dialog-content p{line-height:1.6;font-size:14px}@media(min-width:600px){.tiles{gap:18px}.tile strong{font-size:16px}.tile small{font-size:13px}.shell{min-height:100vh}.view{padding-left:35px;padding-right:35px}}@media(max-width:380px){.view{padding-left:15px;padding-right:15px}.tiles{gap:9px}.tile strong{font-size:12px}.book-card{grid-template-columns:80px 1fr}.book-art{font-size:32px}}

.demo-block .secondary-action{margin-top:10px}.demo-block .primary-action{margin-top:5px}

/* V3 : catalogue de liens et vidéo YouTube officielle */
.songs-subtitle{font-size:21px;margin:28px 0 10px}
.songs-hint{font-size:12px;line-height:1.55;color:#766a77;margin:0 0 13px}
.song-list{display:grid;gap:10px}
.song-card{display:flex;align-items:center;gap:13px;border:1px solid #e9dce5;background:white;border-radius:15px;padding:13px 14px;text-decoration:none;color:inherit;min-height:72px}
.song-card:focus-visible{outline:3px solid #ae87a9;outline-offset:3px}
.song-icon{width:42px;height:42px;border-radius:13px;background:#e9f4e9;color:#207344;display:grid;place-items:center;font-size:23px;flex-shrink:0}
.song-info{flex:1;min-width:0}.song-info strong{display:block;font-size:14px;color:#5c4058}.song-info small{display:block;font-size:11px;color:#80757e;margin-top:5px}
.song-arrow{color:#7e597d;font-size:20px}
.video-card{border-radius:18px;overflow:hidden;background:white;border:1px solid #e9dce5;margin-bottom:24px}
.video-card>img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.video-details{padding:17px}.video-details strong{font-size:17px}.video-details p{color:#756a74;font-size:12px;line-height:1.6}
.youtube-frame{position:relative;aspect-ratio:16/9;width:100%;background:#161322;border-radius:12px;overflow:hidden;margin-top:14px}
.youtube-frame[hidden]{display:none}.youtube-frame iframe{border:0;width:100%;height:100%;position:absolute;inset:0}
.video-smallprint{font-size:11px!important;color:#887e87!important}

/* V5 — Livre Gribouille et pochettes officielles Spotify */
.gribouille-feature{background:#fff;border:1px solid #eadfe6;border-radius:20px;padding:16px;display:grid;grid-template-columns:minmax(110px,37%) 1fr;gap:17px;align-items:start}
.gribouille-cover{display:block;width:100%;aspect-ratio:1/1;object-fit:contain;background:#f6eef0;border-radius:12px}
.cover-fallback{background:#f2e7ed;border-radius:14px;padding:24px 9px;text-align:center;font-weight:700;color:#755372}
.gribouille-details h2{font:700 clamp(18px,4vw,23px)/1.2 Georgia,serif;color:#513d50;margin:10px 0}
.gribouille-details p{font-size:13px;line-height:1.55;color:#776978}
.book-link{display:inline-flex;text-decoration:none;align-items:center;justify-content:center;line-height:1.3;font-size:12px;text-align:center;margin-top:5px}
.book-hint{font-size:11px!important}
.track-list{display:grid;gap:8px}.track-row{display:flex;align-items:center;gap:11px;padding:13px;border-radius:13px;background:white;border:1px solid #eee4e9}
.track-row strong{display:block;font-size:13px;color:#59465b}.track-row small{display:block;font-size:11px;color:#827482;margin-top:4px}
.track-row>div{flex:1}.track-num{min-width:33px;height:33px;border-radius:10px;background:#f3e7ef;display:grid;place-items:center;color:#80577b;font-weight:750;font-size:12px}.track-lock{font-size:15px;opacity:.67}
.spotify-entry{border:1px solid #e9dce5;background:white;border-radius:16px;overflow:hidden}
.spotify-artwork{display:block;width:100%;height:152px;border:0;background:#f0e7eb}
.spotify-entry .song-card{border:0;border-top:1px solid #f0e6ec;border-radius:0;min-height:54px;padding:10px 13px}
.spotify-entry .song-icon{width:28px;height:28px;font-size:18px}
@media(max-width:430px){.gribouille-feature{grid-template-columns:1fr}.gribouille-cover{max-width:260px;margin:auto}.gribouille-details h2{text-align:center}.gribouille-details .chip{display:table;margin:auto}.book-link{display:flex;width:100%}}

/* V7 - séries La Minute Dodo */
.dodo-intro{display:flex;gap:13px;align-items:center;background:#f2e8f0;border-radius:17px;padding:14px;margin:10px 0 22px}.dodo-intro img{width:74px;height:74px;object-fit:contain;border-radius:14px}.dodo-intro p{font-size:12px;line-height:1.55;color:#695c68;margin:0}
.dodo-season{background:#fff;border:1px solid #eadde8;border-radius:18px;overflow:hidden;margin:16px 0;box-shadow:0 3px 12px #4d3b5210}.dodo-season-head{display:flex;align-items:center;justify-content:space-between;background:#f2e8f1;padding:18px}.dodo-season-head h2{font-family:Georgia,serif;font-size:22px;color:#573e58;margin:4px 0}.dodo-season-head small{font-size:11px;color:#827382}.dodo-season-head>span{font-size:28px}.episode-list{padding:7px 10px 10px}.episode-button{display:flex;width:100%;align-items:center;gap:12px;background:white;border:0;border-bottom:1px solid #f0e7ed;text-align:left;padding:12px 7px;color:#584957;min-height:62px}.episode-button:last-child{border-bottom:0}.episode-button.playing{background:#f9f0f8;border-radius:10px}.ep-number{width:35px;height:35px;border-radius:10px;background:#f3e7f0;color:#835b81;display:grid;place-items:center;font-size:12px;font-weight:800}.ep-main{flex:1}.ep-main strong{display:block;font-size:13px}.ep-main small{display:block;font-size:11px;color:#8a7a87;margin-top:3px}.ep-play{color:#875c83;font-size:18px;padding-right:4px}.complete{background:#fbf5fa}.dodo-setting{background:#f3e9ee;border-radius:15px;padding:15px;margin:19px 0}.dodo-setting label{font-size:13px;font-weight:700;display:flex;gap:9px;align-items:center}.dodo-setting input{accent-color:#80557e;width:17px;height:17px;flex-shrink:0}.dodo-setting p,.dodo-footnote{color:#807280;font-size:11px;line-height:1.5}.dodo-footnote{margin-bottom:20px}


/* ===== V9 : identité harmonisée avec l'icône orange / bleu ===== */
:root{
  --page:#FFF8EC;--surface:#FFFFFF;--ink:#463C43;
  --plum:#653C69;--orange:#D76718;--blue:#087FB2;
  --line:#EDDFCE;--muted:#6F6269;
}
body{background:#F0E5D8;color:var(--ink)}
.shell{background:var(--page)}
.top{background:#FFFCF7;border-bottom-color:var(--line)}
.brand strong{color:var(--plum)}
.brand small{color:#76656B}
.brand-mark{background:none;border-radius:12px;width:42px;height:42px;overflow:hidden;font-size:0}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.icon-button{background:#F7E9DD;color:var(--plum)}
button:focus-visible,.song-card:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.eyebrow{color:#A65123}
.welcome h1,.page-head h1{color:var(--plum)}
.welcome h1 em{color:#B45D36}
.welcome p,.page-head p{color:var(--muted)}
.section-title{color:var(--plum)}
/* Le point d'interrogation ne peut pas être isolé sur une ligne */
.keep-together{white-space:nowrap}
.hero{background:#F4E5C9;box-shadow:0 8px 20px #7C4B2620}
.hero-caption{background:var(--plum)}
.tile{border-color:var(--line);box-shadow:0 3px 10px #77442F12}
.tile strong,.song-info strong{color:var(--plum)}
.tile small{color:var(--muted)}
.info-strip{background:#FFF0D9}
.info-strip p{color:var(--muted)}
.text-link{color:#9B491E}
.bottom-nav{background:#FFFCF7;border-top-color:var(--line)}
.nav-item{color:#716C70}
.nav-item.selected{color:var(--orange)}
.book-card,.gribouille-feature,.dodo-season,.song-card,.spotify-entry,.video-card,.track-row{border-color:var(--line)}
.book-art,.cover-fallback{background:#FFF0DD}
.book-card p,.gribouille-details p,.video-details p{color:var(--muted)}
.chip{color:#82421A;background:#FFF0DD}
.primary-action{background:var(--orange);color:#fff}
.primary-action:hover{background:#B95512}
.secondary-action{border-color:#CDA783;color:var(--plum)}
.note,.demo-block{background:#F8EEE5}
.note p,.demo-block p{color:var(--muted)}
.player{border-color:var(--line)}
.song-icon{background:#E2F4F9;color:var(--blue)}
.song-arrow{color:var(--blue)}
.spotify-entry .song-card{border-top-color:var(--line)}
.spotify-artwork{background:#F5EDE6}
.gribouille-cover{background:#FFF4E6}
.gribouille-details h2{color:var(--plum)}
.track-row strong{color:var(--plum)}
.track-num{background:#E8F4FA;color:#087FB2}
.dodo-intro{background:#F2E8F4}
.dodo-season{border-color:#DFD0E0}
.dodo-season-head{background:#F2E8F4}
.dodo-season-head h2{color:var(--plum)}
.episode-button{border-bottom-color:#EBE1ED}
.episode-button.playing{background:#F9F1FB}
.ep-number{background:#F0E2F4;color:var(--plum)}
.ep-play{color:var(--plum)}
.complete{background:#FBF5FC}
.dodo-setting{background:#F3E8F4}
.dodo-setting input{accent-color:var(--plum)}
@media(max-width:359px){.section-title{font-size:21px}}


/* ===== V10 : interface sans violet. Les illustrations originales sont intactes. ===== */
:root{
  --page:#FFF8EC; --surface:#FFFFFF; --ink:#263C47;
  --orange:#D76718; --blue:#087FB2; --navy:#17344B;
  --gold:#F6CF6A; --line:#E9DDCD; --muted:#596973;
  --plum:var(--ink);
}
body{background:#EEE5D8;color:var(--ink)}
.shell{background:var(--page)}
.top,.bottom-nav{background:#FFFCF7;border-color:var(--line)}
.brand strong,.welcome h1,.page-head h1,.section-title,.tile strong,.song-info strong,.gribouille-details h2,.track-row strong,.book-card h2{color:var(--ink)}
.brand small,.welcome p,.page-head p,.tile small,.note p,.demo-block p,.song-info small,.gribouille-details p,.video-details p,.track-row small{color:var(--muted)}
.brand-mark{background:transparent}
.eyebrow{color:#A34E16}
.welcome h1 em{color:#B65A16}
.icon-button{background:#E7F2F8;color:var(--navy)}
.icon-button:hover{background:#D5E9F4}
.hero{background:#FAE8C9}
.hero-caption{background:var(--navy);color:#FFFFFF}
.tile,.song-card,.spotify-entry,.video-card,.book-card,.gribouille-feature,.track-row,.dodo-season{border-color:var(--line)}
.info-strip,.note,.demo-block{background:#FFF0D9}
.info-strip p,.info-strip strong{color:var(--ink)}
.text-link{color:#9E4516}
.nav-item{color:#617482}
.nav-item.selected{color:var(--blue)}
.nav-item.selected span{color:var(--orange)}
.primary-action{background:var(--orange);color:#fff}
.primary-action:hover{background:#B95512}
.secondary-action{color:var(--navy);border-color:#90B6CB}
.chip,.book-art,.cover-fallback{background:#FFF0D9;color:#784013}
.player{border-color:#BCD5E4;box-shadow:0 8px 35px #17344B33}
.player-heading strong{color:var(--navy)}
.player-heading small{color:#506574}
.player audio{accent-color:var(--blue)}
.song-icon{background:#E2F4F9;color:var(--blue)}
.song-arrow{color:var(--blue)}
.spotify-artwork{background:#F2F2EE}
.video-card .youtube-frame{background:#142C42}
.gribouille-cover{background:#FFF4E6}
.cover-fallback{background:#FFF0D9;color:var(--ink)}
.track-num,.ep-number{background:#E4F1F8;color:#075D86}
/* Ambiance coucher : bleu nuit et doré, sans violet dans l'interface. */
.dodo-intro{background:#E9F2F6}
.dodo-intro p{color:#3D5868}
.dodo-season{border-color:#C8DBE6;box-shadow:0 3px 12px #17344B12}
.dodo-season-head{background:#17344B}
.dodo-season-head h2,.dodo-season-head small,.dodo-season-head .eyebrow{color:#FFF7E6}
.dodo-season-head .eyebrow{color:var(--gold)}
.episode-button{color:var(--ink);border-bottom-color:#E2EAF0}
.episode-button.playing{background:#E8F5FC}
.ep-main small{color:#5A6E79}
.ep-play{color:var(--blue)}
.complete{background:#FFF6E4}
.dodo-setting{background:#E6F2F8}
.dodo-setting input{accent-color:var(--blue)}
.dodo-setting p,.dodo-footnote{color:#506675}
.song-card:focus-visible,button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
dialog{color:var(--ink)}
dialog::backdrop{background:#10253499}


/* ===== V11 : accueil plus vivant + vignettes hero harmonisées ===== */
:root{--orange-soft:#F28C28;--orange-deep:#D76718;--sky:#DFF3FB;--card:#FFFDF9;--shadow:0 8px 24px rgba(23,52,75,.10)}
.welcome-home{padding:24px 0 14px}
.welcome-home .eyebrow{font-size:11px;letter-spacing:.18em;color:var(--orange-deep)}
.welcome-home h1{font-size:clamp(30px,6vw,40px);line-height:1.06;margin:10px 0 12px;color:var(--navy)}
.welcome-home h1 em{display:block;color:var(--orange-deep);font-style:normal}
.welcome-home p{font-size:15px;max-width:36ch;margin:0 auto;color:var(--muted)}
.hero-home{position:relative;background:linear-gradient(180deg,#FFF4DE 0%, #FDE9C7 100%);border:1px solid #F3DDB2;border-radius:26px;box-shadow:var(--shadow);margin-top:8px}
.hero-home img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center center}
.hero-badge{position:absolute;left:14px;right:14px;bottom:14px;background:rgba(255,252,247,.92);backdrop-filter:blur(6px);color:var(--navy);padding:11px 14px;border-radius:16px;font-weight:800;font-size:14px;box-shadow:0 6px 18px rgba(23,52,75,.12)}
.quick-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:16px 0 8px}
.quick-chip{border:0;background:#FFF0D9;color:var(--navy);padding:11px 14px;border-radius:999px;font-weight:800;font-size:13px;box-shadow:0 2px 8px rgba(215,103,24,.08)}
.quick-chip:nth-child(2){background:#E6F2F8}.quick-chip:nth-child(3){background:#FFF5E6}
.home-section-title{margin-top:18px;margin-bottom:13px;font-size:24px;color:var(--navy)}
.tiles-home{gap:14px}
.tiles-home .tile{background:var(--card);border-radius:20px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line)}
.tiles-home .tile img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center;display:block;background:#F8EAD2}
.tiles-home .tile span{padding:13px 13px 16px}
.tiles-home .tile strong{font-size:14px;color:var(--navy)}
.tiles-home .tile small{font-size:12px;line-height:1.45;color:var(--muted);margin-top:5px}
.home-note{margin:18px 2px 0;background:#FFF7EA;border:1px dashed #F0D5AD;color:#7A5A3B;border-radius:18px;padding:14px 16px;text-align:center;font-weight:700;font-size:13px;line-height:1.5}
.info-strip-home{margin-top:16px;background:#EAF5FA;border:1px solid #D4E8F2}
.info-strip-home strong{color:var(--navy)}
.info-strip-home .text-link{color:var(--blue)}
/* make other page hero images consistent */
.feature-image{aspect-ratio:4/3;object-fit:cover;object-position:center;border-radius:22px;border:1px solid var(--line);box-shadow:var(--shadow)}
@media(max-width:420px){
  .welcome-home h1{font-size:clamp(28px,9vw,36px)}
  .hero-badge{font-size:13px;padding:10px 12px}
  .tiles-home{grid-template-columns:1fr 1fr}
}


/* ===== V12 : accueil épuré, plus proche de l'identité du site officiel ===== */
.top{height:68px;padding:10px 18px}
.brand strong{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:850;letter-spacing:-.035em;font-size:22px}
.brand small{font-size:11px}
.welcome-home{padding:20px 0 17px;text-align:left}
.welcome-home h1{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:850;letter-spacing:-.04em;font-size:clamp(26px,7.8vw,37px);line-height:1.12;margin:0 0 9px;color:var(--navy)}
.welcome-home h1 span:first-child{color:var(--orange-deep)}
.welcome-home p{font-size:clamp(13px,3.7vw,16px);line-height:1.48;max-width:40ch;text-align:left;margin:0;color:#526B78}
.hero-home{margin:0;position:relative;background:#FFF1DE;border:1px solid #EBD8BF;border-radius:23px;overflow:hidden;box-shadow:0 5px 18px #17344B12}
.hero-home img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center;display:block}
.home-section-title{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:850;letter-spacing:-.028em;font-size:clamp(21px,5.6vw,27px);margin:22px 0 13px;color:var(--navy)}
.tiles-home{gap:12px}
.tiles-home .tile{border-radius:20px;background:#fffdf9;overflow:hidden;box-shadow:0 6px 18px #17344B13;border:1px solid #E9DDCD}
.tiles-home .tile img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center;background:#F6E7D4}
.tiles-home .tile strong{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:800;font-size:14px;line-height:1.27;color:var(--navy)}
.tiles-home .tile small{font-size:12px;line-height:1.45}
.tiles-home .tile span{padding:12px 11px 15px}
.info-strip-home{margin:20px 0 6px;background:#EAF5FA;border:1px solid #D4E8F2;border-radius:17px}
.info-strip-home .text-link{font-size:12px}
.nav-item.selected{color:#087FB2}
@media(max-width:380px){.welcome-home h1{font-size:27px}.tiles-home{gap:9px}.tiles-home .tile strong{font-size:13px}.tiles-home .tile small{font-size:11px}.info-strip-home{gap:7px;padding:12px}.info-strip-home .text-link{font-size:11px}}


/* V13 - tuiles mobiles réellement responsive et bleu plus doux */
:root{--ink:#285B78;--navy:#245E80;--blue:#177FA9;--muted:#587281;--orange:#E56E18;--orange-deep:#D2600D}
body{color:var(--ink)}
.brand strong{color:#23658B}
.welcome-home h1,.home-section-title,.section-title,.page-head h1{color:#23658B}
.welcome-home h1 span:first-child{color:#E56E18}
.welcome-home p,.page-head p{color:#526F7C}
.tiles-home{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.tiles-home .tile{display:flex;flex-direction:column;min-width:0;width:100%;height:100%;padding:0;overflow:hidden;border-radius:20px;background:#FFFDF9;box-shadow:0 5px 16px rgba(30,92,124,.10)}
/* Le parent contraint rigoureusement le ratio sur tous les navigateurs. */
.tiles-home .tile .tile-visual{display:block;position:relative;flex:none;width:100%;height:auto;aspect-ratio:16/9;overflow:hidden;padding:0!important;margin:0;background:#F3E5D5}
.tiles-home .tile .tile-visual img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center center;display:block;aspect-ratio:auto}
.tiles-home .tile>span:not(.tile-visual){display:block;flex:1;padding:11px 12px 15px}
.tiles-home .tile strong{color:#23658B;font-size:clamp(12px,3.3vw,15px);line-height:1.3}
.tiles-home .tile small{font-size:clamp(11px,2.85vw,12px);line-height:1.42;color:#597382}
.hero-home{border-color:#F0DDCA}
.info-strip-home{background:#EAF6FB}
.info-strip-home strong{color:#23658B}
.nav-item{color:#5A7788}.nav-item.selected{color:#147CAC}
.primary-action{background:var(--orange)}
.dodo-season-head{background:#28678B}
.dodo-season-head h2,.dodo-season-head small{color:#FFFFFF}
@media(max-width:350px){.tiles-home{gap:9px}.tiles-home .tile>span:not(.tile-visual){padding:9px 9px 12px}}
@media(min-width:600px){.tiles-home{gap:16px}.tiles-home .tile .tile-visual{aspect-ratio:16/9}}


/* V14 — coloriages du site officiel : liste mobile, sans téléchargement automatique des PDF */
.coloring-tip{display:flex;gap:12px;align-items:flex-start;padding:15px 16px;background:#EAF5FA;border:1px solid #D7E9F1;border-radius:16px;margin-bottom:18px}
.coloring-tip>span{font-size:25px}.coloring-tip p{margin:0;font-size:12px;line-height:1.55;color:#3E6577}
.coloring-list{display:grid;grid-template-columns:1fr;gap:12px}
.coloring-card{background:#fff;border:1px solid #E7DAC7;border-radius:18px;padding:13px;display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:center;box-shadow:0 4px 14px #2A63780D}
.coloring-illustration{width:64px;height:72px;display:grid;place-items:center;font-size:31px;background:#FFF1D8;border-radius:13px}
.coloring-card:nth-child(3n+2) .coloring-illustration{background:#E6F3FA}
.coloring-card:nth-child(3n) .coloring-illustration{background:#FFF3E4}
.coloring-details{min-width:0}.coloring-tag{font-size:10px;font-weight:800;color:#BC601C;text-transform:uppercase;letter-spacing:.04em}
.coloring-details h2{font:800 16px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif;color:#23658B;margin:5px 0}
.coloring-details p{font-size:11px;line-height:1.45;color:#587281;margin:4px 0 10px}
.coloring-actions{display:flex;flex-wrap:wrap;gap:8px}
.preview-pdf,.coloring-link{font:750 12px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;border-radius:10px;padding:10px 12px;min-height:40px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.preview-pdf{border:1px solid #A9CBDC;background:#EAF6FB;color:#23658B}
.coloring-link{background:#D76718;border:1px solid #D76718;color:white}
.coloring-footer{font-size:12px;line-height:1.6;color:#587281;margin:20px 0}.coloring-footer a{color:#177FA9;font-weight:750}
.coloring-preview-dialog{padding:0;width:min(94vw,600px);height:min(88dvh,850px);max-height:88dvh;border-radius:18px;overflow:hidden}
.coloring-preview-dialog[open]{display:flex;flex-direction:column}.coloring-preview-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 15px;border-bottom:1px solid #DFE6EA}.coloring-preview-head strong{font-size:14px;color:#23658B}
#coloring-preview-close{border:0;background:#EAF5FA;border-radius:50%;width:34px;height:34px;flex-shrink:0;color:#23658B}
#coloring-preview-frame{width:100%;flex:1;min-height:200px;border:0;background:#fff}
.coloring-preview-dialog p{margin:0;padding:12px 15px;font-size:12px;line-height:1.4;background:#FFF8EC;color:#587281}.coloring-preview-dialog a{color:#177FA9;font-weight:700}
@media(min-width:600px){.coloring-list{grid-template-columns:repeat(2,minmax(0,1fr))}.coloring-card{grid-template-columns:54px minmax(0,1fr)}.coloring-illustration{width:54px;height:66px}}
@media(max-width:350px){.coloring-card{grid-template-columns:46px minmax(0,1fr);gap:9px;padding:10px}.coloring-illustration{width:46px;height:55px;font-size:24px}.preview-pdf,.coloring-link{font-size:11px;padding:9px}}


/* ===== V15 — Accès Gribouille, aspect cohérent avec la V14 ===== */
.gribouille-access{background:#EAF5FA;border:1px solid #CFDFE8;border-radius:18px;padding:19px;margin:18px 0}
.gribouille-access h2{font-size:18px;margin:0 0 9px;color:#23658B}
.gribouille-access p{font-size:12px;line-height:1.55;color:#526B78}
.gribouille-access .book-link{display:flex;width:100%;margin:12px 0 10px}
.gribouille-access .secondary-action{display:block;width:100%;min-height:44px;text-align:center;font-size:13px;background:white}
.gribouille-access .secondary-action:disabled{opacity:.6;cursor:wait}
.gribouille-status{min-height:35px;margin:12px 0 0 !important}
.gribouille-status.is-unlocked{color:#206C4E;font-weight:700}
.gribouille-track{width:100%;text-align:left;font:inherit;cursor:pointer}
.gribouille-track .track-info{flex:1;min-width:0}
.gribouille-track:disabled{opacity:.72;cursor:not-allowed}
.gribouille-track:not(:disabled):active{background:#EAF5FA}
.gribouille-track:focus-visible{outline:3px solid #087FB2;outline-offset:2px}

/* V16 — Saisie de clé directement dans la bibliothèque */
.gribouille-inline-form{display:grid;gap:10px;margin:14px 0}
.gribouille-inline-form label{font-weight:750;color:#23658B;font-size:13px}
.gribouille-inline-form input{display:block;width:100%;padding:14px;border:1px solid #A7C5D6;border-radius:13px;background:white;color:#263C47;font-size:16px;min-height:48px}
.gribouille-inline-form input:focus{outline:3px solid #A7DCEA;outline-offset:2px}
.gribouille-inline-form .primary-action{width:100%}
.gribouille-inline-form .primary-action:disabled{opacity:.65}
.gribouille-recheck{margin-top:4px}


/* V17 — vraies miniatures des coloriages extraites des PDF */
.coloring-card{align-items:start}
.coloring-illustration{width:76px;height:100px;display:block;overflow:hidden;background:#FFF;border:1px solid #E7DAC7;border-radius:12px;padding:0;box-shadow:0 2px 8px rgba(23,52,75,.06)}
.coloring-illustration img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;background:#fff}
@media(min-width:600px){.coloring-card{grid-template-columns:76px minmax(0,1fr)}.coloring-illustration{width:76px;height:100px}}
@media(max-width:350px){.coloring-card{grid-template-columns:58px minmax(0,1fr)}.coloring-illustration{width:58px;height:78px}}


/* V18 — Bibliothèque Gribouille : accès fluide et lecture sans sortie */
#gribouille-locked[hidden],#gribouille-unlocked[hidden],#gribouille-check[hidden],#gribouille-status[hidden]{display:none!important}
.gribouille-success-title{color:#207454;font-weight:850;font-size:18px}
.gribouille-play-full{display:block;width:100%;margin:13px 0 4px;text-align:center;font-size:14px}
.gribouille-access:has(#gribouille-unlocked:not([hidden])){background:#ECF8F0;border-color:#B9E3C9}
.gribouille-track.playing{background:#E7F4FA!important;box-shadow:inset 3px 0 0 #087FB2}
.gribouille-refresh{background:transparent;border:0;padding:10px 0;color:#23658B;text-decoration:underline;font-weight:700;font-size:12px}
.book-session-note{font-size:12px;color:#60707B;line-height:1.5;margin:18px 0 26px}

/* V20 — carte installation PWA */
.install-help{margin:18px 0;padding:16px 18px;background:#FFFDF7;border:1px solid #E8D6B7;border-radius:17px;box-shadow:0 4px 15px #2A63780A}
.install-head{display:flex;gap:9px;align-items:center;color:#23658B;font-size:15px}
.install-help p{margin:9px 0;font-size:12px;line-height:1.55;color:#4A6878}
.install-help .primary-action{margin-top:8px}
.install-help .install-steps{font-size:11px;margin-bottom:0}

/* V22 : installation visible depuis le lien Gribouille */
.install-help[hidden]{display:none!important}
.install-help .primary-action{display:inline-flex;align-items:center;justify-content:center;min-height:45px;text-align:center}
.install-help.install-highlight{border:2px solid #E57C22;background:#FFF6E8;box-shadow:0 0 0 4px rgba(229,124,34,.10)}
.install-help .install-emphasized{font-size:13px;font-weight:700;color:#23658B}


/* Nouvelle V12 — refonte éditoriale issue de la base fonctionnelle V22b */
:root{--page:#FFF8EC;--navy:#23658B;--blue:#23658B;--orange:#D76718;--orange-deep:#D76718;--muted:#587281;--line:#E9DDCD}
.top{background:#FFFCF7}
.welcome-home{padding:22px 0 17px}
.welcome-kicker{display:block;color:#B25E20;font-size:10px;letter-spacing:.13em;font-weight:850;margin-bottom:10px}
.welcome-home h1{margin:0 0 10px;letter-spacing:-.035em;line-height:1.12;color:#23658B}
.welcome-home h1 span:first-child{color:#D76718}
.welcome-home .audio-signature{max-width:none;font-weight:550;color:#375C72;font-size:clamp(14px,3.7vw,17px);line-height:1.42}
.hero-home{border:1px solid #EBD8BF;border-radius:20px;overflow:hidden;margin:0}
.hero-home img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center}
.dodo-spotlight{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px 12px;align-items:start;background:linear-gradient(135deg,#19364F,#256589);color:#fff;border-radius:19px;padding:16px;margin:17px 0 2px;box-shadow:0 8px 18px rgba(25,54,79,.15)}
.spotlight-emblem{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:rgba(255,255,255,.13);color:#FFDEAB;font-size:28px;grid-row:span 2}
.spotlight-copy{min-width:0}.spotlight-kicker{font-size:9px;color:#FFD9A4;letter-spacing:.1em;font-weight:900}
.spotlight-copy h2{font:800 clamp(16px,4.6vw,21px)/1.25 system-ui,-apple-system,'Segoe UI',sans-serif;color:#fff;margin:4px 0 6px}
.spotlight-copy p{font-size:12px;line-height:1.48;color:#F3F7FB;margin:0}
.spotlight-cta{grid-column:2;justify-self:start;background:#D76718;border:0;border-radius:10px;padding:9px 17px;color:#fff;min-height:40px;font-size:13px;font-weight:850;box-shadow:0 2px 0 rgba(22,33,50,.15)}
.spotlight-cta:focus-visible{outline:3px solid #FFD9A4;outline-offset:3px}
.home-section-title{margin:19px 0 12px;font-size:clamp(20px,5.3vw,25px)}
.tiles-home .tile{border-radius:17px;border-color:#E9DDCD}
.tiles-home .tile .tile-visual{aspect-ratio:16/9!important}
.tiles-home .tile strong{color:#23658B}
.tiles-home .tile small{color:#587281}
.install-help{background:#FFF;box-shadow:0 5px 18px #17344B10;border:1px solid #E7D9C7;padding:17px 18px;margin-top:19px}
.install-head{display:flex;align-items:center;gap:12px}
.install-head>div{display:flex;flex-direction:column;gap:4px}
.install-phone{width:38px;height:44px;display:grid;place-items:center;border-radius:11px;background:#E7F3F9;color:#23658B;font-size:25px;flex-shrink:0}
.install-kicker{color:#B2591A;font-size:10px;font-weight:850;letter-spacing:.08em}
.install-head strong{color:#23658B;font-size:16px;line-height:1.3}
.install-help>p{color:#526F7C;font-size:12px;line-height:1.55}
.install-help .primary-action{background:#D76718;border-radius:11px;width:100%;margin-top:8px}
.install-help .install-steps{padding:11px 13px;border-radius:10px;background:#EFF7FB;color:#245E80;font-weight:600;font-size:12px;line-height:1.58}
.install-help .install-final{color:#657782;font-size:11px;margin-bottom:0}
.dodo-intro{background:#EAF5FA}.dodo-intro p{color:#375D74}
.dodo-setting{background:#EAF5FA}.dodo-setting input{accent-color:#D76718}
.book-session-note{color:#587281}
@media(min-width:600px){.dodo-spotlight{grid-template-columns:50px 1fr auto;align-items:center;padding:20px}.spotlight-emblem{grid-row:auto;width:50px;height:50px}.spotlight-cta{grid-column:3;grid-row:1;align-self:center;justify-self:end}.spotlight-copy p{font-size:13px}}
@media(max-width:350px){.dodo-spotlight{grid-template-columns:38px 1fr;padding:13px;gap:10px}.spotlight-emblem{width:38px;height:38px;font-size:24px}.spotlight-cta{padding:8px 12px}.welcome-kicker{font-size:9px}}
@media(prefers-reduced-motion:reduce){.view{animation:none}}


/* V13 — accueil compact ; préserver chaque illustration complète en 16:9 */
.welcome-home{padding:9px 0 12px}
.welcome-home h1{font-size:clamp(25px,7vw,33px);line-height:1.12;letter-spacing:-.036em;margin:0 0 8px}
.welcome-home .audio-signature{font-size:clamp(13px,3.45vw,16px);line-height:1.4;font-weight:650}
.hero-home{margin:0 auto;max-width:560px;border-radius:18px}
.hero-home img{aspect-ratio:16/9;width:100%;height:auto;object-fit:contain;display:block}
.dodo-spotlight{grid-template-columns:42px minmax(0,1fr) auto;gap:9px 11px;align-items:center;margin:13px 0 2px;padding:12px 13px;border-radius:17px;min-height:0}
.spotlight-emblem{grid-row:1;grid-column:1;width:42px;height:42px;border-radius:12px;font-size:25px}
.spotlight-copy{grid-column:2;grid-row:1}
.spotlight-kicker{font-size:9px;letter-spacing:.075em}
.spotlight-copy h2{font-size:clamp(16px,4.2vw,19px);line-height:1.18;margin:3px 0 3px}
.spotlight-copy p{font-size:clamp(11px,2.9vw,12px);line-height:1.36;margin:0}
.spotlight-cta{grid-column:3;grid-row:1;align-self:center;justify-self:end;min-height:40px;padding:8px 11px;border-radius:10px;font-size:12px;white-space:nowrap}
.home-section-title{margin:15px 0 10px;font-size:clamp(20px,5vw,24px)}
@media(max-width:420px){
 .dodo-spotlight{grid-template-columns:39px minmax(0,1fr);gap:7px 11px;padding:12px 13px}
 .spotlight-emblem{grid-row:1;grid-column:1;width:39px;height:39px}
 .spotlight-copy{grid-row:1;grid-column:2}
 .spotlight-cta{grid-row:2;grid-column:2;justify-self:start;min-height:36px;margin-top:1px}
 .spotlight-copy p{max-width:34ch}
}
@media(max-width:350px){.welcome-home h1{font-size:25px}.spotlight-copy p{font-size:11px}}
@media(min-width:600px){.dodo-spotlight{grid-template-columns:50px 1fr auto;padding:15px 18px}.spotlight-emblem{width:48px;height:48px}}

/* Correctif installation : ne pas afficher un bouton sans action native (PC / iPhone). */
.install-help #install-now[hidden]{display:none!important}

/* Coloriages 2026 — afficher les miniatures complètes, sans recadrage */
.coloring-illustration img { object-fit:contain; }
