/*
 * Dreamolab — Accueil : livre feuilletable (shortcode [dreamolab_livre])
 * Version : 1.0.3 — 2026-09-24 — paywall : .cl-n 30 → 26 px, interligne 1.15 (« Une quarantaine de pages » sur deux lignes, page 185 px) — lecteur : z-index 100000 (au-dessus du header sticky), racine .is-reading sous <body>.
 * Origine : design « Vedic Jyotisa Astro (Remix Feuilles) », CSS du composant
 * carrousel/livre extrait et rescopé sous .dml-livre (au lieu de #astrayana).
 * Les tokens --ink/--parch/--gold… sont mappés sur les tokens du thème enfant
 * (--dml-*) pour que le composant suive la charte sans dupliquer les couleurs.
 * Chargé uniquement sur les pages où le shortcode est rendu.
 */
.dml-livre {
  --ink: var(--dml-ink, #1a1d3a);
  --ink-2: var(--dml-ink-2, #262a52);
  --ink-deep: #0e1028;
  --parch: var(--dml-parch, #f4ead5);
  --parch-2: var(--dml-parch-2, #ede0c2);
  --parch-3: var(--dml-parch-3, #e3d2ad);
  --gold: var(--dml-gold, #c8a25a);
  --gold-deep: var(--dml-gold-deep, #a07a3a);
  --gold-bright: #dcb96e;
  --char: var(--dml-char, #2a2520);
  --char-soft: var(--dml-char-soft, #4a4238);
  --rule: var(--dml-rule, rgba(42, 37, 32, 0.22));
  --rule-soft: var(--dml-rule-soft, rgba(42, 37, 32, 0.12));
  position: relative;
  font-family: var(--dml-font-body, 'Inter', system-ui, sans-serif);
  color: var(--char);
  line-height: 1.5;
}
.dml-livre *, .dml-livre *::before, .dml-livre *::after { box-sizing: border-box; }
.dml-livre h4 { font-family: var(--dml-font-serif, 'Cormorant Garamond', serif); font-weight: 500; margin: 0; }
.dml-livre p { margin: 0; }
.dml-livre img { max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.dml-livre button { font: inherit; line-height: 1; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; color: inherit; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 0; }
/* Sur fond sombre (.dml-dark) : le texte de la visite guidée passe en parchemin */
.dml-dark .dml-livre .tour h4 { color: var(--parch); }
.dml-dark .dml-livre .tour p { color: rgba(244,234,213,0.72); }
.dml-dark .dml-livre .car-meta { color: rgba(244,234,213,0.55); }
.dml-dark .dml-livre .car-btn { border-color: rgba(200,162,90,0.45); }
.dml-dark .dml-livre .invite-cta { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: var(--ink-deep); border-color: transparent; box-shadow: 0 6px 20px rgba(160,122,58,0.35); }
.dml-dark .dml-livre .invite-cta svg { color: var(--ink-deep); }
.dml-dark .dml-livre .invite-cta:hover { box-shadow: 0 10px 28px rgba(160,122,58,0.5); }

.dml-livre .carousel { position: relative; min-width: 0; }
.dml-livre .book {
--pw: 270px;
position: relative; width: calc(var(--pw) * 2);
aspect-ratio: 1588/1123; margin: 0 auto;
perspective: 2200px; perspective-origin: 50% 42%;
transform-style: preserve-3d;
--thick: 38px;
transition: transform 1.05s cubic-bezier(.66,.06,.35,1);
}
.dml-livre .book.closed { transform: translateX(calc(var(--pw) / -2)); }
.dml-livre .book.ended { transform: translateX(calc(var(--pw) / 2)); }
.dml-livre .book-shadow {
position: absolute; z-index: 0; left: 4%; right: 4%; bottom: -28px; height: 43px;
opacity: var(--shadow-o, 1);
background: radial-gradient(50% 50% at 50% 50%, rgba(26,29,58,0.30), rgba(26,29,58,0) 72%);
filter: blur(5px); pointer-events: none;
transition: left 1.05s cubic-bezier(.66,.06,.35,1), right 1.05s cubic-bezier(.66,.06,.35,1);
}
.dml-livre .book.closed .book-shadow { left: 50%; right: 2%; }
.dml-livre .book.ended .book-shadow { left: 2%; right: 50%; }
.dml-livre .book-spine {
position: absolute; top: 0; bottom: 0; left: 50%; width: 26px; margin-left: -13px;
z-index: 40; pointer-events: none; opacity: 1;
transition: opacity .6s ease;
background: linear-gradient(90deg, rgba(26,29,58,0), rgba(26,29,58,0.16) 42%, rgba(26,29,58,0.22) 50%, rgba(26,29,58,0.16) 58%, rgba(26,29,58,0));
}
.dml-livre .book.closed .book-spine, .dml-livre .book.ended .book-spine { opacity: 0; }
.dml-livre .leaf {
position: absolute; top: 0; left: 50%; width: var(--pw); height: 100%;
transform-origin: left center; transform-style: preserve-3d;
transition: transform 1.05s cubic-bezier(.66,.06,.35,1);
}
.dml-livre .leaf.turned { transform: rotateY(-180deg); }
.dml-livre .face {
position: absolute; inset: 0;
transform-style: preserve-3d;
backface-visibility: hidden; -webkit-backface-visibility: hidden;
background: #fff; border: 1px solid var(--rule);
box-shadow: 0 16px 36px rgba(26,29,58,0.20), 0 2px 6px rgba(26,29,58,0.10);
}
.dml-livre .face.back { transform: rotateY(180deg); }
.dml-livre .face.exposed { cursor: pointer; }
.dml-livre .face img { width: 100%; display: block; aspect-ratio: 794/1123; object-fit: cover; object-position: top; }
.dml-livre .face::after {
content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
opacity: 1; transition: opacity .6s ease;
background: linear-gradient(90deg, rgba(26,29,58,0.16), transparent 16%);
}
.dml-livre .face.back::after { background: linear-gradient(-90deg, rgba(26,29,58,0.16), transparent 16%); }
.dml-livre .book.closed .face::after { opacity: 0; }
.dml-livre .carousel.reader .book { cursor: grab; touch-action: pan-y; }
.dml-livre .carousel.reader .book.dragging { cursor: grabbing; }
.dml-livre .book.dragging .leaf.held { transition: none; }
.dml-livre .book.dragging .leaf.held .curl { animation: none; opacity: 1; }
.dml-livre .book.dragging .leaf.held .face > img { opacity: 0; }
.dml-livre .book.dragging .leaf.held .face::before { animation: none; }
.dml-livre .cast {
position: absolute; top: 0; bottom: 0; left: 50%; width: var(--pw);
z-index: 12; pointer-events: none; opacity: 0;
transform-origin: left center;
background: linear-gradient(90deg, rgba(14,11,22,0.42), rgba(14,11,22,0.10) 62%, rgba(14,11,22,0) 100%);
}
.dml-livre .cast.left { left: calc(50% - var(--pw)); transform: scaleX(-1); transform-origin: center; }
@property --ay-bow { syntax: "<number>"; initial-value: 0; inherits: true; }
.dml-livre .curl {
position: absolute; inset: 0; z-index: 5;
transform-style: preserve-3d; pointer-events: none;
opacity: 0; --ay-bow: 0;
display: none;
}
.dml-livre .leaf.turning .curl, .dml-livre .leaf.held .curl { display: block; }
.dml-livre .curl i {
position: absolute; top: 0; height: 100%; overflow: hidden;
backface-visibility: hidden; -webkit-backface-visibility: hidden;
background-repeat: no-repeat; background-size: 100% auto;
background-color: var(--parch, #f3ecdc);
transform-origin: 0 50%;
transform:
translateZ(calc(var(--ay-bow) * var(--zk) * 1px))
rotateY(calc(var(--ay-bow) * var(--ak) * 1deg));
box-shadow: inset 0 0 0 100px rgba(26,29,58, calc(var(--ay-bow) * var(--shd)));
outline: 1px solid transparent; will-change: transform;
}
.dml-livre .face.blur-1 .curl i { filter: blur(1.6px); }
.dml-livre .face.blur-2 .curl i { filter: blur(5px); }
.dml-livre .face.blur-3 .curl i { filter: blur(8px); }
.dml-livre .leaf.turning .curl { opacity: 1; animation: ay-bow 1.05s cubic-bezier(.66,.06,.35,1); }
.dml-livre .leaf.turning .face > img { opacity: 0; }
@keyframes ay-bow {0%, 100% { --ay-bow: 0; }42% { --ay-bow: 1; } }
@keyframes ay-castSweep {0%, 100% { opacity: 0; }42% { opacity: 0.85; } }
.dml-livre .face::before {
content: ""; position: absolute; inset: 0; z-index: 6;
pointer-events: none; opacity: 0; overflow: hidden;
background: linear-gradient(102deg,
rgba(26,29,58,0) 12%, rgba(255,255,255,0.42) 34%,
rgba(255,255,255,0.10) 50%, rgba(26,29,58,0.26) 68%, rgba(26,29,58,0) 90%);
}
.dml-livre .leaf.turning .face::before { animation: ay-curlSheen 1.05s ease-in-out; }
@keyframes ay-curlSheen {0% { opacity: 0; transform: translateX(-34%); }45% { opacity: 1; }100% { opacity: 0; transform: translateX(34%); }
}
@media (prefers-reduced-motion: reduce) {
.dml-livre .leaf.turning .curl, .dml-livre .leaf.turning .face::before { animation: none; opacity: 0; }
.dml-livre .leaf.turning .face > img { opacity: 1; }
}
.dml-livre .face.blur-1 img { filter: blur(1.6px); }
.dml-livre .face.blur-2 img { filter: blur(5px); }
.dml-livre .face.blur-3 img { filter: blur(8px); }
.dml-livre .face.locked > .veil {
position: absolute; inset: 0; z-index: 2;
background: linear-gradient(180deg, rgba(244,238,225,0.18), rgba(244,238,225,0.58));
}
.dml-livre .face.paywall {
background: var(--parch); display: grid; place-content: center; justify-items: center;
gap: 10px; text-align: center; padding: 26px;
}
.dml-livre .face.paywall .cl-n { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 26px; line-height: 1.15; color: var(--ink); }
.dml-livre .face.paywall .cl-t {
font-family: 'Cormorant SC', serif; font-size: 9px; letter-spacing: 0.24em;
text-transform: uppercase; color: var(--gold-deep);
}
.dml-livre .face.paywall .cl-b {
margin-top: 6px; font-family: 'Inter', sans-serif; font-size: 11px;
color: var(--gold-deep); border: 1px solid var(--gold); border-radius: 2px; padding: 7px 14px;
}
.dml-livre .zoomer {
position: absolute; z-index: 6; top: 9px; right: 9px; width: 26px; height: 26px;
border-radius: 50%; border: 1px solid rgba(200,162,90,0.55);
background: rgba(244,238,225,0.92); color: var(--gold-deep);
display: grid; place-items: center; cursor: zoom-in; padding: 0;
opacity: 0; transform: scale(.7);
transition: opacity .4s ease .2s, transform .4s ease .2s, background .2s ease;
}
.dml-livre .face.exposed .zoomer { opacity: 1; transform: scale(1); }
.dml-livre .zoomer:hover { background: var(--gold); color: #fff; }
.dml-livre .hs {
position: absolute; z-index: 5; width: 22px; height: 22px; margin: -11px 0 0 -11px;
border-radius: 50%; border: 1px solid var(--gold);
background: rgba(244,238,225,0.94); color: var(--gold-deep);
font-family: 'Cormorant SC', serif; font-size: 11px;
display: grid; place-items: center; cursor: help;
opacity: 0; transform: scale(.6); pointer-events: none;
transition: opacity .45s ease .35s, transform .45s ease .35s;
box-shadow: 0 2px 10px rgba(26,29,58,0.25);
}
.dml-livre .face.exposed .hs { opacity: 1; transform: scale(1); pointer-events: auto; }
.dml-livre .hs::after {
content: attr(data-label); position: absolute; left: 50%; bottom: 145%;
transform: translateX(-50%); white-space: nowrap;
background: var(--ink); color: var(--parch);
font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: .04em;
padding: 5px 9px; border-radius: 2px; opacity: 0;
transition: opacity .25s ease; pointer-events: none;
}
.dml-livre .hs:hover { background: var(--gold); color: #fff; }
.dml-livre .hs:hover::after { opacity: 1; }
.dml-livre .hs .ring {
position: absolute; inset: -5px; border-radius: 50%;
border: 1px solid rgba(200,162,90,0.5); animation: ay-hsPulse 2.4s ease-out infinite;
}
@keyframes ay-hsPulse {0% {transform:scale(.8);opacity:.9}100% {transform:scale(1.5);opacity:0} }
.dml-livre .tour {
display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule-soft);
animation: ay-tourIn .5s ease;
}
@keyframes ay-tourIn {from { opacity: 0; transform: translateY(6px); }to { opacity: 1; transform: none; } }
.dml-livre .tour .t-n {
font-family: 'Cormorant Garamond', serif; font-style: italic;
font-size: 34px; line-height: .9; color: var(--gold-deep);
}
.dml-livre .tour h4 { font-size: 17px; color: var(--ink); margin: 0 0 4px; }
.dml-livre .tour p { font-size: 13.5px; color: var(--char-soft); margin: 0; line-height: 1.6; }
.dml-livre .car-nav { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.dml-livre .car-btn {
width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
border: 1px solid var(--rule); background: transparent; cursor: pointer;
display: grid; place-items: center; color: var(--gold-deep);
transition: background .25s ease, border-color .25s ease, opacity .25s ease;
}
.dml-livre .car-btn:hover:not(:disabled) { background: rgba(200,162,90,0.12); border-color: var(--gold); }
.dml-livre .car-btn:disabled { opacity: .32; cursor: default; }
.dml-livre .cf-dots { display: flex; gap: 7px; margin-left: 4px; }
.dml-livre .cf-dot {
width: 7px; height: 7px; padding: 0; border-radius: 50%; cursor: pointer;
border: 1px solid var(--gold); background: transparent;
transition: background .25s ease, transform .25s ease;
}
.dml-livre .cf-dot.on { background: var(--gold); transform: scale(1.35); }
.dml-livre .car-meta {
margin-left: auto; font-family: 'Cormorant SC', serif; font-size: 10px;
letter-spacing: 0.2em; text-transform: uppercase; color: var(--char-soft);
}
.dml-livre .book-scene { perspective: 2000px; perspective-origin: 50% 20%; }
.dml-livre .book-tilt {
--turn: 34deg; --depth: -375px; --lift: 0.9; --burst: 1; --form: 1;
transform: translateZ(var(--depth)) rotateY(var(--turn)) rotateX(6deg) scale(var(--lift));
transform-origin: 50% 60%;
transform-style: preserve-3d;
}
@property --wv { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --wb { syntax: "<number>"; initial-value: 0; inherits: false; }
@property --tva { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --tvb { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --sw { syntax: "<number>"; initial-value: 0; inherits: false; }
@property --yaw { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ay-leafFall {0% { --tva: -58deg; --tvb:   0deg; --sw: -1; }25% { --tva:   0deg; --tvb:  34deg; --sw:  0; }50% { --tva:  58deg; --tvb:   0deg; --sw:  1; }75% { --tva:   0deg; --tvb: -34deg; --sw:  0; }100% { --tva: -58deg; --tvb:   0deg; --sw: -1; }
}
@keyframes ay-leafSpin {from { --yaw: 0deg; }to { --yaw: 360deg; } }
@keyframes ay-flutter {0% { --wv: -9deg; --wb: -7; }25% { --wv:  5deg; --wb:  4; }50% { --wv:  9deg; --wb:  7; }75% { --wv: -4deg; --wb: -3; }100% { --wv: -9deg; --wb: -7; }
}
.dml-livre .volume { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.dml-livre .sheet {
position: absolute; top: 0; left: 50%; width: var(--pw); height: 100%;
background: linear-gradient(102deg, #fdfaf3, #f3ecdd 62%, #e7dcc6);
border: 1px solid rgba(200,162,90,0.26);
overflow: hidden;
transform-origin: left center; pointer-events: none;
box-shadow: 0 8px 22px rgba(26,29,58,0.10);
opacity: calc(var(--burst) * clamp(0, var(--form) * 9, 1) * 0.94);
animation: ay-flutter 3.1s ease-in-out infinite;
transform:
translate3d(
calc(var(--ox, 0px) * (1 - var(--form))),
calc(var(--oy, 0px) * (1 - var(--form))),
calc(var(--burst) * var(--sz, 0px) + var(--oz, 0px) * (1 - var(--form)))
)
translateY(calc(var(--burst) * var(--sy, 0px)))
rotateY(calc(var(--burst) * var(--sr, 0deg) + var(--orot, 0deg) * (1 - var(--form))))
rotateZ(calc(var(--otilt, 0deg) * (1 - var(--form))))
rotateX(calc(var(--wv) * (1 - var(--form))))
rotateY(calc(var(--wv) * 0.55 * (1 - var(--form))))
translateY(calc(var(--wb) * 1px * (1 - var(--form)) * 2.2))
scale(calc(0.04 + 0.96 * var(--form)));
transition: opacity .25s linear;
}
.dml-livre .star {
--lf: clamp(0, (var(--form) - var(--d, 0)) / (1 - var(--d, 0)), 1);
--u: calc(1 - var(--lf));
--rad: pow(var(--u), 0.62);
--th: calc(var(--a0) + var(--u) * var(--k));
--hit: sin(calc(clamp(0, (var(--lf) - 0.82) * 5.5, 1) * 180deg));
position: absolute; top: 50%; left: 50%;
width: var(--fw); height: calc(var(--fw) * 0.72);
margin: calc(var(--fw) * -0.36) 0 0 calc(var(--fw) * -0.5);
pointer-events: none; transform-style: preserve-3d;
display: grid; place-items: center; overflow: hidden;
font-family: 'Cormorant Garamond', 'Cormorant SC', serif; font-weight: 500;
font-size: calc(var(--fw) * 0.42); line-height: 1; color: rgba(26,29,58,0.72);
background: linear-gradient(116deg, #ffffff 0%, #fbf9f3 38%, #ece7db 72%, #cfc8b6 100%);
border-radius: 0 44% 0 44% / 0 33% 0 33%;
box-shadow:
0 calc(6px + 10px * var(--u)) calc(12px + 14px * var(--u)) rgba(26,29,58,calc(0.10 + 0.12 * var(--u))),
0 1px 2px rgba(26,29,58,0.12),
0 0 calc(18px * var(--hit)) rgba(232,196,120,calc(0.9 * var(--hit)));
filter: blur(var(--dof, 0px));
animation: ay-leafFall var(--tdur) ease-in-out infinite, ay-leafSpin calc(var(--tdur) * 2.3) linear infinite;
animation-delay: var(--ad), calc(var(--ad) * 1.7);
opacity: calc(clamp(0, 1 - (var(--lf) - 0.9) * 10, 1) * var(--tw, 1));
transform:
translate3d(
calc(var(--tx) + var(--cx) * var(--u) + var(--rx) * var(--rad) * cos(var(--th)) + var(--sw) * 14px * var(--u)),
calc(var(--ty) + var(--cy) * var(--u) + var(--ry) * var(--rad) * sin(var(--th))),
calc(var(--tz) + (var(--oz) - var(--tz)) * var(--u))
)
rotateZ(calc(var(--spin) + var(--tvb) * var(--u) + var(--th) * 0.35 * var(--u)))
rotateY(calc(var(--yaw) * var(--u)))
rotateX(calc(var(--tva) * var(--u)))
scale(calc(0.5 + 0.5 * var(--u) + 0.22 * var(--hit)));
}
.dml-livre .star.ln { background:
repeating-linear-gradient(to bottom, transparent 0 18%, rgba(26,29,58,0.30) 18% 22.5%, transparent 22.5% 26%) 50% 50% / 70% 62% no-repeat,
linear-gradient(116deg, #ffffff 0%, #fbf9f3 38%, #ece7db 72%, #cfc8b6 100%); }
.dml-livre .star.ch { background:
linear-gradient(rgba(200,162,90,0.75), rgba(200,162,90,0.75)) 50% 50% / 1px 100% no-repeat,
linear-gradient(rgba(200,162,90,0.75), rgba(200,162,90,0.75)) 50% 50% / 100% 1px no-repeat,
linear-gradient(135deg, transparent 47%, rgba(200,162,90,0.55) 47% 53%, transparent 53%),
linear-gradient(116deg, #ffffff 0%, #fbf9f3 38%, #ece7db 72%, #cfc8b6 100%); }
.dml-livre .star.gy { color: #8a6a2b; font-weight: 600; }
.dml-livre .star::after {
content: ""; position: absolute; inset: 0;
border-radius: inherit; transform: rotateY(180deg) translateZ(0.4px);
background: linear-gradient(116deg, #b9b2a0, #d6d0c0 60%, #f2eee4);
}
.dml-livre .sheet { box-shadow: 0 8px 22px rgba(26,29,58,0.10), 0 0 calc(30px * var(--land, 0)) rgba(232,196,120,calc(0.7 * var(--land, 0))); }
.dml-livre .sheet::before {
content: ""; position: absolute; inset: 0;
background-image: var(--sbg); background-size: 100% auto; background-position: top center;
opacity: calc(clamp(0, (var(--form) - 0.42) * 1.9, 1) * 0.92); filter: contrast(1.15) saturate(.8);
}
.dml-livre .sheet::after {
content: ""; position: absolute; inset: 0;
background: linear-gradient(100deg, rgba(26,29,58,0.22), rgba(26,29,58,0) 52%);
box-shadow: inset 0 0 calc(26px * (1 - var(--form))) rgba(220,185,110, calc(0.85 * (1 - var(--form))));
}
.dml-livre .edge { position: absolute; pointer-events: none; opacity: calc(1 - var(--burst)); }
.dml-livre .edge-top {
left: 50%; top: 0; width: var(--pw); height: var(--thick);
transform-origin: center top; transform: rotateX(-90deg);
background: repeating-linear-gradient(to bottom, #fdfaf3 0 1.4px, #e4d9c2 1.4px 2.8px);
box-shadow: inset 0 -12px 20px -8px rgba(26,29,58,0.28);
}
.dml-livre .edge-bottom {
left: 50%; top: calc(100% - var(--thick)); width: var(--pw); height: var(--thick);
transform-origin: center bottom; transform: rotateX(90deg);
background: repeating-linear-gradient(to bottom, #e4d9c2 0 1.4px, #fdfaf3 1.4px 2.8px);
box-shadow: inset 0 12px 20px -8px rgba(26,29,58,0.32);
}
.dml-livre .spine-slab {
position: absolute; top: 0; left: 50%; width: var(--thick); height: 100%;
pointer-events: none; transform-origin: left center; transform: rotateY(90deg);
background: linear-gradient(90deg, #12101f, #241d3d 45%, #171327);
box-shadow: inset 0 0 0 1px rgba(200,162,90,0.22);
opacity: calc(1 - var(--burst));
}
.dml-livre .spine-slab::after {
content: ""; position: absolute; inset: 13% 4px;
border-top: 1px solid rgba(200,162,90,0.45);
border-bottom: 1px solid rgba(200,162,90,0.45);
}
.dml-livre .carousel.reader .sheet, .dml-livre .carousel.reader .star, .dml-livre .carousel.reader .edge, .dml-livre .carousel.reader .spine-slab { display: none; }
.dml-livre .book-tilt.settled .star { display: none; }
.dml-livre .book-tilt.settled .sheet { animation: none; }
.dml-livre .book-tilt.offstage .star, .dml-livre .book-tilt.offstage .sheet { animation: none; }
.dml-livre .carousel.reader .book-tilt { transform: none; }
@media (prefers-reduced-motion: reduce) {
.dml-livre .book-tilt { transform: none; }
.dml-livre .sheet, .dml-livre .star { display: none; animation: none; }
}
.dml-livre .carousel.reader .book-shadow { opacity: 1; }
@keyframes ay-leafTease {0%, 55% { transform: rotateY(0deg); }72% { transform: rotateY(-17deg); }88% { transform: rotateY(-4deg); }100% { transform: rotateY(0deg); }
}
.dml-livre .carousel:not(.reader) .book.upright .leaf-cover {
animation: ay-leafTease 5.4s cubic-bezier(.4,.05,.3,1) infinite;
}
.dml-livre .carousel:not(.reader) .book:hover .leaf-cover { animation: none; }
@media (prefers-reduced-motion: reduce) {
.dml-livre .carousel:not(.reader) .book.upright .leaf-cover { animation: none; }
}
.dml-livre .carousel:not(.reader) .book { cursor: pointer; }
.dml-livre .carousel:not(.reader) .book:hover { transform: translateX(calc(var(--pw) / -2)) rotateY(-7deg) scale(1.015); }
.dml-livre .carousel:not(.reader) .book:hover .book-shadow { left: 48%; right: 0%; }
.dml-livre .carousel:not(.reader) .leaf { transition: transform .8s cubic-bezier(.34,.06,.32,1); }
.dml-livre .carousel:not(.reader) .book:hover .leaf-cover { transform: rotateY(-9deg); }
.dml-livre .carousel:not(.reader) .tour, .dml-livre .carousel:not(.reader) .car-btn, .dml-livre .carousel:not(.reader) .cf-dots, .dml-livre .carousel:not(.reader) .hs, .dml-livre .carousel:not(.reader) .zoomer { display: none; }
.dml-livre .carousel:not(.reader) .car-nav { display: none; }
.dml-livre .carousel:not(.reader) .car-meta { margin-left: 0; }
.dml-livre .invite {
display: grid; justify-items: center; gap: 12px; text-align: center;
margin-top: 58px;
}
.dml-livre .invite-cta {
display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
background: var(--ink); border: 1px solid var(--ink); border-radius: 2px;
padding: 13px 26px; color: var(--parch);
font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.02em;
transition: transform .3s ease, box-shadow .3s ease;
}
.dml-livre .invite-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(26,29,58,0.30); }
.dml-livre .invite-cta svg { color: var(--gold); }
.dml-livre .carousel.reader .invite { display: none; }
.dml-livre .carousel.reader { opacity: 1 !important; transform: none !important; }
.dml-livre .carousel.reader {
position: fixed; inset: 0; z-index: 300; margin: 0; padding: 3vh 4vw;
display: grid; grid-template-rows: 1fr auto auto; align-content: center; justify-items: center;
gap: 2vh; overflow: auto;
background: radial-gradient(120% 100% at 50% 0%, #1c1633 0%, #0e0b16 60%, #080611 100%);
animation: ay-readerIn .45s ease;
}
@keyframes ay-readerIn {from { opacity: 0; }to { opacity: 1; } }
.dml-livre .carousel.reader .book-scene { display: grid; place-items: center; }
.dml-livre .carousel.reader .book { --pw: max(200px, min(46vw, 50vh)); }
.dml-livre .carousel.reader .book-shadow {
background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,0.55), rgba(0,0,0,0) 72%);
bottom: -30px; height: 46px;
}
.dml-livre .carousel.reader .hs {
width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 14px;
}
.dml-livre .carousel.reader .hs::after { font-size: 12px; padding: 6px 11px; }
.dml-livre .carousel.reader .zoomer { display: none; }
.dml-livre .carousel.reader .tour {
max-width: 620px; border-top-color: rgba(200,162,90,0.28); margin-top: 0;
}
.dml-livre .carousel.reader .tour h4 { color: var(--parch); font-size: 19px; }
.dml-livre .carousel.reader .tour p { color: rgba(244,234,213,0.7); font-size: 14.5px; }
.dml-livre .carousel.reader .tour .t-n { color: var(--gold); }
.dml-livre .carousel.reader .car-nav { margin-top: 0; }
.dml-livre .carousel.reader .car-btn { border-color: rgba(200,162,90,0.4); color: var(--gold); }
.dml-livre .carousel.reader .car-btn:hover:not(:disabled) { background: rgba(200,162,90,0.16); border-color: var(--gold); }
.dml-livre .carousel.reader .car-meta { color: rgba(244,234,213,0.5); }
.dml-livre .carousel.reader .cf-dot { border-color: var(--gold); }
.dml-livre .carousel.reader .cf-dot.on { background: var(--gold); }
.dml-livre .reader-btn {
display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
background: transparent; border: 1px solid var(--rule); border-radius: 2px;
padding: 8px 14px; color: var(--gold-deep);
font-family: 'Cormorant SC', serif; font-size: 10px;
letter-spacing: 0.2em; text-transform: uppercase;
transition: background .25s ease, border-color .25s ease;
}
.dml-livre .reader-btn:hover { background: rgba(200,162,90,0.12); border-color: var(--gold); }
.dml-livre .carousel.reader .reader-btn { border-color: rgba(200,162,90,0.4); color: var(--gold); }
.dml-livre .carousel.reader .reader-btn:hover { background: rgba(200,162,90,0.16); }
@media (max-width: 620px) {
.dml-livre .book { --pw: 185px; }
.dml-livre .hs { width: 18px; height: 18px; margin: -9px 0 0 -9px; font-size: 9px; }
}
/* 1.0.1 — mode lecteur : la racine est portée sous <body> par accueil.js */
.dml-livre.is-reading { position: static; }
.dml-livre .carousel.reader { z-index: 100000; }
