/* Landing v3 — ajouts au CSS du site (assets/site.css).
   DA du site : var(--purple-deep), var(--pink-bright), var(--orange-warm), Baloo 2 (titres), Nunito (texte). */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
section { position: relative; }
.v3-conteneur { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Pastille d'en-tête (même esprit que les pastilles du site) */
.v3-pastille { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px 8px 10px; border-radius: 9999px;
  background: var(--purple-bg); color: var(--purple-deep); font-size: .875rem; font-weight: 700; }
.v3-pastille img { width: 22px; height: 22px; }
.v3-h1 { margin: 0; font-size: clamp(2.4rem, 4.3vw, 4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; color: var(--text-primary); }
.v3-h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; font-weight: 800; color: var(--text-primary); }
.v3-h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; font-weight: 800; color: var(--text-primary); }
.v3-chapeau { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--text-secondary); }
.v3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; font-size: 1.05rem; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(124,58,237,.6); }

/* Apparition au scroll (ajoutée par v3.js, la page reste lisible sans JS) */
.v3-rv { opacity: 0; transform: translateY(32px); transition: opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.25,.46,.45,.94); }
.v3-rv.v3-vu { opacity: 1; transform: none; }

/* Nav : liens visibles, menu mobile */
nav.glass-nav { opacity: 1; }
.v3-menu-mobile { position: fixed; top: 64px; left: 0; right: 0; z-index: 49; display: grid; padding: 8px 24px 16px; background: #fff9f2f2; backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-light); }
.v3-menu-mobile[hidden] { display: none; }
.v3-menu-mobile a { padding: 12px 0; font-weight: 700; color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--border-light); }

/* ============ 1. HERO ============ */
.v3-hero { min-height: 100vh; display: flex; align-items: center; padding: 104px 0 48px; }
.v3-hero-grille { position: relative; z-index: 10; width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 32px; align-items: center; }
.v3-hero-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.v3-hero-chapeau { margin: 0; max-width: 34em; font-size: 1.2rem; line-height: 1.6; color: var(--text-secondary); }
.v3-hero-boutons { justify-content: flex-start !important; padding-top: 4px; }
.v3-confiance { justify-content: flex-start; margin: 0; text-align: left; }
.v3-note { justify-content: flex-start; padding-top: 4px !important; }

.v3-scene-boite { --k: 1; position: relative; height: calc(640px * var(--k)); }
.v3-scene { position: absolute; left: 50%; top: 0; width: 580px; height: 640px; margin-left: -290px; transform: scale(var(--k)); transform-origin: 50% 0; }
.v3-halo { position: absolute; left: 140px; top: 90px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236,72,153,.18), rgba(249,115,22,.08) 60%, rgba(249,115,22,0)); }
.v3-flotte { position: absolute; z-index: 4; filter: drop-shadow(0 14px 14px rgba(45,27,78,.22)); animation: v3-flotte 6s ease-in-out infinite; }
.v3-f2 { animation-duration: 7s; animation-delay: -2s; }
.v3-f3 { animation-duration: 5.5s; animation-delay: -1s; }
.v3-f4 { animation-duration: 8s; animation-delay: -3s; }
@keyframes v3-flotte { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 4deg)); } }

.v3-pola { position: absolute; z-index: 5; width: 190px; margin: 0; padding: 12px 12px 14px; background: #fff; border-radius: 8px;
  box-shadow: 0 22px 44px -20px rgba(45,27,78,.5); transform: rotate(-8deg); transition: transform .8s cubic-bezier(.22,1,.36,1); }
.v3-pola:hover { transform: rotate(-3deg) scale(1.03); }
.v3-pola img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.v3-pola figcaption { margin-top: 8px; text-align: center; font-family: Caveat, cursive; font-weight: 700; font-size: 25px; line-height: 1.05; color: var(--text-primary); }
.v3-annot { position: absolute; z-index: 5; margin: 0; font-family: Caveat, cursive; font-weight: 700; font-size: 32px; line-height: 1; color: var(--purple-deep); transform: rotate(-4deg); }
.v3-chip { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 9999px; background: #fff;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-card); font-size: 13px; font-weight: 800; color: var(--text-primary); white-space: nowrap; }
.v3-chip img { width: 24px; height: 24px; }
.v3-livre-ombre { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(45,27,78,.28), rgba(45,27,78,0)); }

