/* ============================================================
   Coca-Cola Classic — Landing 3D + Motion
   DA : rouge Coca-Cola, canette aluminium, contour blanc, script
   Anti-IA : pas de crème+terracotta, pas de Inter+Playfair,
   pas de transition:all, pas de fade-up générique.
   ============================================================ */

:root {
  /* Palette (source : DA Coca-Cola) */
  --coke-red:        #F40009;
  --coke-red-deep:   #C4000A;
  --coke-red-text:   #C4000A;   /* accent TEXTE : contraste WCAG â‰¥4.5 sur clair */
  --coke-red-glow:   #FF2A33;
  --coke-ink:        #14110F;
  --coke-ink-soft:   #3A3431;
  --coke-cream:      #FFF8F2;   /* pas de crème IA #F4F1EA : base rosée */
  --coke-white:      #FFFFFF;
  --chrome:          #E3E8EB;
  --chrome-dark:     #9AA3A9;
  --chrome-deep:     #5C666D;
  --gold:            #D8B26A;

  /* Typographie */
  --font-script:  'Great Vibes', 'Brush Script MT', 'Segoe Script', cursive;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Ã‰chelle type (1.25) */
  --t-sm:   clamp(.8rem, .78rem + .15vw, .9rem);
  --t-base: clamp(1rem, .98rem + .2vw, 1.1rem);
  --t-lg:   clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --t-xl:   clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --t-2xl:  clamp(2.1rem, 1.7rem + 2vw, 3.4rem);
  --t-3xl:  clamp(2.8rem, 2rem + 3.5vw, 5rem);

  /* Espace (4pt) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;

  /* Motion : signature easing + 3 durées */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-in:     cubic-bezier(.55, 0, 1, .45);
  --ease-soft:   cubic-bezier(.4, 0, .2, 1);
  --dur-quick:   .14s;
  --dur-standard:.28s;
  --dur-slow:    .6s;

  --radius: 18px;
  --nav-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--coke-ink);
  background: var(--coke-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}

h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--sp-4); top: -200px; z-index: 100;
  background: var(--coke-ink); color: var(--coke-white);
  padding: var(--sp-3) var(--sp-4); border-radius: 10px;
  transition: top var(--dur-quick) var(--ease-out);
}
.skip-link:focus-visible { top: var(--sp-4); }

/* Focus visible — jamais retiré */
:focus-visible {
  outline: 3px solid var(--coke-red);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Wordmark Coca-Cola (script DA) ---------- */
.wordmark {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--coke-red);
  display: inline-block;
}
.wordmark--xl { font-size: clamp(3.5rem, 12vw, 11rem); line-height: .9; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: 0 clamp(var(--sp-4), 5vw, var(--sp-16));
  background: color-mix(in srgb, var(--coke-cream) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--coke-red) 14%, transparent);
  transition: transform var(--dur-standard) var(--ease-soft), background var(--dur-standard) var(--ease-soft);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { font-size: 1.9rem; }
.nav__links { display: flex; align-items: center; gap: clamp(var(--sp-3), 2.5vw, var(--sp-8)); }
.nav__links a:not(.nav__cta) {
  position: relative; font-weight: 500; font-size: var(--t-sm); color: var(--coke-ink-soft);
  padding: var(--sp-2) 0;
  transition: color var(--dur-quick) var(--ease-out);
}
.nav__links a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--coke-red); transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-standard) var(--ease-out);
}
.nav__links a:not(.nav__cta):hover { color: var(--coke-ink); }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  background: var(--coke-red); color: var(--coke-white);
  padding: var(--sp-3) var(--sp-4); border-radius: 999px; font-weight: 700; font-size: var(--t-sm);
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--coke-red) 60%, transparent);
  transition: transform var(--dur-quick) var(--ease-out), box-shadow var(--dur-standard) var(--ease-out), background var(--dur-quick) var(--ease-out);
}
.nav__cta:hover { transform: translateY(-2px); background: var(--coke-red-deep); box-shadow: 0 14px 32px -8px color-mix(in srgb, var(--coke-red) 70%, transparent); }

