/* Habillage de la librairie enchantée et commandes de lecture. */
:root{--scene-navy:#17223b;--scene-gold:#f9d36c;--scene-rose:#ba395e;--scene-wood:#9a572f}
html{scroll-behavior:smooth}body{background:#fff9ec;color:#1e2840}
.top{background:#1b2743;gap:12px;min-height:66px;padding:10px max(14px,calc((100vw - 1460px)/2));border-bottom:4px solid #e4b65e}
.top .logo{font-size:clamp(24px,2.3vw,34px)}.top nav{gap:2px}.top nav a{font-size:12px;padding:7px 9px}.top nav a.active{background:#aa4264}
.art-site{padding-bottom:32px;background:radial-gradient(#c59b5b29 .9px,transparent 1.2px) 0 0/20px 20px,#fffaf1}
.art-site .art-welcome,.art-site .art-nav,.art-site .art-section,.art-site .art-live{max-width:1448px;margin-left:auto;margin-right:auto}
.art-welcome{padding:25px 16px 13px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.art-welcome h1{font-size:clamp(23px,3vw,40px);letter-spacing:-.7px;margin:0 0 7px;font-weight:950}
.art-welcome p{font-size:13px;margin:0;max-width:640px}
.art-nav{padding:5px 14px 14px;display:flex;flex-wrap:wrap;gap:9px;align-items:center;justify-content:center}
.art-nav a{display:inline-flex;align-items:center;gap:7px;background:#25304d;color:white;border:2px solid #182038;box-shadow:3px 3px 0 #deb16f;padding:10px 16px;font-size:13px;font-weight:900;border-radius:14px;min-height:44px}
.art-nav a:nth-child(2){background:#a93954}.art-nav a:nth-child(3){background:#23669d}.art-nav a:nth-child(4){background:#6d4189}.art-nav a:hover{filter:brightness(1.14)}.art-nav svg{width:22px;height:22px}
.art-section{margin-bottom:14px;scroll-margin-top:10px;box-shadow:0 8px 19px #3f261f16}
.art-section-label{padding:10px 14px;background:linear-gradient(90deg,#242c46,#63405a);color:white;display:flex;justify-content:space-between;gap:13px;align-items:baseline;flex-wrap:wrap}
.art-section-label h2{margin:0;font-size:clamp(17px,2vw,26px);font-weight:950;letter-spacing:.1px}.art-section-label p{margin:0;font-size:12px;opacity:.94}
.art-stage{width:100%;aspect-ratio:1448/1086;position:relative;overflow:hidden;background:#2d2f46;isolation:isolate}
.art-stage picture,.art-stage-image{display:block;width:100%;height:100%}.art-stage-image{object-fit:contain;object-position:center;image-rendering:auto}
.art-hotspot{position:absolute;z-index:1;background:transparent;border-radius:8px;color:transparent;cursor:pointer;touch-action:manipulation}
.art-hotspot:hover{outline:2px solid #fff8;box-shadow:inset 0 0 0 2px #fada75aa;background:#f8dc7e10}
.art-hotspot:focus-visible{outline:4px solid #ffcc2a;outline-offset:-3px;box-shadow:inset 0 0 0 2px #13213a,0 0 0 4px #151d36}
.art-actions{padding:12px 18px;display:flex;justify-content:flex-end;gap:8px;align-items:center;background:linear-gradient(90deg,#f9e5bf,#fff5e7);border-top:4px solid #88502e;flex-wrap:wrap}
.art-actions>div{flex:1;min-width:230px}.art-actions strong{display:block;font-size:17px;font-weight:950}.art-actions p{font-size:12px;color:#594538;margin:1px 0 0}.art-actions .button{font-size:13px;padding:9px 13px;min-height:42px;border:2px solid #232741;box-shadow:3px 3px 0 #42291f55}.art-action-primary{background:#b93254!important;color:white!important;border-color:#831d37!important}
.art-live{margin-top:14px;margin-bottom:26px;padding:23px clamp(12px,3.5vw,34px);border:3px solid #a46b3d;border-radius:14px;background:#fff9f0;box-shadow:6px 6px 0 #d7b67e}
.art-live-head .comic-kicker{font-size:11px;color:#ac3658}.art-live-head h2{font-size:clamp(22px,2.6vw,34px);margin:4px 0}.art-live-head p{font-size:13px;color:#4a4b57;margin:0 0 20px}
.art-real-books{display:grid;grid-template-columns:repeat(auto-fit,minmax(156px,200px));gap:19px}.art-real-books .book-entry{max-width:210px}.art-real-books .cover{max-height:290px}.art-real-books .book-entry .book{width:100%}
.art-real-books .book-entry{background:white;border:1px solid #d5b995;border-radius:10px;padding:10px;box-shadow:4px 4px 0 #baa17f}
.art-coming{padding:22px;background:linear-gradient(115deg,#f3e3c6,#f9f1e5);border:2px dashed #a27856;border-radius:12px}.art-coming strong{font-size:20px}.art-coming p{font-size:13px;margin:6px 0 0}
.art-live .updates{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.art-live .update{height:125px;min-height:0}.art-live .update img,.art-live .update picture{object-fit:cover;width:40%;height:100%;flex:0 0 40%;max-height:125px;overflow:hidden}.art-live .update picture img{width:100%;height:100%;object-fit:cover}.art-live .update div{flex:1;min-width:0;overflow-wrap:anywhere}
.art-site .modes-area{background:#fffdf8;border:3px solid #d7b17b;max-width:1448px;margin:13px auto 30px;padding:22px 18px;border-radius:12px}
.art-site .modes-inner{grid-template-columns:1fr 3fr 1.2fr;gap:12px}
.art-noscript{padding:25px;max-width:1160px;margin:auto}.art-noscript img{max-width:100%;height:auto;display:block}
.art-live .recommendations{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px}
@media(max-width:950px){.art-site .modes-inner{grid-template-columns:1fr}.top nav{flex-wrap:wrap}.top .search{min-width:110px}.art-welcome{padding:16px 12px 10px}.art-actions{padding:12px}}
@media(max-width:680px){.top{gap:7px;padding:9px 10px}.top nav{order:3;flex:0 0 100%;justify-content:space-around}.top nav a{padding:6px;font-size:11px}.top .search{margin-left:auto;width:125px;min-width:100px}.top .search input{font-size:11px;padding-left:9px}.top .logo{font-size:25px}.art-nav{display:grid;grid-template-columns:1fr 1fr;gap:7px}.art-nav a{padding:8px 9px;font-size:11px;min-height:46px}.art-section-label{padding:9px 11px}.art-section-label h2{font-size:19px}.art-section-label p{font-size:11px}.art-actions{gap:8px;justify-content:flex-start}.art-actions>div{flex:0 0 100%}.art-actions .button{flex:1;min-width:130px;font-size:12px}.art-live{margin:10px 9px 24px;padding:13px;border-width:2px}.art-real-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.art-real-books .book-entry{padding:7px}.art-live .updates{grid-template-columns:1fr}.art-site .modes-area{margin:12px 9px}.art-site .mode-cards{grid-template-columns:repeat(2,1fr)}.art-site .shout{font-size:22px}}
@media(prefers-reduced-motion:reduce){.art-site *{scroll-behavior:auto!important;transition:none!important}}

/* Fidelity first: keep the source scene at the very top, without editorial bars. */
.art-section-label{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.art-site>.art-section:first-child{margin-top:0}
.art-zoom{display:none;font-weight:900;text-align:center;background:#203254;color:#fff;padding:12px 16px;border-bottom:2px solid #dfb169}
@media(max-width:700px){.art-zoom{display:block}.art-stage .art-hotspot{outline:none}}

.static-main:has(>.art-section){max-width:none;padding:0}.static-main>.art-section{max-width:1448px;margin:0 auto}
/* Décors vivants : illustration, lumière et commandes reliées au contenu. */
.art-stage{--light-x:50%;--light-y:50%}
.art-stage::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at var(--light-x) var(--light-y),#ffe4a330,transparent 28%);opacity:0;transition:opacity .3s;z-index:2}
.art-stage.is-exploring::after{opacity:1}
.art-hotspot{transition:box-shadow .2s,background .2s}
.art-hotspot:hover,.art-hotspot:focus-visible{background:#ffdc6b22;box-shadow:0 0 28px #ffd56780,inset 0 0 16px #fff4c54d}
.art-hotspot::after{content:attr(aria-label);position:absolute;bottom:100%;left:0;min-width:150px;max-width:270px;padding:8px 12px;border:2px solid #d4ac61;border-radius:12px;background:#1b2743;color:#fff9e8;font-size:clamp(11px,1.2vw,15px);font-weight:750;opacity:0;transform:translateY(5px);pointer-events:none;transition:.2s}
.art-hotspot:hover::after,.art-hotspot:focus-visible::after{opacity:1;transform:translateY(-4px)}
.scene-object{position:absolute;z-index:3;padding:0;border:2px solid #ffe7ac;border-radius:50%;background:#17243ce0;color:#ffe4a2;width:clamp(36px,4vw,52px);height:clamp(36px,4vw,52px);box-shadow:0 0 0 5px #ffe9a31c,0 3px 12px #0008;display:grid;place-items:center;transition:transform .2s,box-shadow .2s}
.scene-object:hover,.scene-object:focus-visible{transform:scale(1.13);box-shadow:0 0 0 8px #ffe9a340,0 0 25px #ffe4a2;outline:3px solid #fff;outline-offset:3px}
.scene-object svg{width:26px;height:26px}
.scene-light{right:3%;top:61%}.scene-discover{left:23%;top:28%}
.art-stage[data-scene=librairie] .scene-light{left:26%;top:11%;right:auto}.art-stage[data-scene=librairie] .scene-discover{left:74%;top:62%}
.art-stage[data-scene=partout] .scene-light{left:6%;top:15%;right:auto}.art-stage[data-scene=partout] .scene-discover{left:73%;top:64%}
.art-stage[data-scene=atelier] .scene-light{left:28%;top:20%;right:auto}.art-stage[data-scene=atelier] .scene-discover{left:61%;top:66%}
.scene-halo{position:absolute;z-index:2;pointer-events:none;right:-7%;top:43%;width:31%;height:45%;border-radius:50%;background:radial-gradient(ellipse,#ffdb745c,transparent 66%);opacity:0;transition:opacity .5s}
.art-stage[data-scene=librairie] .scene-halo{left:9%;top:0}.art-stage[data-scene=partout] .scene-halo{left:-7%;top:-7%}.art-stage[data-scene=atelier] .scene-halo{left:14%;top:3%}
.art-stage.lantern-lit .scene-halo{opacity:1}.scene-object[aria-pressed=true]{background:#ffe098;color:#26334c}
.scene-guide{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:9px 16px;background:#202d49;color:#fff2d0;font-size:13px;border-top:2px solid #e4b65e}
.scene-guide p{margin:0;flex:1}.scene-guide button{padding:5px 12px;font-size:12px;background:#fff4d9;color:#28344e;min-height:36px}
.art-stage.show-places .art-hotspot{outline:2px dashed #ffe193;outline-offset:-2px;background:#ffdd681c}
.art-stage.show-places .art-hotspot::before{content:'↗';position:absolute;right:0;bottom:0;background:#203354;color:#ffe8a2;border-radius:50%;width:24px;height:24px;text-align:center}
.story-ribbon{display:flex;align-items:center;gap:24px;padding:20px 28px;max-width:1448px;margin:16px auto;background:linear-gradient(115deg,#18253e,#384764);border:3px solid #cfaa63;border-radius:20px;color:#fff5db;box-shadow:5px 6px 0 #cfaa6340;overflow:hidden}
.story-ribbon img{width:180px;height:180px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 8px 9px #0005);transition:transform .3s}
.story-ribbon:hover img,.story-ribbon:focus-within img{transform:translateY(-5px) rotate(-3deg)}
.story-ribbon h2{margin:0 0 6px;font-size:clamp(21px,3vw,32px);color:#ffe3a1}.story-ribbon p{margin:0 0 12px;max-width:650px}.story-ribbon .button{background:#ffe19a;color:#24314d;border:2px solid #fff3c8}
.art-live,.art-actions,.art-real-books .book-entry{position:relative}
.art-live::after{content:"";position:absolute;top:-14px;right:22px;width:44px;height:44px;background:url('assets/icons/plume-artiste.svg') center/contain no-repeat;pointer-events:none;transform:rotate(12deg)}
.art-real-books .book-entry{transition:transform .2s,box-shadow .2s}.art-real-books .book-entry:hover,.art-real-books .book-entry:focus-within{transform:translateY(-5px);box-shadow:6px 10px 0 #baa17f80}
#scene-window{padding:0;width:min(92vw,620px);max-height:85dvh;background:#fff8e9;border:3px solid #bc9250;border-radius:22px;color:#24314b;box-shadow:0 24px 80px #0007;overflow:auto}
#scene-window::backdrop{background:#101b34b8;backdrop-filter:blur(4px)}
#scene-window .scene-window-head{background:#24324f;padding:20px 64px 20px 24px;color:#ffe7ad}#scene-window h2{margin:0;font-size:25px}#scene-window .scene-window-body{padding:22px}#scene-window p{margin:0 0 18px}#scene-window .scene-window-links{display:flex;gap:10px;flex-wrap:wrap}#scene-window .close{position:absolute;right:12px;top:12px;color:#24314b;background:#fff3d7;width:40px;height:40px;padding:0}
#follow{border:3px solid #b79250;background:radial-gradient(circle at 100% 0,#fbe0a1,transparent 55%),#fff8e9;box-shadow:8px 8px 0 #19253c50}#follow::backdrop{background:#152139b0;backdrop-filter:blur(3px)}
.scene-spark{position:absolute;pointer-events:none;z-index:4;width:10px;height:10px;background:#ffe193;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);animation:scene-spark .65s ease-out forwards}
@keyframes scene-spark{to{transform:translate(var(--sx),var(--sy)) rotate(100deg);opacity:0}}
@media(max-width:680px){.story-ribbon{margin:12px 9px;padding:16px 12px;gap:8px}.story-ribbon img{width:100px;height:130px}.story-ribbon p{font-size:13px}.story-ribbon .button{font-size:12px;padding:9px}.scene-guide{font-size:12px;padding:8px 10px}.art-hotspot::after{display:none}}
@media(prefers-reduced-motion:reduce){.art-stage::after{display:none}.scene-spark{display:none}.scene-object,.story-ribbon img,.art-real-books .book-entry{transition:none!important;transform:none!important}#scene-window::backdrop{backdrop-filter:none}}

.scene-window-art{display:block;width:min(100%,300px);height:160px;object-fit:contain;margin:0 auto 18px}
/* Ambiances : les voiles sont au-dessus de la peinture, sous les commandes. */
.art-stage::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:transparent;transition:background .6s}
.art-stage[data-ambiance=soir]::before{background:linear-gradient(135deg,#30214a42,#18224360 55%,#bc6e2726)}
.art-stage[data-ambiance=reve]::before{background:radial-gradient(ellipse at 20% 30%,#80dbff40,transparent 48%),linear-gradient(120deg,#4b216b2e,#c3549933)}
.art-site[data-ambiance=soir]{background-color:#e5dacd}.art-site[data-ambiance=reve]{background-color:#ebe4f4}
.art-site{transition:background-color .6s}
.scene-illustrated-object{position:absolute;z-index:3;bottom:1%;right:1%;width:clamp(88px,15%,205px);height:clamp(76px,17%,190px);padding:0;border:0;border-radius:45%;background:transparent;filter:drop-shadow(0 7px 5px #15243c80);transition:transform .25s;display:grid;place-items:center}
.scene-illustrated-object img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.scene-illustrated-object span{position:absolute;bottom:2px;left:50%;transform:translateX(-50%);padding:3px 12px;border-radius:20px;color:#25324b;background:#ffedba;border:1px solid #ae7a36;font-size:12px;font-weight:800;white-space:nowrap}
.scene-illustrated-object:hover,.scene-illustrated-object:focus-visible{transform:translateY(-7px) rotate(-3deg);outline:3px dashed #ffe6a5;outline-offset:2px}
.art-stage[data-scene=bibliotheque] .scene-illustrated-object{right:21%}
.art-stage[data-scene=atelier] .scene-illustrated-object{right:5%;bottom:4%}
.scene-desk{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:18px 22px;background:linear-gradient(100deg,#fff2d7,#faf4e8);border-bottom:3px solid #b18348}
.scene-desk-copy{flex:1 1 240px}.scene-desk h3{margin:0 0 4px;font-size:21px;color:#2b3650}.scene-desk p{margin:0;font-size:13px;color:#605440}
.scene-desk-actions{display:flex;gap:8px;flex-wrap:wrap}.scene-desk .button{min-height:44px;font-size:13px;border:2px solid #c29b5c;box-shadow:2px 3px 0 #bb92523d}
.scene-desk .scene-pick{background:#263653;color:#ffebbe;border-color:#263653}
.scene-moods{border:0;border-left:1px solid #b78e55;margin:0;padding:0 0 0 16px;display:flex;gap:5px;flex-wrap:wrap}.scene-moods legend{font-size:12px;color:#66553d;margin-bottom:5px;padding:0;font-weight:750}.scene-moods button{font-size:12px;min-height:40px;padding:7px 9px;border:1px solid #aa8754;border-radius:20px;background:#fff8e9}.scene-moods button[aria-pressed=true]{background:#8a3d5c;color:white;border-color:#8a3d5c;box-shadow:0 0 0 2px #dab986}
#scene-window .scene-window-art{transition:filter .2s}#scene-window .scene-window-art.is-cover{height:230px;width:180px;object-fit:contain;filter:drop-shadow(4px 6px 4px #3334)}
.art-site.decor-reacting .art-live{border-color:#cf9c35;box-shadow:6px 6px 0 #d7b67e,0 0 20px #e0b44a26}
.art-actions .button:hover,.art-nav a:hover{box-shadow:0 0 0 3px #f4cf7a66,3px 3px 0 #42291f55}
.scene-desk button:focus-visible,.scene-desk a:focus-visible{outline:3px solid #865034;outline-offset:3px}
@media(max-width:700px){.scene-desk{padding:14px 12px;gap:12px}.scene-desk-copy{flex-basis:100%}.scene-desk-actions{width:100%}.scene-desk-actions>*{flex:1}.scene-moods{border:0;padding:0;width:100%}.scene-moods button{flex:1}.scene-illustrated-object{width:90px;height:85px}.scene-illustrated-object span{font-size:10px;padding:2px 8px}}
@media(prefers-reduced-motion:reduce){.art-stage::before,.art-site,.scene-illustrated-object{transition:none!important}.scene-illustrated-object:hover,.scene-illustrated-object:focus-visible{transform:none}}
/* Galerie illustrée : chaque image ouvre une action réelle du site. */
.universe-gallery{position:relative;isolation:isolate;max-width:1448px;margin:24px auto;padding:28px clamp(12px,3vw,34px);border:3px solid #ae8649;border-radius:24px;background:#f7ead1;box-shadow:6px 7px 0 #d3b780;overflow:hidden}
.universe-gallery::before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background-image:linear-gradient(100deg,#fff3dfed,#fff3dfce),var(--universe-art);background-position:center,right center;background-size:auto,560px;background-repeat:no-repeat;transition:opacity .3s}
.universe-head{display:flex;align-items:center;gap:20px;margin-bottom:22px}.universe-kicker{color:#994263;font-size:11px;font-weight:900;letter-spacing:1.3px}.universe-head h2{margin:6px 0;font-size:clamp(24px,3.4vw,40px);line-height:1.15;color:#24304d}.universe-head p{margin:0;font-size:14px;max-width:650px;color:#5a503f}
.universe-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.universe-tile{--card-x:50%;--card-y:50%;position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:14px 12px 18px;background:radial-gradient(circle at var(--card-x) var(--card-y),#ffedbda3,transparent 70%),#fffaf0;border:2px solid #ba985f;border-radius:20px;color:#27334f;box-shadow:3px 5px 0 #b3976d;transition:transform .2s,box-shadow .2s;overflow:hidden}
.universe-tile img{display:block;width:100%;height:170px;object-fit:contain;filter:drop-shadow(0 7px 5px #18233e25);transition:transform .25s;pointer-events:none}.universe-tile strong{font-size:17px;text-align:center;line-height:1.25}.universe-tile>span{font-size:12px;color:#8b3657;text-align:center;font-weight:800}.universe-tile:hover,.universe-tile:focus-visible{transform:translateY(-5px);box-shadow:4px 9px 0 #b3976d;outline:3px solid #263859;outline-offset:3px}.universe-tile:hover img,.universe-tile:focus-visible img{transform:rotate(-3deg) scale(1.045)}.universe-tile[aria-pressed=true]{border-color:#8c3c5b;background-color:#ffefc4;box-shadow:0 0 0 3px #8c3c5b,3px 5px 0 #b3976d}
.universe-selection{margin:20px 0 0;font-size:13px;color:#695137;min-height:20px}
.art-site[data-universe] .art-live{background-image:linear-gradient(105deg,#fff9f0 55%,#fff9f0d9),var(--universe-art);background-size:auto,260px;background-position:center,right center;background-repeat:no-repeat}
.universe-panel-ornament{float:right;width:95px;height:95px;object-fit:contain;margin:0 0 10px 14px;filter:drop-shadow(0 5px 3px #25304720);pointer-events:none}.art-live-head{min-height:92px}
.universe-mode-art{display:block;width:100%;height:100px;object-fit:contain;margin-bottom:10px}.universe-follow-art{display:block;width:160px;height:125px;object-fit:contain;margin:0 auto 10px}
#universe-window{padding:0;width:min(94vw,750px);max-height:88dvh;border:3px solid #bf9555;border-radius:24px;background:#fff7e8;color:#26324d;overflow:auto;box-shadow:0 24px 80px #0008}
#universe-window::backdrop{background:#17223bc9;backdrop-filter:blur(5px)}.universe-close{position:absolute;z-index:2;top:12px;right:12px;width:44px;height:44px;padding:0;display:grid;place-items:center;background:#fff5dc;border:2px solid #8b6535;color:#25324d;font-size:26px;border-radius:50%}
.universe-window-art{display:grid;place-items:center;background:radial-gradient(ellipse,#ffe7ad,#e1c89b);padding:15px 55px 0;border-bottom:3px solid #b08d52}.universe-window-art img{display:block;max-width:100%;width:420px;height:260px;object-fit:contain;filter:drop-shadow(0 9px 8px #27304730)}
.universe-window-copy{padding:24px clamp(16px,4vw,32px)}.universe-window-copy h2{font-size:clamp(24px,4vw,34px);margin:6px 0 10px}.universe-window-copy>p{font-size:15px;margin:0 0 20px}.universe-window-actions{display:flex;gap:10px;flex-wrap:wrap}.universe-window-actions .button{min-height:44px;font-size:13px;border:2px solid #b89454}.universe-window-actions .primary{background:#293958;color:#fff0c9}.universe-window-copy .universe-status{font-size:13px;color:#725831;margin:15px 0 0}
@media(max-width:950px){.universe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.universe-tile img{height:180px}}
@media(max-width:680px){.universe-gallery{margin:20px 9px;padding:20px 12px;border-radius:17px}.universe-grid{gap:11px}.universe-tile{padding:9px 7px 14px;gap:6px;border-radius:14px}.universe-tile img{height:115px}.universe-tile strong{font-size:14px}.universe-tile>span{font-size:11px}.universe-head p{font-size:13px}.universe-panel-ornament{width:68px;height:68px}.universe-window-art img{height:180px}.universe-window-actions>*{flex:1 1 100%}.universe-window-art{padding:14px 35px 0}}
@media(prefers-reduced-motion:reduce){.universe-tile,.universe-tile img{transition:none!important;transform:none!important}#universe-window::backdrop{backdrop-filter:none}}
.universe-book-action{display:flex;align-items:center;justify-content:center;gap:5px;min-height:50px;margin-top:9px;border-top:1px solid #d6b87c;background:linear-gradient(100deg,#fff4d8,#f3e2be);border-radius:8px;color:#2d3650;font-weight:800;font-size:11px}.universe-book-action img{width:45px;height:43px;object-fit:contain;transition:transform .2s}.universe-book-action:hover img,.universe-book-action:focus-visible img{transform:rotate(-7deg)}.universe-book-action:focus-visible{outline:3px solid #283a5c;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.universe-book-action img{transition:none!important;transform:none!important}}
.universe-genre{padding:0;border:0;border-radius:5px;background:transparent;min-height:0;min-width:0;z-index:2}.universe-genre:focus-visible{outline:3px solid #fff1a3;outline-offset:-2px}
@media(max-width:680px){.universe-genre{display:none}}
/* Nouvelle identité : la librairie enchantée remplace les anciennes maquettes. */
:root{--red:#984863;--accent:#984863;--cream:#fbf3e4;--navy:#25334e;--yellow:#e6c47c}
body{background:#fbf3e4;color:#29354d}.top{border-bottom-color:#c8a160;background:#23314b;box-shadow:0 3px 18px #1b263c30}.logo{font-family:Georgia,serif;letter-spacing:-1.2px}.top nav a.active{background:#8e415b;color:#fff2d9}
.art-site h1,.art-site h2,.art-site h3,.scene-window-head h2,#universe-window h2{font-family:Georgia,'Times New Roman',serif;font-weight:700;letter-spacing:-.4px}
.enchanted-stage{aspect-ratio:3/2;background:#28344a}.enchanted-stage picture,.enchanted-stage .art-stage-image{width:100%;height:100%;object-fit:cover}.enchanted-stage picture{position:absolute;inset:0}
.enchanted-story{position:absolute;z-index:3;left:4%;bottom:7%;width:min(540px,56%);padding:clamp(18px,3vw,32px);background:linear-gradient(135deg,#fff8e9f5,#f7e8cbdc);border:1px solid #ffe3a5;border-radius:22px;box-shadow:0 12px 40px #17233840;backdrop-filter:blur(7px);color:#29364f}
.enchanted-story>span{display:block;font-size:clamp(9px,1vw,12px);font-weight:850;letter-spacing:1.5px;color:#8f465b}.enchanted-story h2{font-size:clamp(27px,4.3vw,58px);line-height:1.05;margin:10px 0 13px}.enchanted-story p{font-size:clamp(12px,1.3vw,16px);line-height:1.5;max-width:400px;margin:0 0 20px}.enchanted-story .button{background:#293b59;border:1px solid #24314b;color:#ffedc3;min-height:46px;padding:11px 18px;font-size:14px;box-shadow:2px 4px 0 #d6b67f}.enchanted-story .button>span{padding-left:12px}
.art-stage .scene-discover{left:auto!important;right:3%;top:28%!important}.art-stage .scene-light{left:auto!important;right:3%;top:15%!important}.art-stage .scene-halo{left:auto!important;right:-7%;top:0!important}.art-stage .scene-illustrated-object{right:3%!important;bottom:3%!important}
.art-actions{background:#f3e6ce;border-top:3px solid #a77b46}.art-actions .art-action-primary{background:#8c415c!important;border-color:#79314b!important}.art-live{border-color:#ba955c;box-shadow:5px 6px 0 #e2ca9e;border-radius:20px}.art-live-head h2{color:#2e3c56}.art-nav a{border-radius:24px;background:#293b59;border-color:#283653;box-shadow:2px 3px 0 #d2af72}.art-nav a:nth-child(2){background:#8d475e}.art-nav a:nth-child(3){background:#416c6c}.art-nav a:nth-child(4){background:#79614d}
.enchanted-genres{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;padding:15px;background:#faf1df}.enchanted-genres button{border:1px solid #b49663;color:#35415a;border-radius:22px;padding:9px 16px;min-height:44px;background:#fffaf0;font-size:13px}.enchanted-genres button:hover,.enchanted-genres button:focus-visible{background:#2e415e;color:#fff0cb}
.story-ribbon{border-radius:24px;background:linear-gradient(110deg,#263750,#3a4b64)}.universe-head h2{font-family:Georgia,serif}.art-real-books .book-entry{border-radius:14px;background:#fffcf4}.scene-guide{background:#31435d}.scene-desk{background:linear-gradient(110deg,#f9efd9,#fff9ed)}
@media(max-width:700px){.enchanted-stage{aspect-ratio:auto;height:610px}.enchanted-stage .art-stage-image{object-position:56% center}.enchanted-story{left:12px;right:12px;bottom:18px;width:auto;max-width:calc(100% - 24px);padding:20px;backdrop-filter:blur(4px)}.enchanted-story h2{font-size:37px;max-width:320px}.enchanted-story p{font-size:14px;margin-bottom:15px}.art-stage .scene-illustrated-object{width:90px;height:90px;top:25%;bottom:auto!important}.art-stage .scene-light{top:4%!important;right:16px}.art-stage .scene-discover{top:13%!important;right:16px}.enchanted-genres{gap:6px;padding:12px 9px}.enchanted-genres button{padding:8px 11px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.enchanted-story{backdrop-filter:none}}
.art-stage.show-places .scene-illustrated-object,.art-stage.show-places .scene-object,.art-stage.show-places .enchanted-story .button{outline:3px dashed #ffdea2;outline-offset:4px}

.privacy-panel::backdrop{background:#17223bb8;backdrop-filter:blur(3px)}
@media(prefers-reduced-motion:reduce){.privacy-panel::backdrop{backdrop-filter:none}}

.privacy-panel{margin:0;right:auto;bottom:auto;border:2px solid #b79250}

/* Keep the publication control reachable on narrow screens. */
@media (max-width: 700px) {
 .top .search { flex: 1 0 100%; max-width: none; order: 2; }
 .top .search input { font-size: 16px; }
 .top #bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
 }
 .reader-bar > select { max-width: 100%; }
 .reader-bar > a, .reader-bar > select, .reader-bar > button,
 .reader-controls > button { min-height: 44px; }
 .reader-bar > button { min-width: 44px; }
}

/* Long album titles may wrap without pushing controls out of the reader. */
.reader-bar > strong {
 min-width: 0;
 max-width: 100%;
 overflow-wrap: anywhere;
}

/* Leave room to tap or return to the controls after turning a page. */
.reader { scroll-margin-top: 1rem; }
