/* =====================================================================
   Accueil « livre qui s'ouvre » — Sabine Pérois
   Une encre (bleu marine), un papier (blanc cassé), un ornement.
   ===================================================================== */
.page-accueil {
  --w-papier: #FBFAF7;
  --w-encre: #1B2540;
  --w-gris: #6B7080;
  --w-rose: #F9E4EC;
  --w-perle: #ECEBE7;
  --w-filet: color-mix(in srgb, var(--w-encre) 14%, transparent);
  background: var(--w-papier); color: var(--w-encre);
}
.page-accueil .entete, .page-accueil .voile { --fond: var(--w-papier); --encre: var(--w-encre); }
.page-accueil .progression { background: var(--w-encre); }
.w-cadre { max-width: 1240px; margin-inline: auto; padding-inline: var(--marge); }
.w-label { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--w-gris); margin-bottom: 18px; }
.w-titre { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 22px; text-transform: none; font-variation-settings: "SOFT" 50, "opsz" 144; }
.w-titre em, .w-fin__lien em { font-style: italic; }
.w-chapo { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6; color: color-mix(in srgb, var(--w-encre) 78%, transparent); max-width: 50ch; margin: 0 0 30px; }
.w-boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.w-bouton { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--w-encre); border-radius: 999px; color: var(--w-encre); text-decoration: none; font-size: .95rem; font-weight: 500; transition: background .3s, color .3s; }
.w-bouton b { font-weight: 400; transition: transform .3s var(--ease); }
.w-bouton:hover, .w-bouton--plein { background: var(--w-encre); color: var(--w-papier); }
.w-bouton--plein:hover { background: transparent; color: var(--w-encre); }
.w-bouton:hover b { transform: translateX(4px); }

/* Apparition douce au défilement */
.w-apparait { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.w-apparait.vu { opacity: 1; transform: none; }

/* ---------- 1. Le livre qui s'ouvre ---------- */
.w-livre { height: 300svh; position: relative; }
.w-livre__scene { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; --p: 0; }
.w-livre__haut { position: absolute; top: calc(64px + 4svh); left: 0; right: 0; display: flex; justify-content: center; gap: 14px; margin: 0; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--w-gris); opacity: calc(1 - var(--p) * 3); }
.w-livre__indice { position: absolute; bottom: 4svh; margin: 0; font-size: .82rem; color: var(--w-gris); opacity: calc(1 - var(--p) * 4); animation: w-respire 2.4s ease-in-out infinite; }
@keyframes w-respire { 50% { transform: translateY(6px); } }

.w-livre__objet {
  --l: min(34vw, 66svh * .714, 540px);          /* largeur d'une page */
  --h: calc(var(--l) * 1.4);
  position: relative; width: var(--l); height: var(--h);
  perspective: 2600px; transform-style: preserve-3d;
  transform: translateX(calc(var(--p) * var(--l) / 2))
             rotateX(calc((1 - var(--p)) * (8deg + var(--my, 0) * 10deg)))
             rotateY(calc((1 - var(--p)) * (var(--mx, 0) * 16deg - 10deg)))
             scale(calc(.94 + var(--p) * .06));
  transition: transform .5s var(--ease);
  margin-top: 5svh; z-index: 3;
}
.w-page, .w-couv { position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; }
.w-page--droite {
  background: var(--w-papier); border: 1px solid var(--w-filet);
  box-shadow: 0 40px 80px -40px rgba(27,37,64,.45), inset 14px 0 22px -16px rgba(27,37,64,.25);
  padding: calc(var(--l) * .11) calc(var(--l) * .1); display: flex; flex-direction: column; justify-content: center;
}
.w-page__label { font-size: calc(var(--l) * .03); letter-spacing: .2em; text-transform: uppercase; color: var(--w-gris); margin-bottom: calc(var(--l) * .06); text-align: center; }
.w-sommaire { list-style: none; margin: 0; padding: 0; }
.w-sommaire li { opacity: clamp(0, (var(--p) - .62) * 5, 1); transform: translateY(calc(clamp(0, 1 - (var(--p) - .62) * 5, 1) * 14px)); }
.w-sommaire li:nth-child(2) { opacity: clamp(0, (var(--p) - .68) * 5, 1); }
.w-sommaire li:nth-child(3) { opacity: clamp(0, (var(--p) - .74) * 5, 1); }
.w-sommaire li:nth-child(4) { opacity: clamp(0, (var(--p) - .80) * 5, 1); }
.w-sommaire a { display: flex; align-items: baseline; gap: calc(var(--l) * .03); padding: calc(var(--l) * .035) 0; color: var(--w-encre); text-decoration: none; font-family: var(--serif); font-size: calc(var(--l) * .062); line-height: 1.2; }
.w-sommaire__num { width: 1.8em; flex: none; font-size: .7em; color: var(--w-gris); font-family: var(--sans); }
.w-sommaire i { flex: 1; border-bottom: 1px dotted color-mix(in srgb, var(--w-encre) 45%, transparent); transform: translateY(-.3em); }
.w-sommaire__fleche { transition: transform .3s var(--ease); }
.w-sommaire a:hover .w-sommaire__titre { font-style: italic; }
.w-sommaire a:hover .w-sommaire__fleche { transform: translateX(6px); }