@media (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- Stage 3D ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#scene { width: 100%; height: 100%; display: block; }
.stage__glow {
  position: absolute; left: 50%; top: 55%; width: min(80vmin, 720px); height: min(80vmin, 720px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--coke-red) 12%, transparent) 0%, transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.nojs { position: absolute; inset: auto 0 50%; text-align: center; color: var(--coke-ink); }
body.no-webgl .stage__glow { opacity: .5; }

/* ---------- Scenes ---------- */
main { position: relative; z-index: 1; }
.scene {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + var(--sp-12)) clamp(var(--sp-4), 6vw, var(--sp-24)) var(--sp-24);
}
.scene__copy {
  max-width: 640px; width: 100%;
  color: var(--coke-ink);
  /* contraste garanti : panneau lisible par-dessus la scène 3D */
  background: color-mix(in srgb, var(--coke-cream) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--coke-ink) 8%, transparent);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 40px);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px -30px rgba(0,0,0,.35);
}
.scene--hero .scene__copy { max-width: 720px; }
.scene--alt .scene__copy { margin-left: auto; }
.scene--buy { align-items: flex-start; }

/* Décalage éditorial alterné (variance, pas grille IA) */
.scene--alt { justify-content: flex-end; }
.scene[data-scene="1"] .scene__copy { margin-right: 6vw; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: var(--t-sm);
  font-weight: 700; color: var(--coke-red-text);
  margin-bottom: var(--sp-4);
}
.accent { color: var(--coke-red-text); }

.hero__title { margin-bottom: var(--sp-4); }
.hero__slogan {
  font-family: var(--font-display); font-size: var(--t-xl); font-weight: 500;
  margin-bottom: var(--sp-4); color: var(--coke-ink-soft);
}
.hero__slogan em { color: var(--coke-red-text); font-style: italic; }
.hero__sub { color: var(--coke-ink-soft); max-width: 46ch; margin-bottom: var(--sp-8); }

/* ---------- CTA ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-weight: 700; font-size: var(--t-base);
  padding: var(--sp-4) var(--sp-6); border-radius: 999px;
  transition: transform var(--dur-quick) var(--ease-out),
              background var(--dur-quick) var(--ease-out),
              color var(--dur-quick) var(--ease-out),
              box-shadow var(--dur-standard) var(--ease-out),
              border-color var(--dur-quick) var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--coke-red); color: var(--coke-white);
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--coke-red) 65%, transparent);
}
.btn--primary:hover { background: var(--coke-red-deep); transform: translateY(-3px); box-shadow: 0 18px 40px -10px color-mix(in srgb, var(--coke-red) 75%, transparent); }
.btn--primary:active { transform: translateY(-1px) scale(.98); }
.btn--primary svg { transition: transform var(--dur-quick) var(--ease-out); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: transparent; color: var(--coke-ink);
  border: 1.5px solid color-mix(in srgb, var(--coke-ink) 22%, transparent);
}
.btn--ghost:hover { border-color: var(--coke-red); color: var(--coke-red); transform: translateY(-2px); }

.btn--xl { padding: var(--sp-6) var(--sp-8); font-size: var(--t-lg); }
.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: var(--t-sm); }
.btn.is-loading { opacity: .75; pointer-events: none; }

/* magnetic géré en JS via transform ; on garde une transition douce */
.btn--magnetic { transition: transform var(--dur-quick) var(--ease-out), background var(--dur-quick) var(--ease-out), box-shadow var(--dur-standard) var(--ease-out); }

/* ---------- Trust ---------- */
.trust, .reassure {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6);
  margin-top: var(--sp-8); font-size: var(--t-sm); color: var(--coke-ink-soft);
}
.trust li, .reassure li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.trust li::before, .reassure li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coke-red); flex: none;
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute; left: 50%; bottom: var(--sp-8); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  color: var(--coke-ink-soft); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue span {
  width: 22px; height: 36px; border: 2px solid color-mix(in srgb, var(--coke-ink) 25%, transparent); border-radius: 999px; position: relative;
}
.scroll-cue span::after {
  content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 999px;
  background: var(--coke-red); transform: translateX(-50%);
  animation: cue 1.6s var(--ease-soft) infinite;
}
@keyframes cue { 0%,100%{ transform: translate(-50%,0); opacity:1; } 60%{ transform: translate(-50%,10px); opacity:.3; } }

