/* CO²CO — page d'accueil : le Coffret Fondateurs. Studio photo : fond gris neutre qui met en valeur l'écrin vert et l'alu de la canette.
   Ordinateur : le texte défile à gauche, la scène suit le scroll. Téléphone : une étape par écran, le texte n'apparaît qu'à l'arrêt. */
@font-face { font-family: "Archivo Black"; src: url("/assets/fonts/archivo-black-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/space-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/space-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --studio-1: #E7E7E3; --studio-2: #CFCFCA; --studio-3: #A9AAA5;
  --ink: #121412; --ink-2: rgba(18, 20, 18, .72); --ink-3: rgba(18, 20, 18, .5);
  --foret: #103724; --foret-2: #0A2619; --sauge-fonce: #4B6B55; --ivoire: #F4F2EA;
  --ligne: rgba(18, 20, 18, .16); --verre: rgba(240, 240, 236, .82);
  --f-titre: "Archivo Black", "Arial Black", Impact, sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-texte: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --side: max(16px, env(safe-area-inset-left, 0px));
  --side-r: max(16px, env(safe-area-inset-right, 0px));
  --bar: calc(72px + env(safe-area-inset-bottom, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--studio-2); }
body.coffret { --btn-bg: var(--c-bouton, #103724); --btn-ink: var(--c-bouton-texte, #F4F2EA); margin: 0; background: var(--studio-2); color: var(--ink); font: 400 16px/1.55 var(--f-texte); -webkit-font-smoothing: antialiased; }
body.coffret main { padding-top: 0; }
body.coffret h1, body.coffret h2 { font-weight: 400; }
.mono { font-family: var(--f-mono); }
sub { font-size: .6em; vertical-align: -.18em; line-height: 0; }
a { color: inherit; }

/* ---------- scène fixe ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(110% 85% at 62% 44%, var(--studio-1) 0%, var(--studio-2) 48%, var(--studio-3) 100%); }
.stage canvas, .stage .clip, .stage .hold { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.stage canvas { opacity: 0; transition: opacity .9s ease; }
.stage.is-live canvas { opacity: 1; }
.stage .clip { z-index: 0; }
.stage .clip.is-on { z-index: 1; }
.stage .hold { z-index: 2; transition: opacity .25s ease; }
.stage .hold.is-off { opacity: 0; }
.poster { position: absolute; inset: 0; transition: opacity .9s ease; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage.is-live .poster { opacity: 0; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; transition: opacity 1.6s ease;
  background: linear-gradient(90deg, rgba(231, 231, 227, .86) 0%, rgba(231, 231, 227, .5) 30%, rgba(231, 231, 227, 0) 52%); }
.intro { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; transition: opacity 1s ease; }
.intro.is-done { opacity: 0; }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .05; mix-blend-mode: multiply; z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.tagline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; z-index: 4; transition: opacity .5s ease; }
.tagline line { stroke: var(--ink); stroke-width: 1; }
.tagline circle { fill: var(--ivoire); stroke: var(--ink); stroke-width: 1.5; }
.tag { position: absolute; left: 0; top: 0; margin: 0; padding: 7px 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; z-index: 4;
  color: var(--ivoire); background: var(--ink); opacity: 0; pointer-events: none; will-change: transform, opacity; transition: opacity .5s ease; }

/* ---------- en-tête : disparaît quand on descend, revient quand on remonte ---------- */
.top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--side-r) 14px var(--side);
  transition: opacity 1.2s cubic-bezier(.2, .7, .1, 1), transform .7s cubic-bezier(.2, .7, .1, 1); }
.top.is-hidden { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 92px; height: auto; display: block; }
.top nav { display: flex; gap: 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.top nav a { text-decoration: none; color: var(--ink-2); padding: 10px 0; }
.top nav a:hover, .top nav a:focus-visible { color: var(--ink); }
.cart-link { appearance: none; background: none; border: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-2); padding: 10px 0; }
.cart-link span { display: inline-block; min-width: 1.6em; text-align: center; border: 1px solid var(--ligne); border-radius: 99px; margin-left: 4px; color: var(--ink); }

/* ---------- récit ---------- */
main { position: relative; z-index: 3; }
.coffret [data-story] { position: relative; z-index: 1; }
.sc { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 96px 120px; padding-left: var(--side); padding-right: var(--side-r); }
.txt { width: min(420px, 100%); margin-left: clamp(0px, 5vw, 80px); opacity: 0; transform: translateY(24px); transition: opacity 1s cubic-bezier(.2, .7, .1, 1), transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.sc.is-in .txt, .sc-hero .txt { opacity: 1; transform: none; }
html.is-intro .top, html.is-intro .sc-hero .txt { opacity: 0; transform: translateY(18px); }
html.is-intro .stage::after { opacity: 0; }
.coffret .kicker::before { content: none; }
.coffret .kicker { display: block; font-weight: 400; line-height: 1.4; margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sauge-fonce); }
h1, h2 { margin: 0; font: 400 clamp(46px, 6.4vw, 92px)/.92 var(--f-titre); letter-spacing: -.01em; text-wrap: balance; color: var(--ink); }
h2 { font-size: clamp(40px, 5.6vw, 80px); }
.txt p { margin: 18px 0 0; color: var(--ink-2); max-width: 34ch; font-size: 17px; }
.lead { font-size: 18px !important; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.hint { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.coffret .btn { appearance: none; border: 0; cursor: pointer; min-height: 52px; padding: 0 26px; border-radius: 0; background: var(--btn-bg); color: var(--btn-ink); display: inline-flex; align-items: center; justify-content: center; gap: .4em; text-decoration: none;
  font: 700 13px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; transition: background .3s, transform .3s; }
.coffret .btn:hover { filter: brightness(.88); }
.coffret .btn:active { transform: translateY(1px); }
.coffret .btn:focus-visible { outline: 2px solid var(--foret); outline-offset: 3px; }
.spec { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 0 32px; margin: 24px 0 0; padding: 14px 0; border-block: 1px solid var(--ligne); }
.spec dt { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 4px 0 0; font-size: 15px; font-weight: 700; }
.txt .fine { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.inv { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--ligne); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.inv li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.inv span { color: var(--sauge-fonce); }
.price { margin-top: 24px !important; color: var(--ink) !important; }
.price strong { font: 400 44px/1 var(--f-titre); }
.sc-buy .btn-wide { margin-top: 18px; width: 100%; max-width: 360px; }
.info { margin-top: 22px; border-top: 1px solid var(--ligne); }
.info summary { cursor: pointer; padding: 14px 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.info p { font-size: 13px !important; margin-top: 8px !important; }
.still { display: none; margin: 0; }

/* ---------- pied ---------- */
.foot { position: relative; z-index: 3; background: var(--studio-1); border-top: 1px solid var(--ligne); padding-block: 40px 140px; padding-left: var(--side); padding-right: var(--side-r);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot p { margin: 0; }

/* ---------- achat à côté du scroll ---------- */
.buybar { position: fixed; z-index: 6; right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 280px;
  display: grid; gap: 12px; padding: 16px; background: var(--verre); border: 1px solid var(--ligne); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateY(16px); opacity: 0; pointer-events: none; transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .1, 1); }
.buybar.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bb-txt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bb-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sauge-fonce); }
.bb-p { font: 400 24px var(--f-titre); white-space: nowrap; }
.buybar .btn { width: 100%; }
.toast { position: fixed; z-index: 7; left: 50%; top: calc(24px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -10px); margin: 0; padding: 10px 16px;
  background: var(--ink); color: var(--ivoire); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .4s, transform .5s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- téléphone ---------- */
@media (max-width: 759px) {
  .stage::after { background: linear-gradient(0deg, rgba(231, 231, 227, .95) 0%, rgba(231, 231, 227, .6) 30%, rgba(231, 231, 227, 0) 52%); }
  .top nav a:not(.cart-link) { display: none; }
  .brand img { width: 80px; }
  h1 { font-size: clamp(46px, 14vw, 68px); }
  h2 { font-size: clamp(40px, 12vw, 58px); }
  .txt p { font-size: 15px; margin-top: 10px; }
  .kicker { margin-bottom: 10px; }
  .spec { margin-top: 14px; padding: 10px 0; }
  .buybar { left: 0; right: 0; bottom: 0; width: auto; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border-width: 1px 0 0;
    padding: 12px var(--side-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--side); }
  .bb-k { display: none; }
  .buybar .btn { width: auto; padding: 0 20px; }
  .tag { font-size: 10px; }
  .sc { align-items: flex-end; padding-block: 0 var(--bar); }
  .txt { margin-left: 0; width: 100%; padding-top: 22px; }
  .sc-buy { align-items: flex-start; padding-top: 72px; }
  .sc-buy .txt { background: var(--verre); padding: 20px 16px; margin-inline: -16px; width: calc(100% + 32px); }

  /* mode « écran fixe » (activé par le lecteur) : la page ne défile plus, le doigt pilote l'animation ;
     le texte de chaque objet est posé en bas et n'apparaît que lorsque l'objet est à l'image */
  html.m, html.m body { height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: none; }
  html.m main .sc { min-height: 0; height: 0; padding: 0; overflow: visible; }
  html.m .foot { display: none; }
  html.m .sc .txt { position: fixed; left: 0; right: 0; bottom: var(--bar); width: auto; margin: 0; z-index: 4;
    padding: 30px var(--side-r) 16px var(--side); background: linear-gradient(to top, rgba(231, 231, 227, .97) 64%, rgba(231, 231, 227, 0));
    opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s ease, transform .5s cubic-bezier(.2, .7, .1, 1); }
  html.m .sc.is-active .txt { opacity: 1; transform: none; pointer-events: auto; }
  html.m.is-intro .sc .txt { opacity: 0; transform: translateY(16px); pointer-events: none; }
  html.m .sc-hero .txt { bottom: 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  html.m .sc-buy .txt { bottom: 0; max-height: calc(100svh - 64px); overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--verre); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--ligne); }
  html.m .m-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--ligne); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
  html.m .m-foot a { color: var(--ink-3); text-decoration: none; padding: 6px 0; }
  /* repères d'étape, sur le côté */
  .dots { position: fixed; z-index: 5; right: calc(10px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: grid; gap: 4px;
    opacity: 0; pointer-events: none; transition: opacity .4s ease; }
  .dots.is-on { opacity: 1; pointer-events: auto; }
  .dots button { appearance: none; border: 0; background: none; padding: 7px; cursor: pointer; display: grid; place-items: center; }
  .dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(244, 242, 234, .75); box-shadow: 0 0 0 1px rgba(18, 20, 18, .35); transition: transform .3s ease, background .3s ease; }
  .dots button.is-on::before { background: var(--ink); box-shadow: 0 0 0 1.5px var(--ivoire); transform: scale(1.5); }
}

/* ---------- phases du site (la gestion pose html[data-phase]) ---------- */
html[data-phase="waitlist"] [data-show-phases]:not([data-show-phases~="waitlist"]),
html[data-phase="preorder_list"] [data-show-phases]:not([data-show-phases~="preorder_list"]),
html[data-phase="preorder"] [data-show-phases]:not([data-show-phases~="preorder"]),
html[data-phase="open"] [data-show-phases]:not([data-show-phases~="open"]) { display: none !important; }
html.is-soldout [data-coffret-add] { display: none !important; }

/* ---------- dernière étape : achat ou liste d'attente ---------- */
.buy-list .list-intro { color: var(--ink-2); }
.buy-list .form { margin-top: 16px; gap: 12px; max-width: 360px; }
.buy-list .field label { font: 400 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.buy-list .field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--ligne); border-radius: 0; background: rgba(255, 255, 255, .7); font: 400 16px var(--f-texte); color: var(--ink); }
.buy-list .check { font-size: 13px; color: var(--ink-2); }
.buy-list .check input { accent-color: var(--foret); }
.buy-list .btn-wide { margin-top: 4px; }
.buy-list .pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.buy-list .pair .field { min-width: 0; }
.buy-list .muted { opacity: .7; text-transform: none; letter-spacing: 0; }
.buy-list .form-msg { font: 400 13px/1.5 var(--f-mono); }
.footer-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; text-decoration: none; }

/* ---------- mode « mes photos » : un packshot par étape à la place des rendus 3D ---------- */
.photos { position: absolute; inset: 0; z-index: 0; display: none; }
html[data-visuel="photos"] .photos { display: block; }
html[data-visuel="photos"] .stage canvas { display: none; }
.photos figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.photos figure.is-on { opacity: 1; }
.photos img, .photos video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 6s cubic-bezier(.2, .6, .2, 1); }
.photos figure.is-on img, .photos figure.is-on video { transform: scale(1); }
@media (min-width: 760px) { .photos img, .photos video { object-position: 70% 50%; } }

