/* =====================================================================================================
   Il était une vie : la page d'accueil (refonte du 13 novembre 2026). Chargée après style.css.

   Ce qui change
     - Le fond : plus de papier vergé (les lignes qui, en thème sombre, dessinaient un quadrillage vert). Un
       ivoire plus clair, un grain très fin, et un fond propre à chaque partie : lueurs pêche et sauge à
       l'ouverture, bande verte pour Noël, lavis sauge pour la voix, panneau crème pour les avantages, rosé
       pour le mot de la maison, vert pour l'envoi. La page reste claire même quand l'appareil est en thème
       sombre.
     - La mise en page : la promesse et le livre côte à côte, un séparateur au bas du premier écran, puis le
       concept en trois images, les avantages en six vignettes, et des parties plus courtes où l'image porte
       l'explication.
     - Le mouvement : le livre en 3D (three.js) à l'ouverture et au chapitre du livre, le film (Remotion) au
       chapitre de la voix, et des entrées douces au défilement (accueil/, compilé dans assets/accueil/).
   Ce qui ne change pas : les polices (IM Fell French Canon, EB Garamond), le vert de la reliure et l'or, le
   bouton « pièce de titre », les textes. Sans JavaScript, en mouvement réduit et à l'impression, tout est
   à son état final.
   ===================================================================================================== */

/* ------------------------------------------------------------------ Jetons */
:root {
  --papier: #FBF8F2;            /* le fond : un ivoire plus clair que le vergé du site (#EEECE3) */
  --papier-2: #FFFDF8;          /* cartes, champs */
  --creme: #F6EFE1;
  --sauge: #EAF1E6;
  --rose: #F7EADF;
  --encre: #1D1E19;
  --encre-2: #55554B;
  --filet: #E2DBCA;
  --filet-champ: #7E7A6A;
  --rubrique: #1E4034;
  --toile: #1E3A31;
  --toile-clair: #2A4C41;
  --toile-sombre: #13271F;
  --or: #C8A65B;
  --or-clair: #E6CE92;
  --or-fonce: #8B6A2A;
  --page: #F5F2E9;
  --page-encre: #26261F;
  --page-encre-2: #5E5B50;
  --page-vert: #1F3A31;
  --tranche: #D9D2BF;
  --ombre: 24, 28, 20;
  --titre: "IM Fell French Canon", "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --texte: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --entree: cubic-bezier(.16, 1, .3, 1);
  --marge: 20px;
  --large: 74rem;
  --rayon: 8px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .26 0 0 0 0 .2 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain-clair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (min-width: 700px) { :root { --marge: 32px; } }

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  color: var(--encre);
  background-color: var(--papier);
  background-image: var(--grain);   /* un grain de papier, sans vergeures : plus de lignes, plus de quadrillage */
  font-family: var(--texte);
  font-size: 1.1875rem;
  line-height: 1.5;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  overflow-x: clip;
}
@media (min-width: 1000px) { body { font-size: 1.25rem; } }
img, svg { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--titre); font-style: italic; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
figure { margin: 0; }
.cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nw { white-space: nowrap; }
.sens { display: inline-block; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 40; background: var(--papier-2); color: var(--encre); padding: 10px 14px; border: 1px solid var(--filet-champ); }
.skip:focus { top: 8px; }

/* Les entrées au défilement : seulement avec JavaScript et quand le mouvement est permis (html.anim). */
@media (prefers-reduced-motion: no-preference) {
  html.anim .rv { opacity: 0; translate: 0 28px; transition: opacity .9s var(--entree), translate 1.1s var(--entree); transition-delay: var(--retard, 0ms); }
  html.anim .rv.vu { opacity: 1; translate: 0 0; }
}

/* ------------------------------------------------------------------ Le bouton : une pièce de titre (celui du site) */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .5em 1.6em .56em;
  color: var(--or-clair);
  background-color: var(--toile);
  background-image: var(--grain-clair);
  border: 0; border-radius: 2px;
  box-shadow: inset 0 0 0 4px var(--toile), inset 0 0 0 5px color-mix(in srgb, var(--or) 75%, transparent), 0 1px 1px rgba(0, 0, 0, .18), 0 10px 20px -10px rgba(var(--ombre), .55);
  font-family: var(--texte); font-weight: 600; font-size: 1.125rem; line-height: 1.1; letter-spacing: .03em;
  text-align: center; text-decoration: none; text-shadow: 0 -1px 0 rgba(0, 0, 0, .35);
  cursor: pointer;
}
.btn:hover { filter: brightness(1.14); text-decoration: none; }
.btn:active { filter: brightness(.96); }
.btn.secondary { color: var(--encre); background: color-mix(in srgb, var(--papier-2) 70%, transparent); text-shadow: none; box-shadow: inset 0 0 0 1px var(--filet-champ); }
.btn.secondary:hover { filter: none; box-shadow: inset 0 0 0 2px var(--encre); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: default; filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter .2s ease, translate .2s ease, box-shadow .2s ease; }
  .btn:hover:not([disabled]) { translate: 0 -1px; }
  .btn:active:not([disabled]) { translate: 0 1px; }
}
.btn-tete { gap: 0; min-height: 44px; padding: .4em 1.05em .44em; font-size: 1.02rem; box-shadow: inset 0 0 0 3px var(--toile), inset 0 0 0 4px color-mix(in srgb, var(--or) 70%, transparent); }
.btn-tete-prix { font-weight: 500; white-space: nowrap; }
.btn-large { min-height: 58px; font-size: 1.22rem; padding-inline: 2em; }
/* Sur la toile verte : le bouton passe à l'or clair, lettres vertes. */
.btn-or { color: var(--toile-sombre); background-color: var(--or-clair); background-image: none; text-shadow: none; box-shadow: inset 0 0 0 4px var(--or-clair), inset 0 0 0 5px rgba(19, 39, 31, .55), 0 14px 30px -14px rgba(0, 0, 0, .7); }
.lien-bouton { appearance: none; border: 0; background: none; padding: 0; margin-left: .4em; font: inherit; font-style: italic; color: var(--rubrique); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; cursor: pointer; }
.lien-bouton:hover { text-decoration-thickness: 2px; }

/* Trois faits courts, avec leur coche. */
.faits { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.faits li { position: relative; padding-left: 1.5em; font-size: 1rem; line-height: 1.36; color: var(--encre-2); text-wrap: pretty; }
.faits li::before { content: ""; position: absolute; left: 0; top: .32em; width: .95em; height: .95em; border-radius: 50%; background: var(--rubrique) no-repeat center / 62% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.4l2.4 2.4 4.8-5.4' fill='none' stroke='%23F5F2E9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Champs */
.champ { display: grid; gap: 6px; }
.champ label, .couleurs legend { font-weight: 600; font-size: 1.02rem; }
.champ input, .champ textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 1.1rem; color: var(--encre);
  background: var(--papier-2); border: 1px solid var(--filet-champ); border-radius: 3px;
}
.champ textarea { resize: vertical; min-height: 6.2em; line-height: 1.4; }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--rubrique); outline-offset: 1px; }
.aide { font-size: .95rem; line-height: 1.35; color: var(--encre-2); }

