/* ==========================================================================
   Pose ton tél & reprends ton cerveau — feuille de style unique, sans build.
   Palette et typo tirées de la couverture : ciel, jaune fluo, noir, rose cerveau.
   ========================================================================== */

@font-face {
    font-family: "Dela Gothic One";
    src: url("../fonts/dela-gothic-one.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Bebas Neue";
    src: url("../fonts/bebas-neue.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Space Grotesk";
    src: url("../fonts/space-grotesk-var.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}

:root {
    --sky: #8fb6e0;
    --sky-top: #7aa6d8;
    --sky-low: #cfe2f4;
    --yellow: #ffed00;
    --ink: #0b0b0c;
    --cream: #fff8e6;
    --brain: #f5b6a3;
    --white: #fff;

    --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
    --cond: "Bebas Neue", "Arial Narrow", sans-serif;
    --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

    --bw: 3px;
    --gutter: clamp(1.1rem, 4vw, 3rem);
    --maxw: 1320px;
    --rs: clamp(28px, 5vw, 64px);          /* rayon des sections empilées */
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    overflow-x: clip;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--ink);
    font-family: var(--body);
    font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--yellow);
}

.skip {
    position: fixed; left: 1rem; top: -5rem; z-index: 200;
    padding: .7rem 1rem; background: var(--yellow); border: var(--bw) solid var(--ink);
    border-radius: 12px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap {
    width: min(100% - var(--gutter) * 2, var(--maxw));
    margin-inline: auto;
}

/* ───────────── Typo ───────────── */

.kicker {
    font-family: var(--cond);
    font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem);
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
}

.h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.7rem, 1rem + 3.2vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -.01em;
    text-transform: uppercase;
    text-wrap: balance;
}

.lead {
    font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
    line-height: 1.45;
    max-width: 38ch;
    margin-top: 1.25rem;
    font-weight: 500;
}

/* ───────────── Boutons ───────────── */

.btn {
    --sh: 5px;
    display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
    padding: .95rem 1.6rem;
    background: var(--yellow); color: var(--ink);
    border: var(--bw) solid var(--ink); border-radius: 999px;
    box-shadow: var(--sh) var(--sh) 0 var(--ink);
    font-family: var(--body); font-weight: 700; font-size: 1.05rem; line-height: 1;
    text-decoration: none; white-space: nowrap;
    translate: var(--mx, 0) var(--my, 0);
    transition: transform .25s var(--spring), box-shadow .25s var(--spring), translate .35s var(--ease), background-color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--sh) + 3px) calc(var(--sh) + 3px) 0 var(--ink); }
.btn:active { transform: translate(var(--sh), var(--sh)); box-shadow: 0 0 0 var(--ink); transition-duration: .06s; }
.btn svg { transition: transform .3s var(--spring); }
.btn:hover svg { transform: translateX(5px); }

.btn--sm { --sh: 3px; padding: .7rem 1.1rem; font-size: .95rem; }
.btn--lg { --sh: 7px; padding: 1.25rem 2rem; font-size: 1.2rem; }
.btn--xl { --sh: 8px; width: 100%; padding: 1.5rem 2rem; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); }
.btn--ink { background: var(--ink); color: var(--yellow); box-shadow: var(--sh) var(--sh) 0 rgba(11, 11, 12, .28); }
.btn--ink:hover { box-shadow: calc(var(--sh) + 3px) calc(var(--sh) + 3px) 0 rgba(11, 11, 12, .28); }
.btn__price { padding-left: .7rem; margin-left: .1rem; border-left: 2px solid currentColor; }

/* ───────────── Navigation ───────────── */

.nav {
    position: fixed; z-index: 100;
    top: clamp(.6rem, 1.5vw, 1.1rem); left: 50%;
    width: min(100% - var(--gutter) * 2 + 1rem, var(--maxw) + 1rem);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .45rem .45rem .45rem 1.3rem;
    background: rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    border: 2px solid var(--ink); border-radius: 999px;
    transform: translateX(-50%);
    transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, -160%); }

.nav__logo { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; line-height: 1; }
.nav__logo span { font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; }
.nav__logo i { font-family: var(--cond); font-style: normal; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__links a { position: relative; font-weight: 600; font-size: .98rem; text-decoration: none; padding: .3rem 0; }
.nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
    background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 860px) { .nav__links { display: none; } }
@media (max-width: 420px) { .nav__logo i, .btn--sm .btn__price { display: none; } }

/* ───────────── HERO ───────────── */

.hero {
    position: relative; isolation: isolate;
    min-height: 100svh;
    display: flex; align-items: center;
    padding: clamp(6.5rem, 12vh, 9rem) 0 clamp(9rem, 20vh, 14rem);
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 45%, var(--sky-low) 100%);
    overflow: clip;
}

.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky__sun {
    position: absolute; top: -30vmax; right: -20vmax; width: 80vmax; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
}