/* ---------- ticket à gratter (Promotions › Ticket) : mêmes styles que les autres pages ---------- */
body.coffret { --ease: cubic-bezier(.2, .7, .1, 1); --profond: #071A10; --title-scale: 1; --title-case: none; --title-track: 0em; }
.scratch { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.scratch-back { position: absolute; inset: 0; background: color-mix(in srgb, var(--profond) 45%, transparent); opacity: 0; transition: opacity .35s var(--ease); pointer-events: auto; }
.scratch-card { position: relative; width: min(420px, 100%); background: var(--foret); color: var(--ivoire); border-radius: 26px; padding: 26px 22px 18px; display: grid; gap: 10px; text-align: center; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); transform: translateY(40px); opacity: 0; transition: transform .45s var(--ease), opacity .35s var(--ease); pointer-events: auto; max-height: calc(100svh - 32px); overflow: auto; }
.scratch.is-on .scratch-back { opacity: 1; }
.scratch.is-on .scratch-card { transform: none; opacity: 1; }
.scratch-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ivoire) 35%, transparent); background: none; color: var(--ivoire); font-size: 20px; line-height: 1; cursor: pointer; }
.scratch-k { margin: 0; font: 700 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.scratch-card h2 { margin: 0; font: 400 calc(26px * var(--title-scale)) / 1.05 var(--f-titre); text-transform: var(--title-case); letter-spacing: var(--title-track); color: var(--ivoire); }
.scratch-txt { margin: 0; font-size: 15px; line-height: 1.5; color: color-mix(in srgb, var(--ivoire) 86%, transparent); }
.scratch-zone { position: relative; height: 120px; border-radius: 18px; overflow: hidden; background: var(--ivoire); margin: 6px 0; touch-action: none; user-select: none; }
.scratch-prize { position: absolute; inset: 0; display: grid; place-items: center; color: var(--foret); font: 400 calc(40px * var(--title-scale)) / 1 var(--f-titre); }
.scratch-zone canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.scratch-hint { margin: 0; font: 400 12px var(--f-mono); opacity: .8; }
.scratch-hint .linkish { color: inherit; text-decoration: underline; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.scratch-form { display: grid; gap: 8px; text-align: left; }
.scratch-form label { font: 600 12px var(--f-mono); }
.scratch-form input[type=email] { min-height: 48px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ivoire) 40%, transparent); background: color-mix(in srgb, var(--ivoire) 10%, transparent); color: var(--ivoire); padding: 0 14px; font-size: 16px; }
.scratch-form .check { font: 400 13px/1.4 var(--f-texte); display: flex; gap: 8px; align-items: flex-start; }
.scratch-form .btn { width: 100%; justify-content: center; }
.scratch-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.scratch-form .form-msg { margin: 0; min-height: 1em; font-size: 13px; }
.scratch-done { display: grid; gap: 10px; }
.scratch-code { margin: 0; font: 700 26px var(--f-mono); letter-spacing: .12em; background: var(--ivoire); color: var(--foret); border-radius: 14px; padding: 14px; user-select: all; }
.scratch-actions { display: grid; gap: 8px; }
.scratch-actions .btn { width: 100%; justify-content: center; }
.scratch-actions .btn-line { color: var(--ivoire); border-color: color-mix(in srgb, var(--ivoire) 55%, transparent); }
.scratch-cond { margin: 4px 0 0; font: 400 11px/1.5 var(--f-mono); color: color-mix(in srgb, var(--ivoire) 70%, transparent); }
@media (min-width: 720px) { .scratch { align-items: center; } }
@media (prefers-reduced-motion: reduce) { .scratch-card, .scratch-back { transition: none; } }

/* ---------- repli : mouvement réduit → images fixes rendues depuis la scène ---------- */
.static .stage canvas, .static .tagline, .static .tag, .static .stage .clip, .static .stage .hold { display: none; }
.static .sc { display: grid; gap: 20px; align-items: center; min-height: 0; padding-block: 72px 24px; }
.static .sc .txt { opacity: 1; transform: none; background: none; margin-left: 0; width: 100%; position: static; }
.static .still { display: block; }
.static .still img { width: 100%; max-width: 900px; height: auto; display: block; aspect-ratio: 1180 / 880; object-fit: cover; object-position: 78% 50%; }
.static .stage .poster { display: none; }
@media (min-width: 760px) { .static .sc { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .txt, .buybar, .toast, .top { transition: none; } }
