/* Les Codes de Versailles — page de vente, Éditions Escalier Dérobé
   Palette du canal : #0F0C0A encre · #3C2A1A terre d’ombre · #B8913F or · #D7CDB3 parchemin · #1C4D80 bleu fenêtre
   Polices OFL hébergées sur la page (assets/fonts, licences OFL-*.txt). Mobile d’abord. */

@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-400Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("assets/fonts/EBGaramond-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #0F0C0A; --umber: #3C2A1A; --gold: #B8913F; --gold-deep: #7A5A1E; --parch: #D7CDB3;
  --blue: #1C4D80; --ivory: #F3EEE2; --paper: #F3EEE2; --night: #17110C; --muted: #C9BFA6;
  --serif-t: "Cormorant Garamond", "Garamond", serif;
  --serif: "EB Garamond", "Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--parch); font: 400 18px/1.55 var(--serif); font-kerning: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

/* ---------- éléments communs ---------- */
.label { font: 600 11px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.clair .label { color: var(--gold-deep); }
h1, h2, h3 { font-family: var(--serif-t); font-weight: 600; margin: 0; }
h2 { font-size: 38px; line-height: 1.05; color: var(--ivory); }
.clair h2 { color: var(--umber); }
.chapeau { font-size: 18px; color: var(--muted); max-width: 36em; margin: 14px 0 0; }
.clair .chapeau { color: #4A3826; }
.filet { width: 88px; height: 0; border-top: 1px solid var(--gold); margin: 16px 0; position: relative; transform-origin: left center; }
.centre .filet, .final .filet { transform-origin: center; }
.filet::after { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.centre { text-align: center; }
.centre .filet { margin-left: auto; margin-right: auto; }
.centre .chapeau { margin-left: auto; margin-right: auto; }
section { padding: 64px 0; }
.clair { background: var(--paper); color: var(--ink); }
.sombre { background: var(--night); }

.btn { display: inline-block; background: var(--gold); color: var(--ink); text-decoration: none; font: 600 16px/1 var(--sans); letter-spacing: .02em;
  padding: 18px 28px; border-radius: 2px; box-shadow: 0 0 0 1px #d9b765 inset, 0 10px 24px -12px rgba(184,145,63,.75); transition: background .2s, transform .2s; }
.btn:hover { background: #c9a24d; transform: translateY(-1px); }
.prix { font: 600 30px/1 var(--sans); color: var(--ivory); letter-spacing: -.01em; }
.clair .prix { color: var(--ink); }
.achat { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.meta { font: 600 12px/1.6 var(--sans); color: var(--muted); margin: 14px 0 0; letter-spacing: .02em; }
.meta b { color: var(--ivory); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.garantie { font: 600 12px/1.4 var(--sans); color: var(--muted); margin: 8px 0 0; }
.garantie::before { content: "◆ "; color: var(--gold); font-size: 9px; vertical-align: 1px; }
.clair .meta, .clair .garantie { color: #4A3826; }
.clair .meta b { color: var(--ink); }

/* ---------- 1. haut de page ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 80% at 75% 35%, #3C2A1A 0%, #1d1510 45%, var(--ink) 80%); }
.entete { max-width: var(--w); margin: 0 auto; padding: 18px 20px 0; display: flex; justify-content: center; }
.entete .label { margin: 0; }
.hero-grille { max-width: var(--w); margin: 0 auto; padding: 22px 20px 44px; display: grid; gap: 30px; }
h1 { font-size: 44px; line-height: 1; color: var(--ivory); letter-spacing: .005em; }
.sous { font: italic 400 21px/1.25 var(--serif-t); color: var(--parch); margin: 0 0 14px; }
.promesse { font-size: 17px; line-height: 1.5; color: #E6DDC8; margin: 0 0 20px; max-width: 34em; }

/* livre en perspective qui flotte (CSS seul, à partir de la couverture) */
.scene { position: relative; display: flex; justify-content: center; padding: 8px 0 34px; perspective: 1800px; }
.flotte { animation: flotte 6.5s ease-in-out infinite; }
.livre { position: relative; width: 210px; aspect-ratio: 1240 / 1754; transform: rotateY(-24deg) rotateX(4deg); transform-style: preserve-3d; }
.livre img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 1px 3px 3px 1px; box-shadow: inset 4px 0 6px -3px rgba(255,255,255,.25), 0 30px 50px -20px rgba(0,0,0,.6); }
.livre .tranche { position: absolute; top: 1.2%; right: -16px; width: 16px; height: 97.6%; transform-origin: left center; transform: rotateY(90deg);
  background: repeating-linear-gradient(to right, #efe7d3 0 1px, #d9cfb7 1px 2px); }
.livre .dos { position: absolute; top: 0; left: 0; width: 22px; height: 100%; transform-origin: left center; transform: rotateY(-90deg);
  background: linear-gradient(to right, #0a0806, #2a1d12 40%, #0a0806); }
.livre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,240,210,.16) 50%, rgba(255,255,255,0) 60%); pointer-events: none; }
.sol { position: absolute; bottom: 4px; left: 50%; width: 190px; height: 26px; margin-left: -95px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.75), rgba(0,0,0,0)); animation: ombre 6.5s ease-in-out infinite; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes ombre { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.82); opacity: .55; } }

/* ---------- 2. bandeau des chapitres ---------- */
.bandeau { border-top: 1px solid rgba(184,145,63,.55); border-bottom: 1px solid rgba(184,145,63,.55); background: var(--night); overflow: hidden; white-space: nowrap; }
.piste { display: inline-flex; padding: 14px 0; animation: defile 70s linear infinite; }
.piste span { font: italic 400 20px/1 var(--serif-t); color: var(--parch); padding: 0 18px; }
.piste i { font-style: normal; color: var(--gold); font-size: 10px; align-self: center; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- 3. Approchez-vous ---------- */
.approche-grille { display: grid; gap: 22px; margin-top: 30px; }
.gravure { margin: 0; border: 1px solid rgba(184,145,63,.5); background: #000; }
.carte { position: relative; }
.gravure img { width: 100%; }
.pt { position: absolute; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink);
  background: var(--gold); color: var(--ink); font: 600 15px/1 var(--sans); cursor: pointer; box-shadow: 0 0 0 4px rgba(184,145,63,.35); padding: 0; }
.pt[aria-pressed="true"] { background: var(--ivory); box-shadow: 0 0 0 4px rgba(243,238,226,.45), 0 0 0 9px rgba(184,145,63,.35); }
.pt:hover { background: #d6b25f; }
.gravure figcaption { font: 600 11px/1.5 var(--sans); color: var(--muted); padding: 10px 12px; background: var(--night); letter-spacing: .02em; }
.panneau { background: #201810; border-top: 2px solid var(--gold); padding: 18px 18px 20px; }
.panneau .num { font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.panneau h3 { font-size: 27px; line-height: 1.1; color: var(--ivory); margin: 10px 0 12px; }
.panneau .zoom { margin: 0 0 14px; border: 1px solid rgba(184,145,63,.45); background: #000; }
.panneau .zoom img { width: 100%; }
.panneau p { margin: 0 0 10px; color: #E6DDC8; font-size: 17px; }
.panneau .src { font: 600 11px/1.5 var(--sans); color: var(--muted); letter-spacing: .02em; }
.nav-pts { display: flex; align-items: center; gap: 12px; margin-top: 14px; font: 600 12px/1 var(--sans); color: var(--muted); }
.nav-pts button { font: 600 13px/1 var(--sans); background: transparent; color: var(--ivory); border: 1px solid rgba(184,145,63,.7); padding: 10px 14px; cursor: pointer; border-radius: 2px; }
.nav-pts button:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 4. Le même chemin ---------- */
.chemin { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; counter-reset: etape; }
.chemin li { position: relative; background: #fff; border: 1px solid #E2D9C4; border-top: 2px solid var(--gold); padding: 18px 18px 16px; }
.etape { display: block; font: 600 11px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.chemin h3 { font-size: 24px; color: var(--umber); margin: 8px 0 8px; line-height: 1.1; }
.chemin p { margin: 0; font-size: 16.5px; line-height: 1.5; }
.chemin .src { display: block; margin-top: 8px; font: 600 11px/1.45 var(--sans); color: #5A4A3A; }
.exemple-note { margin: 18px 0 0; font: 600 12px/1.5 var(--sans); color: #5A4A3A; }

/* ---------- 5. Sommaire ---------- */
.sommaire { margin-top: 30px; display: grid; gap: 28px; }
.som-groupe { font: 600 11px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.som { list-style: none; padding: 0; margin: 0; }
.sommaire > div > div + div { margin-top: 26px; }
.som li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(184,145,63,.22); }
.som .n { flex: 0 0 34px; font: 600 12px/1 var(--sans); color: var(--gold); letter-spacing: .04em; }
.som .t { flex: 1 1 auto; font-size: 18px; color: var(--ivory); line-height: 1.3; }
.som .t em { display: block; font: italic 400 16px/1.3 var(--serif-t); color: var(--muted); }
.som .p { flex: 0 0 auto; font: 600 12px/1 var(--sans); color: var(--muted); }
.cta-milieu { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(184,145,63,.35); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------- 6. Feuilletez ---------- */
.pages { margin: 30px -20px 0; padding: 0 20px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.pages figure { margin: 0; scroll-snap-align: start; }
.pages img { width: 100%; aspect-ratio: 520 / 737; background: #fff; box-shadow: 0 14px 30px -16px rgba(60,42,26,.55), 0 0 0 1px #E2D9C4; }
.pages figcaption { margin-top: 12px; font: 600 12px/1.45 var(--sans); color: #4A3826; }
.pages figcaption b { display: block; font: 600 20px/1.15 var(--serif-t); color: var(--umber); letter-spacing: 0; margin-bottom: 2px; }
.glisser { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #5A4A3A; margin-top: 8px; }

/* ---------- 7. Mythe ou document ? ---------- */
.mythes { display: grid; gap: 16px; margin-top: 30px; }
.mythe { background: var(--paper); color: var(--ink); border-top: 2px solid var(--gold); padding: 20px 20px 18px; }
.mythe .idee { font: italic 400 24px/1.2 var(--serif-t); color: var(--umber); margin: 0 0 12px; }
.verdict { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); border: 1px solid var(--blue); padding: 6px 8px; margin-bottom: 10px; }
.mythe p { margin: 0; font-size: 16.5px; line-height: 1.5; }
.mythe .src { display: block; margin-top: 10px; font: 600 11px/1.45 var(--sans); color: #5A4A3A; }

/* ---------- 8. Les témoins ---------- */
.temoins { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 0; }
.temoins li { padding: 18px 0; border-bottom: 1px solid #E2D9C4; display: grid; gap: 4px; }
.temoins .nom { font: 600 25px/1.1 var(--serif-t); color: var(--umber); }
.temoins .dates { font: 600 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.temoins p { margin: 2px 0 0; font-size: 17px; }
.autres { margin: 20px 0 0; font-size: 16.5px; color: #4A3826; }

/* ---------- 9. FAQ ---------- */
.faq { margin-top: 26px; border-top: 1px solid rgba(184,145,63,.4); }
.faq details { border-bottom: 1px solid rgba(184,145,63,.4); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 600 22px/1.2 var(--serif-t); color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 600 22px/1 var(--sans); color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: #E6DDC8; font-size: 17px; max-width: 40em; }

/* ---------- 10. Appel final ---------- */
.final { background: radial-gradient(90% 70% at 50% 30%, #3C2A1A 0%, #1d1510 50%, var(--ink) 85%); text-align: center; padding: 70px 0 80px; }
.final .scene { padding-bottom: 40px; }
.final h2 { font-size: 40px; }
.final .chapeau { margin-left: auto; margin-right: auto; }
.final .achat { justify-content: center; margin-top: 24px; }

/* ---------- pied de page ---------- */
footer { background: #0a0806; color: var(--muted); padding: 36px 0 100px; font: 600 12px/1.6 var(--sans); }
footer p { margin: 0 0 10px; max-width: 60em; }

/* ---------- barre d’achat mobile (apparaît après le haut de page, CSS seul) ---------- */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(15,12,10,.96); border-top: 1px solid rgba(184,145,63,.6); }
.barre .t { font: 600 18px/1.1 var(--serif-t); color: var(--ivory); }
.barre .t span { display: block; font: 600 12px/1.3 var(--sans); color: var(--muted); }
.barre .btn { padding: 14px 18px; font-size: 15px; }
@supports (animation-timeline: scroll()) {
  .barre { animation: barre linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
  @keyframes barre { 0%, 80% { transform: translateY(110%); } 100% { transform: translateY(0); } }
}

/* ---------- tablette et bureau ---------- */
@media (min-width: 720px) {
  .chemin { grid-template-columns: repeat(5, 1fr); }
  .chemin li { padding: 18px 16px 16px; }
  .mythes { grid-template-columns: 1fr 1fr; }
  .pages { margin: 30px 0 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; gap: 34px 26px; }
  .glisser { display: none; }
  .sommaire { grid-template-columns: 1.3fr 1fr; gap: 20px 48px; }
  .temoins { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (min-width: 960px) {
  .wrap, .entete, .hero-grille { padding-left: 40px; padding-right: 40px; }
  section { padding: 96px 0; }
  h2 { font-size: 52px; }
  .entete { justify-content: flex-start; padding-top: 26px; }
  .hero-grille { grid-template-columns: 1.08fr .92fr; align-items: center; padding-top: 56px; padding-bottom: 80px; gap: 40px; }
  h1 { font-size: 78px; }
  .sous { font-size: 29px; }
  .promesse { font-size: 19.5px; }
  .livre { width: 320px; }
  .sol { width: 280px; margin-left: -140px; }
  .prix { font-size: 34px; }
  .approche-grille { grid-template-columns: 1.55fr 1fr; align-items: start; gap: 30px; }
  .pt { width: 34px; height: 34px; font-size: 14px; }
  .panneau { position: sticky; top: 24px; }
  .final h2 { font-size: 58px; }
  .barre { display: none; }
  footer { padding-bottom: 40px; }
}

/* ---------- décor de fond : haut de page et offre finale ---------- */
.decor { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.plan { position: absolute; top: -4%; right: -18%; width: 92%; height: 108%;
  background: url("assets/img/fond-blondel-600.webp") no-repeat center / contain; opacity: .14;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); }
.vue { position: absolute; left: 0; right: 0; bottom: 0; height: 72%;
  background: url("assets/img/fond-patel-800.webp") no-repeat center bottom / cover; opacity: .55; }
.final .wrap, .hero-grille, .entete, .bandeau { position: relative; }
.coin { position: absolute; width: 46px; height: 46px; border: 0 solid rgba(184,145,63,.55); }
.coin::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); opacity: .8; }
.c1 { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.c2 { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.c3 { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.c4 { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.c1::after { top: -4px; left: -4px; } .c2::after { top: -4px; right: -4px; }
.c3::after { bottom: -4px; left: -4px; } .c4::after { bottom: -4px; right: -4px; }
.hero .c3, .hero .c4 { bottom: 64px; }
.poussiere i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #E9CF8E; opacity: 0;
  box-shadow: 0 0 6px 1px rgba(233,207,142,.6); }
.poussiere i:nth-child(1) { left: 6%; } .poussiere i:nth-child(2) { left: 14%; width: 2px; height: 2px; }
.poussiere i:nth-child(3) { left: 22%; } .poussiere i:nth-child(4) { left: 31%; width: 4px; height: 4px; }
.poussiere i:nth-child(5) { left: 39%; width: 2px; height: 2px; } .poussiere i:nth-child(6) { left: 47%; }
.poussiere i:nth-child(7) { left: 55%; width: 2px; height: 2px; } .poussiere i:nth-child(8) { left: 62%; width: 4px; height: 4px; }
.poussiere i:nth-child(9) { left: 69%; } .poussiere i:nth-child(10) { left: 75%; width: 2px; height: 2px; }
.poussiere i:nth-child(11) { left: 81%; } .poussiere i:nth-child(12) { left: 87%; width: 4px; height: 4px; }
.poussiere i:nth-child(13) { left: 92%; width: 2px; height: 2px; } .poussiere i:nth-child(14) { left: 97%; }
@media (min-width: 960px) {
  .plan { background-image: url("assets/img/fond-blondel-1000.webp"); right: -6%; width: 62%; opacity: .16; }
  .vue { background-image: url("assets/img/fond-patel-1600.webp"); height: 85%; opacity: .6; }
  .coin { width: 70px; height: 70px; }
  .c1, .c2 { top: 20px; } .c1, .c3 { left: 20px; } .c2, .c4 { right: 20px; } .final .c3, .final .c4 { bottom: 20px; }
  .hero .c3, .hero .c4 { bottom: 72px; }
}
@media (prefers-reduced-motion: no-preference) {
  .plan { animation: derive 40s ease-in-out infinite alternate; }
  .vue { animation: respire 30s ease-in-out infinite alternate; }
  .poussiere i { animation: poussiere 14s linear infinite; }
  .poussiere i:nth-child(2n) { animation-duration: 18s; animation-delay: -4s; }
  .poussiere i:nth-child(3n) { animation-duration: 22s; animation-delay: -9s; }
  .poussiere i:nth-child(4n) { animation-delay: -13s; }
  .poussiere i:nth-child(5n) { animation-duration: 16s; animation-delay: -6s; }
  .coin { animation: fondu 1.6s .6s both; }
}
@keyframes derive { from { transform: translate(0, 0) scale(1); } to { transform: translate(-3%, 2%) scale(1.06); } }
@keyframes respire { from { transform: scale(1); } to { transform: scale(1.05) translateY(-1%); } }
@keyframes poussiere { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(18px, -45vh); }
  85% { opacity: .5; } 100% { transform: translate(-10px, -90vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .poussiere { display: none; } }

/* ---------- animations (seulement si l’appareil n’a pas demandé moins de mouvement) ---------- */
.btn { position: relative; overflow: hidden; }
.final, .hero { isolation: isolate; }
.final { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  /* entrée du haut de page */
  .hero-grille > div:first-child > * { animation: monte .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-grille > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .hero-grille > div:first-child > :nth-child(3) { animation: trace .9s .35s cubic-bezier(.2,.7,.2,1) both; }
  .hero-grille > div:first-child > :nth-child(4) { animation-delay: .22s; }
  .hero-grille > div:first-child > :nth-child(5) { animation-delay: .32s; }
  .hero-grille > div:first-child > :nth-child(n+6) { animation-delay: .44s; }
  .hero .scene { animation: apparait 1.3s .2s cubic-bezier(.2,.7,.2,1) both; }
  .entete { animation: fondu 1s both; }

  /* lueur de bougie derrière le livre (haut et appel final) */
  .hero::before, .final::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(184,145,63,.20), rgba(184,145,63,0)); animation: bougie 5s ease-in-out infinite; }
  .hero::before { right: -120px; top: 40px; }
  .final::before { left: 50%; top: -60px; margin-left: -310px; }

  /* reflet qui passe sur les boutons */
  .btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
    background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,250,235,.55), rgba(255,255,255,0)); transform: skewX(-18deg);
    animation: reflet 5.5s ease-in-out infinite 1.5s; }

  /* numéros de la gravure qui appellent le toucher */
  .pt[aria-pressed="false"] { animation: pouls 2.6s ease-out infinite; }
  .pt:nth-of-type(2) { animation-delay: .4s; } .pt:nth-of-type(3) { animation-delay: .8s; }
  .pt:nth-of-type(4) { animation-delay: 1.2s; } .pt:nth-of-type(5) { animation-delay: 1.6s; }
  .det:not([hidden]) { animation: fondu-monte .5s cubic-bezier(.2,.7,.2,1) both; }
  .zoom { overflow: hidden; }
  .det:not([hidden]) .zoom img { animation: approche 9s ease-out both; }

  /* survols */
  .pages figure, .mythe, .chemin li { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
  .pages figure:hover { transform: translateY(-8px) rotate(-.6deg); }
  .mythe:hover, .chemin li:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgba(0,0,0,.6); }
  .som li { transition: padding-left .25s, background .25s; }
  .som li:hover { padding-left: 6px; background: rgba(184,145,63,.06); }
  .faq details[open] p { animation: fondu-monte .4s both; }

  /* apparition au défilement (CSS seul ; sans prise en charge, tout reste visible) */
  @supports (animation-timeline: view()) {
    section .label, section h2, section .chapeau, .gravure, .panneau, .chemin li, .som-groupe, .cta-milieu,
    .pages figure, .mythe, .temoins li, .autres, .faq details, .final .achat, .final .scene {
      animation: monte linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
    section .filet { animation: trace linear both; animation-timeline: view(); animation-range: entry 10% entry 60%; }
    .chemin li:nth-child(2), .pages figure:nth-child(3n+2), .mythe:nth-child(2n), .temoins li:nth-child(2n) { animation-range: entry 12% entry 55%; }
    .chemin li:nth-child(3), .pages figure:nth-child(3n) { animation-range: entry 19% entry 65%; }
    .chemin li:nth-child(4) { animation-range: entry 26% entry 75%; }
    .chemin li:nth-child(5) { animation-range: entry 33% entry 85%; }
    .verdict { animation: tampon linear both; animation-timeline: view(); animation-range: entry 30% entry 70%; }
    .final .flotte, .hero .flotte { animation: flotte 6.5s ease-in-out infinite; }
  }
}
@keyframes monte { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fondu-monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes apparait { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes trace { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes tampon { from { opacity: 0; transform: scale(1.35) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes bougie { 0%, 100% { opacity: .75; transform: scale(1); } 40% { opacity: 1; transform: scale(1.06); } 70% { opacity: .85; transform: scale(.98); } }
@keyframes reflet { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(184,145,63,.75); } 70%, 100% { box-shadow: 0 0 0 16px rgba(184,145,63,0); } }
@keyframes approche { from { transform: scale(1.12); } to { transform: scale(1); } }

/* ---------- moins de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flotte, .sol, .piste { animation: none; }
  .bandeau { white-space: normal; }
  .piste { flex-wrap: wrap; justify-content: center; }
  .piste .d { display: none; }
  .barre { animation: none; transform: none; }
  .btn { transition: none; }
}