.cloud {
    position: absolute; width: var(--cw, 520px); aspect-ratio: 2.6; opacity: var(--co, .95);
    filter: blur(var(--cb, 9px));
    background:
        radial-gradient(closest-side, #fff 58%, transparent) 16% 80% / 42% 60% no-repeat,
        radial-gradient(closest-side, #fff 58%, transparent) 40% 44% / 46% 86% no-repeat,
        radial-gradient(closest-side, #fff 58%, transparent) 68% 60% / 44% 72% no-repeat,
        radial-gradient(closest-side, #fff 58%, transparent) 90% 86% / 30% 44% no-repeat,
        radial-gradient(closest-side, #fff 66%, transparent) 50% 100% / 92% 46% no-repeat;
    animation: drift var(--cd, 40s) ease-in-out infinite alternate;
    will-change: transform, translate;
}
.cloud--1 { --cw: clamp(260px, 38vw, 620px); left: -8%; top: 52%; --cd: 46s; }
.cloud--2 { --cw: clamp(300px, 46vw, 760px); right: -12%; top: 60%; --cd: 38s; animation-direction: alternate-reverse; }
.cloud--3 { --cw: clamp(160px, 20vw, 320px); left: 34%; top: 15%; --co: .6; --cb: 12px; --cd: 60s; }
.cloud--4 { --cw: clamp(180px, 24vw, 380px); right: 4%; top: 12%; --co: .5; --cb: 14px; --cd: 52s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-4vw); } to { transform: translateX(6vw); } }

/* L'avion de la couverture, avec sa traînée */
.plane {
    position: absolute; top: 19%; left: 0; width: clamp(120px, 16vw, 260px); height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95));
    transform: translateX(-120%) rotate(-4deg);
    animation: fly 34s linear 2s infinite;
}
.plane i {
    position: absolute; right: -14px; top: -4px; width: 16px; height: 10px; background: #fff;
    clip-path: polygon(0 40%, 55% 40%, 30% 0, 45% 0, 80% 40%, 100% 50%, 80% 60%, 45% 100%, 30% 100%, 55% 60%, 0 60%);
}
@keyframes fly { to { transform: translateX(calc(100vw + 120%)) translateY(-9vh) rotate(-4deg); } }

.fog {
    position: absolute; left: -10%; right: -10%; bottom: -8vh; height: clamp(180px, 34vh, 360px); z-index: 1;
    pointer-events: none; filter: blur(14px);
    background:
        radial-gradient(closest-side, #fff 60%, transparent) 4% 70% / 34% 90% no-repeat,
        radial-gradient(closest-side, #fff 60%, transparent) 28% 100% / 38% 80% no-repeat,
        radial-gradient(closest-side, #fff 60%, transparent) 52% 82% / 36% 86% no-repeat,
        radial-gradient(closest-side, #fff 60%, transparent) 76% 100% / 40% 84% no-repeat,
        radial-gradient(closest-side, #fff 60%, transparent) 98% 74% / 34% 92% no-repeat,
        linear-gradient(180deg, transparent 45%, #fff 80%);
}

.hero__inner {
    position: relative; z-index: 2;
    width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto;
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
}

/* Le titre reprend la composition de la couverture */
.title { --t: clamp(1.9rem, 5.2vw, 5.6rem); font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .94; }
.title__grid { display: inline-grid; grid-template-columns: auto auto; column-gap: calc(var(--t) * .16); align-items: end; }
.title__pose, .title__ton { font-size: var(--t); text-align: right; }
.title__pose { grid-area: 1 / 1; align-self: end; }
.title__ton { grid-area: 2 / 1; align-self: start; }
.title__tel {
    grid-area: 1 / 2 / 3 / 3; position: relative; top: -.07em; font-size: calc(var(--t) * 2.28); line-height: .86; color: var(--yellow);
    text-shadow: .035em .035em 0 var(--ink);
}
.title__sub { font-size: calc(var(--t) * .5); margin-top: calc(var(--t) * .5); white-space: nowrap; }

.clip { display: block; overflow: hidden; padding: .3em .1em .1em; margin: -.3em -.1em -.1em; }
.up { display: block; }
.js .up { transform: translateY(125%) rotate(4deg); animation: up 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
@keyframes up { to { transform: none; } }

.hero__kicker { overflow: hidden; margin-bottom: .9rem; }
.hero__lead { max-width: 44ch; margin-top: clamp(1.2rem, 2.4vw, 2rem); font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); font-weight: 500; line-height: 1.45; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 1.8rem; margin-top: clamp(1.4rem, 2.6vw, 2.2rem); }
.hero__price { display: flex; flex-direction: column; line-height: 1.15; }
.hero__price strong { font-family: var(--display); font-weight: 400; font-size: 1.7rem; }
.hero__price span { font-size: .92rem; font-weight: 500; opacity: .75; }

.hero__visual { position: relative; display: grid; place-items: center; padding-block: 1rem; }

.badge {
    position: absolute; z-index: 3; padding: .5rem 1rem .4rem;
    background: var(--ink); color: var(--white); border-radius: 6px;
    font-family: var(--cond); font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem); letter-spacing: .05em; text-transform: uppercase; line-height: 1;
}
.badge--tome { top: 2%; right: -2%; rotate: 7deg; animation: pop .8s var(--spring) 1s backwards; }

.sticker {
    position: absolute; z-index: 3; left: -14%; bottom: 6%; max-width: 9.5em; rotate: -7deg;
    font-family: var(--display); font-size: clamp(.95rem, .6rem + 1.1vw, 1.5rem); line-height: 1.02; text-transform: uppercase;
    color: var(--yellow); text-shadow: .06em .06em 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
    animation: pop .8s var(--spring) 1.25s backwards;
}
.squiggle {
    position: absolute; z-index: 3; left: -6%; bottom: 29%; width: clamp(34px, 3.6vw, 56px); rotate: 24deg;
    color: var(--ink); stroke-dasharray: 520; stroke-dashoffset: 0; animation: draw 1.3s var(--ease) 1.5s backwards;
}
@keyframes pop { from { opacity: 0; scale: .3; } }
@keyframes draw { from { stroke-dashoffset: 520; } }

/* ───────────── Livre 3D ───────────── */

.book-stage {
    --w: clamp(210px, 25vw, 370px); --h: calc(var(--w) * 1.4187); --d: calc(var(--w) * .085);
    --rx: 8deg; --ry: -26deg;
    position: relative; width: var(--w); perspective: 1700px;
}
.book-stage--hero { animation: book-in 1.4s var(--ease) .25s backwards; }
@keyframes book-in { from { opacity: 0; transform: translateY(90px) rotate(8deg) scale(.86); } }

.book-float { transform-style: preserve-3d; animation: float 6.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(12px); } }

.book {
    position: relative; width: var(--w); height: var(--h);
    transform-style: preserve-3d;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    will-change: transform;
}
.book__face { position: absolute; backface-visibility: hidden; }
.book__front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; background: var(--sky); }
.book__front img { width: 100%; height: 100%; object-fit: cover; }
.book__front::before {   /* pli de la reliure */
    content: ""; position: absolute; inset: 0 auto 0 0; width: 5%; z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .22) 45%, rgba(0, 0, 0, .1) 60%, transparent);
}
.book__glare {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .42) 46%, transparent 60%);
    transform: translateX(var(--glare, -30%)); mix-blend-mode: soft-light;
}
.book__back {
    inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); border-radius: 5px 2px 2px 5px;
    background: var(--yellow); display: grid; place-items: center; text-align: center;
    font-family: var(--display); font-size: calc(var(--w) * .12); line-height: .95; text-transform: uppercase;
}
.book__spine {
    left: 0; top: 0; width: var(--d); height: 100%;
    transform: translateX(calc(var(--d) / -2)) rotateY(-90deg);
    background: linear-gradient(90deg, #0b0b0c, #26262a 50%, #0b0b0c);
    display: grid; place-items: center; overflow: hidden;
}
.book__spine span {
    writing-mode: vertical-rl; white-space: nowrap;
    font-family: var(--cond); font-size: calc(var(--d) * .55); letter-spacing: .08em; text-transform: uppercase; color: var(--yellow);
}
.book__pages, .book__top, .book__bottom { background: #f6f0df; }
.book__pages {
    right: 0; top: 1%; width: var(--d); height: 98%;
    transform: translateX(calc(var(--d) / 2 - 2px)) rotateY(90deg);
    background-image: repeating-linear-gradient(90deg, #fffdf6 0 1px, #d9d1bb 1px 2px, #f6f0df 2px 4px);
}
.book__top, .book__bottom {
    left: 1%; width: 98%; height: var(--d);
    background-image: repeating-linear-gradient(0deg, #fffdf6 0 1px, #d9d1bb 1px 2px, #f6f0df 2px 4px);
}
.book__top { top: 0; transform: translateY(calc(var(--d) / -2 + 2px)) rotateX(90deg); }
.book__bottom { bottom: 0; transform: translateY(calc(var(--d) / 2 - 2px)) rotateX(-90deg); }

.book-shadow {
    position: absolute; left: 4%; right: -8%; bottom: -11%; height: 13%; z-index: -1;
    background: radial-gradient(closest-side, rgba(20, 40, 80, .42), transparent);
    filter: blur(12px); animation: shadow 6.5s ease-in-out infinite;
}
@keyframes shadow { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }

/* ───────────── Bandeaux défilants ───────────── */

.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--speed, 36s) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee--band {
    position: relative; z-index: 5;
    width: 110%; margin: -3.2rem -5% -3.2rem; rotate: -2.2deg;
    background: var(--yellow); border-block: var(--bw) solid var(--ink);
    padding: clamp(.7rem, 1.6vw, 1.2rem) 0 clamp(.5rem, 1.3vw, 1rem);
    --speed: 30s;
}
.marquee--band span, .marquee--band b {
    font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 1rem + 2.6vw, 3.2rem);
    line-height: 1; text-transform: uppercase; margin-right: clamp(1rem, 2.4vw, 2.4rem);
}
.marquee--band .is-alt { color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* ───────────── Sections empilées ───────────── */

.section {
    position: relative;
    padding: clamp(5rem, 11vw, 9.5rem) 0 calc(clamp(5rem, 11vw, 9.5rem) + var(--rs));
    margin-top: calc(var(--rs) * -1);
    border-radius: var(--rs) var(--rs) 0 0;
    overflow: clip;
}
.section--ink { background: var(--ink); color: var(--cream); }
.section--yellow { background: var(--yellow); }
.section--cream { background: var(--cream); }
.section--sky { background: linear-gradient(180deg, var(--sky-top), var(--sky-low)); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.section--ink .kicker { color: var(--yellow); }

/* ───────────── Le constat ───────────── */

.manifesto { margin-top: 0; border-radius: 0; padding-top: clamp(7rem, 14vw, 12rem); }

.manifesto__text {
    font-weight: 700; font-size: clamp(1.7rem, 1rem + 3.4vw, 4.1rem);
    line-height: 1.12; letter-spacing: -.025em; max-width: 21em;
}
.js .manifesto__text .w { opacity: .13; transition: opacity .45s ease, color .45s ease; }
.js .manifesto__text .w.on { opacity: 1; }
.w--hl { color: var(--yellow); }
.js .w--hl { color: inherit; }
.js .w--hl.on { color: var(--yellow); }

.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(3rem, 7vw, 6rem); }
.counter {
    padding: clamp(1.3rem, 2.4vw, 2.2rem); border: 2px solid rgba(255, 248, 230, .22); border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 248, 230, .07), transparent 60%);
}
.counter__value { font-family: var(--display); font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); line-height: 1; color: var(--yellow); }
.counter__value small { font-size: .4em; margin-left: .15em; }
.counter__label { margin-top: .9rem; max-width: 22ch; opacity: .8; font-weight: 500; }

