/* L'Atelier des rêves, version « hiver ».
   Une journée de neige : l'aube en haut de page, la nuit étoilée au prix. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-normal.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --neige: #F8FBFE;
  --givre: #E6F0F8;
  --glace: #BDD8EA;
  --bleu: #2B6A99;        /* le manteau d'Inès */
  --bleu-nuit: #1D3F66;
  --encre: #17263C;
  --encre-douce: #46586F;
  --aube: #FCE6DA;
  --or: #F5BD4F;
  --or-fonce: #96590A;
  --lueur: #FFF6DF;
  --nuit: #120F30;
  --nuit-2: #1F1A4D;
  --aurore: #86EFC8;
  --sapin: #1E4A47;
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --main: "Caveat", "Segoe Print", cursive;
  --rayon: 22px;
  --ombre: 0 24px 50px -24px rgba(29, 63, 102, .45);
  --doux: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--neige); color: var(--encre);
  font-family: var(--texte); font-size: 1.125rem; line-height: 1.65; font-weight: 500;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
strong { font-weight: 800; }
p, li, figcaption { text-wrap: pretty; }
.cadre { width: min(1160px, 100% - 40px); margin-inline: auto; position: relative; z-index: 2; }
.manuscrit { font-family: var(--main); font-weight: 700; line-height: 1.3; }
.aparte { color: var(--encre-douce); font-style: italic; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }

.saut { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.saut:focus { left: 8px; }

/* La neige qui tombe sur toute la page */
.neige-ciel { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* ---------- Étiquettes et boutons ---------- */
.etiquette {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bleu);
}
.etiquette::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; text-decoration: none;
  font-family: var(--texte); font-weight: 900; font-size: 1.08rem; line-height: 1.2; color: #2A1B00;
  background: linear-gradient(180deg, #FFD67A, var(--or));
  box-shadow: 0 2px 0 #fff8 inset, 0 -3px 0 #C98A1B55 inset, 0 14px 30px -10px rgba(214, 150, 30, .7);
  position: relative; transition: transform .25s var(--doux), box-shadow .25s var(--doux);
}
.bouton:hover { transform: translateY(-3px); box-shadow: 0 2px 0 #fff8 inset, 0 -3px 0 #C98A1B55 inset, 0 22px 40px -12px rgba(214, 150, 30, .85), 0 0 0 6px rgba(245, 189, 79, .22); }
.bouton:active { transform: translateY(0); }
.bouton-petit { padding: 10px 18px; font-size: .95rem; }
.bouton-large { width: 100%; padding: 19px 28px; font-size: 1.2rem; }
.bouton-clair { background: rgba(255, 255, 255, .7); color: var(--bleu-nuit); box-shadow: 0 0 0 2px var(--glace) inset, 0 10px 24px -14px rgba(29, 63, 102, .5); backdrop-filter: blur(6px); }
.bouton-clair:hover { box-shadow: 0 0 0 2px var(--bleu) inset, 0 16px 30px -14px rgba(29, 63, 102, .6); }

/* ---------- Barre flottante ---------- */
.barre {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 22px; padding: 8px 8px 8px 20px;
  width: max-content; max-width: calc(100% - 24px);
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px;
  box-shadow: 0 12px 30px -16px rgba(29, 63, 102, .5);
}
.marque { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--titre); font-weight: 700; font-size: 1.08rem; color: var(--bleu-nuit); white-space: nowrap; }
.marque svg { width: 22px; height: 22px; color: var(--bleu); }
.barre nav { display: flex; gap: 20px; }
.barre nav a { text-decoration: none; font-weight: 800; font-size: .95rem; color: var(--encre-douce); }
.barre nav a:hover { color: var(--bleu); }

/* ---------- 1. Haut de page : l'aube ---------- */
.haut {
  position: relative; overflow: hidden;
  padding: clamp(110px, 15vh, 150px) 0 clamp(150px, 20vw, 230px);
  background:
    radial-gradient(90% 60% at 20% 0%, #FFF3E2 0%, transparent 60%),
    linear-gradient(180deg, var(--aube) 0%, #F3EAF1 34%, #E4F0F9 68%, #DCEBF6 100%);
}
.soleil { position: absolute; left: 6%; top: -90px; width: 420px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #FFFDF4 0%, #FFE9C4 28%, rgba(255, 220, 180, 0) 68%); }
.grand-flocon { position: absolute; color: #fff; opacity: .75; filter: drop-shadow(0 2px 6px rgba(120, 160, 200, .35)); }
.f1 { width: 74px; height: 74px; right: 7%; top: 16%; }
.f2 { width: 40px; height: 40px; right: 38%; top: 11%; }
.f3 { width: 54px; height: 54px; left: 3%; top: 58%; }
.anime .grand-flocon { animation: tourne 38s linear infinite; }
.anime .f2 { animation-duration: 26s; animation-direction: reverse; }
@keyframes tourne { to { transform: rotate(360deg); } }

.haut-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.haut-texte h1 { font-size: clamp(2.7rem, 6.2vw, 5.1rem); margin: 18px 0 22px; color: var(--bleu-nuit); }
.haut-texte h1 em { color: var(--or-fonce); position: relative; white-space: nowrap; }
.haut-texte h1 em::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -.02em; height: .16em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8C30 2 60 11 118 4' fill='none' stroke='%23F5BD4F' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.haut-sous { font-size: clamp(1.12rem, 1.6vw, 1.32rem); max-width: 33em; color: var(--encre); }
.haut-boutons { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.condition { font-size: .95rem; color: var(--encre-douce); max-width: 36em; }

/* La boule à neige */
.haut-globe { display: grid; justify-items: center; position: relative; }
.globe { all: unset; cursor: pointer; display: grid; justify-items: center; width: min(440px, 76vw); position: relative; -webkit-tap-highlight-color: transparent; }
.globe:focus-visible .globe-verre { outline: 4px solid var(--or); outline-offset: 5px; }
.globe-verre {
  position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; z-index: 2;
  background: #cfe3f1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 0 0 4px rgba(150, 190, 220, .5), 0 40px 60px -30px rgba(29, 63, 102, .65), 0 0 90px 10px rgba(255, 255, 255, .7);
}
.globe-verre img { width: 100%; height: 100%; object-fit: cover; }
.globe-verre canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-verre::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 -34px 60px -10px rgba(20, 50, 90, .5), inset 0 26px 50px -18px rgba(255, 255, 255, .75), inset 14px 0 40px -22px rgba(255, 255, 255, .6); pointer-events: none; }
.globe-neige { position: absolute; left: -8%; right: -8%; bottom: -17%; height: 30%; border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, #fff 55%, #E3EEF7 100%); filter: blur(1px); }
.globe-reflet { position: absolute; left: 13%; top: 9%; width: 34%; height: 22%; border-radius: 50%; background: linear-gradient(160deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 70%); transform: rotate(-28deg); filter: blur(3px); pointer-events: none; }
.globe-socle {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 66%; height: 78px; margin-top: -26px; padding-top: 22px;
  background: linear-gradient(180deg, #8A5A3A 0%, #6D4329 55%, #4E2E1B 100%);
  border-radius: 14px 14px 26px 26px / 12px 12px 30px 30px;
  box-shadow: inset 0 10px 14px -8px rgba(0, 0, 0, .55), inset 0 -6px 0 rgba(0, 0, 0, .18), 0 26px 30px -18px rgba(40, 30, 40, .6);
}
.globe-plaque {
  font-family: var(--titre); font-style: italic; font-weight: 600; font-size: clamp(.72rem, 1.25vw, .92rem); color: #4A3206; text-align: center; line-height: 1.1;
  padding: 6px 14px; border-radius: 6px; background: linear-gradient(180deg, #FFE39A, #D9A53A); box-shadow: inset 0 1px 0 #fff8, 0 1px 2px rgba(0, 0, 0, .4);
}
.globe-mot { position: absolute; right: 2%; top: 2%; font-size: 1.55rem; color: var(--bleu); transform: rotate(8deg); }
.globe-mot::after { content: ""; display: block; width: 46px; height: 30px; margin: 2px 0 0 -30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 30'%3E%3Cpath d='M42 2C36 16 22 24 5 24M5 24l9-7M5 24l10 4' fill='none' stroke='%232B6A99' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.globe-legende { margin-top: 18px; font-size: .92rem; font-weight: 800; color: var(--encre-douce); text-align: center; }
.globe.secoue { animation: secoue .7s var(--doux); }
@keyframes secoue { 15% { transform: rotate(-7deg) translateX(-10px); } 35% { transform: rotate(6deg) translateX(9px); } 55% { transform: rotate(-4deg) translateX(-5px); } 75% { transform: rotate(2deg); } }
.anime .globe { animation: flotte 7s ease-in-out infinite; }
.anime .globe.secoue { animation: secoue .7s var(--doux); }
@keyframes flotte { 50% { transform: translateY(-9px); } }

/* Collines et sapins */
.paysage { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(110px, 15vw, 200px); pointer-events: none; z-index: 1; }
.colline { display: block; width: 100%; }
.paysage .colline { position: absolute; left: 0; bottom: 0; height: 100%; }
.c-loin path { fill: #EEF5FB; }
.c-pres path { fill: var(--neige); }
.sapin { position: absolute; bottom: 34%; width: clamp(34px, 4.4vw, 62px); height: clamp(52px, 6.800vw, 95px); color: #3E7B77; }
.s1 { left: 5%; bottom: 44%; }
.s2 { left: 10.500%; bottom: 30%; transform: scale(.72); color: #5B9793; }
.s3 { left: 46%; bottom: 40%; transform: scale(.6); color: #6BA5A1; }
.s4 { right: 13%; bottom: 36%; transform: scale(.8); color: #5B9793; }
.s5 { right: 5%; bottom: 46%; transform: scale(1.15); }

/* ---------- 2. Le livre d'Inès ---------- */
.livre { position: relative; background: linear-gradient(180deg, var(--neige) 0%, var(--givre) 100%); padding: clamp(50px, 7vw, 100px) 0 clamp(120px, 14vw, 190px); }
.livre-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.livre-recit h2 { margin: 16px 0 26px; color: var(--bleu-nuit); }
.livre-recit p + p { margin-top: 14px; }
.livre-recit strong { font-family: var(--titre); font-weight: 600; font-size: 1.32em; line-height: 1.32; color: var(--bleu); display: block; margin: 6px 0; }
.livre-invite { display: flex; align-items: center; gap: 10px; font-size: 1.9rem; color: var(--or-fonce); margin-top: 26px !important; }
.livre-invite svg { width: 34px; height: 34px; }
.anime .livre-invite svg { animation: pousse 1.6s ease-in-out infinite; }
@keyframes pousse { 50% { transform: translateX(8px); } }
.livre > .bas { position: absolute; left: 0; bottom: -1px; height: clamp(60px, 9vw, 130px); }
.livre > .bas path { fill: #fff; }

/* Sans script : une bande de pages */
.pages { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 18px; }
.pages li { flex: 0 0 min(78%, 420px); scroll-snap-align: center; }
.pages img { border-radius: 14px; border: 8px solid #fff; box-shadow: var(--ombre); }
.conte.pret .pages { display: none; }

/* Avec script : le chevalet */
.scene { position: relative; width: min(560px, 100%); margin-inline: auto; }
.scene-cadre {
  position: relative; aspect-ratio: 1; border-radius: 20px; background: #fff; padding: clamp(8px, 1.4vw, 14px);
  box-shadow: 0 0 0 1px rgba(29, 63, 102, .08), var(--ombre), 0 60px 80px -50px rgba(29, 63, 102, .5);
  transform: rotate(-1.2deg); cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.scene-cadre::before, .scene-cadre::after { content: ""; position: absolute; inset: 0; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(29, 63, 102, .08); z-index: -1; }
.scene-cadre::before { transform: rotate(2.6deg) translate(6px, 4px); background: #F1F6FA; }
.scene-cadre::after { transform: rotate(4.6deg) translate(12px, 8px); background: #E6EFF6; z-index: -2; }
.scene-vue { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: var(--givre); }
.scene-vue img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-vue img.entre { opacity: 0; transform: scale(1.06); filter: blur(10px) brightness(1.35); }
.scene-vue img.pose { opacity: 1; transform: none; filter: none; transition: opacity .6s ease, transform .9s var(--doux), filter .7s ease; }
/* la neige posée sur le cadre */
.congere { position: absolute; left: 4%; right: 4%; top: -17px; height: 38px; z-index: 3; pointer-events: none; transform: rotate(-1.2deg); filter: drop-shadow(0 3px 3px rgba(29, 63, 102, .18)); }
.congere path { fill: #fff; }
.scene-fleche {
  position: absolute; top: 50%; z-index: 4; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--bleu-nuit); background: #fff; box-shadow: 0 10px 24px -8px rgba(29, 63, 102, .55);
  transform: translateY(-50%); transition: transform .2s var(--doux), background .2s;
}
.scene-fleche svg { width: 24px; height: 24px; }
.scene-fleche:hover { background: var(--or); transform: translateY(-50%) scale(1.08); }
.scene-fleche:disabled { opacity: .35; cursor: default; background: #fff; transform: translateY(-50%); }
.scene-fleche.prec { left: -20px; } .scene-fleche.prec svg { transform: scaleX(-1); }
.scene-fleche.suiv { right: -20px; }

/* la carte au trésor sous le livre */
.carte { position: relative; width: min(560px, 100%); height: 58px; margin: 26px auto 0; }
.carte svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.carte path { fill: none; stroke: var(--glace); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.carte button { all: unset; position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; cursor: pointer; display: grid; place-items: center; }
.carte button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--glace); transition: transform .3s var(--doux), background .3s; }
.carte button.passe::before { background: var(--bleu); box-shadow: 0 0 0 2px var(--bleu); }
.carte button.ici::before { background: var(--or); box-shadow: 0 0 0 2px var(--or-fonce), 0 0 0 7px rgba(245, 189, 79, .3); transform: scale(1.5); }
.carte button.tresor::before { width: 18px; height: 18px; border-radius: 0; background: none; box-shadow: none;
  background: linear-gradient(45deg, transparent 42%, #C0392B 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, #C0392B 42% 58%, transparent 58%); }
.carte button.tresor.ici::before { transform: scale(1.4) rotate(8deg); }
.carte button:focus-visible { outline: 3px solid var(--or); border-radius: 50%; }
.scene-compte { text-align: center; font-family: var(--main); font-weight: 700; font-size: 1.5rem; color: var(--bleu); margin-top: 4px; }

/* ---------- 3. La lettre ---------- */
.lettre-zone { background: #fff; padding: clamp(40px, 6vw, 90px) 0 clamp(40px, 5vw, 70px); position: relative; }
.lettre-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.lettre-grille h2 { color: var(--bleu-nuit); position: sticky; top: 110px; }
.lettre-grille h2 em { color: var(--bleu); }
.lettre {
  position: relative; padding: clamp(28px, 4vw, 52px); border-radius: var(--rayon);
  background:
    repeating-linear-gradient(180deg, transparent 0 2.150em, rgba(43, 106, 153, .09) 2.150em calc(2.150em + 1px)),
    linear-gradient(180deg, #FDFEFF, var(--neige));
  box-shadow: 0 0 0 1px rgba(29, 63, 102, .08), var(--ombre);
  transform: rotate(.6deg);
}
.lettre::before { content: ""; position: absolute; top: -16px; left: 50%; width: 120px; height: 34px; transform: translateX(-50%) rotate(-3deg); background: rgba(189, 216, 234, .75); border-radius: 3px; box-shadow: 0 2px 4px rgba(29, 63, 102, .15); }
.lettre p + p { margin-top: 16px; }
.signature { font-size: 2.1rem; color: var(--bleu); margin-top: 22px !important; }

/* ---------- 4. La méthode : la piste ---------- */
.methode { background: linear-gradient(180deg, #fff 0%, #F4F9FD 30%, #EAF3FA 100%); padding: clamp(30px, 5vw, 70px) 0 clamp(110px, 13vw, 180px); position: relative; }
.titre-centre { text-align: center; color: var(--bleu-nuit); max-width: 14em; margin: 0 auto clamp(40px, 6vw, 80px); }
.piste { position: relative; --p: 100%; }
.piste-trait { position: absolute; left: 50%; top: 0; width: 120px; height: 100%; transform: translateX(-50%); overflow: visible; clip-path: inset(0 -40px calc(100% - var(--p)) -40px); }
.piste-trait path { fill: none; stroke: var(--bleu); stroke-width: 3.5; stroke-dasharray: 2 12; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .7; }
.etapes { position: relative; display: grid; gap: clamp(50px, 8vw, 110px); }
.etape { display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); align-items: center; gap: clamp(10px, 2vw, 30px); }
.borne {
  grid-column: 2; grid-row: 1; justify-self: center; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titre); font-weight: 700; font-size: 1.9rem; color: #2A1B00;
  background: radial-gradient(circle at 35% 28%, #FFE9A8, var(--or) 62%, #DB9A22);
  box-shadow: 0 0 0 7px #fff, 0 0 0 8px rgba(43, 106, 153, .2), 0 14px 24px -8px rgba(185, 117, 15, .6);
}
.etape-texte { grid-column: 1; grid-row: 1; text-align: right; }
.etape .tirage { grid-column: 3; grid-row: 1; }
.etape:nth-child(even) .etape-texte { grid-column: 3; text-align: left; }
.etape:nth-child(even) .tirage { grid-column: 1; justify-self: end; }
.etape-texte h3 { color: var(--bleu-nuit); margin-bottom: 12px; }
.etape-texte p + p { margin-top: 10px; }
.exemple { font-size: 1.5rem; color: var(--bleu); }
.tirage {
  position: relative; width: fit-content; max-width: min(440px, 100%); padding: 12px 12px 8px; background: #fff; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(29, 63, 102, .08), var(--ombre); transform: rotate(var(--r, 1.6deg)); transition: transform .5s var(--doux);
}
.etape:nth-child(even) .tirage { --r: -1.800deg; }
.etape:nth-child(3) .tirage { --r: 2.400deg; }
.tirage:hover { transform: rotate(0) scale(1.03); }
.tirage img { border-radius: 5px; max-height: 340px; width: auto; }
.tirage figcaption { font-family: var(--main); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--encre-douce); padding: 8px 4px 2px; text-align: center; max-width: 22em; margin-inline: auto; }
.croix { display: block; width: 46px; height: 46px; margin: clamp(30px, 5vw, 60px) auto 0; position: relative;
  background: linear-gradient(45deg, transparent 43%, #C0392B 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #C0392B 43% 57%, transparent 57%); transform: rotate(6deg); }

/* ---------- 5. La preuve ---------- */
.preuve { position: relative; background: #fff; padding: 0 0 clamp(70px, 9vw, 120px); }
.preuve > .haut-de-zone { height: clamp(60px, 9vw, 130px); margin-top: calc(-1 * clamp(60px, 9vw, 130px) + 1px); position: relative; }
.preuve > .haut-de-zone path { fill: #fff; }
.preuve-tete { text-align: center; max-width: 780px; margin: 0 auto clamp(30px, 4vw, 50px); padding-top: clamp(20px, 3vw, 40px); }
.preuve-tete h2 { color: var(--bleu-nuit); margin-bottom: 16px; }
.chapo { font-size: 1.2rem; color: var(--encre-douce); }
.feuille { max-width: 900px; margin: 0 auto clamp(26px, 4vw, 44px); padding: 12px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(29, 63, 102, .08), var(--ombre); transform: rotate(-.8deg); position: relative; }
.feuille::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(2deg); background: rgba(245, 189, 79, .7); border-radius: 3px; }
.feuille img { border-radius: 8px; width: 100%; }
.mosaique { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.mosaique li { border-radius: 14px; overflow: hidden; background: var(--givre); box-shadow: 0 10px 22px -14px rgba(29, 63, 102, .6); transition: transform .4s var(--doux), box-shadow .4s; }
.mosaique li:nth-child(odd) { transform: rotate(-1deg); }
.mosaique li:nth-child(even) { transform: rotate(1.2deg) translateY(6px); }
.mosaique li:hover { transform: scale(1.12) rotate(0); z-index: 3; position: relative; box-shadow: 0 24px 40px -14px rgba(29, 63, 102, .7); }
.mosaique img { width: 100%; }

.pieges { margin-top: clamp(50px, 7vw, 90px); padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: linear-gradient(160deg, var(--givre), #F4F9FD); box-shadow: 0 0 0 1px rgba(29, 63, 102, .07); }
.pieges-texte { max-width: 760px; margin-bottom: 26px; }
.pieges-texte h3 { color: var(--bleu-nuit); margin-bottom: 14px; }
.pieges-texte p + p { margin-top: 10px; }
.comparateur figure + figure { margin-top: 14px; }
.comparateur img { border-radius: 14px; width: 100%; }
.comparateur figcaption { font-weight: 800; font-size: .9rem; margin-top: 6px; }
.comparateur input, .comparateur .poignee { display: none; }
.pieges-note { margin-top: 14px; font-size: .98rem; color: var(--encre-douce); text-align: center; }
.js .comparateur { position: relative; aspect-ratio: 1500 / 501; border-radius: 16px; overflow: hidden; box-shadow: var(--ombre); }
.js .comparateur figure { position: absolute; inset: 0; margin: 0; }
.js .comparateur img { border-radius: 0; height: 100%; object-fit: cover; }
.js .comparateur .c-sans { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.js .comparateur figcaption { position: absolute; top: 12px; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(23, 38, 60, .78); color: #fff; font-size: .82rem; }
.js .comparateur .c-sans figcaption { left: 12px; }
.js .comparateur .c-avec figcaption { right: 12px; }
.js .comparateur input { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.js .comparateur .poignee { display: block; position: absolute; top: 0; bottom: 0; left: var(--x); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .4); z-index: 2; pointer-events: none; }
.js .comparateur .poignee::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%231D3F66' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/24px no-repeat; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.js .comparateur:focus-within .poignee::after { box-shadow: 0 0 0 4px var(--or), 0 6px 16px rgba(0, 0, 0, .35); }

/* ---------- 6. Reçois / il te faut ---------- */
.inclus { background: linear-gradient(180deg, #fff 0%, #EAF3FA 100%); padding: clamp(20px, 3vw, 40px) 0 clamp(60px, 8vw, 110px); }
.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); align-items: start; }
.carte-givre {
  position: relative; padding: clamp(34px, 4vw, 48px) clamp(22px, 3.4vw, 42px) clamp(26px, 3.4vw, 40px); border-radius: 26px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .96), rgba(244, 249, 253, .9));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9) inset, 0 0 0 1px rgba(29, 63, 102, .08), var(--ombre);
}
.carte-givre::before, .qui::before {
  content: ""; position: absolute; left: 5%; right: 5%; top: -16px; height: 36px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M4 20C20 4 60 2 110 6s90-6 150-2 100-2 132 16c2 8-6 12-14 8s-14 0-18 6-16 4-20-4-18-6-26 0-22 6-28-2-22-4-30 2-24 6-32-2-20-2-26 4-22 4-28-4-20-4-28 2-22 6-30-2S62 24 54 30s-22 2-26-6S8 28 4 20z' fill='white'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  filter: drop-shadow(0 3px 2px rgba(29, 63, 102, .14));
}
.carte-titre { font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: var(--bleu-nuit); margin-bottom: 20px; }
.liste li { position: relative; padding-left: 38px; }
.liste li + li { margin-top: 13px; }
.liste li::before { content: ""; position: absolute; left: 0; top: .14em; width: 24px; height: 24px; background: center/contain no-repeat; }
.liste-etoiles li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 2c1.600 12 8 18.400 22 22-14 3.600-20.400 10-22 22-1.600-12-8-18.400-22-22 14-3.600 20.400-10 22-22z' fill='%23F5BD4F' stroke='%23B9750F' stroke-width='2'/%3E%3C/svg%3E"); }
.liste-flocons li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%232B6A99' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M24 5v38M7.500 14.500l33 19M7.500 33.500l33-19'/%3E%3C/g%3E%3C/svg%3E"); }
.note { margin-top: 18px; font-size: .98rem; color: var(--encre-douce); }
.note.fort { font-family: var(--main); font-weight: 700; font-size: 1.55rem; line-height: 1.3; color: var(--bleu); margin-top: 14px; }

/* ---------- 7. Pour qui : le soir tombe ---------- */
.pour-qui { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 12vw, 170px); background: linear-gradient(180deg, #EAF3FA 0%, #F6DCDC 26%, #E9B9C6 46%, #A98BC4 68%, #4A3C8C 88%, var(--nuit-2) 100%); }
.qui { position: relative; padding: clamp(34px, 4vw, 46px) clamp(22px, 3.4vw, 40px) clamp(26px, 3.4vw, 38px); border-radius: 26px; background: rgba(255, 255, 255, .93); box-shadow: 0 30px 60px -30px rgba(40, 20, 80, .6); }
.qui h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: var(--bleu-nuit); margin-bottom: 20px; }
.qui li { position: relative; padding-left: 40px; }
.qui li + li { margin-top: 13px; }
.qui li::before { content: ""; position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%; background: center/15px no-repeat; }
.oui li::before { background-color: #D7F3E6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13l5 5L20 6' fill='none' stroke='%231C7A52' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.non { background: rgba(255, 255, 255, .8); }
.non h2 { color: var(--encre-douce); }
.non li { color: var(--encre-douce); }
.non li::before { background-color: #EDE6F2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%237A6A92' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---------- La nuit ---------- */
.nuit { position: relative; color: #EEF0FF; background: var(--nuit); overflow: hidden; }
.nuit h2 { color: #fff; }
.etoiles { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.600px 1.600px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1.200px 1.200px at 28% 62%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 44% 30%, #FFE9B0 50%, transparent 52%), radial-gradient(1.200px 1.200px at 58% 78%, #fff 50%, transparent 52%),
    radial-gradient(1.600px 1.600px at 71% 14%, #fff 50%, transparent 52%), radial-gradient(1.200px 1.200px at 83% 52%, #CFE0FF 50%, transparent 52%),
    radial-gradient(2px 2px at 93% 86%, #fff 50%, transparent 52%), radial-gradient(1.200px 1.200px at 6% 90%, #fff 50%, transparent 52%),
    radial-gradient(1.400px 1.400px at 36% 6%, #fff 50%, transparent 52%), radial-gradient(1.400px 1.400px at 64% 44%, #fff 50%, transparent 52%);
  background-size: 520px 420px; opacity: .85; }
.etoiles::after { content: ""; position: absolute; inset: 0; background: inherit; background-size: 340px 300px; background-position: 120px 80px; opacity: .6; }
.anime .etoiles::after { animation: scintille 4.200s ease-in-out infinite alternate; }
@keyframes scintille { from { opacity: .15; } to { opacity: .8; } }

/* ---------- 8. Le prix ---------- */
.prix { background: linear-gradient(180deg, var(--nuit-2) 0%, #17133E 40%, var(--nuit) 100%); padding: clamp(40px, 6vw, 90px) 0 clamp(80px, 10vw, 140px); }
.aurore { position: absolute; inset: 0 -10% auto -10%; height: 80%; pointer-events: none; filter: blur(46px); opacity: .6; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%); }
.aurore i { position: absolute; border-radius: 50%; }
.aurore i:nth-child(1) { left: 2%; top: 22%; width: 58%; height: 46%; background: linear-gradient(100deg, transparent, var(--aurore) 40%, #5AC8E8 70%, transparent); transform: rotate(-9deg); }
.aurore i:nth-child(2) { right: 0; top: 16%; width: 60%; height: 40%; background: linear-gradient(80deg, transparent, #9C7BFF 35%, var(--aurore) 75%, transparent); transform: rotate(7deg); }
.aurore i:nth-child(3) { left: 26%; top: 44%; width: 52%; height: 30%; background: linear-gradient(95deg, transparent, #6FE3D2 50%, transparent); transform: rotate(-3deg); opacity: .7; }
.anime .aurore i { animation: ondule 13s ease-in-out infinite alternate; }
.anime .aurore i:nth-child(2) { animation-duration: 17s; animation-delay: -5s; }
.anime .aurore i:nth-child(3) { animation-duration: 11s; animation-delay: -3s; }
@keyframes ondule { from { translate: -5% 0; scale: 1 1; } to { translate: 6% 5%; scale: 1.12 1.3; } }
.filante { position: absolute; top: 14%; left: 68%; width: 130px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff, transparent); transform: rotate(-24deg); opacity: 0; }
.anime .filante { animation: file 9s ease-in 2s infinite; }
@keyframes file { 0% { opacity: 0; translate: 0 0; } 3% { opacity: 1; } 9% { opacity: 0; translate: -340px 150px; } 100% { opacity: 0; translate: -340px 150px; } }

.prix-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.prix .etiquette { color: var(--aurore); }
.prix-date { font-family: var(--titre); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.32; margin-top: 18px; color: #fff; }
.prix-date strong { color: var(--or); font-weight: 600; white-space: nowrap; }
.sapin-noel { width: 150px; height: 230px; margin-top: 30px; color: #2F6F69; filter: drop-shadow(0 0 30px rgba(134, 239, 200, .35)); }

/* la carte du prix : une fenêtre éclairée dans la nuit */
.fenetre {
  position: relative; padding: clamp(64px, 8vw, 96px) clamp(24px, 4vw, 52px) clamp(30px, 4vw, 46px); text-align: center; color: var(--encre);
  border-radius: 280px 280px 30px 30px / 200px 200px 30px 30px;
  background: radial-gradient(120% 70% at 50% 0%, #fff 0%, var(--lueur) 55%, #FFEBC2 100%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .1), 0 0 0 11px rgba(255, 226, 160, .35), 0 0 130px 20px rgba(255, 205, 110, .38), 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.fenetre::after { content: ""; position: absolute; left: -22px; right: -22px; bottom: -16px; height: 40px; border-radius: 40px 40px 14px 14px; background: linear-gradient(180deg, #fff, #DCE8F4); box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .55); z-index: -1; }
.fenetre-etoile { position: absolute; top: 22px; left: 50%; width: 36px; height: 36px; margin-left: -18px; color: var(--or); filter: drop-shadow(0 0 10px rgba(245, 189, 79, .9)); }
.anime .fenetre-etoile { animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.25) rotate(20deg); } }
.fenetre-nom { font-family: var(--titre); font-style: italic; font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--bleu-nuit); }
.tarif { display: flex; align-items: baseline; justify-content: center; gap: 16px; margin: 10px 0 2px; font-family: var(--titre); }
.tarif s { font-size: 1.7rem; color: #8C7A5E; text-decoration-thickness: 2px; text-decoration-color: #C0392B; }
.tarif-now { font-size: clamp(4.200rem, 9vw, 6.400rem); font-weight: 700; line-height: 1; color: var(--bleu-nuit); letter-spacing: -.03em; }
.petit { font-weight: 800; color: var(--encre-douce); font-size: .98rem; }
.recap { text-align: left; max-width: 22em; margin: 24px auto 26px; }
.garantie { margin-top: 14px; font-size: .95rem; color: var(--encre-douce); }

/* ---------- 9. Questions ---------- */
.questions { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); }
.questions-grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(26px, 5vw, 80px); align-items: start; }
.questions h2 { position: sticky; top: 110px; }
.faq details { border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); transition: background .3s; }
.faq details + details { margin-top: 12px; }
.faq details[open] { background: rgba(255, 255, 255, .12); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-family: var(--titre); font-weight: 600; font-size: 1.28rem; line-height: 1.32; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--or); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23F5BD4F' stroke-width='4.500' stroke-linecap='round'%3E%3Cpath d='M24 5v38M7.500 14.500l33 19M7.500 33.500l33-19'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; transition: transform .5s var(--doux); }
.faq details[open] summary::after { transform: rotate(90deg) scale(1.15); }
.faq details p { padding: 0 24px 22px; color: #D9DCF3; }
.faq a { color: var(--or); }

/* ---------- 10. Fin ---------- */
.fin { padding: clamp(40px, 6vw, 80px) 0 clamp(170px, 20vw, 260px); background: linear-gradient(180deg, var(--nuit) 0%, #1B2350 70%, #27376B 100%); }
.fin-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.fin-image { justify-self: center; width: min(420px, 80%); padding: 12px; background: #fff; border-radius: 18px; transform: rotate(-2.4deg); box-shadow: 0 0 110px 10px rgba(255, 190, 100, .32), 0 40px 70px -30px rgba(0, 0, 0, .8); }
.fin-image img { border-radius: 9px; }
.fin-texte h2 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 30px; }
.fin .condition { color: #C4C9E8; margin-top: 18px; }
.paysage-nuit .c-pres path { fill: #E9F1FA; }
.paysage-nuit .sapin { color: #2C5F6B; }

/* ---------- Pied ---------- */
.pied { background: #E9F1FA; color: var(--encre-douce); padding: 26px 0 40px; font-size: .95rem; position: relative; z-index: 2; }
.pied-in { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.pied-nom { font-family: var(--titre); font-weight: 700; color: var(--bleu-nuit); font-size: 1.1rem; }
.pied ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }

/* ---------- Rappel collant (téléphone) ---------- */
.rappel { display: none; }

/* ---------- Les entrées au défilement ---------- */
.anime .arrive { opacity: 0; transform: translateY(28px); filter: blur(8px); }
.anime .arrive.vu { opacity: 1; transform: none; filter: none; transition: opacity .8s ease, transform 1s var(--doux), filter .8s ease; transition-delay: var(--d, 0s); }
.anime .lettre.arrive.vu { transform: rotate(.6deg); }
.anime .feuille.arrive.vu { transform: rotate(-.8deg); }
.anime .fin-image.arrive.vu { transform: rotate(-2.4deg); }

/* ---------- Écrans moyens et téléphones ---------- */
@media (max-width: 900px) {
  body { font-size: 1.06rem; }
  .barre nav { display: none; }
  .barre { gap: 12px; padding-left: 16px; }
  .haut { padding-top: 96px; }
  .haut-grille, .livre-grille, .lettre-grille, .prix-grille, .questions-grille, .fin-grille { grid-template-columns: minmax(0, 1fr); }
  .haut-texte { order: -1; }
  .haut-boutons .bouton { flex: 1 1 100%; }
  .globe { width: min(330px, 74vw); }
  .globe-mot { right: 6%; top: -2%; font-size: 1.35rem; }
  .lettre-grille h2, .questions h2 { position: static; }
  .scene-fleche { width: 46px; height: 46px; }
  .scene-fleche.prec { left: -10px; } .scene-fleche.suiv { right: -10px; }
  .deux { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .mosaique { grid-template-columns: repeat(3, 1fr); }
  .mosaique li:hover { transform: scale(1.04); }

  .piste-trait { left: 34px; width: 50px; }
  .etape { grid-template-columns: 68px minmax(0, 1fr); gap: 14px 16px; align-items: start; }
  .borne { grid-column: 1; grid-row: 1; width: 56px; height: 56px; font-size: 1.55rem; box-shadow: 0 0 0 5px #F4F9FD, 0 10px 18px -8px rgba(185, 117, 15, .6); }
  .etape-texte, .etape:nth-child(even) .etape-texte { grid-column: 2; grid-row: 1; text-align: left; }
  .etape .tirage, .etape:nth-child(even) .tirage { grid-column: 2; grid-row: 2; justify-self: start; }
  .tirage img { max-height: 260px; }
  .croix { margin-left: 11px; }

  .prix-noel { text-align: center; }
  .sapin-noel { display: none; }
  .fenetre { border-radius: 180px 180px 26px 26px / 130px 130px 26px 26px; }
  .fin-texte { text-align: center; }
  .pied ul { margin-left: 0; }

  .rappel { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(248, 251, 254, 0), rgba(248, 251, 254, .96) 38%); transform: translateY(110%); transition: transform .5s var(--doux); }
  .rappel.visible { transform: none; }
  .rappel .bouton { width: 100%; }
}
@media (max-width: 420px) {
  .marque span { display: none; }
  .barre { padding-left: 12px; }
  .pieges { padding: 20px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