.w-couv {
  transform-origin: left center; transform-style: preserve-3d;
  transform: rotateY(calc(var(--p) * -180deg)); z-index: 2;
  pointer-events: none;
}
.w-couv__face, .w-couv__dos { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: inherit; }
.w-couv__face {
  background: var(--w-encre); color: #F3EFE6;
  box-shadow: 0 50px 90px -40px rgba(27,37,64,.7), inset 10px 0 0 rgba(0,0,0,.18), inset 13px 0 0 rgba(255,255,255,.06);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: calc(var(--l) * .05);
  padding: calc(var(--l) * .12);
}
.w-couv__filet { width: 40%; height: 1px; background: rgba(243,239,230,.45); }
.w-couv__nom { font-family: var(--serif); font-weight: 400; font-size: calc(var(--l) * .15); line-height: .98; letter-spacing: -0.01em; font-variation-settings: "SOFT" 50, "opsz" 144; }
.w-couv__orn { font-size: calc(var(--l) * .07); opacity: .7; }
.w-couv__sous { font-family: var(--serif); font-style: italic; font-size: calc(var(--l) * .048); line-height: 1.35; max-width: 18ch; opacity: .85; }
.w-couv__dos {
  transform: rotateY(180deg); background: var(--w-papier); border: 1px solid var(--w-filet);
  box-shadow: inset -14px 0 22px -16px rgba(27,37,64,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--l) * .06); padding: calc(var(--l) * .12);
}
.w-couv__dos img { width: 62%; height: auto; flex: none; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.w-couv__dos p { margin: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: calc(var(--l) * .055); line-height: 1.3; }
.w-livre.ouvert .w-couv { pointer-events: none; }

/* ---------- 2. Les deux univers ---------- */
.w-univers { display: flex; height: 100svh; min-height: 560px; }
.w-univers__moitie { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; text-decoration: none; color: var(--w-encre); transition: flex 1s var(--ease); }
.w-univers__moitie--jeunesse { background: var(--w-rose); }
.w-univers__moitie--romans { background: var(--w-perle); }
.w-univers:hover .w-univers__moitie { flex: .8; }
.w-univers .w-univers__moitie:hover { flex: 1.35; }
.w-univers__img { position: absolute; inset: 9% 9% 42%; border-radius: 6px; overflow: hidden; }
.w-univers__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.w-univers__moitie:hover .w-univers__img img { transform: scale(1); }
.w-univers__texte { position: relative; padding: 0 9% 7%; display: flex; flex-direction: column; align-items: flex-start; }
.w-univers__num { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--w-gris); }
.w-univers__titre { font-family: var(--serif); font-size: clamp(3rem, 7vw, 6.5rem); line-height: 1; letter-spacing: -0.03em; margin: 8px 0 10px; font-variation-settings: "SOFT" 50, "opsz" 144; }
.w-univers__moitie:hover .w-univers__titre { font-style: italic; }
.w-univers__ligne { font-size: 1.02rem; margin-bottom: 22px; color: color-mix(in srgb, var(--w-encre) 75%, transparent); }
.w-univers__moitie:hover .w-bouton { background: var(--w-encre); color: var(--w-papier); }

/* ---------- 3. Nouveauté ---------- */
.w-nouveau { padding-block: clamp(90px, 13vw, 180px); }
.w-nouveau__grille { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.w-nouveau__couv { display: block; max-width: 420px; justify-self: center; perspective: 1200px; }
.w-nouveau__couv img { display: block; width: 100%; border-radius: 3px 8px 8px 3px; box-shadow: 0 40px 70px -30px rgba(27,37,64,.5), inset 0 0 0 1px rgba(0,0,0,.05); transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 3deg)); transition: transform .6s var(--ease); }