@media (max-width: 760px) { .counters { grid-template-columns: 1fr; } }

/* ───────────── Pose-le ───────────── */

.drop__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.drop .btn { margin-top: 2rem; }

.meter { margin-top: 2.4rem; max-width: 30rem; }
.meter__head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.meter__head strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.meter__bar { height: 26px; margin-top: .6rem; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--cream); overflow: hidden; }
.meter__bar i {
    display: block; height: 100%; width: 12%; border-right: var(--bw) solid var(--ink);
    background: repeating-linear-gradient(-45deg, var(--brain) 0 12px, #ee9f89 12px 24px);
    transition: width 1.6s var(--ease);
}
.drop.is-down .meter__bar i { width: 100%; border-right-color: transparent; }
.meter__done { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); font-weight: 700; font-size: 1.1rem; }
.meter__done span { overflow: hidden; }
.drop.is-down .meter__done { grid-template-rows: 1fr; margin-top: 1rem; }

.drop__stage { position: relative; display: grid; place-items: center; min-height: clamp(420px, 46vw, 620px); perspective: 1300px; }
.drop__halo {
    position: absolute; z-index: 0; width: 62%; aspect-ratio: 1; border-radius: 50%;
    background: var(--brain); border: var(--bw) solid var(--ink);
    scale: .55; opacity: 0; transition: scale 1s var(--spring), opacity .5s;
}
.drop.is-down .drop__halo { scale: 1.1; opacity: 1; }
.drop__zzz {
    position: absolute; z-index: 2; top: 12%; right: 8%; rotate: 8deg;
    font-family: var(--display); font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem); text-transform: uppercase;
    opacity: 0; scale: .4; transition: opacity .4s .5s, scale .7s var(--spring) .5s;
}
.drop.is-down .drop__zzz { opacity: 1; scale: 1; }