/* ---------- Stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-8); }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-display); font-size: var(--t-2xl); color: var(--coke-red-text); line-height: 1; }
.stats span { font-size: var(--t-sm); color: var(--coke-ink-soft); letter-spacing: .04em; }

/* ---------- Quote ---------- */
.quote { margin-top: var(--sp-8); padding-left: var(--sp-6); border-left: 3px solid var(--coke-red); }
.quote p { font-family: var(--font-display); font-size: var(--t-lg); font-style: italic; }
.quote cite { display: block; margin-top: var(--sp-2); font-style: normal; font-size: var(--t-sm); color: var(--coke-ink-soft); letter-spacing: .04em; }

/* ---------- Product card ---------- */
.buy { max-width: 560px; }
.product-card {
  display: flex; gap: var(--sp-4); align-items: center;
  margin: var(--sp-8) 0 var(--sp-6);
  padding: var(--sp-6);
  background: color-mix(in srgb, var(--coke-white) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--coke-ink) 10%, transparent);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.35);
}
.product-card__visual {
  width: 64px; height: 116px; flex: none; border-radius: 8px;
  background:
    linear-gradient(90deg, var(--chrome-dark) 0 8%, var(--chrome) 8% 30%, var(--coke-red) 30% 70%, var(--chrome) 70% 92%, var(--chrome-dark) 92% 100%);
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4);
}
.product-card__visual::after {
  content: 'Coca-Cola'; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-script); color: var(--coke-white); font-size: 13px;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.product-card__info { flex: 1; }
.product-card__meta { font-size: var(--t-sm); color: var(--coke-ink-soft); margin-top: var(--sp-1); }
.product-card__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-4); flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 700; color: var(--coke-red-text); }
.price small { display: block; font-family: var(--font-body); font-size: .7rem; font-weight: 400; color: var(--coke-ink-soft); letter-spacing: .04em; }

.qty { display: inline-flex; align-items: center; gap: var(--sp-2); background: color-mix(in srgb, var(--coke-ink) 5%, transparent); border-radius: 999px; padding: var(--sp-1); }
.qty__btn {
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; font-weight: 700;
  background: var(--coke-white); color: var(--coke-ink);
  transition: background var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out);
}
.qty__btn:hover { background: var(--coke-red); color: var(--coke-white); transform: scale(1.08); }
.qty__val { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }

.buy__note { min-height: 1.5em; margin-top: var(--sp-4); color: var(--coke-red); font-weight: 600; font-size: var(--t-sm); }
.reassure { margin-top: var(--sp-6); }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1;
  background: var(--coke-ink); color: var(--coke-cream);
  padding: var(--sp-24) clamp(var(--sp-4), 6vw, var(--sp-24)) var(--sp-8);
}
.footer__brand .wordmark { color: var(--coke-red); font-size: 2.4rem; }
.footer__brand p { opacity: .7; margin-top: var(--sp-1); }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-8); margin: var(--sp-12) 0 var(--sp-8); }
.footer__cols h4 { color: var(--coke-white); font-family: var(--font-body); font-size: var(--t-sm); letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.footer__cols ul { list-style: none; }
.footer__cols a { display: inline-block; padding: var(--sp-1) 0; opacity: .75; transition: opacity var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out); }
.footer__cols a:hover { opacity: 1; color: var(--coke-red-glow); }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--sp-6); font-size: var(--t-sm); opacity: .85; }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: var(--sp-3) 0; }
.footer__legal nav a { text-decoration: underline; text-underline-offset: 2px; opacity: .85; }
.footer__legal nav a:hover { opacity: 1; }
.footer__copy { opacity: .6; margin-top: var(--sp-3); }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; z-index: 60; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
  max-width: 560px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); justify-content: space-between;
  background: var(--coke-ink); color: var(--coke-cream);
  padding: var(--sp-4) var(--sp-6); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.5);
}
.cookie p { font-size: var(--t-sm); max-width: 42ch; }
.cookie__actions { display: flex; gap: var(--sp-2); }
.cookie__actions .btn--ghost { color: var(--coke-cream); border-color: rgba(255,255,255,.3); }
.cookie[hidden] { display: none; }