.v3-ruban path.corps { fill: none; stroke-width: 13; stroke-linecap: round; stroke-dasharray: 700; animation: v3-trace 2.2s cubic-bezier(.22,1,.36,1) .4s both; }
.v3-ruban path.reflet { fill: none; stroke: #fff; stroke-opacity: .55; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 700; animation: v3-trace 2.2s cubic-bezier(.22,1,.36,1) .4s both; }
.v3-ruban .scint { animation: v3-scint 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.v3-ruban .s2 { animation-delay: -.8s; } .v3-ruban .s3 { animation-delay: -1.6s; }
.v3-ruban .etoile-bout { animation: v3-pop .7s cubic-bezier(.34,1.56,.64,1) 2.4s both, v3-twinkle 3s ease-in-out 3.2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes v3-trace { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
@keyframes v3-scint { 0%,100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes v3-pop { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
@keyframes v3-twinkle { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(12deg); } }

/* Livre-objet 3D (v2) */
.v3-livre { --w: 360px; --t: 32px; position: absolute; z-index: 2; display: inline-block; perspective: 1800px; text-decoration: none; }
.v3-livre .obj { position: relative; width: var(--w); height: var(--w); transform-style: preserve-3d; transform: rotateY(28deg) rotateX(-5deg) rotateZ(-2deg); transition: transform .8s cubic-bezier(.22,1,.36,1); }
.v3-livre:hover .obj { transform: rotateY(10deg) rotateX(-3deg) translateY(-10px); }
.v3-livre .obj > div { position: absolute; backface-visibility: hidden; }
.v3-livre .face { left: 0; top: 0; width: var(--w); height: var(--w); transform: translateZ(calc(var(--t) / 2)); border-radius: 3px 12px 12px 3px; overflow: hidden; background: var(--text-primary); }
.v3-livre .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-livre .face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,10,60,.45) 0, rgba(255,255,255,.22) 9px, rgba(20,10,60,.18) 15px, rgba(20,10,60,0) 26px), linear-gradient(118deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 38%); }
.v3-livre .tranche { left: calc((var(--w) - var(--t)) / 2); top: 0; width: var(--t); height: var(--w); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: linear-gradient(90deg, #2d1b4e 0%, #7c3aed 40%, #9333ea 58%, #3b1d6e 100%); display: flex; align-items: center; justify-content: center; }
.v3-livre .tranche span { writing-mode: vertical-rl; transform: rotate(180deg); font: 800 11px/1 var(--font-display), sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #fde68a; white-space: nowrap; }
.v3-livre .pages { left: calc((var(--w) - var(--t)) / 2 + 2px); top: 5px; width: calc(var(--t) - 4px); height: calc(var(--w) - 10px); transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 5px)); background: repeating-linear-gradient(90deg, #fffdf8 0 2px, #ebe2f5 2px 3px); }
.v3-livre .haut { left: 3px; top: calc((var(--w) - var(--t)) / 2 + 2px); width: calc(var(--w) - 8px); height: calc(var(--t) - 4px); transform: rotateX(90deg) translateZ(calc(var(--w) / 2 - 5px)); background: repeating-linear-gradient(0deg, #fffdf8 0 2px, #ebe2f5 2px 3px); }
.v3-livre .dos { left: 0; top: 0; width: var(--w); height: var(--w); transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: #3b1d6e; border-radius: 12px 3px 3px 12px; }

/* ============ 2. BANDE DE COUVERTURES INCLINÉE ============ */
.v3-bande { padding: 56px 0 64px; }
.v3-incline { transform: rotate(-3deg) scale(1.08); }
.v3-bande [class*="w-[240px]"] { width: 180px; height: 180px; border-radius: 16px; }

/* ============ 4. LIGNE D'AVIS ============ */
.v3-avis-ligne { display: flex; align-items: center; gap: 20px; max-width: 72rem; margin: 8px auto 0; padding: 10px 10px 10px 20px;
  border: 1px solid var(--border-light); border-radius: 9999px; background: #ffffffb3; box-shadow: var(--shadow-soft); }
.v3-avis-note { display: flex; align-items: center; gap: 8px; flex: none; text-decoration: none; color: var(--text-primary); }
.v3-avis-note b { font-family: var(--font-display); font-size: 1.1rem; }
.v3-avis-note span:last-child { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.v3-etoiles { color: var(--yellow-golden); letter-spacing: 1px; font-size: 1rem; }
.v3-avis-defile { flex: 1; min-width: 0; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.v3-avis-defile ul { display: flex; flex: none; gap: 12px; margin: 0; padding: 0 6px; list-style: none; animation: v3-defile 55s linear infinite; }
.v3-avis-ligne:hover .v3-avis-defile ul { animation-play-state: paused; }
.v3-avis-defile li { display: flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 9999px; background: var(--purple-bg); white-space: nowrap; font-size: .9rem; }
.v3-avis-defile q { font-weight: 700; color: var(--text-primary); quotes: "« " " »"; }
.v3-avis-defile li span { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
@keyframes v3-defile { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ============ 5. RITUEL DU SOIR — un écran ============ */
.v3-nuit { margin-top: 72px; padding: clamp(40px, 6vh, 64px) 1.5rem; min-height: min(100vh, 860px); display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(ellipse 70% 60% at 85% 20%, rgba(124,58,237,.35), transparent 70%), linear-gradient(160deg, #2d1b4e 0%, #1e1238 100%); color: #fff9f2; overflow: hidden; }
.v3-ciel { position: absolute; inset: 0; pointer-events: none; opacity: .7; animation: v3-scintille 6s ease-in-out infinite;
  background-image: radial-gradient(1.6px 1.6px at 6% 14%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 18% 62%, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 32% 22%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 47% 80%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 61% 12%, #fff 50%, transparent 52%), radial-gradient(1.1px 1.1px at 74% 54%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 88% 26%, #fff 50%, transparent 52%), radial-gradient(1.3px 1.3px at 95% 78%, #fff 50%, transparent 52%); }
@keyframes v3-scintille { 0%,100% { opacity: .7; } 50% { opacity: .4; } }
.v3-nuit-grille { position: relative; width: 100%; max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.v3-nuit-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.v3-pastille-nuit { background: rgba(245,158,11,.15); color: var(--yellow-soft); }
.v3-heure { margin: 0; font-size: clamp(3.5rem, 8vw, 6rem); line-height: .95; font-weight: 800;
  background: linear-gradient(135deg, var(--yellow-soft), var(--yellow-golden) 45%, var(--orange-warm)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.v3-nuit .v3-h2 { color: #fff9f2; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.v3-acc-or { color: var(--yellow-soft); }
.v3-avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; width: 100%; }
.v3-aa { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 20px; }
.v3-aa img { width: 38px; height: 38px; flex: none; }
.v3-aa b { display: block; font-family: var(--font-display); font-size: 1rem; color: #fff9f2; }
.v3-aa span { display: block; margin-top: 2px; font-size: .875rem; line-height: 1.45; color: #d8cdf0; }
.v3-aa-avant { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.v3-aa-apres { background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(236,72,153,.35)); border: 1px solid rgba(249,168,212,.35); }
.v3-photo-soir { position: relative; }
.v3-photo-soir .ph { display: block; width: 100%; max-height: 52vh; object-fit: cover; border-radius: 28px; transform: rotate(2deg);
  box-shadow: 0 0 0 8px rgba(255,255,255,.06), 0 40px 70px -30px rgba(0,0,0,.8); }
.v3-benef { position: relative; width: 100%; max-width: 72rem; margin: clamp(24px, 4vh, 40px) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v3-benef > div { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.045); }
.v3-benef img { width: 42px; height: 42px; flex: none; }
.v3-benef b { display: block; font-family: var(--font-display); font-size: 1rem; color: #fff9f2; }
.v3-benef span { display: block; font-size: .85rem; color: #d8cdf0; }

/* ============ 6. ÉTAPES ============ */
.v3-etapes { padding: clamp(56px, 8vw, 96px) 0; }
.v3-tete { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; max-width: 44rem; margin: 0 auto clamp(40px, 6vw, 64px); }
.v3-rail { position: relative; display: grid; gap: clamp(48px, 7vw, 88px); }
.v3-rail::before { content: ""; position: absolute; left: 31px; top: 32px; bottom: 32px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--purple-soft), var(--pink-soft), var(--orange-soft)); opacity: .55; }
.v3-etape { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-left: 88px; }
.v3-etape-texte { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.v3-etape-texte > p { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--text-secondary); max-width: 32em; }
.v3-num { position: absolute; left: -88px; top: -6px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-deep), #9333ea, var(--pink-bright)); color: #fff; font: 800 1.75rem/1 var(--font-display);
  box-shadow: 0 0 0 6px var(--cream), 0 12px 24px -10px rgba(124,58,237,.7); }
.v3-etape-visuel { display: flex; justify-content: center; }
.v3-col { flex-direction: column; align-items: center; gap: 18px; }

.v3-points { display: grid; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.v3-points li { display: flex; gap: 12px; align-items: flex-start; }
.v3-points img { width: 36px; height: 36px; flex: none; }
.v3-points b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--text-primary); }
.v3-points span { display: block; font-size: .92rem; line-height: 1.5; color: var(--text-secondary); }
.v3-priv { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border-light); }
.v3-priv svg { width: 30px; height: 30px; flex: none; }
.v3-priv p { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--text-secondary); }
.v3-priv b { color: var(--text-primary); }

/* Étape 1 : la transformation (photo → héros) */
.v3-transfo { width: 100%; max-width: 440px; display: grid; gap: 14px; }
.v3-cadre { position: relative; width: 100%; aspect-ratio: 1; border-radius: 28px; overflow: hidden; border: 8px solid #fff; transform: rotate(-1deg);
  box-shadow: 0 30px 60px -32px rgba(45,27,78,.55); background: #fff; }
.v3-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v3-cadre .heros { animation: v3-wipe 7s cubic-bezier(.65,0,.35,1) infinite; }
.v3-cadre .ligne { position: absolute; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: linear-gradient(180deg, var(--purple-deep), var(--pink-bright), var(--orange-warm), var(--yellow-golden));
  box-shadow: 0 0 24px 6px rgba(245,158,11,.6); animation: v3-ligne 7s cubic-bezier(.65,0,.35,1) infinite; }
.v3-cadre .ligne img { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; inset: auto; }
.v3-cadre .etiq { position: absolute; bottom: 14px; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.94); font-size: 12px; font-weight: 800; color: var(--text-primary); }
.v3-cadre .etiq-g { left: 14px; } .v3-cadre .etiq-d { right: 14px; background: var(--purple-deep); color: #fff; }
@keyframes v3-wipe { 0%,12% { clip-path: inset(0 0 0 100%); } 45%,72% { clip-path: inset(0 0 0 0); } 95%,100% { clip-path: inset(0 0 0 100%); } }
@keyframes v3-ligne { 0%,12% { left: 100%; opacity: 0; } 14% { opacity: 1; } 45% { left: 0%; opacity: 1; } 47%,72% { left: 0%; opacity: 0; } 74% { opacity: 1; } 95% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
.v3-fiche { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.v3-champ { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border-light); font-weight: 800; color: var(--text-primary); font-size: .9rem; }
.v3-champ small { font-weight: 700; color: var(--text-muted); font-size: .72rem; }
.v3-tag { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 9999px; background: var(--purple-bg); color: var(--purple-deep); font-size: .8rem; font-weight: 800; }

/* Étape 2 : carte d'application */
.v3-carte-app { width: 100%; max-width: 500px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--border-light); box-shadow: 0 24px 50px -30px rgba(45,27,78,.45); }
.v3-guide { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.v3-guide .av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; background: var(--purple-bg); box-shadow: 0 0 0 3px #fff, 0 8px 16px -8px rgba(45,27,78,.5); }
.v3-guide .av img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.v3-guide .bulle { padding: 11px 15px; border-radius: 18px 18px 18px 4px; background: var(--text-primary); color: #fff9f2; font-size: .9rem; font-weight: 700; line-height: 1.35; }
.v3-bloc { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.v3-bloc .lab { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; color: var(--text-primary); }
.v3-bloc .lab img { width: 22px; height: 22px; }
.v3-bloc .zone { padding: 13px 15px; border-radius: 14px; background: var(--cream); font-size: .92rem; line-height: 1.5; font-weight: 600; color: var(--text-primary); box-shadow: inset 0 0 0 2px var(--purple-soft), 0 0 0 5px rgba(124,58,237,.1); }
.v3-bloc .caret { display: inline-block; width: 2px; height: 17px; margin-left: 2px; vertical-align: -3px; background: var(--purple-deep); animation: v3-caret 1s steps(1) infinite; }
@keyframes v3-caret { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
.v3-bloc .morales { display: flex; flex-wrap: wrap; gap: 8px; }
.v3-bloc .morale { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 9999px; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--border-light); font-size: .82rem; font-weight: 800; color: var(--text-secondary); }
.v3-bloc .morale.on { background: linear-gradient(135deg, var(--purple-deep), var(--pink-bright)); color: #fff; box-shadow: none; }

/* Étape 3 : une vraie histoire feuilletée (couverture → page de titre → 3 doubles pages) */
.v3-lecteur { --s: 230px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.v3-lecteur-livre { position: relative; width: calc(var(--s) * 2); height: var(--s); perspective: 2000px; transition: transform .9s cubic-bezier(.65,0,.35,1), opacity .5s; }
.v3-lecteur-livre.ferme { transform: translateX(calc(var(--s) * -.5)); }
.v3-lecteur-livre::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -26px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(45,27,78,.28), rgba(45,27,78,0)); z-index: -1; }
.v3-lp, .v3-feuille > div { position: absolute; top: 0; width: var(--s); height: var(--s); overflow: hidden; background: #fff; }
.v3-lp.g { left: 0; border-radius: 8px 0 0 8px; box-shadow: -10px 18px 30px -18px rgba(45,27,78,.45); transition: opacity .3s; }
.v3-lp.d { left: var(--s); border-radius: 0 8px 8px 0; box-shadow: 10px 18px 30px -18px rgba(45,27,78,.45); }
.v3-lecteur-livre.ferme .v3-lp.g { opacity: 0; }
.v3-lecteur-livre.ferme .v3-lp.d { border-radius: 4px 10px 10px 4px; }
.v3-lp.g::after, .v3-feuille .verso::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(45,27,78,.14), rgba(45,27,78,0) 14%); }
.v3-lp.d::after, .v3-feuille .recto::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(45,27,78,.14), rgba(45,27,78,0) 14%); }
.v3-feuille { position: absolute; left: var(--s); top: 0; width: var(--s); height: var(--s); transform-origin: 0 50%; transform-style: preserve-3d; z-index: 3; }
.v3-feuille[hidden] { display: none; }
.v3-feuille.tourne { transition: transform .9s cubic-bezier(.65,0,.35,1); transform: rotateY(-180deg); }
.v3-feuille > div { left: 0; backface-visibility: hidden; }
.v3-feuille .recto { border-radius: 0 8px 8px 0; }
.v3-feuille .verso { transform: rotateY(180deg); border-radius: 8px 0 0 8px; }
.v3-c-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-c-titre { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center;
  background: radial-gradient(circle at 50% 40%, var(--yellow-bg), #fff 70%); }
.v3-c-titre b { font-family: var(--font-display); font-size: calc(var(--s) * .1); line-height: 1.1; color: var(--text-primary); }
.v3-c-titre small { font-size: calc(var(--s) * .05); font-weight: 700; color: var(--purple-deep); letter-spacing: .08em; text-transform: uppercase; }
.v3-c-texte { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: calc(var(--s) * .1); }
.v3-c-texte p { margin: 0; font-size: calc(var(--s) * .058); line-height: 1.55; font-weight: 600; color: var(--text-primary); }
.v3-c-texte span { font-size: calc(var(--s) * .045); font-weight: 800; color: var(--text-muted); }
.v3-lecteur figcaption { font-size: .85rem; color: var(--text-muted); }
.v3-lecteur figcaption b { color: var(--text-primary); }
.v3-progres { width: 100%; max-width: 420px; display: grid; gap: 10px; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--border-light); box-shadow: var(--shadow-card); }
.v3-progres .prog { display: flex; align-items: center; gap: 12px; font-size: .92rem; font-weight: 700; color: var(--text-primary); }
.v3-progres .ok { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green-fresh); color: #fff; font-size: 14px; font-weight: 900; flex: none; }
.v3-progres .p2 .ok { animation: v3-allume 8s steps(1) infinite; }
.v3-progres .p3 .ok { animation: v3-allume3 8s steps(1) infinite; }
.v3-progres .barre { height: 10px; border-radius: 9999px; background: var(--purple-bg); overflow: hidden; }
.v3-progres .barre i { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--purple-deep), var(--pink-bright), var(--orange-warm), var(--yellow-golden)); animation: v3-remplit 8s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes v3-remplit { 0%,8% { width: 4%; } 70%,92% { width: 100%; } 100% { width: 4%; } }
@keyframes v3-allume { 0% { background: #ddd3f0; } 40% { background: var(--green-fresh); } 96% { background: #ddd3f0; } }
@keyframes v3-allume3 { 0% { background: #ddd3f0; } 70% { background: var(--green-fresh); } 96% { background: #ddd3f0; } }
.v3-etape-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(48px, 6vw, 72px); text-align: center; }
.v3-etape-cta p { margin: 0; font-size: .875rem; color: var(--text-muted); }

/* ============ 7. GALERIE (mise en page v2) ============ */
.v3-galerie { padding: clamp(56px, 8vw, 96px) 0; }
.v3-filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 56px; }
.v3-filtre { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 8px; border: 0; border-radius: 9999px; background: var(--purple-bg);
  font: 700 .9rem/1 var(--font-body), sans-serif; color: var(--text-primary); cursor: pointer; transition: transform .18s; }
.v3-filtre img { width: 30px; height: 30px; }
.v3-filtre:hover { transform: translateY(-2px); }
.v3-filtre.on { background: linear-gradient(135deg, var(--purple-deep), #9333ea, var(--pink-bright)); color: #fff; box-shadow: 0 10px 20px -12px rgba(124,58,237,.7); }
.v3-etagere { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 28px; justify-items: center; align-items: start; }
.v3-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transition: transform .25s ease; }
.v3-item[hidden] { display: none; }
.v3-item:hover { transform: translateY(-8px) rotate(-1deg); }
.v3-item .t { margin: 18px 0 0; font-size: 1.05rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.v3-livre.v3-livre-etagere { position: relative; --w: 200px; --t: 20px; filter: drop-shadow(0 14px 14px rgba(45,27,78,.14)); cursor: pointer; }
.v3-extrait { border: 0; background: none; padding: 0; font: 800 .875rem/1.3 var(--font-body), sans-serif; color: var(--purple-deep); text-decoration: none; cursor: pointer; }
.v3-extrait:hover { text-decoration: underline; }

/* ============ 8. TARIFS (mise en page v2) ============ */
.v3-tarifs { padding: clamp(56px, 8vw, 96px) 0; background: radial-gradient(60% 50% at 50% 0%, rgba(245,158,11,.12), rgba(245,158,11,0)), linear-gradient(180deg, transparent, var(--purple-bg)); }
.v3-tarifs [hidden] { display: none !important; }
.v3-gratuit { display: flex; align-items: center; gap: 20px; max-width: 980px; margin: 0 auto 48px; padding: 20px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--border-light); box-shadow: var(--shadow-soft); }
.v3-gratuit .ic { width: 58px; height: 58px; flex: none; }
.v3-gratuit b { display: block; font-size: 1.25rem; font-weight: 800; color: var(--text-primary); }
.v3-gratuit span { display: block; font-size: .95rem; color: var(--text-secondary); }
.v3-gratuit .v3-btn { margin-left: auto; flex: none; }
.v3-offres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.v3-offre { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 28px; background: #fff; border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px -40px rgba(45,27,78,.35); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.v3-offre:hover { transform: translateY(-6px); }
.v3-offre-vedette { background: linear-gradient(160deg, var(--purple-deep), #5b21b6); color: #fff; border: 0; transform: translateY(-10px); box-shadow: 0 30px 60px -28px rgba(124,58,237,.65); }
.v3-offre-vedette:hover { transform: translateY(-16px); }
.v3-badge-or { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-3deg); display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px 7px 10px; border-radius: 9999px;
  background: linear-gradient(135deg, var(--yellow-golden), var(--orange-warm)); box-shadow: 0 10px 20px -8px rgba(249,115,22,.7); font-size: .8rem; font-weight: 800; color: #fff; white-space: nowrap; z-index: 2; }
.v3-badge-or img { width: 20px; height: 20px; }
.v3-eventail { position: relative; height: 150px; }
.v3-eventail img { position: absolute; left: 50%; bottom: 0; width: 104px; height: 104px; border-radius: 10px; object-fit: cover; box-shadow: 0 14px 24px -12px rgba(45,27,78,.6); transform-origin: 50% 100%; }
.v3-nomo { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.v3-qte { margin: 0; font-size: 1.75rem; line-height: 1.1; font-weight: 800; color: var(--text-primary); }
.v3-prix { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.v3-prix b { font-size: 3rem; line-height: 1; font-weight: 800; color: var(--text-primary); }
.v3-prix span { font-size: .875rem; font-weight: 700; color: var(--text-muted); }
.v3-unite { align-self: flex-start; padding: 6px 12px; border-radius: 9999px; background: var(--purple-bg); font-size: .78rem; font-weight: 800; color: var(--purple-deep); }
.v3-coches { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; flex-grow: 1; }
.v3-coches li { display: flex; gap: 10px; align-items: center; font-size: .92rem; font-weight: 600; color: var(--text-secondary); }
.v3-coches svg { width: 22px; height: 22px; flex: none; }
.v3-offre-vedette .v3-nomo, .v3-offre-vedette .v3-prix span { color: #d8cdf0; }
.v3-offre-vedette .v3-qte, .v3-offre-vedette .v3-prix b, .v3-offre-vedette .v3-coches li { color: #fff; }
.v3-offre-vedette .v3-unite { background: rgba(255,255,255,.16); color: #fff; }
.v3-offre-vedette .v3-coches circle { fill: rgba(255,255,255,.2); }
.v3-offre-vedette .v3-coches path { stroke: #fff; }
.v3-offre-vedette .btn-magic { background: #fff; color: var(--purple-deep); }
.v3-btn-large { width: 100%; padding: 14px 20px; font-size: .95rem; }
.v3-offre .btn-outline { box-shadow: none; }
.v3-bascule-abos { margin: 28px 0 0; text-align: center; font-size: .9rem; color: var(--text-muted); }
.v3-voir-abos { border: 0; background: none; padding: 0; font: 800 .9rem/1 var(--font-body), sans-serif; color: var(--purple-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-style: dotted; }
.v3-option-livre { display: flex; align-items: center; gap: 20px; max-width: 980px; margin: 24px auto 0; padding: 18px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--border-light); box-shadow: 0 18px 40px -30px rgba(45,27,78,.4); }
.v3-option-livre .mini { width: 76px; height: 76px; border-radius: 4px 10px 10px 4px; object-fit: cover; box-shadow: inset 8px 0 0 rgba(0,0,0,.2), 0 12px 20px -10px rgba(45,27,78,.6); transform: rotate(-4deg); flex: none; }
.v3-option-livre b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.v3-option-livre span { display: block; font-size: .85rem; color: var(--text-secondary); }
.v3-option-livre .px { display: flex; gap: 24px; margin-left: auto; flex: none; }
.v3-option-livre .px div { display: flex; flex-direction: column; align-items: flex-end; }
.v3-option-livre .px b { font-size: 1.5rem; }
.v3-option-livre .px span { font-size: .78rem; font-weight: 700; color: var(--text-muted); }

/* ============ 12. DERNIER CTA avec le prénom ============ */
.v3-final { padding: 0; }
.v3-final-carte { position: relative; overflow: hidden; isolation: isolate; padding: clamp(72px, 10vw, 128px) 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px; color: #fff;
  background: linear-gradient(135deg, var(--purple-deep) 0%, #9333ea 45%, var(--pink-bright) 78%, var(--orange-warm) 100%); }
.v3-final-carte .v3-ciel { z-index: -1; }
.v3-logo-halo { width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, #fff 0%, rgba(255,255,255,.75) 55%, rgba(255,255,255,0) 100%); }
.v3-logo-halo img { width: 120px; height: auto; animation: v3-flotte 6s ease-in-out infinite; }
.v3-final .v3-h2 { color: #fff; max-width: 820px; }
.v3-final-nom { color: var(--yellow-soft); }
.v3-final-chapeau { margin: 0; max-width: 36em; font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,.88); }
.v3-prenom { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.v3-prenom label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.v3-prenom input { height: 58px; width: 300px; max-width: 100%; padding: 0 22px; border: 0; border-radius: 9999px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
  font: 700 1.1rem/1 var(--font-body), sans-serif; color: #fff; }
.v3-prenom input::placeholder { color: rgba(255,255,255,.75); }
.v3-prenom input:focus { outline: 3px solid var(--yellow-soft); outline-offset: 3px; }
.v3-btn-blanc { height: 58px; border: 0; border-radius: 9999px; background: #fff; color: var(--purple-deep); font: 700 1.05rem/1 var(--font-display), sans-serif; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(45,27,78,.5); transition: transform .2s; }
.v3-btn-blanc:hover { transform: translateY(-2px); }
.v3-final-petit { margin: 0; font-size: .85rem; color: rgba(255,255,255,.78); }

/* ============ 10. NOTRE HISTOIRE (DA v2 : Polaroïd scotché, signature manuscrite) ============ */
.v3-histoire { padding: clamp(64px, 9vw, 112px) 1.5rem; background: #fffdf7; }
.v3-histoire-grille { max-width: 68rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 100px); align-items: center; }
.v3-pola-grand { position: relative; justify-self: center; width: 100%; max-width: 400px; margin: 0; padding: 16px 16px 18px; background: #fff; border-radius: 8px;
  box-shadow: 0 40px 70px -30px rgba(45,27,78,.5); transform: rotate(-4deg); }
.v3-pola-grand img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.v3-pola-grand figcaption { margin-top: 12px; text-align: center; font-family: Caveat, cursive; font-weight: 700; font-size: 28px; color: var(--text-primary); }
.v3-scotch { position: absolute; top: -16px; left: 50%; width: 120px; height: 34px; margin-left: -60px; background: rgba(245,158,11,.6); transform: rotate(-3deg); border-radius: 3px; }
.v3-histoire-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.v3-histoire-texte > p:not(.v3-pastille) { margin: 0; font-size: 1.125rem; line-height: 1.7; color: var(--text-secondary); }
.v3-signature-bloc { display: flex; align-items: center; gap: 16px; }
.v3-signature { font-family: Caveat, cursive; font-weight: 700; font-size: 44px; line-height: 1; color: var(--purple-deep); }
.v3-signature-bloc > span:last-child { font-size: .85rem; font-weight: 600; line-height: 1.4; color: var(--text-muted); }

/* ============ 11. FAQ ============ */
.v3-chevron { transition: transform .25s ease-in-out; }
.v3-faq.v3-ouvert .v3-chevron { transform: rotate(180deg); }

/* ============ Extrait plein écran : livre 3D ============ */
.v3-lecture { --s: 400px; --e: calc(var(--s) * .07); --b: 7px; position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, #7c3aed14, transparent 70%), var(--cream); }
.v3-lecture[hidden] { display: none; }
.v3-lecture .v3-l3d-boite { opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .5s, transform .6s cubic-bezier(.22,1,.36,1); }
.v3-lecture.v3-ouvert .v3-l3d-boite { opacity: 1; transform: none; }
.v3-lecture-tete { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border-light); background: #fff9f2cc; backdrop-filter: blur(16px); }
.v3-lecture-vignette { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.v3-lecture-tete p { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-deep); }
.v3-lecture-tete h3 { margin: 0; font-size: 1.1rem; color: var(--text-primary); }
.v3-lecture-x { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-light); background: #fff; font-size: 24px; line-height: 1; color: var(--text-secondary); cursor: pointer; }
.v3-lecture-scene { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.v3-lecture-fleche { position: absolute; top: 50%; z-index: 5; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid var(--border-light); background: #fff;
  box-shadow: var(--shadow-card); font-size: 30px; line-height: 1; color: var(--purple-deep); cursor: pointer; transition: transform .2s, opacity .2s; }
.v3-lecture-fleche.g { left: 20px; } .v3-lecture-fleche.d { right: 20px; }
.v3-lecture-fleche:hover:not(:disabled) { transform: scale(1.08); }
.v3-lecture-fleche:disabled, .v3-lecture-pied > button:disabled { opacity: .3; cursor: default; }
.v3-lecture-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border-light); }
.v3-lecture-pied > button { padding: 10px 20px; font-size: .9rem; white-space: nowrap; }
.v3-lecture-points { display: flex; gap: 6px; }
.v3-lecture-points button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 9999px; background: #7c3aed33; cursor: pointer; transition: width .3s, background .3s; }
.v3-lecture-points button.on { width: 26px; background: var(--purple-deep); }
/* Le livre : plats rigides, tranche, chants de pages, feuilles articulées sur le dos */
.v3-l3d-boite { position: relative; width: calc(var(--s) * 2); height: var(--s); perspective: 2400px; }
.v3-l3d { position: absolute; inset: 0; transform-style: preserve-3d; cursor: pointer;
  transform: none; transition: transform 1s cubic-bezier(.65,0,.35,1), opacity .4s; } /* ouvert : à plat, vu du dessus */
.v3-ferme .v3-l3d { transform: translateX(calc(var(--s) * -.5)) rotateX(10deg) rotateY(24deg) rotateZ(-1deg); }
.v3-debut .v3-l3d { transform: translateX(calc(var(--s) * .12)) rotateX(10deg) rotateY(24deg) rotateZ(-1deg); }
.v3-fin .v3-l3d { transform: translateX(calc(var(--s) * -1.15)) rotateX(10deg) rotateY(24deg) rotateZ(-1deg); }
.v3-l3d > div { position: absolute; transform-style: preserve-3d; }
.v3-l3d-plat { top: calc(var(--b) * -1); width: calc(var(--s) + var(--b)); height: calc(var(--s) + var(--b) * 2); background: linear-gradient(135deg, #5b21b6, #3b1d6e);
  box-shadow: 0 5px 0 #2d1b4e, 0 40px 60px -24px rgba(45,27,78,.6); transform: translateZ(calc(var(--e) * -1 - 4px)); }
.v3-l3d-plat.d { left: var(--s); border-radius: 0 10px 10px 0; }
.v3-l3d-plat.g { left: calc(var(--b) * -1); border-radius: 10px 0 0 10px; }
.v3-l3d-fond { left: var(--s); top: 0; width: var(--s); height: var(--s); background: #fffdf8; }
.v3-l3d-chant { top: 0; width: var(--e); height: var(--s); transform: translateZ(calc(var(--e) / -2)) rotateY(90deg);
  background: linear-gradient(90deg, rgba(45,27,78,.06), rgba(45,27,78,.2)), repeating-linear-gradient(90deg, #fffdf8 0 2px, #d9cbea 2px 3px); }
.v3-l3d-chant.d { left: calc(var(--s) * 2 - var(--e) / 2); }
.v3-l3d-chant.g { left: calc(var(--e) / -2); }
.v3-l3d-bas, .v3-l3d-haut { width: var(--s); height: var(--e); background: linear-gradient(rgba(45,27,78,.06), rgba(45,27,78,.22)), repeating-linear-gradient(0deg, #fffdf8 0 2px, #d9cbea 2px 3px); }
.v3-l3d-bas { top: calc(var(--s) - var(--e) / 2); transform: translateZ(calc(var(--e) / -2)) rotateX(90deg); }
.v3-l3d-haut { top: calc(var(--e) / -2); transform: translateZ(calc(var(--e) / -2)) rotateX(90deg); }
.v3-l3d-bas.d, .v3-l3d-haut.d { left: var(--s); } .v3-l3d-bas.g, .v3-l3d-haut.g { left: 0; }
.v3-l3d-tranche { left: calc(var(--s) - (var(--e) + 6px) / 2); top: calc(var(--b) * -1); width: calc(var(--e) + 6px); height: calc(var(--s) + var(--b) * 2);
  transform: translateZ(calc((var(--e) + 6px) / -2 + 1px)) rotateY(-90deg); background: linear-gradient(90deg, #2d1b4e, #7c3aed 45%, #9333ea 60%, #3b1d6e);
  display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.v3-l3d-tranche span { writing-mode: vertical-rl; transform: rotate(180deg); font: 800 calc(var(--s) * .028)/1 var(--font-display), sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fde68a; white-space: nowrap; }
.v3-l3d-plat.g, .v3-l3d-chant.g, .v3-l3d-bas.g, .v3-l3d-haut.g { transition: opacity .5s .3s; }
.v3-ferme .v3-l3d-plat.g, .v3-ferme .v3-l3d-chant.g, .v3-ferme .v3-l3d-bas.g, .v3-ferme .v3-l3d-haut.g { opacity: 0; transition-delay: 0s; }
.v3-lecture:not(.v3-ferme) .v3-l3d-tranche { opacity: 0; transition: opacity .2s .4s; }

.v3-l3d-feuilles { inset: 0; }
.v3-l3d-feuille { --a: 0deg; --z: 1px; position: absolute; left: var(--s); top: 0; width: var(--s); height: var(--s); transform-origin: 0 50%; transform-style: preserve-3d;
  transform: translateZ(var(--z)) rotateY(var(--a)); transition: transform 1s cubic-bezier(.65,0,.35,1); }
.v3-l3d-feuille > div { position: absolute; inset: 0; overflow: hidden; background: #fffdf8; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.v3-l3d-feuille .verso { transform: rotateY(180deg); }
.v3-l3d-feuille .recto::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(45,27,78,.18), rgba(45,27,78,0) 9%, rgba(255,255,255,0) 92%, rgba(45,27,78,.06)); }
.v3-l3d-feuille .verso::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(45,27,78,.18), rgba(45,27,78,0) 9%); }
.v3-l3d-feuille.couv { top: calc(var(--b) * -1); width: calc(var(--s) + var(--b)); height: calc(var(--s) + var(--b) * 2); }
.v3-l3d-feuille.couv > div { border-radius: 3px 10px 10px 3px; }
.v3-l3d-feuille.couv .verso { border-radius: 10px 3px 3px 10px; }
/* revers de couverture : le plat violet déborde autour de la page de garde, comme à droite */
.v3-l3d-feuille.couv .verso { background: linear-gradient(225deg, #5b21b6, #3b1d6e); }
.v3-l3d-feuille.couv .verso .v3-c-garde { position: absolute; top: var(--b); bottom: var(--b); left: var(--b); right: 0; width: auto; height: auto; }
.v3-l3d-feuille.couv .recto::after { background: linear-gradient(90deg, rgba(20,10,60,.45) 0, rgba(255,255,255,.22) 3%, rgba(20,10,60,.15) 5%, rgba(20,10,60,0) 9%), linear-gradient(118deg, rgba(255,255,255,.25), rgba(255,255,255,0) 40%); }
.v3-c-garde { width: 100%; height: 100%; background: radial-gradient(circle at 20% 20%, #f59e0b55 0 3px, transparent 4px) 0 0 / 46px 46px, radial-gradient(circle at 70% 60%, #ec489944 0 2px, transparent 3px) 0 0 / 38px 38px, linear-gradient(135deg, #ede4ff, #fbe9f4); }
.v3-c-blanc { width: 100%; height: 100%; background: #fffdf8; }
.v3-c-texte { position: relative; }
.v3-c-texte em { position: absolute; right: 16px; bottom: 12px; font-style: normal; font-size: calc(var(--s) * .035); font-weight: 700; color: var(--text-muted); }

/* Livre fermé : les 4 informations qui ont servi à le créer */
.v3-recette { position: absolute; right: calc(50% + 28px); top: 50%; z-index: 4; width: min(380px, calc(50vw - 110px)); padding: 24px; border-radius: 24px;
  background: #fff; border: 1px solid var(--border-light); box-shadow: var(--shadow-card); transform: translate(-16px, -50%); opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .5s cubic-bezier(.22,1,.36,1); }
.v3-debut .v3-recette { opacity: 1; transform: translate(0, -50%); pointer-events: auto; transition-delay: .15s; }
.v3-recette-sur { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-deep); }
.v3-recette h4 { margin: 4px 0 0; font-size: 1.4rem; line-height: 1.15; color: var(--text-primary); }
.v3-recette ol { display: grid; margin: 18px 0 20px; padding: 0; list-style: none; }
.v3-recette li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--border-light);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.v3-recette li:first-child { padding-top: 0; } .v3-recette li:last-child { border-bottom: 0; padding-bottom: 0; }
.v3-debut .v3-recette li { opacity: 1; transform: none; }
.v3-debut .v3-recette li:nth-child(1) { transition-delay: .25s; } .v3-debut .v3-recette li:nth-child(2) { transition-delay: .35s; }
.v3-debut .v3-recette li:nth-child(3) { transition-delay: .45s; } .v3-debut .v3-recette li:nth-child(4) { transition-delay: .55s; }
.v3-recette .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-deep), var(--pink-bright));
  color: #fff; font: 800 .9rem/1 var(--font-display), sans-serif; }
.v3-recette .lab { margin: 4px 0 7px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.v3-recette-transfo { display: flex; align-items: center; gap: 10px; }
.v3-recette-transfo .ph { width: 58px; height: 58px; margin: 0; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 8px 16px -8px rgba(45,27,78,.5); transform: rotate(-4deg); flex: none; }
.v3-recette-transfo .ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; }
.v3-recette-vide { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 3px; background: var(--purple-bg); border: 1.5px dashed var(--purple-soft); font-size: 20px; }
.v3-recette-transfo svg { width: 44px; height: 22px; flex: none; }
.v3-recette-transfo .hr { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 3px var(--yellow-golden), 0 0 0 7px rgba(245,158,11,.2); }
.v3-recette-transfo .hr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-recette-transfo .hr img.recadre { transform: scale(1.9); object-position: 50% 42%; }
.v3-recette-champ { display: inline-block; margin: 0; padding: 8px 14px; border-radius: 12px; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--border-light);
  font-weight: 800; color: var(--text-primary); }
.v3-recette-age { display: inline-block; margin: 0; padding: 7px 14px; border-radius: 9999px; background: linear-gradient(135deg, var(--purple-deep), var(--pink-bright)); font-weight: 800; font-size: .9rem; color: #fff; }
.v3-recette-idee { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--cream); border-left: 3px solid var(--purple-soft); font-size: .88rem; line-height: 1.5; font-weight: 600; color: var(--text-primary); }
.v3-recette .v3-btn { width: 100%; padding: 14px 20px; font-size: 1rem; }

/* Dernière étape : l'invitation */
.v3-lecture-fin { position: absolute; left: calc(50% + 10px); top: 50%; width: min(400px, 40vw); transform: translateY(-40%); display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s; }
.v3-fin .v3-lecture-fin { opacity: 1; transform: translateY(-50%); pointer-events: auto; transition-delay: .5s; }
.v3-lecture-fin-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-deep), var(--pink-bright)); font-size: 28px; }
.v3-lecture-fin h4 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; color: var(--text-primary); }
.v3-lecture-fin p { margin: 0; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 699px) {
  .v3-lecture-fleche { display: none; }
  .v3-fin .v3-l3d { opacity: 0; }
  .v3-lecture-scene { flex-direction: column; justify-content: flex-start; gap: 14px; overflow-y: auto; padding: 12px 0 16px; }
  .v3-recette { order: -1; position: static; display: none; width: calc(100% - 24px); padding: 14px 16px; transform: none; }
  .v3-debut .v3-recette { display: block; transform: none; }
  .v3-recette h4 { display: none; }
  .v3-recette ol { margin: 10px 0 12px; }
  .v3-recette li { padding: 7px 0; gap: 10px; }
  .v3-recette .lab { margin: 3px 0 5px; }
  .v3-recette-transfo .ph { width: 46px; height: 46px; }
  .v3-recette-transfo .hr { width: 50px; height: 50px; }
  .v3-recette-idee { font-size: .78rem; padding: 8px 10px; }
  .v3-recette .v3-btn { padding: 12px 16px; font-size: .95rem; }
  .v3-lecture:not(.v3-debut) .v3-l3d-boite { margin: auto 0; }
  .v3-debut .v3-l3d-boite { flex: none; height: calc(var(--s) * .72); margin-top: 4px; }
  .v3-debut .v3-l3d { transform: translateX(calc(var(--s) * -.5)) scale(.7) rotateX(10deg) rotateY(24deg) rotateZ(-1deg); transform-origin: 75% 0; }
  .v3-lecture-fin { left: 50%; width: calc(100% - 40px); align-items: center; text-align: center; transform: translate(-50%, -40%); }
  .v3-fin .v3-lecture-fin { transform: translate(-50%, -50%); }
  .v3-lecture-pied > button { padding: 9px 14px; font-size: .8rem; }
  .v3-lecture-tete, .v3-lecture-pied { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .v3-l3d, .v3-l3d-feuille { transition-duration: .01s; } }

/* ============ Responsive ============ */
@media (max-width: 1023px) {
  .v3-hero { min-height: 0; padding-top: 96px; }
  /* Mobile/tablette : la scène Polaroïd → livre remonte juste sous le titre */
  .v3-hero-grille { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
  .v3-hero-texte { display: contents; }
  .v3-hero-texte > .v3-pastille { order: 1; } .v3-hero-texte > .v3-h1 { order: 2; } .v3-scene-boite { order: 3; }
  .v3-hero-texte > .v3-hero-chapeau { order: 4; } .v3-hero-boutons { order: 5; } .v3-confiance { order: 6; } .v3-note { order: 7; }
  .v3-hero-boutons button { white-space: nowrap; }
  .v3-hero-boutons, .v3-confiance, .v3-note { justify-content: center !important; text-align: center; }
  .v3-scene-boite { max-width: 560px; width: 100%; margin: 0 auto; }
  .v3-nuit-grille { grid-template-columns: minmax(0, 1fr); }
  .v3-photo-soir { display: none; }
  .v3-etagere { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v3-offres { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .v3-offre-vedette { transform: none; }
  .v3-option-livre { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .v3-avis-ligne { flex-direction: column; align-items: stretch; gap: 10px; border-radius: 24px; margin-left: 16px; margin-right: 16px; padding: 12px; }
  .v3-avis-note { justify-content: center; }
  .v3-nuit { min-height: 0; }
  .v3-avant-apres, .v3-benef { grid-template-columns: minmax(0, 1fr); }
  .v3-benef { gap: 10px; }
  .v3-rail::before { display: none; }
  .v3-etape { grid-template-columns: minmax(0, 1fr); padding-left: 0; gap: 24px; }
  .v3-num { position: static; width: 52px; height: 52px; font-size: 1.4rem; }
  .v3-etagere { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 10px; }
  .v3-livre.v3-livre-etagere { --w: 132px; --t: 14px; }
  .v3-gratuit { flex-direction: column; text-align: center; }
  .v3-gratuit .v3-btn { margin: 0; }
  .v3-option-livre .px { margin: 0 auto; }
  .v3-histoire-grille { grid-template-columns: minmax(0, 1fr); }
  .v3-pola-grand { max-width: 300px; }
  .v3-logo-halo { width: 130px; height: 130px; }
  .v3-logo-halo img { width: 84px; }
  .v3-prenom input, .v3-btn-blanc { width: 100%; }
  .v3-incline { transform: rotate(-3deg) scale(1.15); }
  .v3-bande { padding: 40px 0 44px; }
  .v3-bande [class*="w-[240px]"] { width: 112px; height: 112px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-flotte, .v3-cadre .heros, .v3-cadre .ligne, .v3-progres .barre i, .v3-ciel, .v3-avis-defile ul, .v3-ruban .scint, .v3-ruban .etoile-bout { animation: none; }
  .v3-ruban path.corps, .v3-ruban path.reflet { animation: none; stroke-dasharray: none; }
  .v3-cadre .ligne { display: none; }
  .v3-rv { opacity: 1; transform: none; transition: none; }
}