.phone {
    position: relative; z-index: 1; width: clamp(210px, 22vw, 290px); aspect-ratio: 9 / 18.6;
    padding: 10px; border-radius: 44px; background: var(--ink);
    box-shadow: 12px 12px 0 rgba(11, 11, 12, .22);
    rotate: -6deg; transform-style: preserve-3d;
    transition: transform 1.1s var(--ease), rotate 1.1s var(--ease), box-shadow 1.1s var(--ease);
    animation: buzz 2.6s linear infinite;
}
@keyframes buzz {
    0%, 12%, 100% { translate: 0 0; }
    2% { translate: -3px 1px; } 4% { translate: 3px -1px; } 6% { translate: -3px 0; } 8% { translate: 3px 1px; } 10% { translate: -1px 0; }
}
.phone__screen {
    position: relative; height: 100%; border-radius: 35px; overflow: hidden; padding: 3.2rem .7rem 1rem;
    background: radial-gradient(120% 80% at 20% 0%, #ff5fa2, transparent 60%), radial-gradient(120% 90% at 100% 100%, #2b6bff, transparent 60%), #7c3aed;
    transition: filter .9s, background-color .9s;
}
.phone__notch { position: absolute; top: 12px; left: 50%; width: 34%; height: 20px; border-radius: 20px; background: var(--ink); translate: -50% 0; }
.phone__clock { text-align: center; color: #fff; font-family: var(--display); font-size: 2rem; line-height: 1; margin-bottom: 1rem; }
.phone__notifs { display: grid; gap: .45rem; }
.phone__notifs li {
    padding: .5rem .65rem; border-radius: 14px; background: rgba(255, 255, 255, .9);
    font-size: .72rem; line-height: 1.25; font-weight: 500;
    animation: notif 7s var(--ease) infinite; animation-delay: calc(var(--i) * .75s); animation-fill-mode: backwards;
}
.phone__notifs b { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; opacity: .55; }
@keyframes notif {
    0% { opacity: 0; transform: translateY(-16px) scale(.9); }
    7%, 86% { opacity: 1; transform: none; }
    94%, 100% { opacity: 0; transform: translateY(10px) scale(.96); }
}

.drop.is-down .phone {
    animation: none; rotate: 0deg;
    transform: rotateX(68deg) rotateZ(-28deg) translateY(18%) scale(.9);
    box-shadow: 26px 30px 0 rgba(11, 11, 12, .2);
}
.drop.is-down .phone__screen { filter: brightness(.12) saturate(0); }
.drop.is-down .phone__notifs li { animation-play-state: paused; }

@media (max-width: 820px) {
    .drop__grid { grid-template-columns: 1fr; }
    .drop__stage { min-height: 460px; }
}

/* ───────────── Dans le livre : défilement horizontal épinglé ───────────── */

.inside { padding: 0; }
.inside__sticky {
    display: flex; flex-direction: column; justify-content: center; gap: clamp(1.6rem, 4vh, 3rem);
    padding: clamp(5rem, 10vw, 7rem) 0 calc(clamp(3rem, 6vw, 5rem) + var(--rs));
}
.inside.is-pinned .inside__sticky { position: sticky; top: 0; height: 100vh; padding: 6rem 0 calc(2rem + var(--rs)); }

.inside__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.inside__head .h2 { max-width: 20em; }
.inside__hint { display: flex; align-items: center; gap: .5rem; font-family: var(--cond); font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.inside__hint svg { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(7px); } }

.inside__viewport { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.inside__viewport::-webkit-scrollbar { display: none; }
.inside.is-pinned .inside__viewport { overflow: visible; scroll-snap-type: none; }

.inside__track {
    display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); width: max-content;
    padding: 1.4rem max(var(--gutter), (100vw - var(--maxw)) / 2) 2rem;
    will-change: transform;
}

.chapter {
    --rot: -1.4deg;
    position: relative; flex: none; scroll-snap-align: center;
    width: clamp(260px, 28vw, 400px); min-height: clamp(340px, 50vh, 480px);
    display: flex; flex-direction: column;
    padding: clamp(1.4rem, 2.2vw, 2.2rem);
    border: var(--bw) solid var(--ink); border-radius: 34px;
    box-shadow: 9px 9px 0 var(--ink);
    overflow: hidden;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--rot)) translateY(var(--ty, 0));
    transition: transform .5s var(--ease), box-shadow .4s var(--ease);
}
.chapter:nth-child(even) { --rot: 1.6deg; --ty: 18px; }
.chapter:hover { box-shadow: 14px 14px 0 var(--ink); }
.chapter--0 { background: var(--yellow); }
.chapter--1 { background: var(--ink); color: var(--cream); box-shadow: 9px 9px 0 var(--brain); }
.chapter--1:hover { box-shadow: 14px 14px 0 var(--brain); }
.chapter--2 { background: var(--brain); }
.chapter--3 { background: var(--sky); }

.chapter__num { font-family: var(--cond); font-size: 1.5rem; letter-spacing: .06em; }
.chapter__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 1rem + 1.8vw, 2.5rem); line-height: 1; text-transform: uppercase; margin-top: auto; }
.chapter__text { margin-top: .9rem; font-weight: 500; line-height: 1.4; }
.chapter__tag {
    align-self: flex-start; margin-top: 1.2rem; padding: .35rem .8rem .25rem;
    border: 2px solid currentColor; border-radius: 999px;
    font-family: var(--cond); font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.chapter__glyph {
    position: absolute; top: -.18em; right: -.04em;
    font-family: var(--display); font-size: clamp(9rem, 15vw, 15rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 3px currentColor; opacity: .16;
    transition: transform .8s var(--ease), opacity .4s;
}
.chapter--0 .chapter__glyph, .chapter--2 .chapter__glyph, .chapter--3 .chapter__glyph { -webkit-text-stroke-color: var(--ink); }
.chapter--1 .chapter__glyph { -webkit-text-stroke-color: var(--cream); }
.chapter:hover .chapter__glyph { transform: rotate(-10deg) scale(1.08); opacity: .32; }

.inside__progress { width: min(100% - var(--gutter) * 2, 320px); height: 12px; margin-inline: auto; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; display: none; }
.inside.is-pinned .inside__progress { display: block; }
.inside__progress i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }

@media (max-width: 700px) { .inside__hint { display: none; } }

/* ───────────── Échauffement : cartes à retourner ───────────── */

.flips { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.flip {
    display: block; width: 100%; height: clamp(300px, 30vw, 380px); padding: 0; border: 0; background: none;
    text-align: left; perspective: 1200px;
}
.flip__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--spring); }
.flip:hover .flip__inner { transform: rotateY(-10deg) rotateX(4deg); }
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip[aria-pressed="true"]:hover .flip__inner { transform: rotateY(170deg) rotateX(4deg); }

