/* =====================================================================
   Ma P’tite Caisse · site vitrine
   Charte « Papeterie de marché » (design/BRAND.md)
   ===================================================================== */

:root {
  /* Couleurs */
  --paper: #F7F1E6;
  --paper-deep: #EFE5D3;
  --card: #FFFDF8;
  --ink: #211C17;
  --ink-soft: #4A4239;
  --muted: #857A6D;
  --line: #E6DBC8;
  --line-strong: #D6C7AE;
  --kraft: #D8B98A;
  --kraft-dark: #B8915A;
  --red: #E5533C;
  --night: #2A231D;

  --pink-soft: #FCE4EA; --pink: #F5BBCB; --pink-strong: #D2507A;
  --yellow-soft: #FFF3CF; --yellow: #F8D46E; --yellow-strong: #C38E12;
  --green-soft: #E7F3DC; --green: #BCD9A1; --green-strong: #4A8A4F;
  --lavender-soft: #EFE9FF; --lavender: #CBBDF6; --lavender-strong: #7155D6;
  --orange-soft: #FFE8D6; --orange: #FBBE8A; --orange-strong: #D9702A;
  --blue-soft: #E4ECFD; --blue: #B1C8F2; --blue-strong: #3A64C4;
  --coral-soft: #FFE3DC; --coral: #F7A593; --coral-strong: #CF4632;
  --mint-soft: #DDF4EC; --mint: #A5DECD; --mint-strong: #1F8E79;

  /* Typo */
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --measure: 60ch;

  /* Rythme vertical */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --section-pad: clamp(72px, 10vw, 136px);
  --head-gap: clamp(40px, 5vw, 64px);

  /* Conteneur */
  --gutter: 20px;
  --maxw: 1200px;

  /* Boutons et champs */
  --btn-h: 48px; --btn-h-sm: 40px; --btn-h-lg: 56px;
  --btn-px: 24px; --btn-px-sm: 18px; --btn-px-lg: 28px;

  /* Formes */
  --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px;
  --shadow: 0 1px 2px rgba(58, 46, 31, .06), 0 8px 24px rgba(58, 46, 31, .08);
  --shadow-lg: 0 2px 4px rgba(58, 46, 31, .06), 0 18px 40px -8px rgba(58, 46, 31, .18);
  --spring: cubic-bezier(.3, 1.45, .5, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .18 0 0 0 0 .12 .55 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  --grain-gray: 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='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --nav-h: 76px;
  --land-h: clamp(240px, 39vh, 520px);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--paper) var(--grain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--s-4); top: -64px; z-index: 50;
  display: inline-flex; align-items: center; min-height: var(--btn-h-sm); padding: 0 var(--btn-px-sm);
  background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--s-4); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .register :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(20, 30, 50, .5); }
.register .till :focus-visible { outline-color: var(--ink); box-shadow: none; }
.field input:focus-visible { outline: none; box-shadow: none; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(820px + 2 * var(--gutter)); }
.center { text-align: center; }
.hand { font-family: var(--hand); font-weight: 700; line-height: 1.1; }
.mascot { overflow: visible; }
/* Stickers : contour blanc et ombre dessinés avec la forme elle-même (copies épaissies),
   et non par un filtre SVG qui se décale quand la mascotte tourne ou flotte. */
.st-ol, .st-sh { --ol: 11px; stroke-width: 11px; stroke-linejoin: round; }
.st-ol { color: #fff; stroke: #fff; }
.st-sh { color: #3A2E1F; stroke: #3A2E1F; opacity: .2; transform: translate(0, 4.5px); }

/* ---------- Boutons ---------- */
.btn {
  --mx: 0px; --my: 0px; --ms: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--btn-h); padding: 0 var(--btn-px); border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.1; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap; text-align: center;
  transform: translate(var(--mx), var(--my)) scale(var(--ms));
  transition: transform .3s var(--spring), background-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:active { --ms: .96; }
.btn .picto { width: 20px; height: 20px; flex: none; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 8px 18px -10px rgba(33, 28, 23, .7); }
.btn-ink:hover { background: #3A3129; }
.btn-line { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-sm { min-height: var(--btn-h-sm); padding: 0 var(--btn-px-sm); font-size: .95rem; }
.btn-lg { min-height: var(--btn-h-lg); padding: 0 var(--btn-px-lg); font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }

/* ---------- Étiquettes kraft, marqueurs ---------- */
.eyebrow { margin-bottom: var(--s-4); }
.tag, .price-tag {
  position: relative; display: inline-flex; align-items: center; min-height: 30px;
  background: var(--kraft) var(--grain); color: var(--ink);
  font-weight: 700; font-size: .85rem; line-height: 1; letter-spacing: .01em;
  padding: 0 14px 0 26px;
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%);
  border-radius: 0 6px 6px 0;
  transform: rotate(-4deg);
}
.tag::before, .price-tag::before {
  content: ""; position: absolute; left: 12px; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--kraft-dark);
  transform: translateY(-50%);
}
.price-tag { min-height: 34px; font-size: 1.05rem; font-weight: 800; filter: drop-shadow(0 6px 8px rgba(58, 46, 31, .18)); }

.mk { position: relative; z-index: 0; white-space: nowrap; }
.mk::before {
  content: ""; position: absolute; z-index: -1;
  left: -.1em; right: -.12em; bottom: .04em; height: .52em;
  background: var(--mk, var(--mint));
  border-radius: .14em .3em .2em .26em;
  transform: rotate(-1.6deg) skewX(-10deg);
  transform-origin: left center;
}
.js .mk::before { transform: rotate(-1.6deg) skewX(-10deg) scaleX(0); transition: transform .9s cubic-bezier(.65, 0, .35, 1) .15s; }
.js .mk.drawn::before { transform: rotate(-1.6deg) skewX(-10deg) scaleX(1); }
.mk-yellow { --mk: var(--yellow); }
.mk-pink { --mk: var(--pink); }
.mk-lavender { --mk: var(--lavender); }
.mk-paper { --mk: var(--card); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-pad); }
.sec-head { text-align: center; max-width: 860px; margin: 0 auto var(--head-gap); }
.title {
  color: var(--ink); font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
  font-size: clamp(2.1rem, 4.8vw, 3.75rem);
}
.lead { margin-top: var(--s-4); font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: var(--measure); }
.sec-head .lead { margin-inline: auto; }
.fineprint { margin-top: var(--s-6); font-size: .9rem; color: var(--ink-soft); }

/* =====================================================================
   NAV
   ===================================================================== */
.site-header { position: absolute; z-index: 20; top: 12px; left: 12px; right: 12px; }
/* Trois colonnes : les liens restent au centre exact de la page, quelle que soit la largeur du logo. */
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4);
  height: var(--nav-h); padding: 0 clamp(16px, 2.6vw, 32px); max-width: 1480px; margin: 0 auto;
}
.nav > .brand { justify-self: start; }
.nav > .nav-links { grid-column: 2; }
.nav > .nav-cta { grid-column: 3; justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; color: #fff; border-radius: 12px; }
.brand-mascot { width: 44px; height: 44px; transform: rotate(-8deg); transition: transform .4s var(--spring); }
.brand:hover .brand-mascot { transform: rotate(10deg) scale(1.08); }
.brand-word { font-weight: 800; font-size: 1.7rem; letter-spacing: -.045em; white-space: nowrap; text-shadow: 0 1px 12px rgba(20, 45, 90, .35); }
.brand-ink { color: var(--ink); }
.brand-ink .brand-word { text-shadow: none; }
.brand-ma { display: inline-block; font-family: var(--hand); font-weight: 700; font-size: 1.12em; letter-spacing: 0; color: #FFD66B; transform: rotate(-6deg) translateY(-.04em); margin-right: .06em; }
.brand-ink .brand-ma { color: var(--red); }
.nav-links { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav-links a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  text-shadow: 0 1px 10px rgba(20, 45, 90, .45); padding: var(--s-2) 2px; border-radius: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .25s ease;
}
.nav-links a:hover { background-size: 100% 2px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding: 12px; }
.hero-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: max(660px, calc(100vh - 24px));
  min-height: max(660px, calc(100svh - 24px));
  border-radius: var(--r-lg);
  background: #4479C4;
}
.sky {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 40% at 82% 74%, rgba(255, 226, 176, .75), rgba(255, 226, 176, 0) 70%),
    linear-gradient(180deg, #2C5FAA 0%, #3C73C0 26%, #5A90D6 48%, #8FBBEA 66%, #CFE0F2 78%, #F3DCC2 92%);
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1.1px, transparent 1.7px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 80%);
  mask-image: linear-gradient(180deg, transparent 35%, #000 80%);
  opacity: .35;
}
.sun {
  position: absolute; right: 6%; top: 52%; width: 36vw; height: 36vw; max-width: 520px; max-height: 520px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 236, 196, .7), rgba(255, 236, 196, 0));
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity: .6; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }

/* Calques de parallaxe : JS écrit transform sur chaque calque */
.layer { position: absolute; pointer-events: none; will-change: transform; }
.l-clouds { inset: -20px; z-index: 1; }
.l-plane { inset: 0; z-index: 2; }
.l-land { left: -36px; right: -36px; bottom: -28px; height: calc(var(--land-h) + 28px); }
.l-far { z-index: 3; } .l-mid { z-index: 4; } .l-main { z-index: 5; } .l-front { z-index: 6; }
.land { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }

.clouds { position: absolute; inset: 20px; }
.cloud { position: absolute; height: auto; overflow: visible; animation: drift 60s ease-in-out infinite alternate; }
.c1 { top: 11%; left: -3%; width: clamp(190px, 22vw, 360px); }
.c2 { top: 23%; right: -4%; width: clamp(170px, 19vw, 320px); animation-duration: 75s; animation-delay: -20s; }
.c3 { top: 47%; left: 6%; width: clamp(120px, 12vw, 220px); opacity: .9; animation-duration: 50s; animation-delay: -10s; }
.c4 { top: 52%; right: 9%; width: clamp(110px, 10vw, 190px); opacity: .85; animation-duration: 65s; animation-delay: -35s; }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(50px); } }

/* L'avion entre en scène, puis traverse le ciel en boucle */
.plane-in { position: absolute; inset: 0; animation: planeIn 2.8s cubic-bezier(.16, .8, .24, 1) .2s both; }
@keyframes planeIn { from { transform: translate(-75vw, 40px) rotate(-6deg); } to { transform: none; } }
.plane {
  position: absolute; left: 6%; top: calc(var(--nav-h) + 4px);
  width: clamp(220px, 25vw, 400px);
  animation: cruise 46s linear 3s infinite;
}
@keyframes cruise {
  0% { transform: translateX(0); }
  80% { transform: translateX(100vw); }
  80.01% { transform: translateX(calc(-6vw - 100%)); }
  100% { transform: translateX(0); }
}
.plane-bob { animation: float 4.5s ease-in-out infinite; }
.plane svg { width: 100%; height: auto; overflow: visible; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.plane .prop { transform-box: fill-box; transform-origin: center; animation: prop .16s linear infinite; }
@keyframes prop { 50% { transform: scaleY(.2); } }
.plane .banner { transform-box: fill-box; transform-origin: 100% 50%; animation: flap 1.4s ease-in-out infinite alternate; }
@keyframes flap { from { transform: skewY(-2deg) scaleY(.98); } to { transform: skewY(2deg); } }

.flag { transform-box: fill-box; transform-origin: 50% 0; animation: sway 2.8s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.walk { animation: bob 1.3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.stroll { animation: stroll var(--dur, 14s) ease-in-out infinite alternate; }
@keyframes stroll { from { transform: translateX(0); } to { transform: translateX(var(--dx, 40px)); } }
.face { transition: transform .35s var(--ease-out); }
@media (hover: none) {
  .hero .face, .mascot .face { animation: look 7s ease-in-out infinite; animation-delay: var(--look-delay, 0s); }
}
@keyframes look { 0%, 18%, 100% { transform: translate(0, 0); } 24%, 42% { transform: translate(-3px, .5px); } 50%, 68% { transform: translate(3px, -.5px); } 76% { transform: translate(0, 1px); } }
[data-pausable].is-paused *, [data-pausable].is-paused *::before, [data-pausable].is-paused *::after { animation-play-state: paused !important; }

.hero-grain {
  position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background-image: var(--grain-gray); mix-blend-mode: overlay; opacity: .3;
}
.hero-content {
  position: relative; z-index: 8; flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + clamp(44px, 7vh, 100px)) var(--gutter) var(--s-2);
}
.hero-content::before {
  content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; top: 12%; bottom: 18%;
  background: radial-gradient(closest-side, rgba(18, 42, 88, .32), rgba(18, 42, 88, 0));
  pointer-events: none;
}
.land-spacer { flex: none; height: calc(var(--land-h) * .84); }

.hero-title {
  color: #fff; font-weight: 800;
  font-size: clamp(2.4rem, min(7vw, 10vh), 6.6rem);
  line-height: .98; letter-spacing: -.032em;
  text-shadow: 0 2px 0 rgba(18, 42, 88, .16), 0 4px 28px rgba(14, 34, 76, .42);
  max-width: 15em;
}
.hero-title .line { display: block; text-wrap: balance; }
.hero-title .w { display: inline-block; animation: wordIn 1s cubic-bezier(.2, 1.35, .35, 1) both; animation-delay: calc(.25s + var(--i) * 60ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.5em) rotate(5deg) scale(.94); } to { opacity: 1; transform: none; } }
.hero-sub {
  margin-top: clamp(var(--s-4), 2.4vh, var(--s-5)); max-width: 34em;
  color: #fff; font-weight: 700; font-size: clamp(1.2rem, 1.6vw, 1.3rem); line-height: 1.4;
  text-shadow: 0 1px 14px rgba(14, 34, 76, .55);
  text-wrap: balance;
}
.hero .waitlist { margin-top: clamp(var(--s-5), 3.4vh, var(--s-6)); }
.hero-note {
  margin-top: var(--s-3); display: inline-flex; align-items: center; min-height: 32px;
  padding: 0 var(--s-4); border-radius: 999px;
  background: rgba(22, 44, 84, .5); color: #fff; font-size: .92rem; font-weight: 600; line-height: 1.3;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-sub, .hero .waitlist, .hero-note { animation: rise .9s var(--ease-out) both; }
.hero-sub { animation-delay: .85s; }
.hero .waitlist { animation-delay: .95s; }
.hero-note { animation-delay: 1.05s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

/* Chip produit : retournement de carte */
.w-chip { animation-name: chipIn !important; }
@keyframes chipIn { from { opacity: 0; transform: scale(.2) rotate(-40deg); } to { opacity: 1; transform: none; } }
.chip {
  position: relative; display: inline-block; vertical-align: -.08em;
  width: .9em; height: .9em; margin: 0 .04em;
  border-radius: .24em; background: #fff;
  box-shadow: 0 .06em .16em rgba(14, 34, 76, .35);
  transform: rotate(-6deg);
  perspective: 3em;
}
.chip-face {
  position: absolute; inset: .055em; border-radius: .19em;
  background: var(--chip); display: grid; place-items: center;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transform: rotateY(-180deg);
  transition: transform .8s var(--spring);
}
.chip-face svg { width: 82%; height: 82%; }
.chip-face.on { transform: rotateY(0); }
.chip-face.off { transform: rotateY(180deg); }
.chip-face.reset { transition: none; }

/* =====================================================================
   FORMULAIRE LISTE D'ATTENTE
   ===================================================================== */
.waitlist { width: min(100%, 580px); }
.field {
  position: relative; display: flex; align-items: center; gap: var(--s-2);
  padding: 6px; border-radius: 999px; background: #fff;
  box-shadow: 0 14px 34px -12px rgba(14, 34, 76, .45), 0 0 0 1px rgba(33, 28, 23, .06);
  transition: box-shadow .2s ease;
}
.field:focus-within { box-shadow: 0 14px 34px -12px rgba(14, 34, 76, .45), 0 0 0 3px var(--ink); }
.hero .field:focus-within { box-shadow: 0 14px 34px -12px rgba(14, 34, 76, .45), 0 0 0 3px #fff, 0 0 0 6px rgba(20, 40, 80, .55); }
.field input {
  flex: 1; min-width: 0; height: var(--btn-h); padding: 0 var(--s-2) 0 var(--s-5);
  border: 0; background: transparent; color: var(--ink); font-size: 1.05rem; outline: none;
}
.field input::placeholder { color: #8A7F72; }
.field input[aria-invalid="true"] { color: var(--coral-strong); }
.field .btn { flex: none; }
.form-status { margin-top: var(--s-3); font-size: .95rem; font-weight: 600; line-height: 1.4; }
.form-status:empty { display: none; }
.form-status.is-error { color: #B23A27; }
.form-status.is-success { color: var(--mint-strong); }
.form-status.is-info { color: var(--ink); }
.hero .form-status:not(:empty) {
  display: inline-block; padding: var(--s-2) var(--s-4); border-radius: var(--r-md);
  background: rgba(22, 44, 84, .62); color: #fff;
}
.hero .form-status.is-error { background: rgba(140, 32, 20, .78); }
.hero .form-status.is-success { background: rgba(14, 92, 74, .85); }
.form-legal { margin-top: var(--s-2); font-size: .85rem; line-height: 1.4; color: var(--ink); }
.form-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hero .form-legal { color: #fff; text-shadow: 0 1px 10px rgba(14, 34, 76, .6); }

/* =====================================================================
   PROBLÈME
   ===================================================================== */
.problem { padding-bottom: 0; }
.problem-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.problem-text .title { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.pains { margin-top: var(--s-6); display: grid; gap: var(--s-4); max-width: var(--measure); }
.pains li { display: flex; gap: var(--s-3); align-items: flex-start; }
.pains strong { color: var(--ink); }
.pain-x {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px;
  border-radius: 50%; background: var(--coral-soft); color: var(--coral-strong);
  font-weight: 800; font-size: 1.05rem; line-height: 1;
}

.mess { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / .98; margin-inline: auto; }
.notebook {
  position: absolute; left: 1%; top: 27%; width: 66%; padding: 34px 20px 26px 3.4rem;
  transform: rotate(-3deg);
  border-radius: 6px 14px 14px 6px;
  background:
    linear-gradient(90deg, transparent 2.6rem, rgba(229, 83, 60, .45) 2.6rem, rgba(229, 83, 60, .45) 2.72rem, transparent 2.72rem),
    repeating-linear-gradient(180deg, transparent 0, transparent calc(2.1rem - 1px), #CCDAEC calc(2.1rem - 1px), #CCDAEC 2.1rem) 0 1.32rem,
    var(--card);
  box-shadow: var(--shadow-lg);
  font-family: var(--hand); color: #2E3A63; font-size: 1.4rem; line-height: 2.1rem;
}
.notebook::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: -9px; height: 20px;
  background: radial-gradient(circle at 9px 10px, var(--paper-deep) 4.5px, #8C8174 5px, #8C8174 6.5px, transparent 7px) 0 0 / 26px 20px repeat-x;
}
.nb-title { font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.nb-lines li { display: flex; justify-content: space-between; gap: var(--s-3); }
.nb-lines s { text-decoration-thickness: 2px; color: #7C86A8; }
.nb-total { font-weight: 700; color: var(--coral-strong); }
.coffee {
  position: absolute; right: -18px; bottom: -22px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, rgba(146, 92, 42, .22) 57%, rgba(146, 92, 42, .12) 63%, transparent 65%);
  pointer-events: none;
}
/* Calculette de poche : boîtier crème, panneau solaire, écran LCD et touches pastel. Tailles en cqi pour garder les proportions. */
.calc { position: absolute; right: 2.5%; bottom: 3%; width: 32%; container-type: inline-size; transform: rotate(7deg); }
.calc-body {
  padding: 7cqi 7cqi 9cqi; border-radius: 13cqi;
  background: linear-gradient(165deg, #FDF7EA 0%, #EEDFC4 100%);
  box-shadow: inset 0 -2.4cqi 0 #D3BE9A, inset 0 1cqi 0 rgba(255, 255, 255, .8), var(--shadow-lg);
}
.calc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5cqi; }
.calc-brand { font-family: var(--hand); font-weight: 700; font-size: 10cqi; line-height: 1; color: var(--kraft-dark); transform: rotate(-3deg); }
.calc-solar { display: flex; gap: 1.2cqi; padding: 1.4cqi; border-radius: 2.4cqi; background: #3A322E; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.calc-solar i { width: 6cqi; height: 7.5cqi; border-radius: 1cqi; background: linear-gradient(160deg, #6A5A7A, #3B3247); }
.calc-screen {
  position: relative; margin-bottom: 7cqi; padding: 5cqi 5cqi 4cqi; border-radius: 5cqi;
  background: linear-gradient(180deg, #D3E1BA, #BFD1A2); color: #26301F;
  box-shadow: 0 0 0 2.6cqi #4A413A, inset 0 1.4cqi 2.4cqi rgba(0, 0, 0, .22);
  text-align: right; font-weight: 800; font-size: 16cqi; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.calc-ghost { position: absolute; right: 5cqi; bottom: 4cqi; opacity: .08; }
.calc-num { position: relative; }
.calc-flag { position: absolute; left: 4.6cqi; top: 3.2cqi; font-size: 6.4cqi; letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) { .calc-flag { animation: calcFlag 1.6s steps(1) infinite; } }
@keyframes calcFlag { 50% { opacity: 0; } }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3.6cqi; }
.calc-keys i {
  display: grid; place-items: center; aspect-ratio: 1.12; border-radius: 4.4cqi;
  background: #FFFDF8; color: var(--ink); font-style: normal; font-weight: 800; font-size: 8cqi; line-height: 1;
  box-shadow: inset 0 -1.4cqi 0 rgba(58, 46, 31, .16), 0 1cqi 1.6cqi rgba(58, 46, 31, .2);
}
.calc-keys .k-op { background: var(--orange); }
.calc-keys .k-c { background: var(--coral); }
.calc-keys .k-eq { background: var(--yellow); }
.calc-keys .k-zero { grid-column: span 2; aspect-ratio: auto; }
.sheet {
  position: absolute; right: 2%; top: 0; width: 46%;
  background: #fff; border-radius: 10px; overflow: hidden;
  transform: rotate(4deg); box-shadow: var(--shadow-lg);
  font-size: .78rem; color: var(--ink-soft);
}
.sheet-row { display: grid; grid-template-columns: 1.6em 1.4fr 1fr 1.25fr; }
.sheet-row span { padding: 5px 6px; border-right: 1px solid #E3E6EA; border-bottom: 1px solid #E3E6EA; white-space: nowrap; overflow: hidden; }
.sheet-head span, .sheet-row span:first-child { background: #F1F3F5; color: #8A9099; text-align: center; font-weight: 600; }
.sheet .err { color: #C0392B; font-weight: 700; }
.mess-note {
  position: absolute; left: 2%; bottom: 0; color: var(--coral-strong); font-size: 1.6rem;
  transform: rotate(-5deg); display: flex; align-items: flex-start; gap: var(--s-1);
}
.hand-arrow { width: 64px; height: 40px; margin-top: var(--s-1); }

.pivot {
  position: relative; margin-top: clamp(56px, 8vw, 96px);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
  padding: clamp(24px, 3.4vw, 40px) clamp(24px, 4vw, 56px);
  background: var(--ink); color: var(--paper); border-radius: var(--r-xl);
  font-size: clamp(1.35rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  box-shadow: var(--shadow-lg); text-wrap: balance;
}
.pivot .mk { color: var(--ink); padding: 0 .08em; }
.pivot .mk::before { bottom: -.06em; height: 1.12em; left: -.06em; right: -.06em; }
.pivot-mascot { flex: none; width: clamp(72px, 9vw, 112px); height: auto; transform: rotate(-10deg); }

/* =====================================================================
   FONCTIONNALITÉS (empilé sur mobile, scrollytelling sur desktop)
   ===================================================================== */
.feat {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.feat + .feat { margin-top: clamp(64px, 9vw, 120px); }
.feat:nth-of-type(even) .feat-text { order: 2; }
.feat-num {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--s-3); margin-bottom: var(--s-4);
  font-weight: 800; font-size: .9rem; letter-spacing: .04em; line-height: 1;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 999px;
}
.feat-title { color: var(--ink); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.feat-text > p { margin-top: var(--s-4); font-size: 1.12rem; max-width: var(--measure); }
.ticks { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.ticks li, .plan-list li { display: flex; align-items: flex-start; gap: var(--s-3); color: var(--ink); font-weight: 500; }
.ticks .picto, .plan-list .picto {
  flex: none; width: 24px; height: 24px; padding: 3px; margin-top: 1px;
  border-radius: 50%; background: var(--mint); color: var(--ink);
}

.feat-visual, .stage-bg > span {
  background:
    radial-gradient(70% 60% at 50% 45%, var(--t-soft) 40%, transparent 75%),
    radial-gradient(var(--t) 1.5px, transparent 2px) 0 0 / 15px 15px,
    var(--t-soft);
}
.feat-visual {
  position: relative; display: grid; place-items: center;
  padding: var(--s-7) var(--s-5) 96px;
  border-radius: var(--r-xl);
}
.tint-yellow { --t-soft: var(--yellow-soft); --t: #F6DE97; }
.tint-mint { --t-soft: var(--mint-soft); --t: #BDE6D9; }
.tint-lavender { --t-soft: var(--lavender-soft); --t: #DCD2FA; }
.tint-pink { --t-soft: var(--pink-soft); --t: #F7CCD8; }

.phone {
  position: relative; z-index: 1;
  width: clamp(210px, 22vw, 280px);
  padding: 10px; border-radius: 42px;
  background: linear-gradient(145deg, #3A332C, #15120F 40%);
  box-shadow: inset 0 0 0 1.5px #5A5047, 0 40px 60px -26px rgba(58, 46, 31, .55), 0 12px 24px rgba(58, 46, 31, .14);
}
.phone img { width: 100%; height: auto; aspect-ratio: 558 / 1208; object-fit: cover; border-radius: 32px; background: var(--paper-deep); }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(3deg); }
.duo { grid-template-columns: 1fr; }
.duo .phone { grid-area: 1 / 1; }
.duo .phone-back { transform: translate(30%, -5%) rotate(6deg) scale(.88); filter: saturate(.92); }
.duo .phone-front { transform: translate(-16%, 3%) rotate(-4deg); z-index: 2; }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  background: var(--card); box-shadow: var(--shadow-lg);
  font-size: .92rem; line-height: 1.3; color: var(--ink-soft);
}
.float-card strong { color: var(--ink); }
.fc-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mint-strong); box-shadow: 0 0 0 4px var(--mint); flex: none; }
.fc-sale { left: 4%; top: 30%; transform: rotate(-3deg); }
.fc-stat { right: 3%; top: 10%; flex-direction: column; align-items: flex-start; gap: 2px; transform: rotate(3deg); padding: 14px 18px; }
.fc-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.fc-big { color: var(--ink); font-weight: 800; font-size: 1.8rem; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: var(--s-2); }
.bars i { width: 10px; height: var(--h); border-radius: 3px 3px 1px 1px; background: var(--mint); }
.bars i:nth-child(3) { background: var(--mint-strong); }
.fc-alert { right: 2%; top: 16%; transform: rotate(2deg); }
.fc-bell { width: 36px; height: 36px; padding: 7px; border-radius: 12px; background: var(--coral-soft); color: var(--coral-strong); flex: none; }
.fc-bravo { left: 3%; top: 3%; transform: rotate(-4deg); font-size: 1rem; }
.fc-mini { width: 34px; height: 34px; }
.pt-a { position: absolute; z-index: 3; right: 6%; top: 8%; }
.pt-b { position: absolute; z-index: 3; left: 7%; top: 12%; transform: rotate(-8deg); }
.fv-sticker { position: absolute; z-index: 3; width: clamp(64px, 8vw, 100px); height: auto; }
.fv-s1, .fv-s3 { right: 5%; bottom: 14px; transform: rotate(10deg); }
.fv-s2 { left: 5%; bottom: 14px; transform: rotate(-8deg); }
/* Annotations manuscrites : toujours sous le téléphone, jamais dessus */
.fv-hand { position: absolute; z-index: 3; bottom: 22px; font-size: 1.5rem; color: var(--ink-soft); max-width: 60%; }
.fv-hand-1, .fv-hand-4 { left: var(--s-5); transform: rotate(-4deg); }
.fv-hand-2 { right: var(--s-5); transform: rotate(-4deg); text-align: right; }

.stage { display: none; }

@media (min-width: 1024px) {
  .scrolly { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .steps .feat { display: flex; flex-direction: column; justify-content: center; min-height: 82vh; margin: 0; }
  .steps .feat:first-child { min-height: 70vh; justify-content: flex-start; padding-top: 14vh; }
  .steps .feat:last-child { min-height: 100vh; }
  .steps .feat-visual { display: none; }
  .js .steps .feat.reveal.in:not(.is-active) { opacity: .3; }
  .js .steps .feat { transition: opacity .5s ease, translate .8s var(--ease-out); }

  .stage { display: block; position: sticky; top: max(24px, calc(50vh - 350px)); height: min(700px, calc(100vh - 48px)); }
  .stage-inner { position: relative; height: 100%; display: grid; place-items: center; }
  .stage-bg { position: absolute; inset: 0; border-radius: var(--r-xl); overflow: hidden; }
  .stage-bg > span { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
  .stage-bg > span.on { opacity: 1; }
  .stage-phone { width: clamp(240px, 20vw, 270px); transform: rotate(-2deg); }
  .stage-phone .screen { transition: opacity .6s ease, transform .7s var(--ease-out); }
  .stage-phone .screen:not(:first-child) { position: absolute; top: 10px; left: 10px; right: 10px; }
  .stage-phone .screen:not(.on) { opacity: 0; transform: translateY(18px) scale(.97); }
  .sx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
  .sx > * { position: absolute; opacity: 0; transform: translateY(14px) scale(.94); transition: opacity .45s ease, transform .6s var(--spring); }
  .sx.on > * { opacity: 1; transform: none; }
  .sx.on > :nth-child(2) { transition-delay: .08s; }
  .sx.on > :nth-child(3) { transition-delay: .16s; }
  .sx-a { left: -2%; top: 22%; }
  .sx-b { right: -2%; top: 9%; }
  .sx-m { right: 5%; bottom: 7%; width: 96px; height: auto; }
  .sx-m-l { right: auto; left: 6%; bottom: auto; top: 10%; }
  .sx-h { left: var(--s-5); bottom: 9%; max-width: 8em; font-size: 1.5rem; color: var(--ink-soft); }
  .sx[data-extras="3"] .sx-h { bottom: 2.5%; }
  .sx .price-tag.sx-b { transform: rotate(-4deg); }
  .stage-dots { position: absolute; right: -28px; top: 50%; display: grid; gap: var(--s-2); transform: translateY(-50%); }
  .stage-dots li { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: transform .3s var(--spring), background-color .3s; }
  .stage-dots li.on { background: var(--ink); transform: scale(1.4); }
}

/* =====================================================================
   ESSAIE LA CAISSE
   ===================================================================== */
.register {
  background:
    radial-gradient(rgba(255, 253, 248, .06) 1.4px, transparent 1.9px) 0 0 / 18px 18px,
    var(--night);
  color: #E9DFCF;
}
.register .title { color: var(--paper); }
.register .lead { color: #D9CDB9; }
.register .mk { color: var(--ink); }
.register .mk::before { bottom: -.04em; height: 1.04em; }
/* La caisse reprend l'écran « Caisse en direct » de l'app (src/app/market/live.tsx). */
.till {
  position: relative; max-width: 1080px; margin: 0 auto;
  background: var(--paper); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  color: var(--ink-soft);
}
.till-awning { position: relative; height: 40px; background: repeating-linear-gradient(90deg, var(--red) 0 22px, var(--card) 22px 44px); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .05); z-index: 2; }
.till-head { position: relative; z-index: 1; padding: var(--s-4) clamp(20px, 4vw, 40px) var(--s-5); background: var(--green) var(--grain); color: var(--ink); }
/* Bord festonné sous l'en-tête, comme dans l'app */
.till-head::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
  background: radial-gradient(circle at 12px 0, var(--green) 11.4px, transparent 12px) 0 0 / 24px 12px repeat-x;
}
.till-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.till-round { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; color: var(--ink); }
.till-round .picto { width: 22px; height: 22px; }
.till-live { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .65); color: var(--ink); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.till-live .live-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.till-live .live-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--green-strong); animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 50% { transform: scale(.7); opacity: .6; } }
.till-end { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; white-space: nowrap; }
.till-market { font-weight: 700; font-size: 1.05rem; color: var(--ink-soft); }
.till-revenue { margin-top: 2px; color: var(--ink); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-size: clamp(3.2rem, 7vw, 5rem); font-variant-numeric: tabular-nums; transform-origin: left bottom; }
.till-revenue.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.06) rotate(-1deg); } }
.till-stats { margin-top: var(--s-3); font-weight: 500; font-size: 1.05rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.till-goal { margin-top: var(--s-4); height: 14px; border-radius: 999px; background: rgba(33, 28, 23, .12); overflow: hidden; }
.till-goal-bar { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out); }
.till-goal-label { margin-top: var(--s-2); font-size: .9rem; font-weight: 600; color: var(--ink-soft); }

.till-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 560px; margin: calc(var(--s-5) + 12px) clamp(20px, 4vw, 40px) 0; padding: 5px; border-radius: 999px; background: var(--paper-deep); }
.till-tabs > span { padding: 11px 8px; border-radius: 999px; text-align: center; font-weight: 700; color: var(--muted); white-space: nowrap; }
.till-tabs > .on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(58, 46, 31, .08); }

.till-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-5); align-items: start; padding: var(--s-5) clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px); }
.till-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); align-content: start; }
.prod {
  position: relative; display: flex; flex-direction: column; gap: var(--s-2);
  min-height: 178px; padding: 14px; border: 0; border-radius: var(--r-lg);
  background: var(--tint); color: var(--ink); text-align: left; font: inherit; cursor: pointer;
  transition: transform .25s var(--spring), box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.prod:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(58, 46, 31, .4); }
.prod:active { transform: scale(.96); }
.prod[disabled] { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.prod-top { display: flex; align-items: flex-start; justify-content: space-between; }
.prod-ini { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; background: var(--tint2); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.prod-photo { overflow: hidden; box-shadow: inset 0 0 0 1px rgba(33, 28, 23, .06); }
.prod-photo picture, .prod-photo img { display: block; width: 100%; height: 100%; }
.prod-photo img { object-fit: cover; }
.prod-badge { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 9px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; animation: pop .35s var(--spring); }
.prod-badge[hidden] { display: none; }
.prod.hop .prod-ini { animation: hop .5s var(--spring); }
@keyframes hop { 30% { transform: translateY(-12px) rotate(-8deg) scale(1.08); } 60% { transform: translateY(0) rotate(4deg) scale(.96); } }
.prod.shake { animation: shake .4s ease; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.prod-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.2; }
.prod-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-2); margin-top: auto; }
.prod-price { min-height: 32px; font-size: 1rem; white-space: nowrap; transform: rotate(-3deg); }
.prod-stock { font-size: .88rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prod-stock.tick { animation: tick .5s var(--spring); }
@keyframes tick { 40% { transform: translateY(-4px); color: var(--coral-strong); } }
.plus1 { position: absolute; left: 50%; top: 18px; z-index: 2; font-weight: 800; color: var(--ink); pointer-events: none; animation: plus1 .8s var(--ease-out) forwards; }
@keyframes plus1 { from { opacity: 1; transform: translate(-50%, 0) scale(.8); } to { opacity: 0; transform: translate(-50%, -40px) scale(1.15); } }

/* Panier : la feuille blanche du bas de l'écran dans l'app */
.till-cart { position: sticky; top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-xl); background: #fff; box-shadow: 0 -1px 0 var(--line), 0 18px 40px -16px rgba(58, 46, 31, .28); }
.cart-lines { display: grid; gap: var(--s-3); }
.cart-lines:empty { display: none; }
.cart-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-lines li.pop { animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cl-name { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.cl-name small { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--muted); font-weight: 500; font-size: .82rem; }
.cl-name small .picto { width: 13px; height: 13px; }
.cl-total { min-width: 3.4em; text-align: right; font-weight: 800; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--paper-deep); }
.qty button {
  display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 1.15rem; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 2px rgba(58, 46, 31, .1);
}
.qty button:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.qty output { min-width: 1.6em; text-align: center; font-weight: 800; }
.cart-empty { padding: var(--s-3) 0; text-align: center; color: var(--muted); font-size: .95rem; }
.till-cart:has(.till-toast) .cart-empty { display: none; }
.cart-foot { display: grid; gap: 2px; padding-top: var(--s-3); border-top: 1.5px solid var(--line); }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.cart-row-label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.cart-change { color: var(--ink); font-size: 1rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; opacity: .35; transition: opacity .2s; }
.till.has-cart .cart-change { opacity: 1; }
.cart-total { color: var(--ink); font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cart-clear { border: 0; background: none; padding: var(--s-1) var(--s-2); color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; border-radius: 8px; }
.cart-clear:hover { color: var(--ink); }
.pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-3); }
.pay-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 66px; border: 0; border-radius: var(--r-md); color: var(--ink); font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s ease, opacity .2s ease;
}
.pay-btn .picto { width: 22px; height: 22px; }
.pay-cash { background: var(--green); }
.pay-card { background: var(--blue); }
.pay-other { background: var(--yellow); }
.pay-btn[disabled] { opacity: .45; cursor: not-allowed; }
.pay-btn:not([disabled]):hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--ink); }
.pay-btn:not([disabled]):active { transform: scale(.96); }
.till-toast { display: flex; align-items: center; gap: 8px; padding: 11px 12px; font-size: .92rem; border-radius: var(--r-md); background: var(--ink); color: var(--paper); font-weight: 600; animation: toastIn .45s var(--spring) both; }
.till-toast .picto { width: 20px; height: 20px; flex: none; color: var(--green); }
.till-toast strong { font-weight: 800; }
.till-toast > span:not(.till-toast-method) { white-space: nowrap; }
.till-toast-method { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .82rem; }
.till-toast.out { animation: toastOut .4s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

.till-recap { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: var(--s-5); background: rgba(33, 28, 23, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadeIn .4s ease both; }
.till-recap[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.recap-sticker {
  position: relative; width: min(100%, 440px); padding: 64px var(--s-6) var(--s-6); text-align: center;
  background: var(--card) var(--grain); border-radius: var(--r-xl);
  box-shadow: 0 0 0 7px #fff, 0 30px 60px -20px rgba(0, 0, 0, .55);
  transform: rotate(-2deg); animation: stickerIn .8s var(--spring) both;
}
@keyframes stickerIn { from { opacity: 0; transform: scale(.4) rotate(-18deg); } to { opacity: 1; transform: rotate(-2deg); } }
.recap-mascot { position: absolute; left: 50%; top: -58px; width: 112px; height: 112px; transform: translateX(-50%) rotate(-8deg); }
.recap-title { color: var(--ink); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.03em; line-height: 1.1; outline: none; }
.recap-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-5); }
.recap-stats > div { padding: var(--s-3) var(--s-2); border-radius: var(--r-sm); background: var(--paper); }
.recap-stats dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.recap-stats dd { margin-top: 2px; color: var(--ink); font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.recap-text { margin-top: var(--s-4); }
.recap-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-5); }
.confetti { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.cf { position: absolute; left: 0; top: 0; width: 12px; height: 16px; clip-path: polygon(0 0, 100% 0, 50% 100%); will-change: transform, opacity; }
.cf.dot { width: 9px; height: 9px; clip-path: none; border-radius: 50%; }
/* Mobile : rappel flottant du panier pendant qu'on touche les produits */
.till-fab {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: none; align-items: center; gap: var(--s-3); min-height: var(--btn-h-lg); padding: 0 var(--s-2) 0 var(--s-5);
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; cursor: pointer;
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .6);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--spring), opacity .3s ease;
}
.till-fab strong { font-weight: 800; }
.till-fab > span { white-space: nowrap; }
.till-fab-go { display: inline-flex; align-items: center; min-height: var(--btn-h-sm); padding: 0 var(--s-4); border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 800; }
@media (max-width: 1023px) { .till-fab { display: inline-flex; } }
.till-fab.show { transform: translate(-50%, 0); opacity: 1; }
.till-noscript { padding: var(--s-4) var(--s-5); text-align: center; font-weight: 600; background: var(--yellow-soft); }

/* =====================================================================
   TERRAIN
   ===================================================================== */
.terrain { background: var(--paper-deep) var(--grain); padding-top: calc(var(--section-pad) + 48px); }
.awning-band, .final-awning, .plan-awning {
  position: absolute; left: 0; right: 0; top: 0; height: 48px;
  background: repeating-linear-gradient(90deg, var(--red) 0 22px, var(--card) 22px 44px);
  box-shadow: inset 0 8px 0 rgba(0, 0, 0, .07);
}
.awning-band::after, .final-awning::after, .plan-awning::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 11px;
  background:
    radial-gradient(circle at 11px 0, var(--red) 10.6px, transparent 11.2px) 0 0 / 44px 11px repeat-x,
    radial-gradient(circle at 33px 0, var(--card) 10.6px, transparent 11.2px) 0 0 / 44px 11px repeat-x;
  filter: drop-shadow(0 3px 2px rgba(58, 46, 31, .12));
}
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.tile {
  --peel-bg: var(--paper-deep);
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.tile h3 { color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.15; margin-top: var(--s-1); }
.tile p { font-size: .98rem; }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: var(--s-5); padding-right: 84px; }
.tile-wide h3 { font-size: 1.5rem; margin: 0 0 var(--s-2); }
.tile-wide p { font-size: 1.05rem; max-width: 46ch; }
/* Sticker posé à cheval sur le coin de la carte : il ne prend pas de place dans la carte */
.tile-mascot { position: absolute; z-index: 2; top: -36px; right: 22px; width: 100px; height: auto; transform: rotate(8deg); pointer-events: none; }
.badge-premium {
  display: inline-flex; align-items: center; min-height: 20px; vertical-align: 2px; margin-left: var(--s-1);
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  background: var(--ink); color: var(--yellow); padding: 0 var(--s-2); border-radius: 999px;
}
.gloss {
  --g: var(--blue); --g2: var(--blue-strong);
  position: relative; flex: none; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 18px; overflow: hidden; color: var(--ink);
  background: linear-gradient(160deg, #fff -25%, var(--g) 42%, color-mix(in srgb, var(--g) 70%, var(--g2)) 115%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .9),
    inset 0 -6px 10px color-mix(in srgb, var(--g2) 30%, transparent),
    0 10px 18px -8px color-mix(in srgb, var(--g2) 70%, transparent),
    0 2px 4px rgba(58, 46, 31, .1);
  transition: transform .4s var(--spring);
}
.tile:hover .gloss { transform: rotate(-8deg) scale(1.08); }
.gloss::after {
  content: ""; position: absolute; left: 12%; top: 5%; width: 64%; height: 38%;
  border-radius: 50%; background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, 0));
}
.gloss .picto { position: relative; z-index: 1; width: 28px; height: 28px; }
.g-blue { --g: var(--blue); --g2: var(--blue-strong); }
.g-yellow { --g: var(--yellow); --g2: var(--yellow-strong); }
.g-mint { --g: var(--mint); --g2: var(--mint-strong); }
.g-orange { --g: var(--orange); --g2: var(--orange-strong); }
.g-pink { --g: var(--pink); --g2: var(--pink-strong); }
.g-coral { --g: var(--coral); --g2: var(--coral-strong); }
.g-lavender { --g: var(--lavender); --g2: var(--lavender-strong); }

/* Inclinaison « sticker qui se décolle » (JS règle --rx/--ry) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease-out); }
.tilt.is-tilting { transition: transform .08s linear; }
.tile::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 46px; height: 46px; border-radius: 0 0 var(--r-lg) 0;
  background: linear-gradient(315deg, var(--peel-bg) 0 47%, rgba(58, 46, 31, .16) 48%, #EDE3D1 52%, #FFFDF8 100%);
  box-shadow: -3px -3px 6px -3px rgba(58, 46, 31, .25);
  transform: scale(0); transform-origin: 100% 100%;
  transition: transform .4s var(--spring);
  pointer-events: none;
}
@media (hover: hover) { .tile:hover::after { transform: scale(1); } }

/* =====================================================================
   COMMUNAUTÉ (tickets)
   ===================================================================== */
.receipts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.receipt {
  position: relative;
  transform: rotate(var(--rot, 0deg)) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease-out);
  filter: drop-shadow(0 16px 18px rgba(58, 46, 31, .14)) drop-shadow(0 2px 3px rgba(58, 46, 31, .08));
}
.receipt.is-tilting { transition: transform .08s linear; }
.receipt:nth-child(2) { margin-top: var(--s-6); }
.receipt-slot { display: block; position: relative; z-index: 2; height: 12px; margin: 0 -10px -6px; border-radius: 999px; background: var(--ink); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .14); }
.receipt-clip { overflow: hidden; }
.receipt-paper {
  padding: var(--s-5) 22px 40px;
  background: var(--card) var(--grain);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  font-variant-numeric: tabular-nums;
}
.js .receipt-paper { transform: translateY(-101%); }
.js .receipt.printed .receipt-paper { transform: none; transition: transform 1.5s steps(16, end) var(--print-delay, 0s); }
.r-head { display: flex; align-items: center; gap: var(--s-3); }
.r-avatar { width: 48px; height: 48px; flex: none; }
.r-name { color: var(--ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.r-craft { font-size: .88rem; }
.live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 24px;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; line-height: 1;
  background: var(--mint-soft); color: #136B5B; padding: 0 10px; border-radius: 999px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-strong); animation: pulse 1.6s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 142, 121, .5); } 100% { box-shadow: 0 0 0 8px rgba(31, 142, 121, 0); } }
.r-market { margin-top: var(--s-4); text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; font-weight: 700; color: var(--ink-soft); line-height: 1.5; }
.dots { height: 4px; border: 0; margin: var(--s-4) 0; background: radial-gradient(circle, #B4A58E 1.3px, transparent 1.7px) 0 50% / 9px 4px repeat-x; }
.r-lines { display: grid; gap: var(--s-2); }
.r-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.r-lines dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.r-lines dd { color: var(--ink); font-weight: 800; text-align: right; }
.r-hidden { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--ink-soft) !important; font-weight: 700 !important; }
.r-hidden .picto { width: 16px; height: 16px; }
.r-note { font-size: 1.5rem; color: #2E3A63; transform: rotate(-2deg); }
.r-foot { margin-top: var(--s-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px var(--s-3); font-size: .82rem; font-weight: 600; }

/* =====================================================================
   TARIFS
   ===================================================================== */
.pricing { background: var(--paper-deep) var(--grain); }
.billing {
  display: flex; width: fit-content; margin: 0 auto clamp(32px, 5vw, 48px);
  padding: var(--s-1); gap: var(--s-1); border-radius: 999px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.billing-opt {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-5);
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font-weight: 700; line-height: 1; cursor: pointer; transition: background-color .25s ease, color .25s ease;
}
.billing-opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.billing-gift { display: inline-flex; align-items: center; min-height: 22px; font-size: .75rem; font-weight: 800; padding: 0 var(--s-2); border-radius: 999px; background: var(--yellow); color: var(--ink); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); max-width: 900px; margin: 0 auto; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.plan-premium { padding-top: calc(48px + clamp(28px, 3.4vw, 40px)); overflow: hidden; box-shadow: var(--shadow-lg); border-color: transparent; }
.plan-name { color: var(--ink); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; }
.plan-desc { margin-top: var(--s-1); }
.price { margin-top: var(--s-5); display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.amount { color: var(--ink); font-weight: 800; font-size: clamp(2.7rem, 5vw, 3.5rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.roll { display: inline-flex; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.roll .d { display: inline-block; animation: roll .7s cubic-bezier(.2, 1.25, .3, 1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes roll { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
.per { font-weight: 600; }
.was { position: relative; color: var(--ink-soft); font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.was::after { content: ""; position: absolute; left: -3px; right: -3px; top: 54%; height: 2px; border-radius: 2px; background: var(--coral-strong); transform-origin: left; animation: strike .5s .35s var(--ease-out) both; }
@keyframes strike { from { transform: scaleX(0); } }
.price-note { margin-top: var(--s-2); font-size: .95rem; }
.plan-list { margin: var(--s-5) 0 var(--s-6); display: grid; gap: var(--s-3); flex: 1; align-content: start; }
.plan-premium .plan-list .picto { background: var(--yellow); }
.plan-tag { position: absolute; right: var(--s-5); top: 72px; animation: ribbon .7s var(--spring) .1s both; }
@keyframes ribbon { from { opacity: 0; transform: scale(.3) rotate(-30deg); } to { opacity: 1; transform: rotate(-4deg); } }
.plans[data-period="month"] [data-for="year"], .plans[data-period="year"] [data-for="month"] { display: none; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-list { display: grid; gap: var(--s-3); }
.qa { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(58, 46, 31, .05); transition: box-shadow .2s ease; }
.qa[open] { box-shadow: var(--shadow); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; padding: var(--s-4) var(--s-5); cursor: pointer; list-style: none; border-radius: var(--r-md);
  color: var(--ink); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-icon { flex: none; width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--paper-deep); transition: transform .35s var(--spring), background-color .2s ease; }
.qa[open] .qa-icon { transform: rotate(45deg); background: var(--lavender); }
.qa-body { padding: 0 var(--s-5) var(--s-5); display: grid; gap: var(--s-3); max-width: 64ch; }
.qa[open] .qa-body { animation: rise .45s var(--ease-out); }
.qa-body a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* =====================================================================
   CTA FINAL
   ===================================================================== */
.final { padding: 12px; }
.final-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--yellow) var(--grain);
  padding: calc(48px + clamp(64px, 8vw, 104px)) var(--gutter) var(--section-pad);
}
.final-bunting { position: absolute; left: 0; top: 46px; width: 100%; height: 76px; overflow: visible; }
.final-inner { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1080px; margin: 0 auto; }
.final-visual { position: relative; display: grid; place-items: center; padding-right: clamp(40px, 6vw, 90px); }
.final-visual .phone { width: clamp(200px, 21vw, 260px); }
.final-pointer { position: absolute; right: -6%; bottom: 6%; z-index: 2; }
.final-pointer .pointer { width: clamp(120px, 13vw, 180px); height: auto; transform: rotate(-4deg); }
.final .title { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.final .lead { color: var(--ink); }
.final .waitlist { margin-top: var(--s-6); }
.final .field { box-shadow: 0 14px 30px -14px rgba(120, 80, 10, .5), 0 0 0 1px rgba(33, 28, 23, .08); }
.final .form-status { color: var(--ink); }
.final .form-status.is-error { color: #8E2A1A; }
.final .form-status.is-success { color: #0E5C4A; }
/* Preuve sociale au-dessus des formulaires : mascottes empilées et nombre d'inscrites (toutes listes confondues). */
.proof { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s-4); padding: 6px 16px 6px 6px; border-radius: 999px; font-size: .95rem; font-weight: 600; line-height: 1.25; }
.proof strong { font-weight: 800; }
.proof-faces { display: inline-flex; flex: none; }
.proof-faces svg { width: 30px; height: 30px; margin-left: -9px; padding: 3px; border-radius: 50%; background: #FFFDF8; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); overflow: visible; }
.proof-faces svg:first-child { margin-left: 0; }
.hero .proof { background: rgba(22, 44, 84, .5); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: rise .9s var(--ease-out) both; animation-delay: .9s; }
.final .proof { background: var(--paper-deep); color: var(--ink); }
.final .proof + .waitlist { margin-top: var(--s-4); }
.final-note { margin-top: var(--s-3); font-size: .95rem; font-weight: 600; color: var(--ink); }

/* =====================================================================
   FOOTER
   ===================================================================== */
/* Marché de nuit : guirlande lumineuse, liens, grand logo où les mascottes se sont installées. */
.site-footer { padding: 0 12px 12px; }
.foot-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding-top: 96px;
  background:
    radial-gradient(rgba(255, 253, 248, .06) 1.4px, transparent 1.9px) 0 0 / 18px 18px,
    radial-gradient(120% 70% at 50% 0%, #3A3027 0%, transparent 60%),
    var(--night);
  color: #D9CDB9;
}
.foot-lights { position: absolute; left: 0; top: 0; width: 100%; height: 110px; overflow: visible; }
.foot-lights .bulb circle { filter: drop-shadow(0 0 7px currentColor); }
.foot-lights .bulb { color: #FFD66B; animation: twinkle 3s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
@keyframes twinkle { 50% { opacity: .55; } }
.foot-inner { position: relative; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-6); }
.site-footer .brand-word { color: var(--paper); }
.footer-brand p { margin-top: var(--s-3); max-width: 30ch; }
.footer-brand .btn { margin-top: var(--s-5); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 22px -12px rgba(248, 212, 110, .8); }
.btn-yellow:hover { background: #FFDE84; }
.foot-soon { margin-top: var(--s-3) !important; font-size: .85rem; font-weight: 600; color: #A89A84; }
.footer-h { margin: 0 0 var(--s-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #A89A84; }
.footer-col ul { display: grid; gap: var(--s-1); }
.footer-col a, .foot-muted { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; color: var(--paper); font-weight: 600; text-decoration: none; border-radius: 6px; }
.footer-col a { background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 0 2px no-repeat; transition: background-size .25s ease, color .2s; }
.footer-col a:hover { color: #FFE7A3; background-size: 100% 2px; }
.foot-muted { color: #A89A84; }
.footer-col .picto { width: 20px; height: 20px; flex: none; }

.foot-sign { position: relative; display: flex; justify-content: center; margin-top: clamp(72px, 10vw, 136px); }
.foot-sign-in { position: relative; }
.foot-note { position: absolute; right: -2%; top: calc(-1 * clamp(64px, 8vw, 112px)); z-index: 2; font-size: clamp(1.4rem, 2.3vw, 2.1rem); color: var(--yellow); transform: rotate(-6deg); white-space: nowrap; }
.foot-word {
  position: relative; font-weight: 800; font-size: clamp(3.2rem, 10.6vw, 10.4rem); line-height: .82; letter-spacing: -.055em; white-space: nowrap;
  color: var(--paper); text-shadow: 0 0 40px rgba(255, 214, 107, .14);
}
.foot-word .brand-ma { color: #FFD66B; }
/* Les mascottes sont assises sur le haut des lettres */
.foot-crowd { position: absolute; inset: 0 0 auto; z-index: 1; height: 0; }
.foot-m { position: absolute; bottom: calc(-1 * clamp(16px, 2.3vw, 34px)); width: clamp(46px, 6.6vw, 96px); height: auto; transform-origin: 50% 100%; }
.foot-m.fm1 { left: 9%; transform: rotate(-10deg); }
.foot-m.fm2 { left: 25%; transform: rotate(6deg); }
.foot-m.fm3 { left: 41%; transform: rotate(-4deg); }
.foot-m.fm4 { left: 58%; transform: rotate(8deg); }
.foot-m.fm5 { left: 74%; transform: rotate(-6deg); }
.foot-m.fm6 { left: 89%; transform: rotate(10deg); }
@media (prefers-reduced-motion: no-preference) {
  .foot-m { animation: bob 3.6s ease-in-out infinite; }
  .foot-m.fm2 { animation-delay: -.6s; } .foot-m.fm3 { animation-delay: -1.2s; } .foot-m.fm4 { animation-delay: -1.8s; } .foot-m.fm5 { animation-delay: -2.4s; } .foot-m.fm6 { animation-delay: -3s; }
}
@keyframes bob { 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .foot-lights .bulb { animation: none; } }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); padding-block: var(--s-5) var(--s-6); border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.footer-bottom a { color: var(--ink); text-underline-offset: 3px; }
.foot-card .footer-bottom { border-top-color: rgba(255, 253, 248, .12); color: #A89A84; }
.foot-card .footer-bottom a { color: var(--paper); }
.foot-top { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4); border-radius: 999px; color: var(--paper); font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255, 253, 248, .25); transition: box-shadow .2s, transform .25s var(--spring); }
.foot-top .picto { width: 18px; height: 18px; transform: rotate(-90deg); }
.foot-top:hover { box-shadow: inset 0 0 0 1.5px var(--yellow); transform: translateY(-2px); }

/* =====================================================================
   APPARITIONS
   ===================================================================== */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .8s var(--ease-out); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* =====================================================================
   PAGES LÉGALES / 404
   ===================================================================== */
.page-top { position: relative; padding-top: 59px; }
.page-top .awning-band { height: 48px; }
.page-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-5); }
.back-link { display: inline-flex; gap: 6px; align-items: center; min-height: var(--btn-h-sm); font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 8px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.back-link .picto { width: 18px; height: 18px; transform: rotate(180deg); }
.back-link { white-space: nowrap; }
@media (max-width: 420px) { .back-more { display: none; } }
.legal {
  margin: var(--s-3) auto 80px; padding: clamp(24px, 5vw, 56px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.legal h1 { color: var(--ink); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { color: var(--ink); font-weight: 800; letter-spacing: -.02em; font-size: 1.4rem; margin: var(--s-7) 0 var(--s-3); }
.legal p, .legal ul, .legal ol, .legal table { margin-top: var(--s-3); max-width: 68ch; }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal ol { list-style: decimal; padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.legal .updated { margin-top: var(--s-3); font-size: .95rem; }
.legal .notice { margin-top: var(--s-5); padding: 14px 18px; border-radius: var(--r-sm); background: var(--yellow-soft); border: 1px dashed var(--yellow-strong); color: var(--ink); font-size: .95rem; }
.table-wrap { overflow-x: auto; margin-top: var(--s-3); }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; max-width: none; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); background: var(--paper); font-weight: 700; }
.todo { background: var(--yellow-soft); box-shadow: 0 0 0 1px var(--yellow-strong) inset; border-radius: 4px; padding: 0 4px; color: var(--ink); font-weight: 600; }

.lost { min-height: calc(100svh - 160px); display: grid; place-items: center; text-align: center; padding: var(--s-5) var(--gutter) 80px; }
.lost-mascot { width: 160px; height: auto; margin: 0 auto var(--s-5); transform: rotate(-6deg); }
.lost .title { font-size: clamp(2.2rem, 6vw, 4rem); }
.lost .lead { margin-inline: auto; }
.lost .btn { margin-top: var(--s-6); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (min-width: 1024px) {
  .hero, .final { padding: 16px; }
  .site-footer { padding: 0 16px 16px; }
  .site-header { top: 16px; left: 16px; right: 16px; }
  .hero-card { min-height: max(680px, calc(100svh - 32px)); }
}
@media (max-width: 1023px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .receipts { grid-template-columns: 1fr 1fr; }
  .receipt:nth-child(3) { grid-column: span 2; width: min(100%, 420px); justify-self: center; }
  .receipt:nth-child(2) { margin-top: 0; }
  .till-body { grid-template-columns: 1fr; }
  .till-cart { position: static; }
  .c2 { top: 9%; right: -9%; }
  .c4 { top: 58%; }
  .till-products { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .problem-grid, .feat { grid-template-columns: 1fr; }
  .feat:nth-of-type(even) .feat-text { order: 0; }
  .feat-text { max-width: 620px; }
  .final-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .final .lead { margin-inline: auto; }
  .final .waitlist { margin-inline: auto; }
  .final-visual { padding-right: 70px; order: 2; }
  .final-pointer .pointer { width: 120px; }
  .site-footer .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; --land-h: clamp(220px, 34vh, 290px); --head-gap: 40px; }
  .hero, .final { padding: 8px; }
  .site-footer { padding: 0 8px 8px; }
  .site-header { top: 8px; left: 8px; right: 8px; }
  .hero-card { border-radius: 20px; min-height: max(640px, calc(100svh - 16px)); }
  .brand { gap: 6px; }
  .brand-mascot { width: 34px; height: 34px; }
  .brand-word { font-size: 1.22rem; }
  .c1 { top: 11%; left: -24%; width: 180px; }
  .c2 { top: 15%; right: -30%; width: 160px; }
  .c3, .c4 { display: none; }
  .plane { width: 200px; top: calc(var(--nav-h) + 2px); }
  .hero-content { padding-top: calc(var(--nav-h) + 68px); }
  .sub-more { display: none; }
  .hero-title { font-size: clamp(2.3rem, 10.6vw, 3.2rem); letter-spacing: -.04em; }
  .hero-sub { font-size: 1.2rem; max-width: 18em; }
  /* Deux pilules jumelles (champ blanc détouré + bouton noir) au lieu d'une carte qui les enferme */
  .field, .final .field { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .field:focus-within, .hero .field:focus-within { box-shadow: none; }
  .field input {
    flex: none; height: var(--btn-h-lg); padding: 0 var(--s-5); border-radius: 999px; text-align: center;
    background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 10px 24px -14px rgba(14, 34, 76, .55);
    transition: box-shadow .2s ease;
  }
  .field input:focus-visible { box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px rgba(33, 28, 23, .18); }
  .hero .field input { box-shadow: 0 0 0 2px #fff, 0 12px 28px -12px rgba(14, 34, 76, .6); }
  .hero .field input:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(20, 40, 80, .45); }
  .field .btn { width: 100%; min-height: var(--btn-h-lg); }
  .hero-note { font-size: .85rem; padding: var(--s-2) var(--s-4); border-radius: var(--r-md); text-align: center; }

  /* Collage du problème : empilé, rien ne déborde ni ne se recouvre */
  .mess { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-3); align-items: start; padding: var(--s-4) var(--s-2) 0; }
  .notebook {
    position: relative; left: auto; top: auto; grid-column: 1 / -1; width: auto; transform: rotate(-1.5deg);
    font-size: 1.3rem; line-height: 1.9rem; padding: 30px var(--s-4) var(--s-5) 3rem;
    background:
      linear-gradient(90deg, transparent 2.3rem, rgba(229, 83, 60, .45) 2.3rem, rgba(229, 83, 60, .45) 2.4rem, transparent 2.4rem),
      repeating-linear-gradient(180deg, transparent 0, transparent calc(1.9rem - 1px), #CCDAEC calc(1.9rem - 1px), #CCDAEC 1.9rem) 0 1.25rem,
      var(--card);
  }
  .nb-title { font-size: 1.35rem; }
  .coffee { right: -6px; bottom: -14px; width: 90px; height: 90px; }
  .sheet { position: relative; right: auto; top: auto; width: auto; transform: rotate(-2deg); font-size: .7rem; align-self: center; }
  .sheet-row { grid-template-columns: 1.4em 1.2fr 1fr 1.3fr; }
  .calc { position: relative; right: auto; bottom: auto; width: 62%; justify-self: center; transform: rotate(5deg); }
  .mess-note { position: relative; left: auto; bottom: auto; grid-column: 1 / -1; justify-self: center; font-size: 1.45rem; transform: rotate(-3deg); }
  .hand-arrow { display: none; }

  .pivot { flex-direction: column; text-align: center; }
  .phone { width: min(62vw, 240px); padding: 8px; border-radius: 36px; }
  .phone img { border-radius: 28px; }
  .feat-visual { padding: var(--s-6) var(--s-4) 88px; }
  .float-card { font-size: .82rem; padding: 10px var(--s-3); }
  .fc-big { font-size: 1.45rem; }
  .fv-hand { font-size: 1.3rem; }
  .duo .phone { width: min(50vw, 210px); }
  .tiles, .receipts { grid-template-columns: 1fr; }
  .receipt:nth-child(3) { grid-column: auto; width: auto; }
  .tile-wide { grid-column: auto; flex-direction: column; align-items: flex-start; padding-right: var(--s-5); }
  .tile-mascot { top: -28px; right: -6px; width: 84px; }
  .plans { grid-template-columns: 1fr; }
  .billing-opt { padding: 0 var(--s-4); }
  .plan-tag { top: 66px; right: var(--s-4); }
  .till-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
  .prod { min-height: 158px; padding: var(--s-3); }
  .prod-ini { width: 48px; height: 48px; border-radius: 13px; font-size: 1.15rem; }
  .prod-name { font-size: 1rem; }
  .till-cart { padding: var(--s-4); }
  .till-end { height: 36px; padding: 0 14px; font-size: .9rem; }
  .till-round { display: none; }
  .till-live { height: 34px; font-size: .9rem; padding-right: 12px; }
  .prod-bottom { flex-wrap: wrap; row-gap: 4px; }
  .prod-price { font-size: .92rem; min-height: 30px; }
  .cart-lines li { gap: 8px; }
  .qty button { width: 30px; height: 30px; }
  .qty output { min-width: 1.3em; }
  .cl-total { min-width: 0; }
  .till-tabs > span { padding: 10px 4px; font-size: .92rem; }
  .cart-total { font-size: 2.2rem; }
  .recap-sticker { padding: 56px var(--s-5) var(--s-5); }
  .recap-stats { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
  .foot-word { font-size: 12.2vw; }
  .foot-note { top: auto; bottom: -2.4em; right: 0; font-size: 1.35rem; transform: rotate(-4deg); }
  .foot-sign { margin-bottom: 3.2rem; }
  .foot-card { padding-top: 84px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 340px) {
  .nav-cta { display: none; }
  .hero-title { font-size: 2.2rem; }
}
@media (max-height: 760px) and (min-width: 641px) {
  .hero-content { padding-top: calc(var(--nav-h) + 64px); }
  .hero-sub { font-size: 1.15rem; }
}

/* =====================================================================
   MOUVEMENT RÉDUIT : aucune animation automatique, tout reste visible
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  .js .mk::before { transform: rotate(-1.6deg) skewX(-10deg) scaleX(1); }
  .js .receipt-paper { transform: none; }
  .layer { will-change: auto; }
  .chip-face.on { transform: none; }
}

/* Sans JavaScript : le champ est masqué, un message de repli s’affiche à la place */
html:not(.js) .waitlist .field { display: none; }

/* ---------- Page « importer » ---------- */
.importer .imp-card { margin-top: var(--s-6); padding: var(--s-5); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.importer .imp-card h2 { margin-top: 0; }
.imp-form { display: grid; gap: var(--s-2); max-width: 420px; }
.imp-label { font-weight: 700; margin-top: var(--s-2); }
.imp-input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; font: inherit; color: var(--ink); }
.imp-input:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.imp-form .btn { margin-top: var(--s-3); justify-self: start; }
.imp-who { font-size: .95rem; }
.imp-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--coral-strong); text-decoration: underline; cursor: pointer; }
.imp-drop { position: relative; display: grid; gap: 6px; place-items: center; text-align: center; margin-top: var(--s-3); padding: var(--s-6) var(--s-4); border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--paper); cursor: pointer; transition: border-color .2s, background-color .2s; }
.imp-drop:hover, .imp-drop.is-over { border-color: var(--ink); background: #fff; }
.imp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.imp-drop:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.imp-drop small { color: var(--muted); }
.imp-warnings { margin: var(--s-3) 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.imp-warnings li { padding: 10px 12px; border-radius: 12px; background: #FFE8D6; font-size: .95rem; }
.imp-warnings:empty { display: none; }
.imp-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-4) 0 var(--s-2); }
.imp-list { margin: 0 0 var(--s-4); padding: 0; list-style: none; display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.imp-item label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--paper); cursor: pointer; }
.imp-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.imp-item span { display: grid; gap: 2px; min-width: 0; }
.imp-item strong { overflow-wrap: anywhere; }
.imp-item small { color: #6B6157; }
/* Les listes de l'import ne sont pas des listes de texte légal : ni puces, ni retrait. */
.importer ul.imp-list, .importer ul.imp-warnings { list-style: none; padding-left: 0; max-width: none; }
.importer ul.imp-list li + li, .importer ul.imp-warnings li + li { margin-top: 0; }

/* ---------- Sortie Android : bouton Google Play ---------- */
.store-row { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: clamp(var(--s-5), 3.4vh, var(--s-6)); }
.store-row--left { justify-content: flex-start; margin: var(--s-4) 0 0; }
.hero .store-row { animation: rise .9s var(--ease-out) both; animation-delay: .9s; }
.hero .store-row + .waitlist { margin-top: var(--s-4); }
.btn-store { font-size: 1.05rem; }
.final .btn-store { background: #FFFDF8; color: var(--ink); box-shadow: 0 10px 22px -12px rgba(33, 28, 23, .45), inset 0 0 0 1.5px rgba(33, 28, 23, .12); }
.final .btn-store:hover { background: #fff; }
@media (max-width: 880px) { .store-row--left { justify-content: center; } }
.final .btn-store.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 10px 22px -12px rgba(33, 28, 23, .6); }
.final .btn-store.btn-ink:hover { background: #3A3129; }
.foot-card .btn-sm + .btn-sm { margin-left: 6px; }
