/* Page de vente du livre « Ce que la vie t'apprendra de toute façon ».
   Parti pris : la page est faite de la matière du livre. Papier crème grainé, rouge sablé des pages « À retenir »,
   League Gothic des titres, aquarelles posées dans le papier (multiply). Un seul geste fort : le livre en volume
   en haut, puis la leçon de l'éléphant qu'on lit en entier et à laquelle on répond. Le reste se tait. */
:root {
  --papier: #F5F0E5; --papier-2: #EDE5D3; --feuille: #FBF8F1; --sable: #E2D5BA;
  --encre: #1D1712; --encre-2: #54483D; --trait: rgba(29, 23, 18, .17);
  --rouge: #C91D18; --rouge-nuit: #8C1310; --chanvre: #A6772E;
  --titre: "League Gothic", "Arial Narrow", Impact, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ital: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --texte: "EB Garamond", Georgia, "Times New Roman", serif;
  --col: 34rem; --large: 72rem; --marge: clamp(1.25rem, 5vw, 3rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; color: var(--encre); background: var(--papier) url(img/grain-papier.webp);
  font: 400 1.1875rem/1.58 var(--texte); font-feature-settings: "liga", "onum"; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--rouge); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { color: var(--rouge); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 2px; }
.rouge :focus-visible { outline-color: var(--papier); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aqua { mix-blend-mode: multiply; }                       /* aquarelle sur blanc pur : le blanc disparaît dans le papier */

/* ---------- titres ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; }
.t { font-family: var(--titre); text-transform: uppercase; line-height: .9; letter-spacing: .005em; }
.encre {                                                  /* encre de presse : de minuscules manques dans l'aplat */
  color: var(--encre);
  background: url(img/grain-clair.webp), linear-gradient(var(--encre), var(--encre));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.encre.r { background-image: url(img/grain-clair.webp), linear-gradient(var(--rouge), var(--rouge)); color: var(--rouge); }
.ital { font-family: var(--ital); font-style: italic; font-weight: 500; line-height: 1.16; }
.label { font: 600 .875rem/1.2 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); }
h2.t { font-size: clamp(2.9rem, 11.5vw, 5.6rem); }
h2.t + .chapo { margin-top: 1.1rem; }
.chapo { font-size: 1.3125rem; line-height: 1.5; max-width: var(--col); color: var(--encre); }
.petit { font-size: 1rem; line-height: 1.5; color: var(--encre-2); }

/* ---------- structure ---------- */
.w { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--marge); }
.sec { padding: clamp(4rem, 11vw, 7.5rem) 0; position: relative; }
.sec.p2 { background: var(--papier-2) url(img/grain-papier.webp); }
.rouge {
  color: var(--papier);
  background: url(img/grain-sable.webp), url(img/grain-clair.webp), radial-gradient(120% 90% at 22% 0%, #D3241E 0%, #C31B16 46%, #A81512 100%);
}
.rouge .label { color: rgba(245, 240, 229, .82); }
.rouge a { text-decoration-color: var(--papier); }
.rouge a:hover { color: #fff; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 3.5rem; padding: .7rem 1.6rem;
  font: 600 1.25rem/1 var(--label); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; text-align: center;
  color: var(--papier); background: var(--rouge) url(img/grain-sable.webp); border: 0; border-radius: 3px; cursor: pointer;
  box-shadow: 0 3px 0 var(--rouge-nuit), 0 14px 26px -14px rgba(140, 19, 16, .7); transition: transform .12s, box-shadow .12s;
}
.btn:hover { color: var(--papier); transform: translateY(-1px); box-shadow: 0 4px 0 var(--rouge-nuit), 0 18px 28px -14px rgba(140, 19, 16, .75); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rouge-nuit); }
.btn .prix { padding-left: .6em; border-left: 1px solid rgba(245, 240, 229, .45); }
.btn.clair { color: var(--rouge); background: var(--papier) url(img/grain-papier.webp); box-shadow: 0 3px 0 rgba(0, 0, 0, .28), 0 16px 30px -14px rgba(0, 0, 0, .55); }
.btn.clair:hover { color: var(--rouge-nuit); }
.btn.clair .prix { border-left-color: rgba(201, 29, 24, .35); }
.lien { font: 600 1.0625rem/1.2 var(--label); letter-spacing: .06em; text-transform: uppercase; }
form.achat { display: inline; margin: 0; }
.micro { margin: 1rem 0 0; max-width: 31rem; font-size: 1.0625rem; line-height: 1.45; color: var(--encre-2); }
.micro a { display: block; margin-top: .35rem; color: var(--encre); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- bandeau du haut ---------- */
.haut { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.haut .w { display: flex; align-items: center; justify-content: space-between; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.haut .logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.haut .logo svg { width: 1.55rem; height: auto; flex: none; border-radius: 1.5px; box-shadow: 1px 2px 4px rgba(60, 40, 15, .28); }
.haut .logo span { font: 400 1.06rem/.96 var(--titre); letter-spacing: .02em; text-transform: uppercase; }
.haut .lien { font-size: .9375rem; }

/* ---------- ouverture ---------- */
.hero { padding: 5.2rem 0 0; overflow: hidden; }
.hero .w { display: grid; gap: 2.2rem; }
.hero h1 { font-size: clamp(3rem, 16vw, 8.2rem); margin-left: -.03em; }
.hero h1 span { white-space: nowrap; }
.hero h1 span { display: block; }
.hero .suite { font-size: clamp(1.75rem, 6.6vw, 2.9rem); color: var(--rouge); margin: 1rem 0 0; max-width: 15em; }
.hero .chapo { margin: 1.4rem 0 1.7rem; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.6rem; }
.faits { list-style: none; margin: 2rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--trait); display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; }
.faits li { font: 600 .9375rem/1.3 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); }
.faits b { color: var(--encre); font-weight: 600; }

/* le livre en volume (CSS seulement : la vraie couverture, la tranche de pages à droite) */
.scene { position: relative; display: grid; place-items: center; padding: 1rem 0 0; perspective: 1700px; min-height: 25rem; }
.scene::before {                                           /* le sol : une flaque de sable */
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(34rem, 118%); height: 62%; transform: translateX(-50%);
  background: url(img/grain-sable.webp), radial-gradient(60% 100% at 50% 100%, var(--sable) 0%, rgba(226, 213, 186, .55) 55%, rgba(226, 213, 186, 0) 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.ombre { position: absolute; left: 50%; bottom: 1.9rem; width: 17rem; height: 2.4rem; transform: translateX(-42%); background: radial-gradient(closest-side, rgba(40, 22, 10, .5), rgba(40, 22, 10, 0)); filter: blur(7px); }
.livre3d { --l: 15.5rem; --e: 1.5rem; position: relative; width: var(--l); aspect-ratio: 2 / 3; margin-bottom: 3.4rem; transform-style: preserve-3d; transform: rotateX(5deg) rotateY(-27deg) rotateZ(.6deg); animation: pose 1.15s cubic-bezier(.2, .7, .2, 1) both; }
.livre3d > * { position: absolute; }
.livre3d .face { inset: 0; transform: translateZ(calc(var(--e) / 2)); background: var(--papier); border-radius: 1px 3px 3px 1px; overflow: hidden; box-shadow: inset 5px 0 7px -4px rgba(0, 0, 0, .35); }
.livre3d .face img { width: 100%; height: 100%; object-fit: cover; }
.livre3d .face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255, 255, 255, .0) 30%, rgba(255, 255, 255, .16) 46%, rgba(255, 255, 255, 0) 60%), url(img/grain-papier.webp); }
.livre3d .pages { top: .9%; bottom: .9%; left: 100%; width: var(--e); transform-origin: left center; transform: translateZ(calc(var(--e) / 2)) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f7f1e2 0 1px, #dccfb4 1px 2px, #f3ecdb 2px 3px); box-shadow: inset 0 0 6px rgba(80, 50, 20, .35); }
.livre3d .dessus { left: 0; right: .4%; bottom: 100%; height: var(--e); transform-origin: center bottom; transform: translateZ(calc(var(--e) / 2)) rotateX(90deg);
  background: repeating-linear-gradient(0deg, #f7f1e2 0 1px, #dccfb4 1px 2px, #f3ecdb 2px 3px); }
.livre3d .arriere { inset: 0; transform: translateZ(calc(var(--e) / -2)); background: #7d100d; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
@keyframes pose { from { opacity: 0; transform: translateY(26px) rotateX(2deg) rotateY(-6deg); } to { opacity: 1; } }

.corde { display: block; width: min(52rem, 124%); max-width: none; margin: 0 auto; position: relative; left: 50%; transform: translateX(-50%); }
.hero .corde { margin-top: -.6rem; }

/* ---------- les voix ---------- */
.voix h2 .guil { color: var(--rouge); }
.mur { margin: 2.8rem 0 0; padding: 0; list-style: none; columns: 1; column-gap: 3rem; }
.mur li { break-inside: avoid; padding: 1.25rem 0 1.3rem; border-top: 1px solid var(--trait); }
.mur blockquote { margin: 0; font: italic 500 1.5625rem/1.22 var(--ital); }
.mur li:nth-child(3n + 1) blockquote { font-size: 1.875rem; }
.mur cite { display: block; margin-top: .55rem; font: 600 .8125rem/1.3 var(--label); letter-spacing: .09em; text-transform: uppercase; font-style: normal; color: var(--encre-2); }
.mur li:nth-child(n + 9) { display: none; }
.source { margin-top: 2.2rem; max-width: var(--col); }

/* ---------- une leçon, page par page ---------- */
.etapes { list-style: none; margin: 3rem calc(var(--marge) * -1) 0; padding: 0 var(--marge) 1.2rem; display: grid; grid-auto-flow: column; grid-auto-columns: 13.5rem; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.etapes li { scroll-snap-align: start; }
.etapes figure { margin: 0; }
.etapes img { width: 100%; background: var(--feuille); box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 16px 26px -18px rgba(60, 35, 10, .65); }
.etapes li:nth-child(odd) img { transform: rotate(-1.1deg); }
.etapes li:nth-child(even) img { transform: rotate(.9deg); }
.etapes .n { display: block; margin-top: 1.25rem; font: 400 2.6rem/1 var(--titre); color: var(--rouge); }
.etapes h3 { font: 500 1.375rem/1.2 var(--texte); margin: .15rem 0 .3rem; }
.etapes p { font-size: 1.0625rem; line-height: 1.45; color: var(--encre-2); margin: 0; }

/* ---------- la leçon à lire ---------- */
.lecture .entete { max-width: var(--col); }
.feuille { position: relative; max-width: 39rem; margin: 2.8rem auto 0; padding: clamp(1.6rem, 6vw, 3.6rem) clamp(1.3rem, 6vw, 3.9rem) clamp(2rem, 6vw, 3.6rem); background: var(--feuille) url(img/grain-papier.webp);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px rgba(29, 23, 18, .06), 0 30px 50px -34px rgba(60, 35, 10, .6); }
.feuille .num { font: 400 5.6rem/.8 var(--titre); color: var(--rouge); }
.feuille .nomhist { margin: .9rem 0 .2rem; }
.feuille h3.t { font-size: clamp(2.1rem, 8vw, 3.1rem); line-height: .95; margin-bottom: 1.6rem; }
.recit p { margin: 0; text-indent: 1.35em; hyphens: auto; }
.recit p:first-of-type, .recit figure + p, .recit p.dial + p.dial { text-indent: 0; }
.recit p.dial { text-indent: 0; }
.recit > p:first-of-type::first-letter { font: 400 3.5em/.8 var(--titre); float: left; padding: .06em .09em 0 0; color: var(--rouge); }
.recit figure { margin: 1.6rem auto 1.4rem; max-width: 19rem; text-align: center; }
.recit figcaption { font: italic 500 1.125rem/1.3 var(--ital); color: var(--encre-2); margin-top: .3rem; }
details.reste > summary { list-style: none; cursor: pointer; margin: 1.5rem 0 0; }
details.reste > summary::-webkit-details-marker { display: none; }
details.reste[open] > summary { display: none; }
.bouton-suite { display: flex; align-items: center; justify-content: center; min-height: 3.3rem; border: 1.5px solid var(--encre); border-radius: 3px; font: 600 1.125rem/1 var(--label); letter-spacing: .07em; text-transform: uppercase; }
details.reste > summary:hover .bouton-suite { background: var(--encre); color: var(--papier); }
.retenir { margin: 2.6rem calc(clamp(1.3rem, 6vw, 3.9rem) * -1); padding: 2.6rem clamp(1.3rem, 6vw, 3.9rem); }
.retenir p { font: italic 500 clamp(1.75rem, 6.2vw, 2.4rem)/1.14 var(--ital); margin: .5rem 0 0; }
.toi h4 { font: 400 clamp(1.9rem, 7vw, 2.6rem)/.95 var(--titre); text-transform: uppercase; margin: 0 0 1rem; }
.toi ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.toi li { font: italic 500 1.4375rem/1.25 var(--ital); padding: .45rem 0; border-bottom: 1px solid var(--trait); }
.toi .chute { font: italic 600 1.5rem/1.25 var(--ital); color: var(--rouge); margin-top: 1.1rem; }
.question { margin-top: 2.6rem; padding-top: 2rem; border-top: 2px solid var(--encre); }
.question h4 { font: 500 1.625rem/1.25 var(--texte); margin: .5rem 0 1.1rem; }
.question textarea { display: block; width: 100%; min-height: 8.2rem; padding: .3rem .1rem; border: 0; border-bottom: 1px solid var(--trait); border-radius: 0; resize: vertical; color: var(--encre);
  font: italic 500 1.5rem/2.05rem var(--ital); background: transparent repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.05rem - 1px), var(--trait) calc(2.05rem - 1px), var(--trait) 2.05rem); background-attachment: local; }
.question textarea::placeholder { color: rgba(84, 72, 61, .6); }
.question .secret { margin: .7rem 0 0; }
.question .apres { margin: 1.3rem 0 0; padding: 1.1rem 1.2rem; background: var(--papier-2); border-left: 3px solid var(--rouge); }
.question .apres p:last-child { margin: 0; }
.pas { margin-top: 2.6rem; padding-top: 2rem; border-top: 2px solid var(--encre); }
.pas h4 { font: 400 clamp(1.9rem, 7vw, 2.6rem)/.95 var(--titre); text-transform: uppercase; margin: .5rem 0 1rem; }
.pas p:last-child { margin-bottom: 0; }
.suite-livre { max-width: 39rem; margin: 2.6rem auto 0; padding: 1.8rem 0 0; }
.suite-livre .grand { font: 400 clamp(2.1rem, 8vw, 3rem)/.95 var(--titre); text-transform: uppercase; margin: 0 0 .7rem; }
.suite-livre p { font-size: 1.3125rem; line-height: 1.45; margin: 0 0 1.4rem; }
.suite-livre .micro { font-size: 1.0625rem; margin: 1rem 0 0; }
.autres { margin: 3rem auto 0; max-width: 39rem; }
.autres ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.autres li { padding: .8rem 0; border-top: 1px solid var(--trait); }
.autres blockquote { margin: 0; font: italic 500 1.4375rem/1.25 var(--ital); }
.autres cite { display: block; font: 600 .8125rem/1.3 var(--label); letter-spacing: .09em; text-transform: uppercase; font-style: normal; color: var(--encre-2); margin-top: .3rem; }

/* ---------- les 21 leçons ---------- */
.partie { margin-top: 3.4rem; }
.partie header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.2rem; padding-bottom: .9rem; border-bottom: 2px solid var(--encre); }
.partie h3 { font: 400 clamp(2.2rem, 8vw, 3.2rem)/.95 var(--titre); text-transform: uppercase; }
.partie header p { margin: 0; font: italic 500 1.3125rem/1.2 var(--ital); color: var(--encre-2); }
.lecons { list-style: none; margin: 0; padding: 0; }
.lecons li { display: grid; grid-template-columns: 2.2rem 1fr 4.4rem; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--trait); }
.lecons .n { font: 400 1.9rem/1 var(--titre); color: var(--rouge); }
.lecons .titre { display: block; font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.lecons .hist { display: block; font: italic 500 1.125rem/1.25 var(--ital); color: var(--encre-2); margin-top: .1rem; }
.lecons img { width: 4.4rem; height: 3.6rem; object-fit: contain; }

/* ---------- pourquoi / pour qui ---------- */
.duo { display: grid; gap: 2.4rem; align-items: center; }
.duo .visuel img { margin: 0 auto; width: min(21rem, 86%); }
.raisons { list-style: none; margin: 2rem 0 0; padding: 0; max-width: var(--col); }
.raisons li { padding: 1.05rem 0; border-top: 1px solid var(--trait); }
.raisons b { display: block; font-weight: 500; font-size: 1.3125rem; line-height: 1.3; }
.raisons span { color: var(--encre-2); }
.pourqui { display: grid; gap: 3rem; margin-top: 2.6rem; }
.pourqui h3 { font: italic 500 1.875rem/1.15 var(--ital); margin-bottom: .8rem; }
.pourqui ul { margin: 0; padding: 0; list-style: none; }
.pourqui li { padding: .7rem 0 .7rem 1.6rem; border-top: 1px solid var(--trait); position: relative; }
.pourqui li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .8rem; height: 2px; background: var(--rouge); }
.pourqui .non li::before { background: var(--encre-2); }
.pourqui img { width: min(19rem, 80%); margin: 0 auto 1rem; }

/* ---------- l'auteur ---------- */
.auteur .w { display: grid; gap: 1.8rem; }
.auteur img { width: 8.5rem; height: 8.5rem; border-radius: 50%; object-fit: cover; filter: sepia(.28) saturate(.9); box-shadow: 0 0 0 5px var(--papier), 0 0 0 6px var(--trait); }
.auteur .corps { max-width: var(--col); }
.auteur h2 { font-size: clamp(2.2rem, 7vw, 3.2rem); margin-bottom: 1rem; }
.auteur .liens { display: flex; flex-wrap: wrap; gap: .9rem 2rem; }

/* ---------- l'offre ---------- */
.offre .w { display: grid; gap: 2.6rem; }
.offre h2.t { font-size: clamp(3.2rem, 13vw, 6.4rem); }
.offre .somme { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem 1rem; margin: 1.6rem 0 0; }
.offre .somme b { font: 400 clamp(5.5rem, 22vw, 8.5rem)/.8 var(--titre); }
.offre .somme span { font: italic 500 1.5rem/1.2 var(--ital); color: rgba(245, 240, 229, .9); }
.offre .somme s { font: 400 2.2rem/1 var(--titre); opacity: .65; }
.contenu { list-style: none; margin: 0; padding: 0; }
.contenu li { padding: .85rem 0; border-top: 1px solid rgba(245, 240, 229, .28); font-size: 1.25rem; line-height: 1.4; }
.contenu li:last-child { border-bottom: 1px solid rgba(245, 240, 229, .28); }
.offre .btn { width: 100%; margin-top: 1.8rem; min-height: 4rem; font-size: 1.375rem; }
.offre .rassure { margin: 1rem 0 0; font-size: 1.0625rem; line-height: 1.45; color: rgba(245, 240, 229, .88); }
.offre .rassure.fort { margin-top: 1.3rem; font-size: 1.25rem; line-height: 1.4; color: var(--papier); }
.offre .soustitre { margin: .9rem 0 0; font: italic 500 1.5rem/1.2 var(--ital); color: rgba(245, 240, 229, .92); }
.etat { margin: 0 0 1.2rem; padding: .9rem 1.1rem; background: rgba(0, 0, 0, .22); border-left: 3px solid var(--papier); font-size: 1.125rem; }
.etat[hidden] { display: none; }

/* ---------- sans carte ---------- */
.sanscarte .w { display: grid; gap: 2.2rem; }
.sanscarte h2 { font-size: clamp(2.3rem, 8.5vw, 3.8rem); }
form.attente { display: grid; gap: 1.1rem; max-width: 31rem; }
.champ label, .champ legend { display: block; font: 600 .9375rem/1.3 var(--label); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; padding: 0; }
.champ .opt { text-transform: none; letter-spacing: 0; font: italic 500 1.0625rem/1 var(--ital); color: var(--encre-2); }
.champ input, .champ select { width: 100%; min-height: 3.2rem; padding: .5rem .8rem; font: 400 1.1875rem/1.2 var(--texte); color: var(--encre); background: var(--feuille); border: 1.5px solid rgba(29, 23, 18, .45); border-radius: 3px; -webkit-appearance: none; appearance: none; }
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - .9rem) 55%; background-size: .36rem .36rem; background-repeat: no-repeat; padding-right: 2.4rem; }
.champ input:focus, .champ select:focus { border-color: var(--rouge); }
.deux { display: grid; gap: 1.1rem; }
.accord { display: grid; grid-template-columns: 1.6rem 1fr; gap: .7rem; align-items: start; font-size: 1.0625rem; line-height: 1.4; }
.accord input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; accent-color: var(--rouge); }
.erreur { padding: .8rem 1rem; background: #fff; border-left: 3px solid var(--rouge); font-size: 1.0625rem; }
.erreur[hidden] { display: none; }

/* ---------- questions ---------- */
.faq { max-width: 44rem; }
.faq details { border-top: 1px solid var(--trait); }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 1.4rem; gap: 1rem; align-items: center; padding: 1.05rem 0; font-weight: 500; font-size: 1.3125rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 1rem; height: 1rem; background: linear-gradient(var(--rouge), var(--rouge)) center / 100% 2px no-repeat, linear-gradient(var(--rouge), var(--rouge)) center / 2px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: var(--col); color: var(--encre-2); }