.flip__face {
    position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1rem;
    padding: clamp(1.2rem, 1.8vw, 1.7rem);
    border: var(--bw) solid var(--ink); border-radius: 30px;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip__front { background: var(--cream); box-shadow: 8px 8px 0 var(--ink); }
.flip__back { background: var(--ink); color: var(--cream); transform: rotateY(180deg); box-shadow: -8px 8px 0 var(--yellow); }
.flip__type { align-self: flex-start; padding: .3rem .75rem .2rem; border-radius: 999px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); font-family: var(--cond); font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.flip__q { font-weight: 600; font-size: clamp(1rem, .9rem + .3vw, 1.15rem); line-height: 1.35; }
.flip__a { font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.08; text-transform: uppercase; color: var(--yellow); margin-block: auto; }
.flip__cta { margin-top: auto; font-family: var(--cond); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.flip__back .flip__cta { margin-top: 0; }

@media (max-width: 1080px) { .flips { grid-template-columns: repeat(2, 1fr); } .flip { height: 300px; } }
@media (max-width: 560px) { .flips { grid-template-columns: 1fr; } .flip { height: 270px; } }

/* ───────────── Avis ───────────── */

.voices .marquee--cards { --speed: 54s; padding: .9rem 0 1.4rem; }
.voices .marquee--cards:hover .marquee__track { animation-play-state: paused; }
.voice {
    flex: none; width: clamp(270px, 28vw, 400px); margin-right: clamp(1rem, 2vw, 1.6rem);
    padding: clamp(1.3rem, 2vw, 1.9rem); border-radius: 28px;
    display: flex; flex-direction: column; gap: 1.2rem; justify-content: space-between;
    transition: transform .4s var(--spring);
}
.voice:hover { transform: rotate(-1.5deg) scale(1.03); }
.voice blockquote { font-weight: 600; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); line-height: 1.32; }
.voice figcaption { font-family: var(--cond); font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; }
.voice--0 { background: var(--cream); color: var(--ink); }
.voice--1 { background: var(--yellow); color: var(--ink); }
.voice--2 { border: 2px solid rgba(255, 248, 230, .3); color: var(--cream); }

/* ───────────── Commander ───────────── */

.buy__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.buy__visual { display: grid; place-items: center; padding: 2rem 0 3rem; }
.book-stage--buy { --w: clamp(220px, 27vw, 400px); --ry: 24deg; --rx: 6deg; }
.book-stage--buy .book-shadow { background: radial-gradient(closest-side, rgba(11, 11, 12, .38), transparent); }

.buy__card {
    padding: clamp(1.5rem, 3.4vw, 3.2rem);
    background: var(--cream); border: var(--bw) solid var(--ink); border-radius: clamp(26px, 3vw, 42px);
    box-shadow: clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px) 0 var(--ink);
}
.ticks { display: grid; gap: .65rem; margin-top: 1.6rem; font-weight: 500; }
.ticks li { position: relative; padding-left: 2.1rem; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .12em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230b0b0c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.specs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.specs div { padding: .55rem .95rem; border: 2px solid var(--ink); border-radius: 14px; line-height: 1.2; }
.specs dt { font-family: var(--cond); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.specs dd { font-weight: 700; }

.notice { margin-top: 1.4rem; padding: .9rem 1.1rem; border: 2px solid var(--ink); border-radius: 16px; background: var(--white); font-weight: 600; }
.notice--error { background: #ffd9d2; }

.order { margin-top: 1.8rem; padding-top: 1.8rem; border-top: var(--bw) dashed var(--ink); }
.order__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.order__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.order__price strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); }
.order__price span { font-size: .92rem; font-weight: 500; opacity: .7; }
.order__secure { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1.3rem; font-size: .92rem; font-weight: 600; }

.qty { display: inline-flex; align-items: center; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; }
.qty button { width: 3.1rem; height: 3.1rem; border: 0; background: none; font-size: 1.5rem; font-weight: 700; line-height: 1; transition: background-color .2s; }
.qty button:hover { background: var(--yellow); }
.qty button:focus-visible { outline-offset: -4px; box-shadow: none; }
.qty input {
    width: 2.6rem; border: 0; background: none; text-align: center; padding: 0;
    font-family: var(--display); font-size: 1.25rem; color: var(--ink);
    -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.reassure { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.5rem; font-size: .9rem; font-weight: 500; opacity: .8; }
.reassure li::before { content: "● "; font-size: .6em; vertical-align: middle; }

@media (max-width: 880px) {
    .buy__grid { grid-template-columns: 1fr; }
    .buy__visual { padding-bottom: 1rem; }
}

/* ───────────── FAQ ───────────── */

.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq .section__head { position: sticky; top: 7rem; margin-bottom: 0; }
.qa { border-bottom: var(--bw) solid var(--ink); }
.qa:first-child { border-top: var(--bw) solid var(--ink); }
.qa summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.35rem .2rem; cursor: pointer; list-style: none;
    font-weight: 700; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i {
    position: relative; flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%;
    border: 2px solid var(--ink); background: var(--yellow); transition: rotate .45s var(--spring), background-color .2s;
}
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; inset: 50% 26% auto; height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--ink); }
.qa summary i::after { rotate: 90deg; }
.qa[open] summary i { rotate: 135deg; background: var(--brain); }
.qa p { padding: 0 3.5rem 1.6rem .2rem; max-width: 60ch; font-weight: 500; animation: qa .5s var(--ease); }
@keyframes qa { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 880px) {
    .faq__grid { grid-template-columns: 1fr; }
    .faq .section__head { position: static; }
}

/* ───────────── Accueil : livre à gauche, texte à droite ───────────── */

.hero--home { align-items: flex-start; }
.hero--home .hero__inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.hero--home .hero__visual { position: sticky; top: clamp(5.5rem, 14vh, 9rem); padding-top: clamp(1rem, 6vh, 4rem); }
.hero--home .badge--tome { top: 6%; right: 4%; }
.hero--home .title { --t: clamp(1.9rem, 4.6vw, 5rem); }

