/* Les romans : ambiance cinematographique, navigation mobile, mouvement respectueux. */
.book-body{background-size:190% 190%;animation:book-gradient-journey 30s ease-in-out infinite alternate;overflow-x:clip}
.book-body.theme-requiem{--immersive-light:#e1b7a2;--immersive-dark:#291018;--immersive-halo:rgba(191,99,121,.23)}
.book-body.theme-interpolis{--immersive-light:#96e9f1;--immersive-dark:#071c33;--immersive-halo:rgba(34,205,235,.23)}
@keyframes book-gradient-journey{
 from{background-position:0% 8%,95% 75%,12% 52%}
 to{background-position:84% 38%,12% 20%,92% 65%}
}
.book-body .book-ambient span{will-change:transform;animation:book-light-drift 22s ease-in-out infinite alternate}
.book-body .book-ambient span:nth-child(2){animation-duration:30s;animation-direction:alternate-reverse}
.book-body .book-ambient span:nth-child(3){animation-duration:26s}
@keyframes book-light-drift{
 0%{transform:translate3d(-2%,1%,0) rotate(-8deg) scale(.93)}
 100%{transform:translate3d(7%,-4%,0) rotate(7deg) scale(1.13)}
}
.book-body .book-hero::after{transition:opacity .8s ease,filter 1s ease;filter:saturate(.96)}
.book-body .book-cover-halo{transition:transform .8s cubic-bezier(.2,.7,.2,1),box-shadow .8s ease}
.book-body .book-cover-halo:hover{transform:translateY(-7px)}
.book-body .book-primary-actions .book-discover{border-radius:999px;min-height:48px}
.book-immersive-control{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0 0}
.book-immersive-toggle{
 display:inline-flex;align-items:center;gap:12px;cursor:pointer;
 min-height:46px;max-width:100%;border-radius:100px;
 padding:10px 17px;border:1px solid var(--book-line);
 background:rgba(10,13,21,.62);color:#f1e8ec;
 font:600 .75rem/1.35 "Inter",system-ui,sans-serif;
 letter-spacing:.035em;transition:background .2s,border-color .2s,transform .2s;
 -webkit-tap-highlight-color:transparent;
}
.book-immersive-toggle svg{flex:none;width:19px;height:19px;color:var(--book-accent)}
.book-immersive-toggle:hover{border-color:var(--book-accent);background:var(--book-smoke);transform:translateY(-1px)}
.book-immersive-toggle:focus-visible{outline:2px solid var(--book-accent);outline-offset:3px}
.book-immersive-note{font-size:.7rem;color:#c3b9c1;max-width:23rem;line-height:1.6}
.theme-interpolis .book-immersive-toggle{background:rgba(3,19,33,.72);border-color:rgba(128,214,232,.43)}
.theme-requiem .book-immersive-toggle{background:rgba(25,13,24,.7);border-color:rgba(211,180,184,.35)}
.book-body.is-immersive .book-hero::after{opacity:1!important;filter:saturate(1.15) contrast(1.1)}
.book-body.is-immersive .book-ambient{opacity:.96}
.book-body.is-immersive .book-cover-halo{transform:translateY(-8px);box-shadow:0 35px 100px rgba(0,0,0,.65),0 0 100px var(--immersive-halo)}
.book-body.is-immersive .book-hero{box-shadow:inset 0 -70px 90px -70px var(--immersive-dark)}
.book-body.is-immersive .book-immersive-toggle{border-color:var(--immersive-light);background:var(--immersive-dark);color:#fff}
.book-body.is-immersive .book-topbar{background:rgba(7,10,17,.83);backdrop-filter:blur(18px)}
.book-body.is-immersive.theme-requiem .book-reading-shell{background:radial-gradient(ellipse 110% 58% at 54% 5%,rgba(87,40,66,.13),transparent 80%)}
.book-body.is-immersive.theme-interpolis .book-reading-shell{background:radial-gradient(ellipse 115% 67% at 53% 4%,rgba(26,96,129,.16),transparent 82%)}
.book-immersive-instructions{margin:0;font-size:.69rem;line-height:1.6;color:#bfb7c1}
.book-immersive-toggle[aria-pressed="true"] .immersive-icon{transform:rotate(15deg);transition:transform .4s ease}
/* Reveals ne s'activent que si IntersectionObserver et une préférence compatible sont disponibles. */
.js-book-motion .book-editorial,
.js-book-motion .book-character,
.js-book-motion .book-motif,
.js-book-motion .book-next,
.js-book-motion .book-world-strap,
.js-book-motion .book-cover-display{
 opacity:0;transform:translate3d(0,16px,0);
 transition:opacity .75s ease,transform .75s cubic-bezier(.18,.65,.23,1);
}
.js-book-motion .book-character:nth-child(even),.js-book-motion .book-motif:nth-child(even){transition-delay:.08s}
.js-book-motion .book-editorial.is-revealed,
.js-book-motion .book-character.is-revealed,
.js-book-motion .book-motif.is-revealed,
.js-book-motion .book-next.is-revealed,
.js-book-motion .book-world-strap.is-revealed,
.js-book-motion .book-cover-display.is-revealed{opacity:1;transform:none}
.book-body .book-editorial{scroll-margin-top:100px}
.book-body .book-reading-shell{position:relative;isolation:isolate}
.book-body .book-anchor-nav{position:relative;z-index:5}
/* Affichage 1 colonne, liens tactiles, tailles qui respectent la largeur de l'iPhone. */
@media(max-width:760px){
 .book-body .subpage-header.book-topbar{
  padding:12px 17px;min-height:74px;gap:10px;
  padding-left:max(17px,env(safe-area-inset-left));padding-right:max(17px,env(safe-area-inset-right));
 }
 .book-body .book-topbar .brand{min-width:0;font-size:clamp(.9rem,4vw,1.05rem);gap:9px}
 .book-body .book-topbar .brand>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .book-body .book-topnav{flex:0 0 auto}
 .book-body .book-topnav a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
 .book-body .book-hero{gap:28px;padding:clamp(37px,8vw,64px) 19px 59px}
 .book-body .book-hero-content{min-width:0}
 .book-body .book-crumb{margin-bottom:38px}
 .book-body .book-hero h1{
   font-size:clamp(4.5rem,15.7vw,7rem);
   line-height:.82;overflow-wrap:anywhere
 }
 .book-body.theme-interpolis .book-hero h1{font-size:clamp(4rem,14.4vw,6rem)}
 .book-body .book-tagline{max-width:95%;font-size:clamp(1.85rem,7vw,2.7rem)}
 .book-body .book-intro{font-size:.98rem;line-height:1.75}
 .book-body .book-primary-actions{margin-top:25px;gap:11px}
 .book-body .book-primary-actions .book-discover{min-height:48px;font-size:.75rem}
 .book-body .book-hero-data{margin-top:31px;gap:6px 10px}
 .book-body .book-hero-data span{line-height:1.5;max-width:100%;overflow-wrap:break-word}
 .book-body .book-cover-display{width:min(87vw,365px);margin:4px auto 0}
 .book-body .book-cover-halo{padding:7px}
 .book-body .book-cover-halo::after{inset:10px}
 .book-body .book-cover-display figcaption{font-size:.65rem;letter-spacing:.12em}
 .book-body .book-reading-shell{padding:0 19px 75px}
 .book-body .book-anchor-nav{
  position:relative;display:flex;flex-wrap:nowrap;justify-content:flex-start;
  overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;
  padding:22px 1px 21px;margin:0 -19px 64px;
  padding-left:19px;padding-right:19px;gap:9px;
  -webkit-overflow-scrolling:touch;
 }
 .book-body .book-anchor-nav::-webkit-scrollbar{display:none}
 .book-body .book-anchor-nav a{
  scroll-snap-align:start;white-space:nowrap;flex:0 0 auto;
  font-size:.74rem;padding:12px 15px;min-height:44px;
  display:inline-flex;align-items:center;
 }
 .book-body .book-editorial{margin-bottom:50px;padding-bottom:42px;scroll-margin-top:80px}
 .book-body .book-editorial h2{font-size:clamp(3.1rem,12vw,5.4rem);line-height:.95;margin-bottom:26px}
 .book-body .book-editorial p{font-size:.98rem;line-height:1.85}
 .book-body .book-character,.book-body .book-motif{padding:21px;gap:17px;min-height:auto}
 .book-body .book-character h3{font-size:1.85rem}
 .book-body .book-motif h3{font-size:1.85rem}
 .book-body .book-technical>div{grid-template-columns:minmax(100px,.75fr) minmax(0,1.25fr);gap:11px}
 .book-body .book-technical dd{overflow-wrap:anywhere}
 .book-body .book-milestone{padding:23px 18px;gap:13px}
 .book-body .book-order{padding:23px 19px;gap:18px}
 .book-body .book-next{gap:12px;grid-template-columns:minmax(0,1fr) 105px}
 .book-body .book-next h2{font-size:clamp(3rem,10.5vw,4.3rem)}
 .book-body .book-hero::before{background:linear-gradient(180deg,rgba(5,7,14,.75),rgba(5,7,14,.83) 68%,rgba(5,7,14,.95))}
 .book-body.theme-interpolis .book-hero::before{background:linear-gradient(180deg,rgba(4,9,19,.74),rgba(4,9,19,.84) 67%,rgba(4,9,19,.96))}
 .book-body .book-immersive-control{gap:10px}
 .book-body .book-immersive-note{max-width:100%;font-size:.71rem}
}
@media(max-width:380px){
 .book-body .subpage-header .brand>span:last-child{max-width:130px}
 .book-body .book-cover-display{width:min(89vw,328px)}
 .book-body .book-hero h1{font-size:clamp(4.25rem,15vw,5.5rem)}
 .book-body .book-primary-actions .amazon-pill{max-width:100%;gap:8px}
 .book-body .book-primary-actions .amazon-pill-label{font-size:.68rem}
 .book-body .book-technical>div{grid-template-columns:1fr;gap:4px}
}
@media(prefers-reduced-motion:reduce){
 .book-body,.book-body .book-ambient span{animation:none!important}
 .book-body .book-cover-halo,.book-body .book-hero::after,
 .book-body .book-immersive-toggle,.book-body .book-immersive-toggle .immersive-icon{transition:none!important}
 .js-book-motion .book-editorial,.js-book-motion .book-character,
 .js-book-motion .book-motif,.js-book-motion .book-next,
 .js-book-motion .book-world-strap,.js-book-motion .book-cover-display{opacity:1;transform:none;transition:none!important}
}
@media(prefers-reduced-data:reduce){.book-body,.book-body .book-ambient span{animation:none!important}}

/* Requiem : couverture réellement plein cadre, sans passe-partout autour de l'image. */
.book-body.theme-requiem .book-cover-halo{
 padding:0;
 border:0;
 background:transparent;
 overflow:hidden;
}
.book-body.theme-requiem .book-cover-halo::before,
.book-body.theme-requiem .book-cover-halo::after{
 content:none;
 display:none;
}
.book-body.theme-requiem .book-cover-halo img{
 display:block;
 width:100%;
 height:auto;
 object-fit:contain;
 border:0;
 background:#090c0e;
}
@media(max-width:760px){
 .book-body.theme-requiem .book-cover-halo{padding:0}
}