/* ------------------------------------------------------------------ Ouverture */
.ouverture {
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(14px, 3vw, 44px) var(--marge) clamp(18px, 2vw, 28px);
  background:
    linear-gradient(180deg, rgba(249, 244, 234, 0) calc(100% - 9rem), #F9F4EA),   /* le bas se fond dans la partie suivante */
    radial-gradient(62rem 42rem at 92% -10%, rgba(247, 219, 187, .78), rgba(247, 219, 187, 0) 62%),
    radial-gradient(48rem 36rem at -8% 106%, rgba(203, 224, 205, .8), rgba(203, 224, 205, 0) 62%),
    radial-gradient(34rem 24rem at 52% 122%, rgba(238, 214, 156, .5), rgba(238, 214, 156, 0) 66%),
    linear-gradient(180deg, #FEFCF8, #F9F4EA);
}
/* Le canvas three.js couvre toute l'ouverture : les lueurs flottent derrière le texte, le livre se pose à sa place. */
.ouverture-toile { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* Le livre paraît en fondu quand la scène est prête : pas d'à-coup pendant le chargement. */
html.js .ouverture-toile { opacity: 0; transition: opacity .9s ease; }
html.js .ouverture-toile.prete { opacity: 1; }
html.js .scene canvas { opacity: 0; transition: opacity .8s ease; }
html.js .scene canvas.prete { opacity: 1; }
.ouverture-grille {
  max-width: var(--large); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "pour" "titre" "livre" "argument" "offre" "faits";
  justify-items: center; text-align: center;
}
.ouverture-texte { display: contents; }
.ouverture .pour { grid-area: pour; font-style: italic; font-size: 1.08rem; line-height: 1.3; text-wrap: balance; }
.ouverture h1 { grid-area: titre; margin-top: 6px; max-width: 11em; font-size: clamp(2.2rem, 9.4vw, 2.9rem); line-height: 1; letter-spacing: -.005em; }
.ouverture .argument { grid-area: argument; margin-top: 14px; max-width: 24em; font-size: 1.06rem; line-height: 1.44; text-wrap: pretty; }
.offre-titre { grid-area: offre; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.prix { display: grid; justify-items: end; text-align: right; line-height: 1.1; }
.prix .montant { font-family: var(--titre); font-size: 2.5rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.prix .des { font-style: italic; font-size: .5em; letter-spacing: 0; }
.prix .inclus { font-style: italic; font-size: 1rem; color: var(--encre-2); white-space: nowrap; }
.prix .lancement { font-style: italic; font-size: .9rem; line-height: 1.2; white-space: nowrap; color: var(--encre-2); }
.boutons-titre { display: grid; gap: 8px; }
.btn-titre { min-width: 168px; min-height: 54px; font-size: 1.22rem; white-space: nowrap; }
.btn-moi { display: none; min-height: 46px; white-space: nowrap; }
.faits-titre { grid-area: faits; margin-top: 16px; max-width: 26em; text-align: left; }
.ouverture-livre { grid-area: livre; width: min(100%, 34rem); }
.livre-place { width: 100%; aspect-ratio: 100 / 78; }
.livre-repli { display: block; width: 92%; margin: 4% auto; border-radius: 4px; box-shadow: 0 30px 50px -30px rgba(var(--ombre), .6); }
.ouverture-livre figcaption { margin-top: -6px; font-style: italic; font-size: .92rem; line-height: 1.3; color: var(--encre-2); text-align: center; }
@media (min-width: 700px) {
  .btn-moi { display: inline-flex; }
}
@media (min-width: 960px) {
  .ouverture-grille { grid-template-areas: none; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(20px, 3.4vw, 60px); align-items: center; justify-items: stretch; text-align: left; min-height: min(calc(100svh - 190px), 44rem); }
  .ouverture-texte { display: block; }
  .ouverture h1 { margin-top: 12px; font-size: clamp(3.2rem, 5.4vw, 4.75rem); }
  .ouverture .pour { font-size: 1.2rem; }
  .ouverture .argument { margin-top: 22px; font-size: 1.28rem; max-width: 25em; }
  .offre-titre { justify-content: flex-start; gap: 26px; margin-top: 28px; }
  .prix { justify-items: start; text-align: left; }
  .prix .montant { font-size: 3.3rem; }
  /* « Offrir », puis « Pour moi » dessous, comme sur le site ; côte à côte quand la colonne est assez large. */
  .boutons-titre { gap: 10px; }
  .btn-titre { min-width: 190px; min-height: 58px; }
  .btn-moi { min-height: 48px; }
  .faits-titre { margin-top: 26px; }
  .ouverture-livre { grid-area: auto; width: 100%; }
}
@media (min-width: 1280px) {
  .boutons-titre { grid-auto-flow: column; gap: 12px; }
  .btn-moi { min-height: 58px; }
}

/* ------------------------------------------------------------------ Bandes */
.bande { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(64px, 8.5vw, 124px) var(--marge); }
.cadre { max-width: var(--large); margin: 0 auto; }
.tete-section { max-width: 46rem; }
.tete-section.centre { margin-inline: auto; text-align: center; }
.chapeau { margin-top: 18px; font-size: clamp(1.18rem, 1.6vw, 1.4rem); line-height: 1.46; color: var(--encre-2); text-wrap: pretty; }

/* « Pour offrir » / « Pour moi » : deux boutons radio, lus par :has() (sans JavaScript). */
.bascule { display: inline-flex; margin: 30px 0 0; padding: 4px; border: 1px solid var(--filet-champ); border-radius: 999px; background: var(--papier-2); }
.bascule.centre { display: flex; width: fit-content; margin-inline: auto; }
.choix { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choix span { display: block; padding: .42em 1.3em .48em; border-radius: 999px; font-size: 1.06rem; line-height: 1.2; }
.choix input:checked + span { background: var(--toile); color: var(--or-clair); font-weight: 600; }
.choix input:focus-visible + span { outline: 2px solid var(--encre); outline-offset: 2px; }
.zone-pour:has(input[value="moi"]:checked) [data-pour="offrir"],
.zone-pour:not(:has(input[value="moi"]:checked)) [data-pour="moi"] { display: none; }

/* ------------------------------------------------------------------ I. L'année */
/* Juste sous le séparateur « Comment ça marche » : peu d'espace, la suite se lit tout de suite. */
.annee { padding-top: clamp(26px, 3vw, 44px); background: linear-gradient(180deg, #F9F4EA, var(--papier) 26rem); }
.annee::before { content: ""; position: absolute; z-index: -1; right: -14rem; top: 30%; width: 44rem; height: 44rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(214, 229, 212, .7), rgba(214, 229, 212, 0)); pointer-events: none; }
.etapes { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 26px; }
.etape { position: relative; display: flex; flex-direction: column; background: var(--papier-2); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: 0 1px 2px rgba(var(--ombre), .05), 0 26px 44px -34px rgba(var(--ombre), .5); }
.etape-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: calc(var(--rayon) - 1px) calc(var(--rayon) - 1px) 0 0; }
.etape-photo-haut { object-position: 50% 22%; }
.etape-numero { position: absolute; z-index: 1; top: 14px; left: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--toile); color: var(--or-clair); font-family: var(--titre); font-size: 1.55rem; line-height: 1; box-shadow: inset 0 0 0 3px var(--toile), inset 0 0 0 4px color-mix(in srgb, var(--or) 75%, transparent), 0 8px 16px -8px rgba(0, 0, 0, .6); }
.etape-corps { padding: 20px 24px 26px; }
.etape .quand { font-style: italic; font-size: 1.04rem; color: var(--rubrique); }
.etape h4 { margin-top: 2px; font-family: var(--titre); font-style: italic; font-size: 1.9rem; line-height: 1.08; }
.etape-corps > p:last-child { margin-top: 10px; font-size: 1.08rem; line-height: 1.45; color: var(--encre-2); text-wrap: pretty; }
.etapes-legende { margin-top: 12px; font-style: italic; font-size: .92rem; color: var(--encre-2); }
@media (min-width: 800px) {
  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); }
  /* La flèche d'une image à la suivante. */
  .etape + .etape::before {
    content: ""; position: absolute; z-index: 2; top: 24%; left: calc(clamp(22px, 3vw, 40px) / -2 - 17px); width: 34px; height: 34px; border-radius: 50%;
    background: var(--papier-2) no-repeat center / 46% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10M8.5 3.8 12.7 8l-4.2 4.2' fill='none' stroke='%231E4034' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    border: 1px solid var(--filet); box-shadow: 0 6px 12px -8px rgba(var(--ombre), .5);
  }
}

/* Les 52 lundis */
.lundis { margin-top: clamp(40px, 5vw, 64px); padding: clamp(22px, 3vw, 34px) clamp(20px, 3.4vw, 44px); display: grid; gap: 18px 44px; align-items: center; background: color-mix(in srgb, var(--papier-2) 78%, transparent); border: 1px solid var(--filet); border-radius: calc(var(--rayon) * 2); }
.cinquante-deux { display: flex; align-items: baseline; gap: .3em; white-space: nowrap; }
.cinquante-deux .chiffre { font-family: var(--titre); font-size: clamp(4rem, 8vw, 6.4rem); line-height: .82; color: var(--rubrique); }
.cinquante-deux .unite { font-family: var(--titre); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.lundis-ligne { display: grid; grid-template-columns: repeat(26, 1fr); gap: 7px 0; justify-items: center; }
.lundis-ligne i { width: clamp(7px, 1.25vw, 13px); aspect-ratio: 1; border-radius: 50%; background: var(--rubrique); }
.lundis-ligne i.repere { background: var(--or); box-shadow: 0 0 0 3px color-mix(in srgb, var(--or) 30%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  html.anim .lundis-ligne i { opacity: .16; scale: .6; transition: opacity .5s ease, scale .6s var(--entree); transition-delay: calc(var(--i) * 34ms + 200ms); }
  html.anim .lundis.vu .lundis-ligne i { opacity: 1; scale: 1; }
}
.lundis-reperes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.lundis-reperes li { display: grid; padding-top: 10px; border-top: 1px solid var(--filet); }
.lundis-reperes .quand { font-style: italic; font-size: 1rem; color: var(--rubrique); }
.lundis-reperes .quoi { font-size: 1.04rem; line-height: 1.3; }
.periode { margin-top: 14px; font-style: italic; font-size: .96rem; line-height: 1.35; color: var(--encre-2); }
@media (min-width: 900px) {
  .lundis { grid-template-columns: auto minmax(0, 1fr); }
  .lundis-ligne { grid-template-columns: repeat(52, 1fr); }
  .lundis-reperes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ Pour Noël : la toile verte, les lampions */
.noel, .envoi {
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(56px, 7vw, 96px) var(--marge);
  color: #F1EBDD;
  background-color: var(--toile);
  background-image:
    radial-gradient(70rem 40rem at 12% -20%, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 60%),
    radial-gradient(50rem 30rem at 100% 120%, rgba(200, 166, 91, .16), rgba(200, 166, 91, 0) 62%),
    var(--grain-clair);
}
.noel::before, .noel::after, .envoi::before, .envoi::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-top: 1px solid var(--or); border-bottom: 1px solid color-mix(in srgb, var(--or) 55%, transparent); pointer-events: none; }
.noel::before, .envoi::before { top: 12px; }
.noel::after, .envoi::after { bottom: 12px; }
/* Les lampions : des lueurs chaudes, floues, qui flottent lentement. */
.noel-lueurs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.noel-lueurs i { position: absolute; width: var(--t, 9rem); aspect-ratio: 1; left: var(--x); top: var(--y); border-radius: 50%; background: radial-gradient(closest-side, rgba(238, 208, 138, var(--o, .22)), rgba(238, 208, 138, calc(var(--o, .22) * .75)) 62%, rgba(238, 208, 138, 0)); }
.noel-lueurs i:nth-child(1) { --x: 4%; --y: 12%; --t: 11rem; --o: .16; --d: 19s; }
.noel-lueurs i:nth-child(2) { --x: 22%; --y: 64%; --t: 6rem; --o: .2; --d: 15s; }
.noel-lueurs i:nth-child(3) { --x: 46%; --y: -8%; --t: 8rem; --o: .14; --d: 22s; }
.noel-lueurs i:nth-child(4) { --x: 63%; --y: 58%; --t: 13rem; --o: .12; --d: 25s; }
.noel-lueurs i:nth-child(5) { --x: 80%; --y: 8%; --t: 7rem; --o: .22; --d: 17s; }
.noel-lueurs i:nth-child(6) { --x: 92%; --y: 54%; --t: 9rem; --o: .15; --d: 21s; }
.noel-lueurs i:nth-child(7) { --x: 34%; --y: 30%; --t: 4.5rem; --o: .2; --d: 13s; }
@media (prefers-reduced-motion: no-preference) {
  html.anim .noel-lueurs i { animation: lampion var(--d, 18s) ease-in-out infinite alternate; }
}
@keyframes lampion { from { translate: 0 0; opacity: .7; } to { translate: 2.2rem -1.6rem; opacity: 1; } }
.noel-grille { display: grid; gap: 30px; align-items: center; }
.noel h2 { font-size: clamp(2.5rem, 5vw, 3.8rem); line-height: 1; color: var(--or-clair); }
.noel-planche img { display: block; width: 100%; border: 1px solid color-mix(in srgb, var(--or) 80%, transparent); outline: 1px solid color-mix(in srgb, var(--or) 45%, transparent); outline-offset: 4px; box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .75); }
.noel-planche figcaption { margin-top: 16px; font-style: italic; font-size: .98rem; line-height: 1.35; color: #D9D2C0; text-align: center; text-wrap: balance; }
/* Trois dates : un fil d'or, trois perles. */
.noel-dates { list-style: none; margin: 26px 0 0; padding: 0; display: grid; }
.noel-dates li { position: relative; display: grid; padding: 0 0 22px 34px; }
.noel-dates li::before { content: ""; position: absolute; left: 4px; top: .42em; width: 13px; height: 13px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 4px rgba(200, 166, 91, .22); }
.noel-dates li::after { content: ""; position: absolute; left: 10px; top: 1.3em; bottom: -.3em; width: 1px; background: linear-gradient(var(--or), rgba(200, 166, 91, .3)); }
.noel-dates li:last-child { padding-bottom: 0; }
.noel-dates li:last-child::after { display: none; }
.noel-dates .quoi { font-family: var(--titre); font-style: italic; font-size: 1.6rem; line-height: 1.12; }
.noel-dates .quand { font-style: italic; font-size: 1.12rem; color: var(--or-clair); }
.noel-note { margin-top: 24px; font-size: 1.02rem; line-height: 1.46; color: #D9D2C0; text-wrap: pretty; max-width: 34em; }
@media (min-width: 900px) {
  .noel-grille { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); }
}

/* ------------------------------------------------------------------ II. La voix : le film */
.voix { background: linear-gradient(180deg, var(--papier), #F0F5EC 22rem, #EEF3E9 calc(100% - 20rem), var(--papier)); }
.voix::before { content: ""; position: absolute; z-index: -1; left: 38%; top: 3rem; width: 46rem; height: 34rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(248, 224, 196, .75), rgba(248, 224, 196, 0)); pointer-events: none; }
.voix-grille { display: grid; gap: 34px; align-items: center; }
.voix-texte .suite { margin-top: 14px; font-size: 1.12rem; line-height: 1.5; text-wrap: pretty; }
.voix-portrait { margin-top: 26px; display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 18px; align-items: center; }
.voix-portrait img { display: block; width: 6.6rem; height: 6.6rem; object-fit: cover; object-position: 62% 30%; border-radius: 50%; border: 4px solid var(--papier-2); box-shadow: 0 14px 26px -14px rgba(var(--ombre), .55); }
.voix-portrait figcaption { font-size: 1.02rem; line-height: 1.42; color: var(--encre-2); text-wrap: pretty; }
.voix-portrait figcaption b { color: var(--encre); font-weight: 600; }
.film-cadre { padding: clamp(8px, 1.2vw, 14px); background: var(--papier-2); border: 1px solid var(--filet); border-radius: calc(var(--rayon) * 1.6); box-shadow: 0 2px 4px rgba(var(--ombre), .05), 0 50px 80px -50px rgba(var(--ombre), .55); }
.film-ecran { position: relative; aspect-ratio: 1280 / 800; overflow: hidden; border-radius: var(--rayon); background: #FBF8F2; }
.film-ecran > div { width: 100%; height: 100%; }
.film-repli-temps .n, .film-etapes .n { display: inline-block; min-width: 1.6em; font-family: var(--titre); font-style: normal; color: var(--or-fonce); }
.film-etapes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.film-etapes button { width: 100%; min-height: 48px; padding: 8px 12px; display: flex; align-items: baseline; gap: 2px; text-align: left; font: inherit; font-size: 1rem; line-height: 1.2; color: var(--encre-2); background: color-mix(in srgb, var(--papier-2) 70%, transparent); border: 1px solid var(--filet); border-radius: var(--rayon); cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.film-etapes button:hover { border-color: var(--filet-champ); color: var(--encre); }
.film-etapes button[aria-current="true"] { background: var(--toile); border-color: var(--toile); color: #F1EBDD; }
.film-etapes button[aria-current="true"] .n { color: var(--or-clair); }
.film figcaption { margin-top: 12px; font-style: italic; font-size: .95rem; color: var(--encre-2); text-align: center; }
@media (min-width: 700px) { .film-etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .voix-grille { grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: clamp(30px, 4.5vw, 72px); }
}

/* L'essai : écrire un souvenir, le voir composé en page. */
.essai { margin-top: clamp(48px, 6vw, 84px); padding: clamp(24px, 3.6vw, 48px); display: grid; gap: 30px; align-items: center; background: var(--papier-2); border: 1px solid var(--filet); border-radius: calc(var(--rayon) * 2); box-shadow: 0 40px 70px -56px rgba(var(--ombre), .6); }
.essai-titre { font-family: var(--titre); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; text-wrap: balance; }
.essai-intro { margin-top: 12px; font-size: 1.08rem; color: var(--encre-2); max-width: 32em; text-wrap: pretty; }
.essai-champ { margin-top: 20px; max-width: 34rem; }
.essai-suite { margin-top: 16px; font-size: 1.06rem; }
.essai-page { justify-self: center; width: min(100%, 19rem); aspect-ratio: 17 / 24; display: flex; flex-direction: column; padding: 26px 26px 18px 30px; background: var(--page); background-image: linear-gradient(90deg, rgba(40, 30, 10, .2), rgba(40, 30, 10, .07) 2.6%, rgba(255, 255, 255, .22) 6%, rgba(255, 255, 255, 0) 13%, rgba(40, 30, 10, 0) 92%, rgba(40, 30, 10, .05)); color: var(--page-encre); box-shadow: 0 1px 2px rgba(var(--ombre), .14), 0 30px 46px -30px rgba(var(--ombre), .6), 5px 0 0 -1px #E3DCCA, 9px 1px 0 -2px var(--tranche); rotate: 1.2deg; }
.ep-courant { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; text-align: center; color: var(--page-encre-2); }
.ep-question { margin-top: 20px; font-family: var(--titre); font-style: italic; font-size: 1.32rem; line-height: 1.08; text-align: center; color: var(--page-vert); text-wrap: balance; }
.ep-fleuron { display: block; flex: none; width: 34px; height: 13px; margin: 12px auto 0; color: var(--page-vert); }
.ep-texte { margin-top: 14px; font-size: .86rem; line-height: 1.4; text-align: justify; hyphens: auto; -webkit-hyphens: auto; overflow: hidden; }
.ep-texte p + p { text-indent: 1.2em; }
.ep-texte p:first-child:not(.ep-vide)::first-letter { float: left; font-family: var(--titre); font-style: normal; font-size: 2.85em; line-height: .8; margin: .06em .08em 0 0; color: var(--page-vert); }
.ep-vide { font-style: italic; color: var(--page-encre-2); text-align: center; text-wrap: balance; }
.ep-folio { margin-top: auto; padding-top: 6px; font-size: .68rem; text-align: center; color: var(--page-encre-2); }
@media (min-width: 860px) { .essai { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(30px, 5vw, 70px); } }

/* ------------------------------------------------------------------ Les avantages : un panneau crème, six vignettes */
.avantages { padding-block: clamp(20px, 3vw, 40px); }
.avantages .cadre { max-width: calc(var(--large) + 6rem); padding: clamp(40px, 6vw, 84px) clamp(20px, 4vw, 64px); border-radius: clamp(18px, 3vw, 36px); background: radial-gradient(52rem 26rem at 50% -4rem, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%), var(--creme); border: 1px solid color-mix(in srgb, var(--filet) 70%, transparent); }
.atouts { list-style: none; margin: clamp(30px, 4vw, 52px) 0 0; padding: 0; display: grid; gap: 22px; }
.atout { padding: 0 0 4px; }
.atout-image { height: 8.4rem; display: grid; place-items: center; border-radius: calc(var(--rayon) * 1.5); background: var(--fond, var(--sauge)); overflow: hidden; }
.atout h3 { margin-top: 18px; font-family: var(--titre); font-style: italic; font-size: 1.62rem; line-height: 1.1; text-wrap: balance; }
.atout p { margin-top: 8px; font-size: 1.06rem; line-height: 1.45; color: var(--encre-2); text-wrap: pretty; }
.atout-voix { --fond: #E3EDE1; } .atout-questions { --fond: #F6E6D6; } .atout-lundi { --fond: #F3E8C9; }
.atout-famille { --fond: #F6E2DA; } .atout-livre { --fond: #E9E3D4; } .atout-serein { --fond: #DDEADD; }
@media (min-width: 640px) { .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; } }
@media (min-width: 1000px) { .atouts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; } }
/* Les petites images des vignettes, dessinées en CSS. */
.mini-vocal { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 30px; background: var(--papier-2); border: 1px solid #B9B3A2; box-shadow: 0 12px 20px -14px rgba(var(--ombre), .5); }
.mini-vocal .rond { width: 32px; height: 32px; border-radius: 50%; background: var(--rubrique) no-repeat 55% 50% / 38% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%23FFFDF8'/%3E%3C/svg%3E"); }
.mini-vocal .barres { display: flex; align-items: center; gap: 3px; height: 30px; }
.mini-vocal .barres i { width: 3px; height: calc(var(--h, .5) * 100%); border-radius: 2px; background: var(--rubrique); }
.mini-vocal .barres i:nth-child(3n) { --h: .9; } .mini-vocal .barres i:nth-child(3n+1) { --h: .42; } .mini-vocal .barres i:nth-child(4n+2) { --h: .68; } .mini-vocal .barres i:nth-child(7n) { --h: .24; } .mini-vocal .barres i:nth-child(5n+3) { --h: 1; }
.mini-vocal .duree { font-size: .95rem; color: var(--encre-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  html.anim .mini-vocal .barres i { animation: onde 1.5s ease-in-out infinite alternate; animation-delay: calc(var(--n, 0) * -130ms); }
  .mini-vocal .barres i:nth-child(2n) { --n: 3; } .mini-vocal .barres i:nth-child(3n) { --n: 7; } .mini-vocal .barres i:nth-child(5n) { --n: 5; } .mini-vocal .barres i:nth-child(7n+1) { --n: 9; }
}
@keyframes onde { from { scale: 1 .45; } to { scale: 1 1; } }
.mini-question { max-width: 15rem; padding: 12px 16px 14px; background: var(--papier-2); border: 1px solid var(--filet); box-shadow: 0 12px 20px -14px rgba(var(--ombre), .5); font-style: italic; font-size: 1.08rem; line-height: 1.25; rotate: -2deg; }
.mini-question em, .perso { font-style: normal; font-weight: 600; color: var(--rubrique); }
.carte-q-texte em.perso { font-style: italic; }
.mini-agenda { position: absolute; display: grid; justify-items: center; width: 4.6rem; padding: 0 0 8px; background: var(--papier-2); border: 1px solid var(--filet); border-radius: 6px; box-shadow: 0 10px 18px -12px rgba(var(--ombre), .55); overflow: hidden; }
.mini-agenda b { width: 100%; padding: 3px 0 4px; background: var(--toile); color: var(--or-clair); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.mini-agenda span { margin-top: 5px; font-family: var(--titre); font-size: 1.5rem; line-height: 1; }
.atout-lundi .atout-image { position: relative; }
.mini-agenda-2 { translate: -3.6rem .5rem; rotate: -9deg; scale: .86; opacity: .8; z-index: -1; }
.mini-agenda-3 { translate: 3.6rem .5rem; rotate: 9deg; scale: .86; opacity: .8; z-index: -1; }
.atout-lundi .atout-image { isolation: isolate; }
.mini-famille { display: flex; }
.mini-famille i { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin-left: -.6rem; border-radius: 50%; border: 3px solid var(--fond); background: var(--papier-2); font-family: var(--titre); font-style: normal; font-size: 1.4rem; color: var(--rubrique); box-shadow: 0 8px 14px -10px rgba(var(--ombre), .6); }
.mini-famille i:first-child { margin-left: 0; width: 3.9rem; height: 3.9rem; background: var(--toile); color: var(--or-clair); font-size: 1.8rem; align-self: center; z-index: 1; }
.mini-famille { align-items: center; }
.mini-dos { display: flex; align-items: flex-end; gap: 5px; height: 6.2rem; }
.mini-dos i { width: 1.5rem; height: 100%; border-radius: 2px 2px 1px 1px; background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .08) 35%, rgba(0, 0, 0, .18)), var(--c); box-shadow: inset 0 14px 0 -12px rgba(200, 166, 91, .9), inset 0 -14px 0 -12px rgba(200, 166, 91, .9), 0 10px 14px -10px rgba(var(--ombre), .7); }
.mini-dos i:nth-child(2) { height: 92%; } .mini-dos i:nth-child(4) { height: 96%; rotate: 4deg; translate: 2px 0; transform-origin: bottom; } .mini-dos i:nth-child(5) { height: 88%; rotate: 9deg; translate: 7px 0; transform-origin: bottom; }
.mini-sceau { display: grid; width: 5rem; color: var(--rubrique); }
.mini-sceau svg { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------ III. Les questions */
.questions { background: linear-gradient(180deg, var(--papier), #F9EFE6); }
.cartes-q { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 18px; }
.carte-q { display: flex; flex-direction: column; gap: 12px; min-height: 9.6rem; padding: 18px 22px 24px; background: var(--papier-2); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: 0 22px 36px -30px rgba(var(--ombre), .55); transition: translate .5s var(--entree), box-shadow .5s var(--entree), opacity .9s var(--entree); }
.carte-q:hover { translate: 0 -4px; box-shadow: 0 30px 44px -30px rgba(var(--ombre), .6); }
.carte-q-theme { padding-bottom: 9px; border-bottom: 1px solid var(--filet); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; line-height: 1.5; color: var(--encre-2); }
.carte-q-texte { font-style: italic; font-size: 1.36rem; line-height: 1.26; text-wrap: pretty; }
.carte-q-ajoutee { background: transparent; border-style: dashed; border-color: var(--filet-champ); box-shadow: none; }
.carte-q-ajoutee .carte-q-theme { color: var(--rubrique); font-weight: 600; }
.cartes-q-legende { margin-top: 18px; max-width: 46em; font-size: 1rem; line-height: 1.42; color: var(--encre-2); text-wrap: pretty; }
@media (min-width: 640px) { .cartes-q { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cartes-q { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.apres { margin-top: clamp(48px, 6vw, 80px); }
.apres h3 { font-family: var(--titre); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; }
.apres-intro { margin-top: 10px; max-width: 36em; color: var(--encre-2); }
.apres-etapes { list-style: none; counter-reset: apres; margin: 30px 0 0; padding: 0; display: grid; gap: 24px; }
.apres-etapes li { counter-increment: apres; position: relative; padding-top: 3.3rem; }
.apres-etapes li::before { content: counter(apres); position: absolute; top: 0; left: 0; font-family: var(--titre); font-size: 2.7rem; line-height: 1; color: var(--rubrique); }
.apres-etapes li::after { content: ""; position: absolute; top: 1.35rem; left: 2.6rem; right: 0; height: 1px; background: linear-gradient(90deg, var(--or), rgba(200, 166, 91, .15)); }
.apres-etapes h4 { font-family: var(--texte); font-weight: 600; font-size: 1.16rem; line-height: 1.25; }
.apres-etapes p { margin-top: 6px; font-size: 1.04rem; line-height: 1.44; color: var(--encre-2); text-wrap: pretty; }
.apres-note { margin-top: 26px; font-style: italic; font-size: 1.02rem; color: var(--encre-2); max-width: 44em; }
@media (min-width: 700px) { .apres-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; } }
@media (min-width: 1000px) { .apres-etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ IV. Le livre : la scène en 3D et l'atelier */
.livre { background: radial-gradient(60rem 40rem at 34% 30rem, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #F9EFE6, #EDF2E9 34rem, #F2F1E6); }
.atelier { margin-top: clamp(26px, 4vw, 48px); display: grid; gap: 28px; align-items: start; }
.scene { position: relative; aspect-ratio: 1 / 1; border-radius: calc(var(--rayon) * 2); background: radial-gradient(60% 46% at 50% 56%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 72%); touch-action: pan-y; }
@media (min-width: 700px) { .scene { aspect-ratio: 5 / 4; } }
/* Le canvas déborde de la scène : l'ombre du livre n'est jamais coupée. Les boutons restent au-dessus. */
.scene canvas { position: absolute; left: -5%; top: -5%; width: 110%; height: 118%; cursor: grab; }
.feuilleter, .legende-courante { position: relative; z-index: 1; }
.scene canvas.saisi { cursor: grabbing; }
.scene-repli { position: absolute; inset: 8% 6%; width: 88%; height: 84%; object-fit: contain; }
.scene-aide { position: absolute; left: 0; right: 0; bottom: 6px; padding: 0 12px; font-style: italic; font-size: .96rem; color: var(--encre-2); text-align: center; pointer-events: none; transition: opacity .5s ease; }
.scene.ouverte .scene-aide { opacity: 0; }
.feuilleter { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 10px; }
.feuilleter .btn { min-height: 50px; padding-inline: .8em; font-size: 1.06rem; }
.feuilleter .compteur { min-width: 6.2em; text-align: center; font-style: italic; color: var(--encre-2); }
.legende-courante { margin-top: 12px; min-height: 2.8em; font-style: italic; font-size: 1rem; line-height: 1.38; color: var(--encre-2); text-align: center; text-wrap: balance; }
.composer { padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 18px; background: var(--papier-2); border: 1px solid var(--filet); border-radius: calc(var(--rayon) * 2); box-shadow: 0 40px 60px -48px rgba(var(--ombre), .6); }
.composer h3 { font-family: var(--titre); font-style: italic; font-size: 1.9rem; line-height: 1.08; }
.composer-intro { font-size: 1.04rem; line-height: 1.44; color: var(--encre-2); text-wrap: pretty; }
.couleurs { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.couleurs legend { width: 100%; padding: 0; margin-bottom: 8px; }
.couleurs label { position: relative; display: grid; justify-items: center; gap: 5px; cursor: pointer; }
.couleurs input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.couleurs span { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px var(--papier-2), 0 0 0 1px var(--filet-champ); transition: box-shadow .25s ease, scale .35s var(--entree); }
.couleurs label:hover span { scale: 1.06; }
.couleurs input:checked + span { box-shadow: inset 0 0 0 3px var(--papier-2), 0 0 0 2.5px var(--encre); }
.couleurs input:focus-visible + span { outline: 2px solid var(--encre); outline-offset: 4px; }
.couleurs b { font-weight: 400; font-size: .82rem; line-height: 1.1; color: var(--encre-2); }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.suggestions button { padding: 4px 11px 5px; font: inherit; font-style: italic; font-size: .95rem; line-height: 1.2; color: var(--encre-2); background: transparent; border: 1px solid var(--filet); border-radius: 999px; cursor: pointer; }
.suggestions button:hover { color: var(--encre); border-color: var(--filet-champ); }
@media (min-width: 980px) {
  .atelier { grid-template-columns: minmax(0, 1.5fr) minmax(0, .82fr); gap: clamp(28px, 4vw, 60px); }
  .composer { margin-top: 2.4rem; }
}
.fabrication { margin-top: clamp(44px, 6vw, 76px); }
.fiche-titre { font-family: var(--titre); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; text-align: center; }
.fiche { margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fiche > div { padding: 14px 16px 16px; background: color-mix(in srgb, var(--papier-2) 82%, transparent); border: 1px solid var(--filet); border-radius: var(--rayon); }
.fiche dt { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; line-height: 1.5; color: var(--rubrique); font-weight: 600; }
.fiche dd { margin: 4px 0 0; font-size: 1.04rem; line-height: 1.34; text-wrap: pretty; }
@media (min-width: 900px) { .fiche { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.planches-photos { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 30px; align-items: start; }
.planches-photos img { display: block; width: 100%; border-radius: var(--rayon); box-shadow: 0 40px 60px -44px rgba(var(--ombre), .7); }
.planches-photos figcaption { margin-top: 12px; font-size: 1rem; line-height: 1.42; color: var(--encre-2); text-wrap: pretty; }
.planches-photos figcaption b { color: var(--encre); font-weight: 600; }
.planche-etroite { max-width: 22rem; justify-self: center; }
@media (min-width: 900px) { .planches-photos { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); } .planche-etroite { max-width: none; } }

/* ------------------------------------------------------------------ V. Offrir */
.offrir { background: radial-gradient(50rem 26rem at 50% 6rem, rgba(244, 228, 186, .5), rgba(244, 228, 186, 0) 70%), linear-gradient(180deg, #F2F1E6, var(--papier) 20rem); }
.offres-cartes { list-style: none; margin: 34px auto 0; padding: 0; display: grid; gap: 26px; max-width: 26rem; align-items: stretch; }
.offre-carte { position: relative; display: flex; flex-direction: column; padding: 26px 26px 28px; background: var(--papier-2); border: 1px solid var(--filet); border-radius: calc(var(--rayon) * 1.5); box-shadow: 0 30px 50px -40px rgba(var(--ombre), .55); }
.offre-conseil { border-color: var(--rubrique); box-shadow: inset 0 0 0 1px var(--rubrique), 0 44px 70px -44px rgba(var(--ombre), .75); }
.offre-marque { position: absolute; top: 0; left: 50%; translate: -50% -52%; padding: .16em 1em .22em; border-radius: 999px; background: var(--rubrique); color: var(--or-clair); font-style: italic; font-size: 1rem; line-height: 1.3; white-space: nowrap; }
.offre-nom { font-family: var(--titre); font-style: italic; font-size: 1.9rem; line-height: 1.1; }
.offre-prix { margin-top: 4px; font-family: var(--titre); font-size: 3.2rem; line-height: 1; letter-spacing: -.01em; color: var(--rubrique); }
.offre-points { flex: 1 0 auto; list-style: none; margin: 18px 0 0; padding: 16px 0 0; display: grid; align-content: start; gap: 8px; border-top: 1px solid var(--filet); font-size: 1.06rem; line-height: 1.36; }
.offre-points li { position: relative; padding-left: 1.4em; text-wrap: pretty; }
.offre-points li::before { content: "\2713"; content: "\2713" / ""; position: absolute; left: 0; color: var(--rubrique); }
.offre-points li.sans { color: var(--encre-2); }
.offre-points li.sans::before { content: "\2013"; content: "\2013" / ""; color: var(--encre-2); }
.offre-carte .btn { margin-top: 22px; width: 100%; }
@media (min-width: 860px) {
  .offres-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 62rem; gap: 22px; }
  .offre-conseil { margin-block: -14px; padding-block: 40px 42px; }
}
.offre-suite { margin: clamp(44px, 6vw, 72px) auto 0; max-width: 62rem; display: grid; gap: 40px; align-items: center; }
.compris-titre { font-style: italic; color: var(--encre-2); }
.compris { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.compris li { display: flex; align-items: last baseline; gap: .45em; }
.compris .points { flex: 1 1 1em; min-width: 1em; height: 1px; translate: 0 -.25em; background: radial-gradient(circle, var(--encre-2) .7px, transparent 1.1px) repeat-x 0 0 / 5px 2px; }
.compris .valeur { flex: none; font-style: italic; color: var(--encre-2); }
.offrir-action { display: grid; gap: 10px; margin-top: 26px; }
.offrir-action .btn { width: 100%; }
.offrir-action .lancement { font-style: italic; color: var(--encre-2); font-size: 1.02rem; }
.faits-offre { margin-top: 18px; }
.paiement { margin-top: 16px; font-size: .98rem; line-height: 1.4; color: var(--encre-2); }
/* La carte cadeau : posée de biais, elle s'incline sous le pointeur (main.js). Mate, sans reflet. */
.carte-cadeau { justify-self: center; width: min(100%, 26rem); }
.carte-socle { perspective: 1000px; }
.carte-recto {
  position: relative; width: 100%; aspect-ratio: 2480 / 1748; container-type: inline-size;
  display: grid; align-content: center; justify-items: center; text-align: center;
  background-color: var(--toile); background-image: radial-gradient(120% 90% at 30% 18%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 60%), var(--grain-clair); color: #F1EBDD;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 40px 60px -30px rgba(var(--ombre), .7);
  rotate: -3deg;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--entree);
}
.carte-recto::before { content: ""; position: absolute; inset: 3.7cqw; border: .25cqw solid var(--or); }
.carte-recto::after { content: ""; position: absolute; inset: 4.6cqw; border: .12cqw solid rgba(200, 166, 91, .6); }
.carte-recto > span + span { margin-top: 1.7cqw; }
.carte-recto .c-marque { font-size: 2.6cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--or); }
.carte-recto .c-pour { font-style: italic; font-weight: 500; font-size: 8.6cqw; line-height: 1; color: var(--or-clair); }
.carte-recto .c-titre { font-family: var(--titre); font-style: italic; font-size: 4.2cqw; line-height: 1.1; }
.carte-recto .c-orne { display: block; width: 7cqw; height: 2.8cqw; color: var(--or); }
.carte-recto .c-orne svg { display: block; width: 100%; height: 100%; }
.carte-recto .c-offert { font-style: italic; font-size: 3.4cqw; color: var(--or-clair); }
.carte-recto .c-debut { font-size: 2.3cqw; letter-spacing: .12em; text-transform: uppercase; color: var(--or); }
.carte-recto > .c-debut { margin-top: 3cqw; }
.carte-cadeau figcaption { margin-top: 26px; font-style: italic; font-size: 1rem; line-height: 1.4; color: var(--encre-2); text-align: center; text-wrap: balance; }
@media (min-width: 900px) { .offre-suite { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 84px); } }

/* ------------------------------------------------------------------ Un mot de la maison : un panneau rosé */
.maison { padding-block: clamp(20px, 3vw, 40px); }
.maison-grille { max-width: calc(var(--large) + 6rem); padding: clamp(36px, 6vw, 84px) clamp(20px, 5vw, 76px); display: grid; gap: 34px; align-items: center; border-radius: clamp(18px, 3vw, 36px); background: radial-gradient(40rem 26rem at 100% 0, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%), var(--rose); border: 1px solid color-mix(in srgb, var(--filet) 70%, transparent); }
/* Un tirage posé de biais : la photo et sa légende sur le même carton. */
.maison-photo { justify-self: center; width: min(100%, 24rem); padding: 10px 10px 14px; background: var(--papier-2); box-shadow: 0 34px 50px -34px rgba(var(--ombre), .7), 0 1px 2px rgba(var(--ombre), .14); rotate: -2deg; }
.maison-photo img { display: block; width: 100%; }
.maison-photo figcaption { padding: 10px 6px 0; font-style: italic; font-size: .92rem; line-height: 1.32; color: var(--encre-2); text-align: center; text-wrap: balance; }
.maison h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.08; }
.mot-corps { margin-top: 20px; display: grid; gap: .7em; font-size: 1.12rem; line-height: 1.52; text-wrap: pretty; }
.signature { margin-top: 18px; font-family: var(--titre); font-style: italic; font-size: 1.3rem; color: var(--rubrique); }
@media (min-width: 900px) { .maison-grille { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 88px); } }

/* ------------------------------------------------------------------ VI. Questions et réponses */
.entretien { max-width: 52rem; margin: clamp(26px, 4vw, 44px) auto 0; border-top: 1px solid var(--filet); }
.entretien details { border-bottom: 1px solid var(--filet); }
.entretien summary { position: relative; list-style: none; padding: 18px 44px 18px 0; font-family: var(--titre); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.18; cursor: pointer; }
.entretien summary::-webkit-details-marker { display: none; }
.entretien summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 1.6px solid var(--rubrique); border-bottom: 1.6px solid var(--rubrique); rotate: 45deg; transition: rotate .35s var(--entree), margin .35s var(--entree); }
.entretien details[open] summary::after { rotate: -135deg; margin-top: -2px; }
.entretien summary:hover { color: var(--rubrique); }
.entretien details p { padding: 0 44px 22px 0; font-size: 1.1rem; line-height: 1.52; color: var(--encre-2); text-wrap: pretty; }

/* ------------------------------------------------------------------ Envoi */
.envoi { margin-top: clamp(30px, 5vw, 70px); padding-block: clamp(70px, 9vw, 130px); text-align: center; }
.envoi .cadre { display: grid; justify-items: center; }
.dedicace { font-family: var(--titre); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--or-clair); }
.dedicace .blanc { display: inline-block; width: 5.4em; border-bottom: 1px solid currentColor; translate: 0 -.1em; }
.envoi h2 { margin-top: 14px; font-size: clamp(2.4rem, 6vw, 4.4rem); color: #F7F1E2; }
.envoi-prix { margin-top: 18px; max-width: 30em; font-size: 1.14rem; color: #D9D2C0; text-wrap: balance; }
.envoi .btn { margin-top: 28px; }
.envoi-garantie { margin-top: 16px; font-style: italic; font-size: 1rem; color: #D9D2C0; }

/* ------------------------------------------------------------------ Le séparateur du premier écran */
/* Au bas de l'ouverture, au-dessus de « Un an de souvenirs » : un double filet or et vert de part et
   d'autre de l'ornement de la maison, et l'invitation à descendre. Sur ordinateur, l'ouverture est
   réglée pour qu'il tienne dans le premier écran. */
.separateur {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(14px, 2.6vw, 30px);
  max-width: var(--large); margin: clamp(30px, 4vw, 44px) auto 0;
  color: var(--rubrique); text-decoration: none;
}
.separateur-filet { height: 5px; border-top: 1px solid var(--or); border-bottom: 1px solid color-mix(in srgb, var(--rubrique) 45%, transparent); }
.separateur-filet:first-child { mask-image: linear-gradient(90deg, transparent, #000 38%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); }
.separateur-filet:last-child { mask-image: linear-gradient(270deg, transparent, #000 38%); -webkit-mask-image: linear-gradient(270deg, transparent, #000 38%); }
.separateur-centre { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.separateur-orne { flex: none; width: 40px; height: 16px; color: var(--or-fonce); }
.separateur-texte { font-style: italic; font-size: 1.02rem; line-height: 1.2; color: var(--encre-2); white-space: nowrap; }
.separateur-fleche {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--rubrique) 40%, transparent);
  background: var(--papier-2) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.5v10M3.8 8.5 8 12.7l4.2-4.2' fill='none' stroke='%231E4034' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 8px 16px -10px rgba(var(--ombre), .45);
}
.separateur:hover .separateur-texte { color: var(--encre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.separateur:hover .separateur-fleche { border-color: var(--rubrique); }
.separateur:focus-visible { outline: 2px solid var(--encre); outline-offset: 6px; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  html.anim .separateur-fleche { animation: descendre 2.6s var(--entree) 1.4s infinite; }
}
@keyframes descendre { 0%, 55%, 100% { translate: 0 0; } 25% { translate: 0 5px; } }
@media (min-width: 960px) {
  /* Le premier écran : l'en-tête (60 px), l'ouverture et le séparateur, entiers dès 720 px de haut. */
  .ouverture { padding-top: clamp(16px, 2.2vw, 34px); }
  .ouverture-grille { min-height: min(calc(100svh - 190px), 44rem); }
  .separateur { margin-top: 14px; }
}
@media (min-width: 960px) and (max-height: 920px) {
  .ouverture-grille { min-height: 0; }
  .ouverture h1 { font-size: clamp(3rem, 4.6vw, 4.2rem); }
  .ouverture .argument { margin-top: 16px; }
  .offre-titre { margin-top: 20px; }
  .faits-titre { margin-top: 18px; }
  .ouverture-livre .livre-place { max-height: calc(100svh - 250px); }
}

/* ------------------------------------------------------------------ Ouverture : compléments */
.pour-vous { grid-area: faits; align-self: end; margin-top: 12px; font-size: 1rem; color: var(--encre-2); display: none; }
@media (max-width: 699px) {
  /* Sur téléphone, « Pour moi » n'a pas de bouton : une ligne sous les trois faits. */
  .ouverture-grille { grid-template-areas: "pour" "titre" "livre" "argument" "offre" "faits" "vous"; }
  .pour-vous { grid-area: vous; display: block; }
}

/* ------------------------------------------------------------------ L'année : compléments */
.lundis-reperes .quand::first-letter { text-transform: uppercase; }

/* ------------------------------------------------------------------ La voix : l'e-mail de la semaine 34, avant le film */
.film-repli { height: 100%; padding: 6% 7%; display: grid; align-content: center; gap: 18px; }
.film-repli .feuillet { padding: 18px 22px 20px; background: var(--papier-2); border: 1px solid var(--filet); border-radius: 6px; box-shadow: 0 24px 40px -30px rgba(var(--ombre), .55); }
.f-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 8px; border-bottom: 1px solid var(--filet); font-size: .95rem; color: var(--encre-2); }
.f-de { text-transform: uppercase; letter-spacing: .12em; font-size: .85em; color: var(--rubrique); }
.f-semaine { margin-top: 10px; font-size: .95rem; font-style: italic; color: var(--encre-2); }
.f-question { margin-top: 4px; font-family: var(--titre); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.12; }
.f-actions { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .98rem; }
.f-parler { padding: 6px 14px; border-radius: 999px; background: var(--toile); color: var(--or-clair); font-weight: 600; }
.f-ecrire { color: var(--encre-2); }
.film-repli-temps { list-style: none; margin: 0; padding: 0; display: grid; gap: .3em; font-family: var(--titre); font-style: italic; font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.15; }

/* ------------------------------------------------------------------ Les questions et le livre : compléments */
.cartes-q-plus { margin-top: 10px; font-size: 1.02rem; }
.cartes-q-plus a { color: var(--rubrique); }
.apres-action { margin-top: 22px; }
.atelier-titre { margin: clamp(36px, 5vw, 60px) auto 0; max-width: 24em; font-family: var(--titre); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; text-align: center; text-wrap: balance; }
.atelier-titre + .atelier { margin-top: clamp(18px, 3vw, 34px); }
.faq-plus { margin-top: 26px; text-align: center; font-size: 1.04rem; color: var(--encre-2); }
.faq-plus a { color: var(--rubrique); }

/* ------------------------------------------------------------------ Impression : tout à l'état final, sans décor */
@media print {
  .ouverture-toile, .separateur-fleche, .noel-lueurs, .film-etapes, .feuilleter, .scene { display: none !important; }
  .rv { opacity: 1 !important; translate: none !important; }
}

/* L'envoi (toile verte) se prolonge dans le pied de page : pas de bande de papier entre les deux. */
.page-accueil footer.site { margin-top: 0; }
.page-accueil .envoi { margin-bottom: 0; }

/* ------------------------------------------------------------------ Code promo : les prix */
/* Le prix habituel barré en biais (style.css), le prix avec le code en grand, le code en ticket et, sur les
   fiches, une pastille dorée « −10 € » posée sur le coin, comme un cachet. */
.prix .prix-avant { font-family: var(--titre); font-size: 1.45rem; line-height: 1.05; }
.ouverture .prix .prix-code { margin-top: 9px; font-size: .92rem; }
.offre-prix { display: flex; flex-direction: column; align-items: flex-start; }
.offre-prix .prix-avant { margin-top: 2px; font-size: 1.55rem; line-height: 1.1; }
.offre-prix .prix-promo { font-size: 3.6rem; line-height: .98; }
.offre-prix .prix-code { margin-top: 12px; }
.prix-pastille {
  position: absolute; z-index: 2; top: -18px; right: -12px;
  display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FBEFC9, #E2C273 48%, #B8924A 100%);
  color: var(--toile-sombre); font-family: var(--titre); font-size: 1.32rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap;
  rotate: 12deg;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .38), 0 12px 20px -10px rgba(70, 48, 12, .6);
}
.prix-pastille::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(19, 39, 31, .45); }
@media (prefers-reduced-motion: no-preference) {
  /* La pastille se pose d'un coup de tampon quand la fiche entre. */
  html.anim .offre-carte.rv .prix-pastille { scale: 1.8; opacity: 0; transition: scale .45s cubic-bezier(.2, 1.6, .4, 1) .55s, opacity .2s ease .55s; }
  html.anim .offre-carte.rv.vu .prix-pastille { scale: 1; opacity: 1; }
}
@media (forced-colors: active) { .prix-pastille { border: 2px solid CanvasText; } }

/* ------------------------------------------------------------------ Téléphone */
/* Une page plus courte et plus vive : des parties moins hautes, les trois temps de l'année et les questions en
   carrousels qu'on fait glisser, les avantages en deux colonnes, les entrées au défilement sans attente. */
@media (max-width: 699px) {
  .bande { padding-block: 54px; }
  .ouverture { padding-bottom: 16px; }
  .bande.annee { padding-top: 24px; }
  .chapeau { margin-top: 14px; font-size: 1.12rem; }
  .etapes, .cartes-q {
    display: flex; gap: 14px; margin: 26px calc(-1 * var(--marge)) 0; padding: 4px var(--marge) 18px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--marge);
    scrollbar-width: none;
  }
  .etapes::-webkit-scrollbar, .cartes-q::-webkit-scrollbar { display: none; }
  .etapes:focus-visible, .cartes-q:focus-visible { outline-offset: -2px; }
  .etape { flex: 0 0 84%; scroll-snap-align: start; }
  .etape-corps { padding: 16px 18px 20px; }
  .etape h4 { font-size: 1.6rem; }
  .etape-corps > p:last-child { font-size: 1.02rem; }
  .carte-q { flex: 0 0 76%; min-height: 0; scroll-snap-align: start; }
  .carte-q:hover { translate: none; }
  .etapes-legende { margin-top: 2px; }
  .lundis { margin-top: 30px; }
  .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .atout-image { height: 6.2rem; }
  .atout-image > * { zoom: .74; }
  .atout-voix .atout-image > * { zoom: .62; }
  .atout h3 { margin-top: 12px; font-size: 1.24rem; }
  .atout p { margin-top: 6px; font-size: .97rem; line-height: 1.4; }
  .apres-etapes { gap: 18px; }
  .fiche > div { padding: 12px 12px 14px; }
  .offres-cartes { gap: 30px; }
  .offre-carte { padding: 24px 22px; }
  .offre-prix .prix-promo { font-size: 3.3rem; }
  .prix-pastille { width: 4.2rem; height: 4.2rem; font-size: 1.2rem; top: -16px; right: -6px; }
  .offre-titre { gap: 14px; }
}
/* Tant que l'ouverture est centrée (téléphone et tablette), le prix l'est aussi : le prix barré, le nouveau prix,
   « livre relié inclus » et le code, l'un sous l'autre, à gauche du bouton. */
@media (max-width: 959px) {
  .offre-titre .prix { justify-items: center; text-align: center; }
}
@media (max-width: 699px) and (prefers-reduced-motion: no-preference) {
  html.anim .rv { translate: 0 14px; transition-delay: 0ms; }
}