.title__tag {
    display: block; margin-top: calc(var(--t) * .42); rotate: -2deg; transform-origin: left;
    font-size: calc(var(--t) * .44); line-height: 1.05; color: var(--yellow);
    text-shadow: .06em .06em 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
    animation: pop .8s var(--spring) 1.1s backwards;
}

.hero--home .hero__lead { font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); font-weight: 700; line-height: 1.3; max-width: 30ch; }
.hero__story { display: grid; gap: 1.1rem; max-width: 54ch; margin-top: clamp(2rem, 4vw, 3rem); font-weight: 500; }
.hero__punch {
    margin-top: .6rem; font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1.3vw, 2rem);
    line-height: 1.1; text-transform: uppercase; text-wrap: balance;
}

@media (max-width: 900px) {
    .hero--home .hero__inner { grid-template-columns: 1fr; }
    .hero--home .hero__visual { position: relative; top: auto; padding-top: 0; }
    .hero--home .title { --t: clamp(1.5rem, 8.2vw, 4rem); }
    .title__tag { transform-origin: center; }
    .hero--home .hero__lead { max-width: 24ch; }
    .hero__story { text-align: left; margin-inline: auto; }
    .hero__punch { text-align: center; }
}

/* ───────────── Dans le livre (texte client) ───────────── */

.manifesto__title { margin-bottom: clamp(1.6rem, 4vw, 3rem); color: var(--cream); }
.manifesto__more {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem);
    margin-top: clamp(2.5rem, 6vw, 5rem); padding-top: clamp(1.6rem, 3vw, 2.4rem);
    border-top: 1px solid rgba(255, 248, 230, .22); font-weight: 500;
}
.manifesto__more p:last-child { color: var(--yellow); font-weight: 700; font-size: 1.1em; }
@media (max-width: 860px) { .manifesto__more { grid-template-columns: 1fr; } }

/* ───────────── Doubles pages ───────────── */

.inside__track li { flex: none; scroll-snap-align: center; }
.inside__track li:nth-child(even) .spread { --rot: 1.1deg; --ty: 14px; }
.spread {
    --rot: -1deg;
    position: relative; display: block; width: min(86vw, 980px); padding: 0;
    border: var(--bw) solid var(--ink); border-radius: clamp(14px, 1.6vw, 24px);
    background: #f1ede4; box-shadow: 9px 9px 0 var(--ink); overflow: hidden; cursor: zoom-in;
    transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--rot)) translateY(var(--ty, 0));
    transition: transform .5s var(--ease), box-shadow .4s var(--ease);
}
.spread:hover { box-shadow: 14px 14px 0 var(--ink); }
.spread img { width: 100%; height: auto; }
.inside.is-pinned .spread { width: min(64vw, (100vh - 21rem) * 1.41); }
.spread__zoom {
    position: absolute; right: .7rem; top: .7rem; display: inline-flex; align-items: center; gap: .35rem;
    padding: .4rem .8rem .3rem .6rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow);
    font-family: var(--cond); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}

.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(11, 11, 12, .96); }
.zoom::backdrop { background: var(--ink); }
.zoom__pan { width: 100%; height: 100%; display: flex; align-items: center; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.zoom__pan img { flex: none; width: auto; max-width: none; height: min(86dvh, 1064px); margin: auto; border-radius: 10px; }
.zoom__close { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); }

/* ───────────── Livre ouvert + commande ───────────── */