/* ---------- la fin ---------- */
.fin { text-align: center; padding-bottom: 0; overflow: hidden; }
.fin .ital { font-size: clamp(2.1rem, 8.4vw, 4rem); max-width: 13em; margin: 0 auto 1.2rem; }
.fin .chapo { margin: 0 auto 2rem; max-width: 27rem; }
.fin .micro { margin: 1.1rem auto 0; }
.fin img { width: min(60rem, 150%); max-width: none; margin: 2.5rem 0 -1.5rem; position: relative; left: 50%; transform: translateX(-50%); }
.pied { background: var(--encre); color: rgba(245, 240, 229, .78); padding: 2.2rem 0 6.5rem; font-size: 1rem; }
.pied .w { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: space-between; }
.pied a { text-decoration-color: rgba(245, 240, 229, .4); }
.pied a:hover { color: #fff; }
.pied nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

/* ---------- barre d'achat (téléphone) ---------- */
.barre { position: fixed; inset: auto 0 0 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem var(--marge) calc(.7rem + env(safe-area-inset-bottom)); background: var(--papier) url(img/grain-papier.webp); border-top: 1px solid var(--trait); box-shadow: 0 -14px 26px -22px rgba(60, 35, 10, .8); transform: translateY(110%); transition: transform .28s ease; }
.barre.vue { transform: none; }
.barre .quoi { font: 400 1.5rem/1 var(--titre); text-transform: uppercase; letter-spacing: .02em; }
.barre .quoi small { display: block; font: italic 500 1rem/1.1 var(--ital); text-transform: none; color: var(--encre-2); letter-spacing: 0; }
.barre .btn { min-height: 3rem; font-size: 1.0625rem; padding: .5rem 1.1rem; box-shadow: 0 2px 0 var(--rouge-nuit); }

/* ---------- pages simples (merci, note, retrouver, confidentialité) ---------- */
.simple { min-height: 100vh; display: flex; flex-direction: column; }
.simple main { flex: 1; padding: 6.5rem 0 4rem; }
.simple .w { max-width: 44rem; }
.simple h1 { font-size: clamp(3rem, 12vw, 5.2rem); margin-bottom: 1.2rem; }
.simple h2 { font: 500 1.5rem/1.25 var(--texte); margin: 2rem 0 .5rem; }
.simple .pied { padding-bottom: 2.2rem; }
.liens { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: 1rem; }
.liens .btn { width: 100%; justify-content: space-between; text-transform: none; letter-spacing: .01em; font-size: 1.3125rem; text-align: left; }
.liens small { font: italic 500 1.125rem/1 var(--ital); opacity: .9; white-space: nowrap; }
.attend { display: flex; gap: .9rem; align-items: center; }
.attend::before { content: ""; width: 1.3rem; height: 1.3rem; border: 2px solid var(--trait); border-top-color: var(--rouge); border-radius: 50%; animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- plus large ---------- */
@media (min-width: 44rem) {
  .mur { columns: 2; }
  .mur li:nth-child(n + 9) { display: block; }
  .deux { grid-template-columns: 1fr 1fr; }
  .lecons li { grid-template-columns: 2.8rem 1fr 5.4rem; gap: 1.2rem; }
  .lecons img { width: 5.4rem; height: 4.2rem; }
  .pourqui { grid-template-columns: 1fr 1fr; }
  .auteur .w { grid-template-columns: 8.5rem 1fr; gap: 2.6rem; align-items: start; }
}
@media (min-width: 62rem) {
  body { font-size: 1.25rem; }
  .hero { padding-top: 6.5rem; }
  .hero .w { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 1rem; }
  .hero .texte { container-type: inline-size; }
  /* la ligne la plus longue fait 5,37 em : le titre remplit sa colonne sans jamais en sortir */
  .hero h1 { font-size: clamp(4.6rem, 8.2vw, 9.4rem); font-size: min(10.4rem, 18.2cqi); }
  .livre3d { --l: 21rem; --e: 2rem; }
  .scene { min-height: 38rem; }
  .ombre { width: 23rem; }
  .mur { columns: 3; }
  .etapes { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; gap: 2rem; }
  .duo { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  .duo.inv .visuel { order: -1; }
  .lecons { columns: 2; column-gap: 4rem; }
  .lecons li { break-inside: avoid; }
  .offre .w { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .sanscarte .w { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .barre { display: none; }
  .pied { padding-bottom: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .livre3d { animation: none; }
  .barre, .btn { transition: none; }
}
@media print { .barre, .haut { display: none; } }

/* ---------- ouverture : tout tient dans le premier écran, sans défiler ---------- */
/* Téléphone : le titre, le livre en grand à côté de la phrase rouge, le bouton, puis la corde, le tout dans le premier écran.
   Le texte de présentation passe juste sous la corde. */
@media (max-width: 61.99rem) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "titre titre" "suite livre" "actions actions" "corde corde" "chapo chapo" "faits faits";
    column-gap: .9rem; align-items: center; padding: 4.2rem var(--marge) 0; }
  .hero .w, .hero .texte { display: contents; }
  .hero h1 { grid-area: titre; font-size: min(16vw, 9.4svh, 8.2rem); }
  .hero .suite { grid-area: suite; font-size: min(6.6vw, 4svh, 2.6rem); line-height: 1.14; margin: 0; }
  .hero .scene { grid-area: livre; min-height: 0; padding: .7rem .5rem 0 0; perspective: 900px; }
  .hero .scene::before { width: 150%; height: 42%; }
  .hero .livre3d { --l: min(10rem, 40vw, 30svh); --e: .9rem; margin-bottom: 1rem; }
  .hero .ombre { width: 9rem; height: 1.3rem; bottom: .45rem; filter: blur(5px); }
  .hero .actions { grid-area: actions; gap: .7rem 1.4rem; margin-top: .3rem; }
  .hero .corde { grid-area: corde; margin-top: .3rem; }
  .hero .chapo { grid-area: chapo; font-size: 1.125rem; line-height: 1.45; margin: .9rem 0 0; }
  .hero .faits { grid-area: faits; margin-top: 1.1rem; padding-top: .8rem; }
}
/* Ordinateur : le texte, le bouton, les chiffres et le livre tiennent dans la hauteur de la fenêtre. La corde dépasse en bas pour inviter à descendre. */
@media (min-width: 62rem) {
  .hero { padding-top: 0; }
  .hero .w { min-height: calc(100svh - 4.6rem); padding-top: 4.4rem; padding-bottom: .6rem; align-content: center; }
  .hero h1 { font-size: min(10.4rem, 18.2cqi, 11svh); }
  .hero .suite { font-size: min(2.9rem, 4.2svh); line-height: 1.1; margin-top: min(1rem, 1.4svh); }
  .hero .chapo { font-size: min(1.3125rem, 2.6svh); margin: min(1.4rem, 2svh) 0 min(1.7rem, 2.6svh); }
  .hero .micro { margin-top: min(1rem, 1.4svh); }
  .hero .faits { margin-top: min(2rem, 2.4svh); padding-top: min(1.1rem, 1.6svh); }
  .hero .scene { min-height: 0; padding-top: 0; }
  .hero .livre3d { --l: min(24rem, 42svh); --e: min(2.2rem, 4svh); margin-bottom: min(3.4rem, 6svh); }
  .hero .ombre { width: calc(min(24rem, 42svh) * 1.1); }
  .hero .corde { margin-top: -2.2rem; }
}
