:root {
  --grape-1: #3a0ca3;
  --grape-2: #7209b7;
  --lime-1: #007f5f;
  --lime-2: #b5e600;
  --tang-1: #d90429;
  --tang-2: #ff8500;
  --berry-1: #6a040f;
  --berry-2: #ff2d95;
  --cyan-1: #0077b6;
  --cyan-2: #00f5d4;
  --cream: #fff6e9;
  --ink: #1a0b2e;
  --transition: 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--cream);
  background: var(--grape-1);
  overflow-x: hidden;
  transition: background var(--transition);
}

/* Fond dégradé qui change selon la saveur active */
body[data-active="grape"]     { background: linear-gradient(160deg, var(--grape-1), var(--grape-2)); }
body[data-active="lime"]      { background: linear-gradient(160deg, var(--lime-1), var(--lime-2)); }
body[data-active="tangerine"] { background: linear-gradient(160deg, var(--tang-1), var(--tang-2)); }
body[data-active="berry"]     { background: linear-gradient(160deg, var(--berry-1), var(--berry-2)); }
body[data-active="cyan"]      { background: linear-gradient(160deg, var(--cyan-1), var(--cyan-2)); }

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Bulles montantes */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.15));
  box-shadow: inset 0 0 8px rgba(255,255,255,0.6);
  animation: rise linear infinite;
  opacity: 0.5;
}
@keyframes rise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) scale(1.1); opacity: 0; }
}

/* Barre du haut */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw;
  mix-blend-mode: hard-light;
}
.logo {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: var(--cream);
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}
.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}
.nav a:hover { opacity: 1; transform: translateY(-2px); }

/* Sections plein écran */
.panel {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12vh 6vw;
  pointer-events: none;
}
.panel > * { pointer-events: auto; }

/* HERO */
.hero { align-items: flex-start; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 18px;
}
.headline {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 16vw, 12rem);
  line-height: 0.86;
  text-shadow: 5px 6px 0 rgba(0,0,0,0.18);
}
.pop {
  display: inline-block;
  color: var(--lime-2);
  animation: wobble 2.6s ease-in-out infinite;
  text-shadow: 5px 6px 0 rgba(0,0,0,0.25);
}
@keyframes wobble {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50%      { transform: rotate(3deg) scale(1.06); }
}
.lede {
  max-width: 30ch;
  margin-top: 28px;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.5;
  opacity: 0.92;
}
.scroll-hint {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}
.arrow { animation: bounce 1.6s infinite; font-size: 1.3rem; }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(8px);} }

/* Cartes saveurs (alignées côté droit pour laisser voir la canette) */
.flavor { align-items: flex-end; text-align: right; }
.flavor-card {
  max-width: 34ch;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 26px;
  padding: 38px 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.flavor-index {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  opacity: 0.35;
  display: block;
  line-height: 1;
}
.flavor-card h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 6px 0 14px;
}
.flavor-card p { font-size: 1.1rem; line-height: 1.5; opacity: 0.92; }
.notes {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notes li {
  position: relative;
  padding-right: 22px;
  font-size: 0.98rem;
  opacity: 0.9;
}
.notes li::after {
  content: "●";
  position: absolute;
  right: 0;
  color: var(--cream);
  opacity: 0.55;
}

/* Recette */
.fizz { align-items: center; text-align: center; }
.fizz-inner { max-width: 760px; }
.fizz h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 1;
  text-shadow: 4px 5px 0 rgba(0,0,0,0.18);
}
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 46px 0 34px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat .num {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 1;
}
.stat .lbl { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem; opacity: 0.85; margin-top: 6px; }
.fizz-text { max-width: 46ch; margin: 0 auto; font-size: 1.15rem; line-height: 1.55; opacity: 0.92; }

/* Commander */
.buy { align-items: center; text-align: center; }
.buy-inner { max-width: 620px; }
.buy h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 0.95;
  text-shadow: 4px 5px 0 rgba(0,0,0,0.18);
}
.buy p { font-size: 1.2rem; margin-top: 18px; opacity: 0.92; }
.cta {
  display: inline-block;
  margin-top: 34px;
  padding: 18px 40px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 10px 0 rgba(0,0,0,0.22);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 13px 0 rgba(0,0,0,0.22); }
.cta:active { transform: translateY(4px); box-shadow: 0 4px 0 rgba(0,0,0,0.22); }
.fineprint { margin-top: 30px; font-size: 0.82rem; opacity: 0.6; }

/* Focus visible pour l'accessibilité */
a:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
  border-radius: 6px;
}

@media (max-width: 720px) {
  .nav { display: none; }
  .flavor { align-items: center; text-align: center; }
  .flavor-card { max-width: 90%; }
  .headline { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .pop, .arrow, .bubble { animation: none !important; }
  html { scroll-behavior: auto; }
}