.buy__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.buy__visual { padding: 0; }
.buy__open { width: 122%; height: auto; max-width: none; margin-left: -20%; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 26px 22px rgba(11, 11, 12, .22)); }
.buy__title { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.buy__name { font-weight: 700; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.25; }
.buy__card .kicker { margin-bottom: .6rem; opacity: .7; }

@media (max-width: 880px) {
    .buy { padding-top: clamp(2.5rem, 8vw, 4rem); }
    .buy__grid { grid-template-columns: 1fr; }
    .buy__open { width: 118%; margin: 0 -9% -4%; }
    .buy__title { text-align: center; }
    .spread__zoom { right: .45rem; top: .45rem; padding: .3rem .6rem .22rem .45rem; font-size: .9rem; }
    .hero--home .badge--tome { top: -4%; right: -8%; }
}

/* ───────────── Contact ───────────── */

.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact .section__head { position: sticky; top: 7rem; margin-bottom: 0; }
.contact__mail { margin-top: 1.6rem; font-weight: 500; }
.contact__mail a { display: block; width: fit-content; font-family: var(--display); font-size: clamp(.95rem, .7rem + 1.3vw, 1.5rem); text-decoration-thickness: 3px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact__mail a:hover { background: var(--yellow); }

.contact__card {
    position: relative; padding: clamp(1.4rem, 3.4vw, 3rem);
    background: var(--cream); border: var(--bw) solid var(--ink); border-radius: clamp(26px, 3vw, 42px);
    box-shadow: clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px) 0 var(--ink); overflow: hidden;
}
.contact__form { display: grid; gap: 1.1rem; transition: opacity .4s, transform .6s var(--ease); }
.contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__form .notice { margin-top: 0; }

.field { display: grid; gap: .4rem; }
.field label { font-family: var(--cond); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.field input, .field textarea {
    width: 100%; padding: .9rem 1.1rem; border: var(--bw) solid var(--ink); border-radius: 18px;
    background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 500;   /* 16 px mini : pas de zoom auto sur iPhone */
    transition: box-shadow .25s var(--spring), transform .25s var(--spring);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 5px 5px 0 var(--yellow), 5px 5px 0 3px var(--ink); transform: translate(-2px, -2px); }
.field.has-error input, .field.has-error textarea { background: #ffd9d2; }
.field__error { font-size: .9rem; font-weight: 700; }
.contact__form .btn { margin-top: .4rem; }
.contact__form .btn[disabled] { opacity: .7; }
.contact__privacy { font-size: .88rem; font-weight: 500; opacity: .8; text-align: center; }

/* Message parti : le formulaire s'efface, l'avion en papier traverse la carte */
.contact__done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 2rem; text-align: center; visibility: hidden; opacity: 0; }
.contact__done .lead { margin-top: .4rem; }
.contact__plane { width: clamp(4rem, 9vw, 6rem); height: auto; margin-bottom: .6rem; }
.contact__card.is-sent .contact__form { opacity: 0; transform: scale(.94); pointer-events: none; visibility: hidden; transition: opacity .4s, transform .6s var(--ease), visibility 0s .4s; }
.contact__card.is-sent .contact__done { visibility: visible; opacity: 1; transition: opacity .5s .35s; }
.contact__card.is-sent .contact__plane { animation: plane-in 1.3s var(--ease) .3s backwards; }
.contact__card.is-sent .contact__done .h2 { animation: pop .7s var(--spring) .9s backwards; }
@keyframes plane-in {
    0% { transform: translate(-60vw, 30vh) rotate(-25deg) scale(.5); opacity: 0; }
    60% { transform: translate(6vw, -4vh) rotate(8deg) scale(1.15); opacity: 1; }
    100% { transform: none; }
}

@media (max-width: 880px) {
    .contact__grid { grid-template-columns: 1fr; }
    .contact .section__head { position: static; }
}

/* ───────────── Fenêtre des pages légales ───────────── */

html:has(dialog[open]) { overflow: hidden; }

.modal { width: min(100% - 1.5rem, 46rem); max-width: none; max-height: none; padding: 0; border: 0; background: none; color: var(--ink); overflow: visible; }
.modal::backdrop { background: rgba(11, 11, 12, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .45s var(--spring); }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.modal__card {
    position: relative; display: flex; flex-direction: column; max-height: min(86dvh, 52rem);
    background: var(--cream); border: var(--bw) solid var(--ink); border-radius: clamp(22px, 3vw, 36px);
    box-shadow: clamp(6px, 1vw, 12px) clamp(6px, 1vw, 12px) 0 var(--yellow); overflow: hidden;
}
.modal__body { overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.4rem, 4vw, 2.6rem); padding-bottom: 5.5rem; outline: none; }
.modal__body .h2 { font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); }
.modal__close { position: absolute; right: 1rem; bottom: 1rem; }

/* ───────────── Bandeau cookies ───────────── */

.cookies {
    position: fixed; z-index: 120; left: 50%; bottom: calc(.8rem + env(safe-area-inset-bottom));
    width: min(100% - 1.6rem, 44rem); translate: -50% 0;
    display: flex; align-items: center; gap: 1rem 1.5rem; padding: 1.1rem 1.3rem 1.1rem 5.4rem;
    background: var(--ink); color: var(--cream); border: var(--bw) solid var(--yellow); border-radius: 28px;
    box-shadow: 7px 7px 0 var(--yellow), 0 24px 50px rgba(11, 11, 12, .35);
    font-size: .95rem; line-height: 1.4; font-weight: 500; rotate: -1.2deg;
    animation: cookies-in .9s var(--spring) .8s backwards;
}
.cookies[hidden] { display: none; }
@keyframes cookies-in { from { opacity: 0; transform: translateY(140%) rotate(7deg) scale(.85); } }
.cookies__title {
    font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); line-height: 1; text-transform: uppercase;
    color: var(--yellow); margin-bottom: .35rem;
}
.cookies a { font-weight: 700; color: var(--yellow); text-underline-offset: 3px; white-space: nowrap; }
.cookies__actions { display: flex; gap: .8rem; flex: none; }
/* Refuser et Accepter ont le même poids visuel : seul le fond change */
.btn--ghost { background: var(--white); }
.cookies .btn, .cookies .btn:hover { box-shadow: var(--sh) var(--sh) 0 rgba(255, 248, 230, .32); }
.cookies .btn:active { box-shadow: 0 0 0 transparent; }

/* Le biscuit : posé à cheval sur le coin, il flotte, se fait croquer ou s'enfuit */
.cookies__cookie {
    position: absolute; left: -1.3rem; top: -1.7rem; width: 6.2rem; height: 6.2rem; overflow: visible;
    filter: drop-shadow(4px 5px 0 rgba(11, 11, 12, .35));
    animation: cookie-pop .8s var(--spring) 1.3s backwards, cookie-float 5s ease-in-out 2.1s infinite;
}
@keyframes cookie-pop { from { scale: 0; rotate: -200deg; } }
@keyframes cookie-float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-7px) rotate(10deg); } }
.cookies__biscuit { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease); }
.bite { transform-box: fill-box; transform-origin: center; scale: 0; transition: scale .28s var(--spring); }

.cookies:has([data-cookies-choice="yes"]:hover) .bite--1,
.cookies:has([data-cookies-choice="yes"]:focus-visible) .bite--1 { scale: 1; }
.cookies:has([data-cookies-choice="no"]:hover) .cookies__biscuit { animation: cookie-no .5s ease-in-out; }
@keyframes cookie-no { 25% { transform: translateX(-7px) rotate(-12deg); } 75% { transform: translateX(7px) rotate(12deg); } }

/* Accepter : croqué en quatre bouchées. Refuser : il roule hors de l'écran. Puis le bandeau s'en va. */
.cookies.is-yes .bite { scale: 1; }
.cookies.is-yes .bite--2 { transition-delay: .16s; }
.cookies.is-yes .bite--3 { transition-delay: .32s; }
.cookies.is-yes .bite--4 { transition-delay: .5s; }
.cookies.is-no .cookies__biscuit { transform: translateX(-140vw) rotate(-900deg); transition: transform 1s cubic-bezier(.5, 0, .9, .5); }
.cookies.is-yes, .cookies.is-no { animation: cookies-out .5s var(--ease) .75s forwards; pointer-events: none; }
@keyframes cookies-out { to { opacity: 0; transform: translateY(140%) rotate(-6deg) scale(.9); } }

@media (max-width: 640px) {
    .cookies { flex-direction: column; align-items: stretch; padding: 1.1rem 1.1rem 1.1rem; rotate: -1deg; }
    .cookies__cookie { left: -.5rem; top: -2rem; width: 5rem; height: 5rem; }
    .cookies__title { padding-left: 3.9rem; margin-bottom: .7rem; }
    .cookies__actions .btn { flex: 1; }
}

/* Sous le filet : à gauche le livre, au centre les liens légaux, à droite le crédit */
.footer .footer__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 1.2rem 2rem; }
.footer__about { display: grid; gap: .3rem; }
.footer__small { font-size: .85rem; opacity: .65; }
.footer .footer__row nav { justify-content: center; }
.footer__credit { text-align: right; }

@media (max-width: 860px) {
    .footer .footer__row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.4rem; }
    .footer .footer__row nav { order: -1; }
    .footer__credit { text-align: center; }
}
.footer__link { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; }
.footer__link:hover { color: var(--yellow); }