/* ---------- 4. L'auteure ---------- */
.w-sabine { padding-block: clamp(90px, 12vw, 170px); border-top: 1px solid var(--w-filet); }
.w-sabine__grille { display: grid; grid-template-columns: minmax(200px, .7fr) 1.3fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.w-sabine__portrait { margin: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; max-width: 400px; }
.w-sabine__portrait img { width: 100%; height: 100%; object-fit: cover; }
.w-suite summary { cursor: pointer; display: inline-flex; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; list-style: none; }
.w-suite summary::-webkit-details-marker { display: none; }
.w-suite summary::after { content: "+"; }
.w-suite[open] summary::after { content: "–"; }
.w-suite p { max-width: 60ch; line-height: 1.7; color: color-mix(in srgb, var(--w-encre) 80%, transparent); }
.w-suite p:first-of-type { margin-top: 26px; }

/* ---------- 5. Avis ---------- */
.w-avis { padding-block: clamp(70px, 9vw, 130px); background: var(--w-perle); overflow: clip; }
.w-avis .avis-carte { background: var(--w-papier); color: var(--w-encre); }
.w-avis .avis-carte__etoiles { color: var(--w-encre); }

/* ---------- 6. Fin : écrire à Sabine ---------- */
.w-fin { padding-block: clamp(100px, 14vw, 200px); background: var(--w-encre); color: #F3EFE6; text-align: center; }
.w-fin .w-label, .w-fin .w-chapo { color: rgba(243,239,230,.7); margin-inline: auto; }
.w-fin__lien { display: inline-flex; align-items: baseline; gap: .3em; font-family: var(--serif); font-size: clamp(3rem, 9vw, 8.5rem); line-height: 1; letter-spacing: -0.03em; color: #F3EFE6; text-decoration: none; margin: 6px 0 28px; font-variation-settings: "SOFT" 50, "opsz" 144; }
.w-fin__lien b { font-weight: 300; font-size: .6em; transition: transform .4s var(--ease); }
.w-fin__lien:hover b { transform: translateX(14px); }
.page-accueil .pied { background: var(--w-encre); color: #F3EFE6; --ligne: rgba(243,239,230,.15); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .w-livre__objet { --l: min(44vw, 230px); }
  .w-livre__objet { transform: translateX(calc(var(--p) * var(--l) / 2)) scale(calc(.95 + var(--p) * .05)); }
  .w-univers { flex-direction: column; height: auto; }
  .w-univers__moitie, .w-univers:hover .w-univers__moitie, .w-univers .w-univers__moitie:hover { flex: none; min-height: 78svh; }
  .w-nouveau__grille, .w-sabine__grille { grid-template-columns: 1fr; }
  .w-nouveau__couv { max-width: 260px; }
  .w-sabine__portrait { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .w-livre { height: auto; }
  .w-livre__scene { position: relative; height: auto; padding-block: 120px 80px; --p: 1 !important; }
  .w-apparait { opacity: 1; transform: none; }
}

/* ===== Ouverture plus « wow » (2026-11-25) ===== */
.w-livre__scene { --mx: 0; --my: 0; }
/* Épaisseur du livre : la tranche des pages sous la couverture */
.w-page--droite { box-shadow:
  1px 1px 0 #EEECE6, 2px 2px 0 #fff, 3px 3px 0 #E9E7E0, 4px 4px 0 #fff, 5px 5px 0 #E4E2DA, 6px 6px 0 #fff, 7px 7px 0 #DEDCD3,
  0 50px 90px -40px rgba(27,37,64,.5), inset 14px 0 22px -16px rgba(27,37,64,.25); }
/* Quelques feuilles qui tournent juste après la couverture */
.w-feuille { position: absolute; inset: 1px 2px 1px 0; background: #FDFCFA; border-radius: 1px 4px 4px 1px; transform-origin: left center;
  box-shadow: inset -10px 0 18px -14px rgba(27,37,64,.3); backface-visibility: visible; z-index: 1;
  --d: .1; transform: rotateY(calc(clamp(0, (var(--p) - var(--d)) / (1 - var(--d)), 1) * -178deg));
  opacity: clamp(0, (1 - var(--p)) * 12, 1); }
.w-feuille--2 { --d: .2; }
.w-feuille--3 { --d: .3; }
/* Grand texte de fond */
.w-livre__fond { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 0; pointer-events: none;
  font-family: var(--serif); font-size: clamp(5rem, 17vw, 18rem); line-height: .9; letter-spacing: -0.04em; white-space: nowrap;
  color: color-mix(in srgb, var(--w-encre) 7%, transparent); font-variation-settings: "SOFT" 50, "opsz" 144; }
.w-livre__fond span { transform: translateX(calc(-8vw - var(--p) * 18vw)); }
.w-livre__fond em { transform: translateX(calc(8vw + var(--p) * 18vw)); font-style: italic; }
/* Couvertures qui flottent autour du livre */
.w-flottants { position: absolute; inset: 0; pointer-events: none; }
.w-flottant { position: absolute; width: clamp(80px, 9vw, 150px); border-radius: 2px 5px 5px 2px; box-shadow: 0 24px 40px -18px rgba(27,37,64,.45);
  --x: 0; --y: 0; --r: 0deg; --f: 1;
  transform: translate(calc(var(--mx) * var(--f) * -26px + var(--x) * var(--p) * 1vw), calc(var(--my) * var(--f) * -20px + var(--y) * var(--p) * 1svh)) rotate(var(--r));
  transition: transform .8s var(--ease); opacity: calc(1 - var(--p) * .55);
  animation: w-flotte 7s ease-in-out infinite alternate; }
@keyframes w-flotte { to { translate: 0 -12px; } }
.w-flottant--0 { left: 6%;  top: 18%; --r: -9deg; --x: -6; --y: -4; --f: 1.4; }
.w-flottant--1 { left: 15%; top: 56%; --r: 6deg;  --x: -9; --y: 6;  --f: .8; width: clamp(90px, 10vw, 165px); animation-delay: -2s; }
.w-flottant--2 { left: 3%;  top: 72%; --r: -4deg; --x: -4; --y: 8;  --f: 1.2; width: clamp(70px, 7vw, 120px); animation-delay: -4s; }
.w-flottant--3 { right: 7%; top: 16%; --r: 8deg;  --x: 6;  --y: -5; --f: 1.3; animation-delay: -1s; }
.w-flottant--4 { right: 16%; top: 58%; --r: -7deg; --x: 9; --y: 6;  --f: .9; width: clamp(80px, 8.5vw, 140px); animation-delay: -3s; }
.w-flottant--5 { right: 3%; top: 70%; --r: 5deg;  --x: 4;  --y: 9;  --f: 1.1; width: clamp(70px, 7vw, 120px); animation-delay: -5s; }
.w-flottant--6 { left: 25%; top: 13%;  --r: 4deg;  --x: -5; --y: -8; --f: .6; width: clamp(60px, 6vw, 100px); animation-delay: -6s; }
.w-flottant--7 { right: 26%; top: 12%; --r: -5deg; --x: 5;  --y: -8; --f: .7; width: clamp(60px, 6vw, 100px); animation-delay: -2.5s; }
@media (max-width: 860px) {
  .w-livre__objet { --l: min(45vw, 250px); }
  .w-flottant { width: 64px; }
  .w-flottant--1, .w-flottant--4, .w-flottant--6, .w-flottant--7 { display: none; }
  .w-flottant--0 { top: 14%; } .w-flottant--3 { top: 13%; }
  .w-flottant--2 { top: 78%; } .w-flottant--5 { top: 77%; }
  .w-livre__fond { font-size: 24vw; }
}
@media (prefers-reduced-motion: reduce) { .w-flottant { animation: none; } }

/* Sans couvertures flottantes : un halo doux et le grand texte un peu plus présent */
.w-livre__scene::before { content: ""; position: absolute; left: 50%; top: 55%; width: min(90vw, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(27,37,64,.07), transparent 70%); pointer-events: none; }
.w-livre__fond { color: color-mix(in srgb, var(--w-encre) 9%, transparent); }
.w-livre__objet { margin-top: 3svh; }

/* =====================================================================
   Décor de l'ouverture (2026-11-25) : papier bleu-gris grainé,
   double filet comme une page de titre, arche en fond, coins annotés.
   ===================================================================== */
.w-livre__scene {
  --fond-scene: #E6EAF0;
  background-color: var(--fond-scene);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .14 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.w-livre__scene::before { display: none; }
.w-decor { position: absolute; inset: 0; pointer-events: none; }
.w-decor__cadre {
  position: absolute; inset: calc(64px + 14px) 18px 18px;
  border: 1px solid color-mix(in srgb, var(--w-encre) 30%, transparent);
  box-shadow: inset 0 0 0 6px var(--fond-scene), inset 0 0 0 7px color-mix(in srgb, var(--w-encre) 16%, transparent);
}
.w-decor__arche {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(62vw, 880px); height: calc(100svh - 64px - 90px);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(#F7F8FA, #EEF1F5);
  border: 1px solid color-mix(in srgb, var(--w-encre) 18%, transparent); border-bottom: 0;
  box-shadow: inset 0 0 0 10px #F4F6F9, inset 0 0 0 11px color-mix(in srgb, var(--w-encre) 10%, transparent);
  transform: translateX(-50%) scaleX(calc(1 + var(--p) * .08));
}
.w-decor__coin {
  position: absolute; padding: 0 12px; background: var(--fond-scene);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--w-encre) 70%, transparent);
  line-height: 1;
}
.w-decor__coin--hg { top: calc(64px + 14px - .36rem); left: 44px; }
.w-decor__coin--hd { top: calc(64px + 14px - .36rem); right: 44px; }
.w-decor__coin--bg { bottom: calc(18px - .36rem); left: 44px; }
.w-decor__coin--bd { bottom: calc(18px - .36rem); right: 44px; animation: w-respire 2.4s ease-in-out infinite; }
.w-decor__coin--hg { font-family: var(--serif); font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--w-encre); }
.w-livre__objet { margin-top: 64px; }
@media (max-width: 860px) {
  .w-decor__cadre { inset: calc(64px + 8px) 8px 8px; box-shadow: inset 0 0 0 4px var(--fond-scene), inset 0 0 0 5px color-mix(in srgb, var(--w-encre) 16%, transparent); }
  .w-decor__arche { width: 88vw; bottom: 8px; height: 72svh; }
  .w-decor__coin { font-size: .6rem; padding: 0 8px; }
  .w-decor__coin--hg { top: calc(64px + 8px - .3rem); left: 22px; font-size: .8rem; }
  .w-decor__coin--hd { display: none; }
  .w-decor__coin--bg { display: none; }
  .w-decor__coin--bd { bottom: calc(8px - .3rem); right: 50%; transform: translateX(50%); animation: none; }
}
/* L'en-tête prend la couleur du décor tant qu'on est dans l'ouverture */
.page-accueil .entete { transition: background-color .4s; }
.page-accueil.dans-hero .entete { background: #E6EAF0; }
.w-decor__coin { white-space: nowrap; }

/* ---------- Chapitre IV : le formulaire à la fin de l'accueil ---------- */
.w-fin { text-align: left; }
.w-fin__grille { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.w-fin__titre { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 6.5rem); line-height: 1; letter-spacing: -0.03em; margin: 0 0 26px; color: #F3EFE6; font-variation-settings: "SOFT" 50, "opsz" 144; }
.w-fin__titre em { font-style: italic; }
.w-fin .w-chapo { margin-inline: 0; }
.w-form { display: grid; gap: 22px; padding: clamp(24px, 3.4vw, 44px); border: 1px solid rgba(243,239,230,.22); border-radius: 10px; background: rgba(243,239,230,.04); }
.w-form__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.w-form label { display: grid; gap: 8px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,239,230,.65); }
.w-form input, .w-form select, .w-form textarea { font: inherit; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: #F3EFE6; background: transparent; border: 0; border-bottom: 1px solid rgba(243,239,230,.3); padding: 8px 0; border-radius: 0; transition: border-color .3s; }
.w-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #F3EFE6 50%), linear-gradient(-45deg, transparent 50%, #F3EFE6 50%); background-size: 6px 6px; background-position: right 6px center, right 0 center; background-repeat: no-repeat; }
.w-form select option { color: #1B2540; }
.w-form textarea { resize: vertical; min-height: 120px; }
.w-form input:focus, .w-form select:focus, .w-form textarea:focus { outline: none; border-bottom-color: #F3EFE6; }
.w-form__piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.w-bouton--clair { justify-self: start; border-color: #F3EFE6; color: #1B2540; background: #F3EFE6; cursor: pointer; font: inherit; font-weight: 500; }
.w-bouton--clair:hover { background: transparent; color: #F3EFE6; }
.w-bouton--clair:disabled { opacity: .6; cursor: wait; }
.w-form__etat { margin: 0; min-height: 1.4em; font-size: .95rem; color: rgba(243,239,230,.85); }
.w-form__etat[data-type="erreur"] { color: #F6B8A8; }
.w-form__etat[data-type="ok"] { color: #BFE3C6; }
@media (max-width: 860px) { .w-fin__grille, .w-form__ligne { grid-template-columns: 1fr; } }

/* ---------- Bibliothèque dans l'arche ---------- */
.w-decor__arche { overflow: hidden; background: #E9EDF2; }
.w-biblio { position: absolute; inset: 10px 10px 0; border-radius: 999px 999px 0 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0;
  background: linear-gradient(#DCE1E9, #E4E8EE); }
.w-etagere { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 0 12px;
  border-bottom: 9px solid #C9D0DC; box-shadow: 0 6px 10px -6px rgba(27,37,64,.35); overflow: hidden; opacity: .62; }
.w-etagere i { flex: none; display: block; border-radius: 2px 2px 0 0; box-shadow: inset 2px 0 0 rgba(255,255,255,.18), inset -2px 0 0 rgba(0,0,0,.12);
  background-image: linear-gradient(transparent 14%, rgba(255,255,255,.25) 14%, rgba(255,255,255,.25) 17%, transparent 17%, transparent 80%, rgba(255,255,255,.2) 80%, rgba(255,255,255,.2) 82%, transparent 82%) !important; }
/* voile clair au centre pour que le livre reste la star */
.w-biblio::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 52% at 50% 56%, rgba(240,243,247,.92), rgba(240,243,247,.55) 60%, rgba(240,243,247,0) 100%); }

/* =====================================================================
   Cohérence (2026-11-25) : le papier bleu-gris grainé de l'ouverture
   devient le papier de tout l'accueil. Une encre (bleu marine),
   un papier (bleu-gris), un motif (l'arche + le double filet).
   ===================================================================== */
.page-accueil {
  --w-papier: #E6EAF0;          /* papier de base, le même que l'ouverture */
  --w-papier-clair: #F2F4F8;    /* cartes, intérieur des arches */
  --w-papier-fonce: #D9DFE8;    /* bandes d'accent */
  --w-rose: #EEDDE5;            /* univers jeunesse, pastel accordé au bleu-gris */
  --w-perle: #D9DFE8;           /* univers romans */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .14 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background: var(--w-papier) var(--grain);
}
.page-accueil .entete, .page-accueil.dans-hero .entete { background: var(--w-papier); }
.w-livre__scene { --fond-scene: var(--w-papier); background: transparent; }
.w-decor__coin { background: var(--w-papier); }
.w-decor__cadre { box-shadow: inset 0 0 0 6px var(--w-papier), inset 0 0 0 7px color-mix(in srgb, var(--w-encre) 16%, transparent); }

/* Le double filet revient comme séparateur entre les chapitres */
.w-nouveau, .w-sabine, .w-avis { position: relative; }
.w-nouveau::before, .w-sabine::before {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 7px;
  border-top: 1px solid color-mix(in srgb, var(--w-encre) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--w-encre) 16%, transparent);
}
.w-sabine { border-top: 0; }

/* Les deux univers : mêmes arches que l'ouverture */
.w-univers { padding: 18px; gap: 18px; background: transparent; }
.w-univers__moitie { border: 1px solid color-mix(in srgb, var(--w-encre) 18%, transparent); border-radius: 4px;
  box-shadow: inset 0 0 0 6px var(--fond-u), inset 0 0 0 7px color-mix(in srgb, var(--w-encre) 10%, transparent); }
.w-univers__moitie--jeunesse { --fond-u: var(--w-rose); background: var(--w-rose); }
.w-univers__moitie--romans { --fond-u: var(--w-perle); background: var(--w-perle); }
.w-univers__img { border-radius: 999px 999px 4px 4px; inset: 9% 12% 42%; box-shadow: 0 0 0 8px var(--w-papier-clair), 0 0 0 9px color-mix(in srgb, var(--w-encre) 14%, transparent); }

/* Nouveauté : la couverture posée dans une arche */
.w-nouveau__couv { position: relative; padding: 56px 48px 40px; border-radius: 999px 999px 4px 4px; background: var(--w-papier-clair);
  border: 1px solid color-mix(in srgb, var(--w-encre) 18%, transparent);
  box-shadow: inset 0 0 0 8px var(--w-papier-clair), inset 0 0 0 9px color-mix(in srgb, var(--w-encre) 10%, transparent); }

/* Portrait de Sabine en arche, plus en cercle */
.w-sabine__portrait { border-radius: 999px 999px 4px 4px; aspect-ratio: 4 / 5; box-shadow: 0 0 0 8px var(--w-papier-clair), 0 0 0 9px color-mix(in srgb, var(--w-encre) 16%, transparent); }

/* Avis : bande un ton plus soutenu, cartes papier clair */
.w-avis { background: var(--w-papier-fonce) var(--grain); }
.w-avis .avis-carte { background: var(--w-papier-clair); border: 1px solid color-mix(in srgb, var(--w-encre) 10%, transparent); }

/* Le bleu marine de la couverture ferme la page : formulaire + pied */
.w-fin { background: var(--w-encre) var(--grain); }
@media (max-width: 860px) {
  .w-univers { padding: 8px; gap: 8px; }
  .w-nouveau__couv { padding: 36px 28px 24px; }
  .w-nouveau::before, .w-sabine::before { left: 8px; right: 8px; }
}

/* ===== Logo SP : couverture du livre et fin de page, couleurs accordées au logo ===== */
.page-accueil { --w-creme: #F1DFCD; --w-champagne: #D8BC97; }
.w-couv__face { background: #0F1736 var(--grain); color: var(--w-creme); gap: calc(var(--l) * .045); }
.w-couv__logo { width: 46%; height: auto; margin-bottom: calc(var(--l) * .02); filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }
.w-couv__nom { font-size: calc(var(--l) * .1); letter-spacing: .02em; }
.w-couv__filet { width: 26%; background: var(--w-champagne); opacity: .7; }
.w-couv__sous { color: var(--w-creme); }
.w-fin__logo { display: block; width: clamp(84px, 9vw, 120px); height: auto; margin-bottom: 28px; }
.w-fin { background: #0F1736 var(--grain); }
.page-accueil .pied { background: #0F1736; }
.w-fin .w-label { color: var(--w-champagne); }

/* =====================================================================
   Pages univers (Jeunesse, Romans) dans le style « livre » — 2026-11-25
   Même encre, même logo, mêmes arches ; seul le papier change.
   ===================================================================== */
.page-accueil { --encre: var(--w-encre); }
.univers-jeunesse { --w-papier: #F2E5EB; --w-papier-clair: #FCF7F9; --w-papier-fonce: #E9D5DE; --w-bande: #E2EAF3; }
.univers-romans   { --w-papier: #E6EAF0; --w-papier-clair: #F4F6F9; --w-papier-fonce: #D9DFE8; --w-bande: #DCE2EA; }
.page-simple .mentions { color: var(--w-encre); }

/* En-tête de chapitre : cadre double filet + arche */
.w-page-tete { position: relative; padding: clamp(110px, 12vw, 160px) 0 clamp(70px, 9vw, 120px); }
.w-page-tete__cadre { position: absolute; inset: 14px 18px 0; border: 1px solid color-mix(in srgb, var(--w-encre) 30%, transparent); border-bottom: 0;
  box-shadow: inset 0 0 0 6px var(--w-papier), inset 0 0 0 7px color-mix(in srgb, var(--w-encre) 16%, transparent); pointer-events: none; }
.w-page-tete__grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.w-page-tete__titre { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7.4vw, 7rem); line-height: .98; letter-spacing: -0.03em; margin: 0 0 26px; text-transform: none; font-variation-settings: "SOFT" 50, "opsz" 144; }
.w-page-tete__titre em { font-style: italic; }
.w-page-tete__arche { margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px 4px 4px; overflow: hidden; max-width: 440px; justify-self: end;
  box-shadow: 0 0 0 10px var(--w-papier-clair), 0 0 0 11px color-mix(in srgb, var(--w-encre) 16%, transparent), 0 40px 70px -40px rgba(27,37,64,.5); }
.w-page-tete__arche img { width: 100%; height: 100%; object-fit: cover; }
.w-sommaire--page { max-width: 520px; margin-top: 8px; }
.w-sommaire--page li { opacity: 1; transform: none; }
.w-sommaire--page a { font-size: clamp(1.1rem, 1.6vw, 1.4rem); padding: 12px 0; gap: 14px; }

/* Parties */
.w-partie { position: relative; padding-block: clamp(80px, 10vw, 140px); }
.w-partie::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 7px;
  border-top: 1px solid color-mix(in srgb, var(--w-encre) 30%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--w-encre) 16%, transparent); }
.univers-jeunesse #jeunesse-7-12 { background: var(--w-bande) var(--grain); }
.univers-jeunesse #jeunesse-7-12 .w-dp { --dp-fond: #F6F9FC; }
.w-partie__tete { max-width: 760px; margin-bottom: clamp(50px, 7vw, 90px); }

/* La double page */
.w-dp { --dp-fond: var(--w-papier-clair); position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: clamp(50px, 7vw, 90px);
  background: var(--dp-fond); border: 1px solid color-mix(in srgb, var(--w-encre) 14%, transparent); border-radius: 4px 4px 4px 4px;
  box-shadow: 0 50px 80px -50px rgba(27,37,64,.45), 3px 3px 0 -1px var(--dp-fond), 3px 3px 0 0 color-mix(in srgb, var(--w-encre) 12%, transparent), 6px 6px 0 -1px var(--dp-fond), 6px 6px 0 0 color-mix(in srgb, var(--w-encre) 10%, transparent); }
.w-dp::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 60px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(27,37,64,.07) 46%, rgba(27,37,64,.16) 50%, rgba(27,37,64,.07) 54%, transparent); }
.w-dp__gauche, .w-dp__droite { position: relative; padding: clamp(36px, 5vw, 72px) clamp(28px, 4.4vw, 64px) clamp(56px, 6vw, 80px); }
.w-dp__gauche { display: flex; align-items: center; justify-content: center; }
.w-dp__niche { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 380px; aspect-ratio: 4 / 5; padding: 14% 12% 10%;
  border-radius: 999px 999px 4px 4px; background: color-mix(in srgb, var(--w-papier) 70%, var(--dp-fond));
  border: 1px solid color-mix(in srgb, var(--w-encre) 14%, transparent);
  box-shadow: inset 0 0 0 8px color-mix(in srgb, var(--w-papier) 70%, var(--dp-fond)), inset 0 0 0 9px color-mix(in srgb, var(--w-encre) 9%, transparent); }
.w-dp__niche img { max-width: 100%; max-height: 100%; width: auto; border-radius: 2px 6px 6px 2px; box-shadow: 0 30px 50px -24px rgba(27,37,64,.55); transition: transform .8s var(--ease); }
.w-dp:hover .w-dp__niche img { transform: translateY(-6px) rotate(-1.5deg); }
.w-dp__folio { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: .9rem; color: var(--w-gris); }
.w-dp__folio::before, .w-dp__folio::after { content: "— "; } .w-dp__folio::after { content: " —"; }
.w-dp__titre { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; text-transform: none; font-variation-settings: "SOFT" 50, "opsz" 144; }
.w-dp__accroche { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.35; margin: 0 0 22px; color: color-mix(in srgb, var(--w-encre) 85%, transparent); }
.w-dp__texte p { margin: 0 0 14px; line-height: 1.7; color: color-mix(in srgb, var(--w-encre) 80%, transparent); }
.w-dp__texte p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.6em; line-height: .82; padding: 6px 10px 0 0; color: var(--w-encre); }
.w-dp__fiche { display: flex; flex-wrap: wrap; gap: 0; margin: 22px 0; border-top: 1px solid color-mix(in srgb, var(--w-encre) 14%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--w-encre) 14%, transparent); }
.w-dp__fiche div { flex: 1; min-width: 90px; padding: 12px 0; }
.w-dp__fiche dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--w-gris); }
.w-dp__fiche dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.05rem; }
.w-dp__avis { margin: 0 0 24px; padding-left: 16px; border-left: 2px solid color-mix(in srgb, var(--w-encre) 25%, transparent); font-family: var(--serif); font-style: italic; line-height: 1.4; }
.w-dp__avis cite { display: block; margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: .78rem; color: var(--w-gris); }
.w-dp__kiledoo { display: inline-block; margin-top: 14px; font-size: .85rem; color: var(--w-gris); text-underline-offset: 3px; }
.w-dp .autre-langue { margin: 14px 0 0; font-size: .88rem; color: var(--w-gris); }
.w-dp .autre-langue a { color: var(--w-encre); }
.w-dp .w-bouton { padding: 12px 18px; font-size: .9rem; }
@media (max-width: 860px) {
  .w-page-tete__grille { grid-template-columns: 1fr; }
  .w-page-tete__arche { justify-self: start; max-width: 260px; }
  .w-page-tete__cadre, .w-partie::before { left: 8px; right: 8px; }
  .w-dp { grid-template-columns: 1fr; }
  .w-dp::after { display: none; }
  .w-dp__gauche { padding-bottom: 20px; }
  .w-dp__gauche .w-dp__folio { display: none; }
  .w-dp__niche { max-width: 280px; }
}
/* Le pied bleu nuit partout */
.page-accueil .pied { background: #0F1736; color: #F3EFE6; --ligne: rgba(243,239,230,.15); }
.page-accueil .pied a { color: #F3EFE6; }

/* ===== Jeunesse : doubles pages qui défilent à l'horizontale (comme avant) ===== */
.w-dp__couv { display: block; max-width: 78%; max-height: 100%; width: auto; height: auto; border-radius: 2px 6px 6px 2px;
  box-shadow: 0 30px 50px -24px rgba(27,37,64,.55); transition: transform .8s var(--ease); }
.w-dp:hover .w-dp__couv { transform: translateY(-6px) rotate(-1.5deg); }
.w-partie--defile { padding-bottom: 0; }
.w-partie--defile .w-partie__tete { margin-bottom: 0; }
@media (min-width: 861px) {
  .w-defile { position: relative; }
  .w-defile__collant { position: sticky; top: 64px; height: calc(100svh - 64px); overflow: hidden; display: flex; flex-direction: column; }
  .w-defile__compteur { width: 100%; display: flex; justify-content: space-between; padding-top: 18px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--w-gris); }
  .w-defile__compteur b { font-weight: 500; color: var(--w-encre); }
  .w-defile__piste { flex: 1; display: flex; align-items: center; will-change: transform; padding-left: max(var(--marge), calc((100vw - 1240px) / 2 + var(--marge))); }
  .w-defile__panneau { flex: none; width: min(1120px, calc(100vw - 2 * var(--marge) - 40px)); margin-right: 48px; }
  .w-defile__panneau:last-child { margin-right: max(var(--marge), calc((100vw - 1240px) / 2 + var(--marge))); }
  .w-defile .w-dp { margin: 0; max-height: calc(100svh - 64px - 110px); }
  .w-defile .w-dp__gauche, .w-defile .w-dp__droite { padding-block: clamp(24px, 3.4svh, 44px) clamp(44px, 6svh, 60px); }
  .w-defile .w-dp__gauche { min-height: 0; }
  .w-defile .w-dp__couv { max-height: calc(100svh - 64px - 230px); }
  .w-defile .w-dp__titre { font-size: clamp(1.6rem, 2.4vw, 2.3rem); }
  .w-defile .w-dp__fiche { margin: 14px 0; }
  .w-defile .w-dp__avis { margin-bottom: 16px; font-size: .95rem; }
  .w-defile__barre { height: 2px; margin: 0 0 22px; background: color-mix(in srgb, var(--w-encre) 14%, transparent); }
  .w-defile__barre span { display: block; height: 100%; background: var(--w-encre); transform-origin: left; transform: scaleX(0); }
}
@media (max-width: 860px) {
  .w-defile__compteur, .w-defile__barre { display: none; }
  .w-defile__panneau { padding: 0 var(--marge); margin-bottom: 40px; }
  .w-partie--defile { padding-bottom: 40px; }
  .w-partie--defile .w-partie__tete { margin-bottom: 40px; }
}

/* ===== Défilement jeunesse : une double page par écran, centrée, marges égales ===== */
@media (min-width: 861px) {
  .w-defile__piste { padding-left: 0; align-items: stretch; }
  .w-defile__panneau, .w-defile__panneau:last-child { flex: 0 0 100vw; width: 100vw; margin: 0; display: flex; align-items: center; justify-content: center;
    padding: 0 max(var(--marge), calc((100vw - 1180px) / 2)); }
  .w-defile .w-dp { width: 100%; max-height: none; transform-origin: center center; }
  .w-defile .w-dp__couv { max-height: min(460px, calc(100svh - 64px - 260px)); max-width: 72%; }
  .w-defile .w-dp__gauche, .w-defile .w-dp__droite { padding: 40px clamp(28px, 3.6vw, 56px) 60px; }
  .w-defile .w-dp__avis { display: none; }
}

/* Couverture parfaitement centrée sur la page de gauche ; la piste ne dépasse jamais l'écran */
.w-dp__gauche { display: flex; align-items: center; justify-content: center; padding: clamp(40px, 5vw, 64px) !important; }
.w-dp__couv { margin: auto; }
@media (min-width: 861px) {
  .w-defile__piste { min-height: 0; }
  .w-defile__panneau { height: 100%; min-height: 0; overflow: visible; }
  .w-defile .w-dp__gauche { padding: 40px !important; }
}

/* En-tête des pages univers : image entière dans un cadre double filet (plus d'arche) */
.w-page-tete__arche { aspect-ratio: auto; border-radius: 4px; max-width: 560px; overflow: visible; justify-self: end;
  padding: 10px; background: var(--w-papier-clair);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--w-encre) 16%, transparent), 0 40px 70px -40px rgba(27,37,64,.5); }
.w-page-tete__arche img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 2px;
  outline: 1px solid color-mix(in srgb, var(--w-encre) 10%, transparent); outline-offset: 4px; }
.w-page-tete__grille { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .w-page-tete__arche { justify-self: stretch; max-width: none; } }

/* ===== Mobile (2026-11-25) ===== */
/* L'en-tête passe toujours au-dessus du livre en 3D (bug d'empilement de Safari iPhone) */
.page-accueil .entete { position: sticky; z-index: 60; transform: translateZ(200px); -webkit-transform: translateZ(200px); }
.w-livre__scene, .w-livre { isolation: isolate; z-index: 0; }
.w-livre__objet { z-index: 1; }
/* Bouton Menu : grande zone tactile bien visible */
.page-accueil .menu-btn { min-height: 44px; min-width: 44px; padding: 10px 16px; margin-right: -6px; border: 1px solid color-mix(in srgb, var(--w-encre) 25%, transparent);
  border-radius: 999px; background: var(--w-papier-clair); color: var(--w-encre); font-weight: 500; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.page-accueil .voile__fermer { min-height: 44px; padding: 10px 16px; border: 1px solid color-mix(in srgb, var(--w-encre) 25%, transparent); border-radius: 999px; }

/* Jeunesse sur mobile : les livres défilent aussi à l'horizontale, une fiche compacte par écran */
@media (max-width: 860px) {
  .w-defile { position: relative; }
  .w-defile__collant { position: sticky; top: 64px; height: calc(100svh - 64px); overflow: hidden; display: flex; flex-direction: column; }
  .w-defile__compteur { display: flex !important; justify-content: space-between; padding-top: 12px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--w-gris); }
  .w-defile__compteur b { font-weight: 500; color: var(--w-encre); }
  .w-defile__barre { display: block !important; height: 2px; margin: 0 0 14px; background: color-mix(in srgb, var(--w-encre) 14%, transparent); }
  .w-defile__barre span { display: block; height: 100%; background: var(--w-encre); transform-origin: left; transform: scaleX(0); }
  .w-defile__piste { flex: 1; min-height: 0; display: flex; align-items: stretch; will-change: transform; }
  .w-defile__panneau { flex: 0 0 100vw; width: 100vw; height: 100%; margin: 0; padding: 10px var(--marge); display: flex; align-items: center; justify-content: center; }
  .w-defile .w-dp { width: 100%; margin: 0; grid-template-columns: 1fr; transform-origin: center center; }
  .w-defile .w-dp__gauche { padding: 22px 22px 8px !important; }
  .w-defile .w-dp__couv { max-height: 30svh; max-width: 70%; }
  .w-defile .w-dp__droite { padding: 10px 22px 40px; }
  .w-defile .w-dp__titre { font-size: 1.45rem; margin-bottom: 8px; }
  .w-defile .w-dp__accroche { font-size: 1rem; margin-bottom: 12px; }
  .w-defile .w-dp__texte, .w-defile .w-dp__avis, .w-defile .autre-langue { display: none; }
  .w-defile .w-dp__fiche { margin: 10px 0 14px; }
  .w-defile .w-dp__fiche div { padding: 8px 0; min-width: 70px; }
  .w-defile .w-boutons { gap: 8px; }
  .w-defile .w-bouton { padding: 10px 14px; font-size: .82rem; }
  .w-defile .w-dp__droite .w-dp__folio { bottom: 12px; }
  .w-partie--defile { padding-bottom: 0; }
}
@media (max-width: 860px) { .w-defile__compteur { width: 100%; box-sizing: border-box; } }

/* ===== Mobile : zoom sur le sommaire une fois le livre ouvert ===== */
.w-livre__scene { --z: 0; --zoom: 1; }
@media (max-width: 860px) {
  .w-livre { height: 380svh; }
  .w-livre__objet {
    transform: translateX(calc(var(--p) * var(--l) / 2 * (1 - var(--z))))
               scale(calc((.95 + var(--p) * .05) * (1 - var(--z)) + var(--zoom) * var(--z)));
    transition: none;
  }
  .w-decor__arche { opacity: calc(1 - var(--z) * .6); }
  /* lignes du sommaire en vrais boutons quand on est zoomé */
  .w-sommaire a { border-radius: 6px; transition: background .3s; }
  .w-livre.zoome .w-sommaire a { background: color-mix(in srgb, var(--w-encre) 6%, transparent); margin-bottom: 4px; padding-inline: 6px; }
  .w-livre.zoome .w-sommaire__fleche { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 50%;
    background: var(--w-encre); color: var(--w-papier-clair); font-size: .8em; animation: w-pousse 1.6s ease-in-out infinite; }
  .w-livre.zoome .w-page__label::after { content: " · touchez un chapitre"; }
}
@keyframes w-pousse { 50% { transform: translateX(3px); } }
.w-decor__coin--bd { opacity: calc(1 - var(--p) * 2); }