/* ---------- Texture : grain fin papier + film (petit effet de texture) ---------- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: 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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal (motion) ---------- */
/* Sans JS, tout est visible. GSAP anime l'opacité/transform en inline. */
.reveal { opacity: 1; transform: none; }

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-cue span::after { animation: none; }
}

/* ---------- Fallback sans WebGL ---------- */
body.no-webgl .stage #scene { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .scene { padding-top: calc(var(--nav-h) + var(--sp-8)); padding-bottom: var(--sp-16); min-height: auto; }
  .scene--alt { justify-content: flex-start; }
  .scene--alt .scene__copy, .scene[data-scene="1"] .scene__copy { margin: 0; }
  .stage { opacity: .5; }
  .stats { gap: var(--sp-6); }
  .product-card { flex-direction: column; align-items: stretch; text-align: left; }
}
/* ================= POP — MAXIMALISM ================= */
:root{--coke-cream:#FFF6E9;--coke-ink:#0A0A0A;--coke-ink-soft:#241C18;--coke-red:#F40009;--coke-red-text:#C4000A;--coke-red-deep:#A00007;--gold:#FFD400;}
body{background:
 radial-gradient(40% 50% at 12% 10%,rgba(255,212,0,.35),transparent 60%),
 radial-gradient(45% 55% at 88% 18%,rgba(255,43,176,.22),transparent 60%),
 radial-gradient(50% 60% at 80% 90%,rgba(0,245,212,.22),transparent 60%),
 radial-gradient(45% 55% at 12% 92%,rgba(255,30,60,.20),transparent 60%),
 #FFF6E9;}
.eyebrow{color:#C4000A;}.accent{color:#C4000A;}
.scene__copy{background:rgba(255,246,233,.9);border:2px solid #0A0A0A;box-shadow:8px 8px 0 #0A0A0A;}
.btn--primary{background:#F40009;color:#fff;border:2px solid #0A0A0A;box-shadow:5px 5px 0 #0A0A0A;}
.btn--primary:hover{transform:translate(-2px,-2px);box-shadow:8px 8px 0 #0A0A0A;background:#C4000A;}
.btn--ghost{border:2px solid #0A0A0A;color:#0A0A0A;}.btn--ghost:hover{background:#FFD400;}
.product-card{background:#fff;border:2px solid #0A0A0A;box-shadow:6px 6px 0 #F40009;}
.nav{border-bottom:2px solid #0A0A0A;background:rgba(255,246,233,.85);}
/* confetti-like shapes */
.scene{background-image:
 radial-gradient(#F4000922 6px,transparent 6px),radial-gradient(#FFD40044 5px,transparent 5px),radial-gradient(#00F5D422 7px,transparent 7px);
 background-size:37px 37px,53px 53px,71px 71px;background-position:0 0,13px 17px,29px 7px;}
.wordmark{text-shadow:3px 3px 0 #FFD400;}
@media (prefers-reduced-motion:no-preference){.wordmark--xl{animation:wobble 5s ease-in-out infinite;}}
@keyframes wobble{0%,100%{transform:rotate(-1.5deg);}50%{transform:rotate(1.5deg);}}

/* --- CONTRASTE WCAG : boutons blanc-sur-rouge + pulse footer (noir sur noir corrigé) --- */
/* POP : red plus profond */
.btn--primary{background:#C4000A;border-color:#0A0A0A;}
.btn--primary:hover{background:#A00007;}
.nav__cta{background:#C4000A;}
.nav__cta:hover{background:#A00007;}
.cookie__actions .btn--primary{background:#C4000A;}