/* ───────────── Pied de page ───────────── */

.footer {
    position: relative; margin-top: calc(var(--rs) * -1); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(1.5rem, 3vw, 2.2rem);
    background: var(--ink); color: var(--cream); border-radius: var(--rs) var(--rs) 0 0; overflow: clip;
}
.footer__big {
    font-family: var(--display); font-size: clamp(1.8rem, 8.3vw, 10rem); line-height: .95; text-transform: uppercase;
    text-align: center; white-space: nowrap; color: var(--yellow);
}
.footer__row {
    width: min(100% - var(--gutter) * 2, var(--maxw)); margin: clamp(2rem, 5vw, 4rem) auto 0; padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 248, 230, .2);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font-size: .95rem;
}
.footer__row nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer__row a { text-underline-offset: 4px; }
.footer__row a:hover { color: var(--yellow); }

/* ───────────── CTA mobile collant ───────────── */

.dock {
    position: fixed; z-index: 90; left: .8rem; right: .8rem; bottom: calc(.8rem + env(safe-area-inset-bottom));
    display: none; align-items: center; justify-content: space-between;
    padding: 1rem 1.3rem; border: var(--bw) solid var(--ink); border-radius: 999px;
    background: var(--yellow); box-shadow: 5px 5px 0 var(--ink);
    font-weight: 700; text-decoration: none;
    transform: translateY(160%); transition: transform .5s var(--spring);
}
.dock strong { font-family: var(--display); font-weight: 400; }
.dock.is-visible { transform: none; }
@media (max-width: 760px) { .dock { display: flex; } }

/* ───────────── Pages secondaires (merci, légal, erreur) ───────────── */

.page { min-height: 100svh; display: grid; place-items: start center; padding: clamp(7rem, 14vw, 10rem) var(--gutter) calc(5rem + var(--rs)); }
.page--sky { background: linear-gradient(180deg, var(--sky-top), var(--sky-low)); }
.page--cream { background: var(--cream); }
.page__card {
    width: min(100%, 42rem); padding: clamp(1.6rem, 4vw, 3.2rem);
    background: var(--cream); border: var(--bw) solid var(--ink); border-radius: clamp(26px, 3vw, 42px);
    box-shadow: clamp(8px, 1.2vw, 14px) clamp(8px, 1.2vw, 14px) 0 var(--ink);
}
.page--cream .page__card { background: var(--white); }
.page__card--wide { width: min(100%, 52rem); }
.page__card .btn { margin-top: 2rem; }
.page__card .lead { max-width: none; }

.recap { margin-top: 2rem; border-top: var(--bw) solid var(--ink); }
.recap div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 2px solid rgba(11, 11, 12, .15); }
.recap dt { font-family: var(--cond); font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.recap dd { font-weight: 600; }

.prose h2 { margin-top: 2.2rem; font-size: 1.25rem; font-weight: 700; }
.prose p:not(.kicker) { margin-top: .6rem; }

/* ───────────── Page provisoire (avant l'ouverture) ───────────── */

.hero--soon { padding-bottom: clamp(11rem, 26vh, 16rem); }
.hero--soon .marquee--band { position: absolute; left: -5%; bottom: clamp(1.6rem, 6vh, 4rem); margin: 0; }

.soon__pill {
    display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.3rem .6rem 1.1rem;
    background: var(--ink); color: var(--yellow); border-radius: 999px; rotate: -2deg;
    font-family: var(--cond); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.soon__pill i { width: .5em; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(255, 237, 0, .7); } to { box-shadow: 0 0 0 .6em rgba(255, 237, 0, 0); } }
.soon__note { font-weight: 600; max-width: 22ch; line-height: 1.25; }
@media (max-width: 900px) {
    .hero.hero--soon { padding-top: 2.5rem; padding-bottom: 9.5rem; }   /* pas de barre de navigation à dégager */
    .soon__note { max-width: none; flex-basis: 100%; }
}

/* ───────────── Détails d'ambiance ───────────── */

/* Grain de papier sur toute la page */
.grain {
    position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* La balle de tennis de la couverture suit le curseur */
.ball {
    position: fixed; left: 0; top: 0; z-index: 160; width: 30px; height: 30px; margin: 10px 0 0 14px;
    border-radius: 50%; border: 2px solid var(--ink);
    /* Les deux coutures blanches sont peintes dans le fond, donc toujours sous le contour noir :
       elles ne peuvent plus déborder du cercle, même pendant la rotation. */
    background:
        radial-gradient(circle at -3.1px 10.9px, transparent 9.9px, #fff 10.4px, #fff 12.8px, transparent 13.3px),
        radial-gradient(circle at 29.1px 10.9px, transparent 9.9px, #fff 10.4px, #fff 12.8px, transparent 13.3px),
        #d8f23a;
    background-origin: padding-box; background-clip: padding-box;
    pointer-events: none; opacity: 0; transition: opacity .3s, scale .35s var(--spring);
    will-change: transform;
}
.has-ball .ball { opacity: 1; }
.ball.is-big { scale: 1.9; }

/* Apparition au défilement */
.js [data-reveal] {
    opacity: 0; transform: translateY(38px);
    transition: opacity .9s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js .btn[data-reveal].in { transition: transform .25s var(--spring), box-shadow .25s var(--spring), translate .35s var(--ease), opacity .9s var(--ease); }
.js .btn[data-reveal].in:hover { transform: translate(-2px, -2px); }
.js .btn[data-reveal].in:active { transform: translate(var(--sh), var(--sh)); }

/* ───────────── Responsive hero ───────────── */

@media (max-width: 900px) {
    .hero { padding-top: 6.5rem; }
    .hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2.5rem; }
    .title { --t: clamp(1.5rem, 8.2vw, 4rem); }
    .hero__lead { margin-inline: auto; }
    .hero__cta { justify-content: center; }
    .hero__price { align-items: flex-start; text-align: left; }
    .hero__visual { order: -1; }
    .book-stage { --w: clamp(180px, 46vw, 300px); }
    .sticker { left: -22%; }
    .squiggle { display: none; }
}

/* ───────────── Mouvement réduit ───────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .up { transform: none; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .js .manifesto__text .w { opacity: 1; }
    .js .w--hl { color: var(--yellow); }
    .plane, .ball { display: none; }
}
