/* Page de vente « prompt + guide » — pensée d'abord pour le téléphone.
   Blanc, noir, gris, rouge. Même langage visuel que la page étudiée, code écrit de zéro. */

:root {
  --ink: #0d0f12;
  --g-600: #50555e;
  --g-500: #6b7079;
  --g-400: #9a9fa7;
  --g-200: #e4e6e9;
  --g-100: #f2f3f5;
  --paper: #ffffff;
  --red: #da291c;
  --red-deep: #b8200f;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Montserrat", "Arial Black", "Geist", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
p, li { text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

main > section { padding: clamp(48px, 9vw, 96px) var(--gutter); padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

.kicker { font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-500); text-align: center; }
em { font-style: normal; color: var(--red); }

/* ---------- Bandeau de lancement ---------- */
.launch {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 32px); flex-wrap: wrap;
  padding: 10px var(--gutter); padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: var(--ink); color: #fff;
}
.launch__label { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; color: #ff5a4c; }
.launch__note { font-size: 13px; color: #c9ccd1; }
.launch__note b { color: #fff; }
.clock { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.clock i { font-style: normal; color: var(--g-400); font-weight: 700; }
.clock__cell { display: grid; justify-items: center; min-width: 38px; }
.clock__cell b { font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 1; }
.clock__cell small { font-size: 10px; color: var(--g-400); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Titre empilé ---------- */
.hero { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 5vw, 44px); }
.title {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--display); font-weight: 900; text-transform: uppercase; text-align: center;
  line-height: 0.92; letter-spacing: -0.02em;
}
.title__s { font-size: clamp(1.15rem, 5.6vw, 2.5rem); font-weight: 800; }
.title__m { font-size: clamp(1.1rem, 5.4vw, 2.6rem); font-weight: 800; margin: 0.14em 0 0.04em; text-wrap: balance; }
.title__xl { font-size: clamp(2.9rem, 15vw, 8.2rem); }

/* ---------- Écrans de démo ---------- */
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2.4vw, 24px); width: 100%; max-width: 1100px; }
.screen { display: grid; gap: 8px; }
.screen__frame { border-radius: 14px; overflow: hidden; background: var(--g-100); border: 1px solid var(--g-200); box-shadow: 0 24px 50px -30px rgba(13, 15, 18, 0.45); }
.screen__frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.screen figcaption { font-size: 13px; font-weight: 600; color: var(--g-600); text-align: center; }

.fits { font-size: clamp(16px, 4.2vw, 20px); text-align: center; color: var(--g-600); max-width: 34ch; }
.fits strong { color: var(--ink); }

/* ---------- Bouton + prix ---------- */
.buy { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.cta {
  width: 100%; max-width: 440px;
  padding: 19px 28px; border-radius: 999px; text-align: center;
  background: var(--red); color: #fff;
  font-size: clamp(15px, 4.3vw, 17px); font-weight: 650; letter-spacing: -0.01em; line-height: 1.2;
  box-shadow: 0 14px 30px -14px rgba(218, 41, 28, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.cta:hover { background: var(--red-deep); }
.cta:active { transform: scale(0.98); }
.price { display: flex; align-items: baseline; justify-content: center; gap: 14px; font-family: var(--display); line-height: 1; }
.price__new { font-weight: 900; font-size: clamp(2.6rem, 11vw, 3.6rem); letter-spacing: -0.03em; }
.price__new small { font-size: 0.5em; margin-left: 2px; }
.price__after { font-family: var(--font); font-size: 14px; color: var(--g-500); }
.value { text-align: center; max-width: 38ch; color: var(--g-600); font-size: 15px; }
.value strong { color: var(--ink); }

/* ---------- Le tableur d'avant ---------- */
.old { display: flex; flex-direction: column; align-items: center; gap: 28px; background: var(--g-100); }
.sheet { position: relative; width: min(100%, 560px); background: #fff; border: 1px solid #c9ccd1; border-radius: 6px; overflow: hidden; filter: grayscale(1); font-family: Calibri, Arial, sans-serif; font-size: 12px; }
.sheet__bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #e9eaec; border-bottom: 1px solid #c9ccd1; }
.sheet__bar span { width: 9px; height: 9px; border-radius: 50%; background: #b9bcc1; }
.sheet__bar b { margin-left: 8px; font-weight: 400; color: var(--g-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sheet__grid > * { padding: 5px 7px; border-right: 1px solid #e1e3e6; border-bottom: 1px solid #e1e3e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 26px; }
.sheet__grid i { font-style: normal; background: #f3f4f5; text-align: center; color: var(--g-500); }
.sheet__x { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet__x path { stroke: var(--red); stroke-width: 2.5; vector-effect: non-scaling-stroke; fill: none; opacity: 0.85; }
.old__text { text-align: center; max-width: 30ch; font-size: clamp(18px, 4.8vw, 24px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.old__text strong { color: var(--red); }
.tools { display: grid; gap: 12px; justify-items: center; }
.tools__label { font-size: 12px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-500); }
.tools__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tools__list li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--g-200); font-size: 14px; font-weight: 600; }

/* ---------- De plus près ---------- */
.zoom { display: grid; justify-items: center; gap: 24px; }
.zoom__shot { width: 100%; max-width: 1100px; }
.zoom__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 28px; max-width: 1100px; width: 100%; }
.zoom__points li { font-size: 15px; color: var(--g-600); }
.zoom__points b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.note { font-size: 13px; color: var(--g-500); text-align: center; }

/* ---------- Comment l'utiliser ---------- */
.how { display: flex; flex-direction: column; align-items: center; gap: 22px; background: var(--ink); color: #fff; }
.how__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 9vw, 3.6rem); letter-spacing: -0.02em; line-height: 1; text-align: center; text-wrap: balance; }
.how__time { color: #ff5a4c; font-weight: 650; }
.how__steps { display: grid; gap: 12px; width: 100%; max-width: 520px; counter-reset: s; }
.how__steps li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: #1b1e23; border: 1px solid #2a2e35; }
.how__n { font-family: var(--display); font-weight: 900; font-size: 22px; color: #ff5a4c; font-variant-numeric: tabular-nums; }
.how__steps p { font-size: 16px; }

/* ---------- Inclus ---------- */
.incl { display: flex; justify-content: center; }
.incl__card { width: 100%; max-width: 640px; display: grid; gap: 16px; padding: clamp(24px, 5vw, 44px); border-radius: 24px; border: 1px solid var(--g-200); box-shadow: 0 30px 60px -40px rgba(13, 15, 18, 0.35); }
.incl__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; text-align: center; font-size: clamp(1.6rem, 6.6vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.incl__list { display: grid; gap: 12px; margin-top: 6px; }
.incl__list li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--g-600); }
.incl__list li strong { color: var(--ink); }
.incl__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Offre ---------- */
.deal { display: grid; justify-items: center; gap: 0; background: var(--g-100); }
.deal__stage { display: flex; justify-content: center; }
.deal__me { width: min(70vw, 300px); }
.deal__me--todo { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; border: 2px dashed var(--g-400); border-radius: 24px 24px 0 0; color: var(--g-500); font-weight: 600; font-size: 14px; }
.deal__card { width: 100%; max-width: 560px; display: grid; gap: 22px; justify-items: center; padding: clamp(24px, 5vw, 40px); background: #fff; border-radius: 24px; border: 1px solid var(--g-200); box-shadow: 0 30px 60px -40px rgba(13, 15, 18, 0.35); }
.deal__pitch { font-family: var(--display); font-weight: 900; text-transform: uppercase; text-align: center; font-size: clamp(1.3rem, 5.6vw, 2rem); line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.secure { font-size: 13px; color: var(--g-500); text-align: center; }
.secure b { color: #635bff; }

/* ---------- Questions ---------- */
.faq { display: grid; gap: 10px; max-width: 720px; margin: 0 auto; }
.faq__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; text-align: center; font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 10px; }
.faq details { border: 1px solid var(--g-200); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--g-600); font-size: 15px; }

.foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--g-500); border-top: 1px solid var(--g-200); }

/* ---------- Pop-up pack ---------- */
.upsell { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.upsell__veil { position: absolute; inset: 0; background: rgba(13, 15, 18, 0.62); backdrop-filter: blur(4px); }
.upsell__box {
  position: relative; width: 100%; max-width: 400px; max-height: calc(100dvh - 32px); overflow: hidden auto;
  display: grid; gap: 12px; justify-items: center; text-align: center;
  padding: 30px 18px 18px; background: #fff; border-radius: 26px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
  animation: rise 0.45s var(--ease);
}
@keyframes rise { from { transform: translateY(24px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .upsell__box { animation: none; } html { scroll-behavior: auto; } }

/* Mèche : la corde se consume de gauche à droite pendant --fuse-ms */
.fuse { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--g-100); }
.fuse__cord { position: absolute; inset: 0 auto 0 0; width: var(--fuse-start, 100%); background: repeating-linear-gradient(90deg, var(--red) 0 8px, #f05a4e 8px 14px); }
.fuse__spark { position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 10px 4px rgba(255, 170, 60, 0.85); }
.upsell.is-burning .fuse__cord { animation: burn var(--fuse-ms, 15s) linear forwards; }
@keyframes burn { to { width: 0; } }
.fuse__time { position: absolute; top: 12px; left: 16px; font-size: 12px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.upsell.is-last .fuse, .upsell.is-last .fuse__time { display: none; }

.upsell__close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--g-100); font-size: 22px; line-height: 1; color: var(--g-600); }
.upsell__std, .upsell__last { display: grid; gap: 8px; justify-items: center; }
.upsell__last, .upsell.is-last .upsell__std { display: none; }
.upsell.is-last .upsell__last { display: grid; }
.upsell__badge { padding: 6px 14px; border-radius: 999px; background: #fdecea; color: var(--red); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.upsell__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.4rem, 6.4vw, 1.75rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.upsell__first { color: var(--red); font-size: 13.5px; font-weight: 650; }

/* Éventail de cartes : celle du milieu devant, les autres inclinées derrière */
.upsell__fan { position: relative; width: calc(100% + 36px); margin: 4px -18px 0; height: clamp(120px, 34vw, 150px); touch-action: pan-y; cursor: grab; user-select: none; }
.upsell__fan.is-dragging { cursor: grabbing; }
.upsell__fan figure { position: absolute; left: 50%; top: 8px; width: 46%; transition: transform 0.45s var(--ease), opacity 0.3s, filter 0.3s; will-change: transform; }
.upsell__fan.is-dragging figure { transition: none; }
.upsell__fan figure { margin: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--g-200); box-shadow: 0 14px 30px -14px rgba(13, 15, 18, 0.45); background: var(--g-100); }
.upsell__fan img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; pointer-events: none; -webkit-user-drag: none; transform-origin: var(--zo, 50% 50%); }
/* la carte au centre part dézoomée et se rapproche lentement pendant qu'elle est affichée */
.upsell__fan figure.is-on img { animation: fan-zoom var(--slide-ms, 1800ms) linear forwards; }
.upsell__fan figure:nth-child(1) { --zo: 45% 55%; }
.upsell__fan figure:nth-child(2) { --zo: 40% 45%; }
.upsell__fan figure:nth-child(3) { --zo: 55% 50%; }
.upsell__fan figure:nth-child(4) { --zo: 35% 60%; }
.upsell__fan figure:nth-child(5) { --zo: 50% 40%; }
.upsell__fan figure:nth-child(6) { --zo: 60% 55%; }
.upsell__fan figure:nth-child(7) { --zo: 45% 45%; }
.upsell__fan figure:nth-child(8) { --zo: 55% 60%; }
@keyframes fan-zoom { from { transform: scale(1); } to { transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .upsell__fan figure.is-on img { animation: none; } }
.upsell__fan figcaption { display: none; }
.upsell__sector { font-size: 14px; font-weight: 700; min-height: 1.4em; }
.js-sector { display: inline-block; transition: opacity 0.14s, transform 0.14s; }
.js-sector.is-swap { opacity: 0; transform: translateY(4px); }
.upsell__time { padding: 6px 14px; border-radius: 999px; background: #fdecea; color: var(--red-deep); font-size: 13.5px; font-weight: 650; }
.upsell__price { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 10vw, 2.8rem); line-height: 1; color: var(--red); }
.upsell .cta { max-width: none; }
.upsell__yes-last, .upsell.is-last .upsell__yes { display: none; }
.upsell.is-last .upsell__yes-last { display: inline; }
.upsell__no { width: 100%; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--g-200); font-size: 14px; font-weight: 600; color: var(--g-600); transition: background 0.2s; }
.upsell__no:hover { background: var(--g-100); }
.upsell.is-last .upsell__no { display: none; }
.upsell__err { font-size: 13px; color: var(--red); font-weight: 600; }

@media (min-width: 900px) {
  .deal { grid-template-columns: auto minmax(0, 560px); justify-content: center; align-items: end; gap: 40px; }
  .deal__me--todo { border-radius: 24px; }
}
