@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;1,9..40,400&display=swap');

/* ── Propriétés animables (flavor modal) ── */
@property --flavor {
  syntax: '<color>';
  inherits: true;
  initial-value: #660F0F;
}

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #660F0F;
}

:root {
  transition: --flavor 0.6s ease;

  /* ── Tokens DA chrome SVG ── */
  --bg:         #000000;
  --cyan:       #00D3FF;   /* accents structurels : liserés, glows — JAMAIS sur du texte */
  --steel-text: #cfd6da;   /* texte courant gris clair */
  --steel-dim:  #76858d;   /* texte secondaire gris atténué */

  /* ── Couleurs fonctionnelles ── */
  --surface:    #d8dadd;   /* fond boîte claire (detail-box--light) */
  --accent:     #00D3FF;   /* alias page-level pour borders/glows ; scoped sur #detail-panel par JS */

  /* ── Typographie ── */
  --font-heading: 'Syne', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ===========================
   CHROME SVG — utilitaire .chrome-bg
   Injecté par chrome.js dans .chrome-surface et .btn
   =========================== */

/* SVG conteneur inséré comme premier enfant.
   z-index: -1 dans un stacking context isolé → peinture avant le contenu textuel,
   qui se retrouve naturellement au-dessus en tant que contenu inline (étape 5 du modèle de peinture). */
.chrome-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  display: block;
  overflow: visible;
}

/* Filet blanc qui balaie : groupe SVG animé par CSS */
@keyframes blade-sweep {
  from { transform: skewX(-14deg) translateX(-120%); }
  18%  { transform: skewX(-14deg) translateX(220%);  }
  to   { transform: skewX(-14deg) translateX(220%);  }
}

.chrome-bg .blade-g {
  transform-box: fill-box;
  transform-origin: center center;
  animation: blade-sweep 5.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .chrome-bg .blade-g { display: none; }
}

/* Classe utilitaire : assure position + overflow avant injection SVG */
.chrome-surface {
  position: relative;
  overflow: hidden;
}

/* Liseré SVG pentagone injecté par mountNavBorder() dans navbar.js
   z-index 0 : au-dessus du métal (.chrome-bg à z-index:-1), sous le texte (z-index:1) */
.nav-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
  overflow: visible;
}

/* Texte gradient métal (chrome gris, sans cyan) + shimmer animé */
@keyframes holo-shimmer {
  from { background-position: 200% center; }
  to   { background-position:   0% center; }
}

/* Gradient acier animé — partagé par tous les titres chrome */
.holo-text,
.section-label,
.drinks-reduced__title,
.drinks-reduced__name,
#detail-title {
  background: linear-gradient(
    90deg,
    #aeb6bb  0%,
    #6c7378 25%,
    #ffffff 50%,
    #6c7378 75%,
    #aeb6bb 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 211, 255, 0.25));
  animation: holo-shimmer 4s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .holo-text,
  .section-label,
  .drinks-reduced__title,
  .drinks-reduced__name,
  #detail-title {
    animation: none;
    background-position: 0% center;
    filter: none;
  }
}

/* Halo cyan triple couche (box-shadow) pour éléments rectangulaires */
.accent-glow {
  box-shadow:
    0 0  8px rgba(0, 211, 255, 0.60),
    0 0 24px rgba(0, 211, 255, 0.30),
    0 0 48px rgba(0, 211, 255, 0.10);
}

/* Panneau / card noir translucide : fond vitreux + liseré + glow cyan */
.chrome-glass {
  background: rgba(10, 10, 11, 0.80);
  border: 1px solid rgba(90, 96, 101, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 0.5px rgba(0, 211, 255, 0.22),
    0 0 20px rgba(0, 211, 255, 0.07),
    0 4px 32px rgba(0, 0, 0, 0.70);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ── Fond fluide bleu (LiquidEther) — masqué sur écrans tactiles ── */
@media (pointer: coarse) {
  #liquid-ether-bg,
  #liquid-ether-detail,
  #liquid-ether-sucre { display: none; }
}

#liquid-ether-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0.75;
}

#liquid-ether-bg canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* #app n'a pas de z-index : pas de stacking context global.
   Chaque section déclare son propre z-index dans le root context. */
#app {
  position: relative;
}

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

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--steel-text);
  background-color: var(--bg);
  overscroll-behavior: none;
}

/* Base headings — gris acier ; les classes holo-text/section-label etc. overrident color avec transparent */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--steel-text);
}

body {
  padding-top: 0;
  overflow-x: hidden;
  overscroll-behavior: none;
  background-color: var(--bg);
}

/* ===========================
   AMBIANCE FOND GLOBAL
   Glow radial cyan diffus centre-haut + scanlines fines
   =========================== */

/* Glow radial très diffus — placé avant les scanlines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(0, 211, 255, 0.055) 0%, transparent 70%),
    repeating-linear-gradient(
      180deg,
      transparent          0px,
      transparent          3px,
      rgba(0, 0, 0, 0.07)  3px,
      rgba(0, 0, 0, 0.07)  4px
    );
}

@keyframes glitch-rgb {
  0%, 91%, 94%, 100% {
    opacity: 0;
    transform: none;
  }
  91.4% { opacity: 1;   transform: translateX(2px); }
  91.8% { opacity: 1;   transform: translateX(-3px) skewX(-0.4deg); }
  92.2% { opacity: 0.8; transform: translateX(1px); }
  92.6% { opacity: 0;   transform: none; }
  93.1% { opacity: 0.6; transform: translateX(-1px) skewX(0.2deg); }
  93.6% { opacity: 0;   transform: none; }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: rgba(0, 211, 255, 0.06);
  mix-blend-mode: screen;
  opacity: 0;
  animation: glitch-rgb 14s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

/* ===========================
   NAVBAR — Pentagone inversé chrome SVG
   =========================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 2.5rem;

  border-radius: 10px;
  overflow: hidden;

  /* Fond métallique CSS — même gradient que .btn */
  background: linear-gradient(180deg, #d0d3d6 0%, #141619 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  /* Liseré cyan + glow en box-shadow (rectangle, pas besoin de drop-shadow) */
  border: 1px solid rgba(0, 211, 255, 0.60);
  box-shadow:
    0 0  6px rgba(0, 211, 255, 0.40),
    0 0 18px rgba(0, 211, 255, 0.18),
    0 4px 20px rgba(0, 0, 0, 0.70);

  transition:
    top        0.45s cubic-bezier(0.4, 0, 0.2, 1),
    left       0.45s cubic-bezier(0.4, 0, 0.2, 1),
    right      0.45s cubic-bezier(0.4, 0, 0.2, 1),
    height     0.45s cubic-bezier(0.4, 0, 0.2, 1),
    padding    0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled : navbar flottante — même forme rectangle arrondi, glow intensifié */
.navbar.is-scrolled {
  top: 12px;
  left: 16px;
  right: 16px;
  height: 52px;
  padding: 0 1.5rem;
  box-shadow:
    0 0  8px rgba(0, 211, 255, 0.55),
    0 0 24px rgba(0, 211, 255, 0.25),
    0 4px 24px rgba(0, 0, 0, 0.75);
}

/* Blade sweep CSS (remplace le SVG blade de chrome.js) */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, #fff0 0%, #fff4 30%, #fff6 40%, #fff0 100%);
  animation: blade-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .navbar::before { display: none; }
}

/* Logo : blanc + glow cyan subtil */
.nav-logo {
  text-decoration: none;
  color: var(--steel-text);
  position: relative;
  z-index: 1;
}

.nav-logo-img {
  height: 1.5rem;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(0, 211, 255, 0.35));
  transition: filter 0.3s ease;
}

.nav-logo-img:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 211, 255, 0.65));
}

@media (prefers-reduced-motion: reduce) {
  .nav-logo-img { filter: brightness(0) invert(1); }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: relative;
  z-index: 1;
}

.nav-links a {
  text-decoration: none;
  color: rgba(18, 22, 26, 0.80);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

/* Hover/actif : presque noir, reflet blanc plus net */
.nav-links a:hover,
.nav-links a.is-active {
  color: rgba(8, 10, 12, 0.95);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.70);
}

@media (prefers-reduced-motion: reduce) {
  .navbar { transition: none; box-shadow: none; border-color: rgba(0, 211, 255, 0.40); }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1.25rem; }
  .navbar.is-scrolled { left: 10px; right: 10px; padding: 0 1rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.8rem; }
}

/* Navbar transparente (état initial ou page sans shrink) */
.navbar--transparent {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.navbar--transparent::before { display: none; }

/* Texte blanc sur navbar transparente (fond toujours sombre dans ce projet) */
.navbar--transparent .nav-links a {
  color: rgba(255, 255, 255, 0.70);
}
.navbar--transparent .nav-links a:hover,
.navbar--transparent .nav-links a.is-active {
  color: #fff;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-dim);
  opacity: 0.5;
  line-height: 1.9;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}

.hero__placeholder {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-text);
  opacity: 0.18;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ===========================
   HERO CTA
   =========================== */
.hero-cta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2.5rem 2rem;
}

.hero-cta .btn {
  flex: 1 1 200px;
  max-width: 260px;
  justify-content: center;
}

@media (max-width: 520px) {
  .hero-cta .btn {
    flex: 0 0 min(280px, 100%);
    max-width: none;
  }
}

/* ===========================
   BOUTONS — Dégradé CSS métallique + shimmer
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;

  /* Fond métallique CSS (gradient acier clair → sombre) */
  background: linear-gradient(180deg, #d0d3d6 0%, #141619 100%);
  border: 1px solid rgba(210, 215, 220, 0.40);
  box-shadow:
    inset 0 0 0.1em 0 #ccc,
    0 0.3em 0.1em -0.2em #aaa,
    0 0.3em 0 0 #333,
    0 0.4em 0 0.1em rgba(0, 0, 0, 0.25),
    -0.4em 0.4em 0.2em 0 rgba(0, 0, 0, 0.65);

  color: var(--steel-text);
  text-shadow: 0 -2px 1px rgba(0, 0, 0, 0.25), 0 2px 1px rgba(255, 255, 255, 0.25);
  --shimmer-clr: #e8ecef;

  transition: translate 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* Contenu au-dessus du fond */
.btn > * {
  position: relative;
  z-index: 2;
}

/* Sweep blanc (::before) */
.btn::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #fff0 0%, #fff4 30%, #fff6 40%, #fff0 100%);
  transform: skewX(-32deg);
  translate: 2em;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.btn--outline {
  border-color: rgba(210, 215, 220, 0.70);
  box-shadow:
    inset 0 0 0.1em 0 #ccc,
    0 0.3em 0.1em -0.2em #aaa,
    0 0.3em 0 0 #333,
    0 0.4em 0 0.1em rgba(0, 0, 0, 0.25),
    -0.4em 0.4em 0.2em 0 rgba(0, 0, 0, 0.65);
  color: var(--steel-text);
}

/* Hover : s'enfonce + gradient plus clair + shimmer */
.btn:hover {
  translate: 0 0.3em;
  color: var(--steel-text);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  background: linear-gradient(-182deg, #fff 0%, #aaa 16%, #555 36%, #777 70%, #555 84%);
  box-shadow:
    inset 0 0 0.1em 0 #ccc,
    0 0em 0.1em -0.2em #aaa,
    0 0em 0 0 #333,
    0 0.1em 0 0.1em rgba(0, 0, 0, 0.25),
    -0.1em 0 0.2em 0 rgba(0, 0, 0, 0.65);
}

.btn:hover::before {
  width: 2em;
  transform: skewX(0deg);
  translate: -3em;
  opacity: 0;
}

.btn:hover .btn-shimmer { opacity: 1; }

.btn--outline:hover {
  color: var(--steel-text);
  border-color: rgba(230, 232, 235, 0.90);
}

/* Active : métal enfoncé */
.btn:active {
  translate: 1px 1px;
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(0, 0, 0, 0.40),
    0 1px 4px rgba(0, 0, 0, 0.50);
}

.btn:focus-visible {
  outline: 2px solid rgba(210, 215, 220, 0.80);
  outline-offset: 3px;
}

/* ── Shimmer tournant (3 paires de points en orbite) ── */
.btn-shimmer {
  position: absolute;
  left: 0; right: 0; top: 12%;
  z-index: 3;
  margin: auto;
  transition: opacity 0.2s ease;
  --shimmer-size: 3em;
  --shimmer-clr: #e8ecef;
  opacity: 0;
  pointer-events: none;
}

.btn-shimmer > div,
.btn-shimmer > div::before {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  margin: auto;
  z-index: 100;
}

.btn-shimmer > div {
  --ani-speed: 8s;
  width: calc(2 * var(--shimmer-size));
  height: calc(2 * var(--shimmer-size));
  border: 1px solid transparent;
  animation: flicker-spin var(--ani-speed) linear infinite;
}

.btn-shimmer > div:nth-child(2) { animation-delay: calc(-1 * var(--ani-speed) / 3); }
.btn-shimmer > div:nth-child(3) { animation-delay: calc(-2 * var(--ani-speed) / 3); }

.btn-shimmer > div::before {
  content: "";
  width: calc(var(--shimmer-size) / 4);
  height: calc(var(--shimmer-size) / 4);
  background: var(--shimmer-clr);
  filter: blur(4px);
  animation: flicker-spin calc(var(--ani-speed) / 2) linear reverse infinite;
}

@keyframes flicker-spin {
  0%   { border-image: radial-gradient(var(--shimmer-clr) 69%, #0000 70%) 2%/45%; rotate: 0deg; }
  50%  { border-image: radial-gradient(var(--shimmer-clr) 69%, #0000 70%) 0%/42%; }
  100% { border-image: radial-gradient(var(--shimmer-clr) 69%, #0000 70%) 2%/45%; rotate: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; translate: none; }
  .btn::before, .btn-shimmer { display: none; }
}

/* ===========================
   SECTION PRÉSENTATION
   =========================== */
.section-label {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  /* gradient + animation hérités du bloc partagé .holo-text / .section-label */
}

.section-presentation {
  padding: 6rem 2rem 2rem;
}

.pres__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

/* --- Colonne vidéo --- */
.pres__logo-frame {
  border: 1px solid rgba(0, 211, 255, 0.25);
  border-radius: 16px;
  background: rgba(0, 211, 255, 0.04);
  box-shadow: 0 0 0 0.5px rgba(0, 211, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  aspect-ratio: 1;
}

.pres__video-box {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  overflow: visible;
  transform: scale(1);
  transform-origin: center center;
}

.pres__video-box::before {
  display: none;
}

.pres__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  z-index: 1;
}

/* --- Colonne texte + CTA --- */
.pres__text-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  justify-content: center;
}

.pres__sucre-btn {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 1.5rem 3rem;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .section-presentation { padding: 4rem 1.25rem; }
  .pres__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .pres__logo-frame { max-width: 260px; margin: 0 auto; }
  .pres__sucre-btn {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    margin-top: -0.5rem;
  }
}

/* ===========================
   SCROLL-VIDÉO ACCUEIL
   =========================== */
.section-home-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hv-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #34363a;
  will-change: transform, border-radius;
}

#home-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
}

/* Overlay : logo animé + texte par-dessus la vidéo et le liquid ether */
.hv-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  pointer-events: none;
}

.hv-overlay > * {
  pointer-events: auto;
}


.hv-overlay .section-label {
  margin-bottom: 2.5rem;
}

.home-end-cta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 5rem 2rem 4rem;
}

@media (max-width: 768px) {
  .home-end-cta { padding: 3.5rem 2rem 3rem; }
}

/* ===========================
   LENIS CLASSES
   =========================== */
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ===========================
   SCROLL-VIDÉO BOISSONS
   =========================== */
#drinks-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  overflow: hidden;
}

#drinks-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, var(--flavor) 0%, transparent 65%);
  opacity: 0.28;
}

#drinks-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  z-index: 1;
}

#drinks-spacer {
  height: 500vh;
  pointer-events: none;
}

/* ===========================
   BOUTON VOIR (boissons)
   =========================== */
#voir-bar {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

@supports (bottom: max(1px, env(safe-area-inset-bottom))) {
  #voir-bar {
    bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom)));
  }
}

#voir-flavor-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-text);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  min-height: 1em;
}

#voir-btn {
  box-shadow:
    inset 0  1px 0   rgba(255, 255, 255, 0.55),
    inset 0 -1px 0   rgba(0, 0, 0, 0.30),
    0 4px 20px rgba(0, 0, 0, 0.80),
    0 0 10px var(--flavor);
  min-width: 9rem;
}

#voir-btn:hover {
  box-shadow:
    inset 0  1px 0   rgba(255, 255, 255, 0.70),
    inset 0 -1px 0   rgba(0, 0, 0, 0.15),
    0 6px 24px rgba(0, 0, 0, 0.80),
    0 0 10px var(--flavor);
}

#voir-btn:active {
  box-shadow:
    inset 0  3px  8px rgba(0, 0, 0, 0.60),
    inset 0  1px  0   rgba(0, 0, 0, 0.40),
    0 1px 4px rgba(0, 0, 0, 0.50);
}

/* ===========================
   SLIDER SAVEURS — Unique, 5 positions
   =========================== */
#flavor-nav {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
}

.flavor-slider {
  border: 2px solid rgba(240, 235, 235, 0.25);
  border-radius: 130px;
  padding: 12px 12px;
  background: rgba(20, 22, 25, 0.8);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flavor-slider__track {
  position: relative;
  --track-h: 220px;
  --knob-sz: 35px;
  width: 16px;
  height: var(--track-h);
  background: #2a2f34;
  border-radius: 80px;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.3);
}

.flavor-slider__handle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: var(--knob-sz);
  height: var(--knob-sz);
  top: calc(var(--tick-frac, 0) * (var(--track-h) - var(--knob-sz)));
  border: 1px solid #e5e5e5;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(200, 200, 200, 0.2) 0%, rgba(200, 200, 200, 0.2) 2%,
      transparent 2%, transparent 3%,
      rgba(200, 200, 200, 0.2) 3%, transparent 3%),
    conic-gradient(white 0%, silver 10%, white 35%, silver 45%, white 60%, silver 70%, white 80%, silver 95%, white 100%);
  border-radius: 50%;
  box-shadow: 3px 5px 10px 0 rgba(0, 0, 0, 0.4);
  transition: top 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

/* Zones cliquables positionnées sur chaque stop */
.flavor-tick {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: var(--knob-sz);
  height: var(--knob-sz);
  top: calc(var(--tick-frac) * (var(--track-h) - var(--knob-sz)));
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Petit point indicateur de position */
.flavor-tick::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  transition: background 0.3s ease;
}

.flavor-tick.is-active::after {
  background: var(--flavor);
}

/* Label à gauche au survol */
.flavor-tick__label {
  position: absolute;
  right: calc(100% + 14px);
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-text);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.flavor-tick:hover .flavor-tick__label,
.flavor-tick.is-active .flavor-tick__label {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  #flavor-nav { right: 0.5rem; }
  .flavor-slider { padding: 8px 10px; }
  .flavor-slider__track { --track-h: 160px; --knob-sz: 26px; width: 12px; }
  .flavor-tick__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .flavor-slider__handle { transition: none; }
  .flavor-tick::after { transition: none; }
}

/* ===========================
   PANNEAU DÉTAILS
   =========================== */
#detail-panel,
#sucre-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent) 50%, #000000) 0%,
    color-mix(in srgb, var(--accent) 20%, #000000) 100%);
  transition: --accent 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
}

#sucre-panel {
  --accent: #00D3FF;
  --accent-text: #001a2e;
}

#liquid-ether-detail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.6;
}
#liquid-ether-detail canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

#detail-content {
  position: relative;
  z-index: 1;
  width: min(1020px, 94vw);
  height: calc(100vh - 3rem);
  max-height: 820px;
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  /* fond et liseré fournis par .chrome-glass ; overrides spécifiques ci-dessous */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 0.5px rgba(0, 211, 255, 0.30),
    0 0 32px rgba(0, 211, 255, 0.10),
    0 8px 48px rgba(0, 0, 0, 0.80);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

#detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

#detail-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #fff;
  -webkit-text-fill-color: #fff;
  filter: none;
  animation: none;
}

#detail-close {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

#detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
  flex: 1;
  min-height: 0;
}

#detail-video-wrap {
  position: relative;
  overflow: hidden;
}

#detail-spin-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Loader affiché pendant le chargement de la séquence */
.spin-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.spin-loading::after {
  content: '';
  width: 2em;
  height: 2em;
  border: 2px solid rgba(154, 157, 161, 0.20);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin-rotate 0.8s linear infinite;
}
@keyframes spin-rotate {
  to { rotate: 1turn; }
}

.spin-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--steel-text);
  opacity: 0.4;
  font-size: 1.25rem;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 2;
  -webkit-user-select: none;
  user-select: none;
}
.spin-hint.is-hidden { opacity: 0; }

#detail-boxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
}

.detail-box {
  background: var(--accent);
  color: var(--accent-text);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  box-shadow:
    0 0 0 0.5px rgba(0, 211, 255, 0.15),
    0 3px 12px rgba(0, 0, 0, 0.50);
  padding: 1rem 1.25rem 1.1rem;
  flex-shrink: 0;
}

.detail-box--light {
  background: var(--surface);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow:
    0 0 0 0.5px rgba(0, 211, 255, 0.25),
    0 3px 12px rgba(0, 0, 0, 0.40);
}

.detail-box__label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.45rem;
}

.detail-box--light .detail-box__label { opacity: 0.45; }

.detail-box__text {
  font-size: 0.875rem;
  line-height: 1.65;
}

#detail-gout {
  color: #fff;
}

/* Boutons dans le panneau */
#detail-content .btn {
  box-shadow:
    inset 0  1px 0   rgba(255, 255, 255, 0.55),
    inset 0 -1px 0   rgba(0, 0, 0, 0.25),
    0 3px 10px rgba(0, 0, 0, 0.40);
}

#detail-content .btn:hover {
  box-shadow:
    inset 0  1px 0   rgba(255, 255, 255, 0.70),
    inset 0 -1px 0   rgba(0, 0, 0, 0.15),
    0 5px 16px rgba(0, 0, 0, 0.45);
}

#detail-content .btn:active {
  box-shadow:
    inset 0  3px  8px rgba(0, 0, 0, 0.60),
    inset 0  1px  0   rgba(0, 0, 0, 0.40),
    0 1px 4px rgba(0, 0, 0, 0.30);
}

#detail-fermer,
#sucre-fermer { border-color: var(--accent); }

#detail-content .btn:focus-visible,
#sucre-content .btn:focus-visible { outline-color: rgba(210, 215, 220, 0.80); }

#detail-actions,
#sucre-actions {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

/* ===========================
   PANNEAU "0 SUCRE" (accueil)
   =========================== */
#sucre-content {
  position: relative;
  z-index: 1;
  width: min(820px, 94vw);
  height: calc(100vh - 3rem);
  max-height: 640px;
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 0.5px rgba(0, 211, 255, 0.30),
    0 0 32px rgba(0, 211, 255, 0.10),
    0 8px 48px rgba(0, 0, 0, 0.80);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

#sucre-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

#sucre-header .section-label {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

#sucre-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
  overflow-y: auto;
}

#sucre-body p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.8;
  color: var(--steel-text);
}

#liquid-ether-sucre {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.6;
}
#liquid-ether-sucre canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 680px) {
  #sucre-panel {
    padding: 0;
    align-items: flex-end;
  }
  #sucre-content {
    width: 100%;
    height: 88vh;
    height: 88svh;
    max-height: none;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

/* ===========================
   LOADER PAGE (partagé)
   =========================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.5s ease;
}

.page-loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.page-loader__logo {
  width: min(200px, 42vw);
  height: auto;
  display: block;
  max-width: none;
  filter: brightness(0) invert(1);
  animation: loader-pulse 1.8s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__logo { animation: none; }
}

.page-loader__track {
  width: min(260px, 58vw);
  height: 2px;
  background: rgba(154, 157, 161, 0.14);
  border-radius: 2px;
  overflow: hidden;
}

.page-loader__bar {
  width: 0%;
  height: 100%;
  background: var(--steel-text);
  border-radius: 2px;
  transition: width 0.25s ease;
}

/* ===========================
   FALLBACK REDUCED-MOTION (boissons)
   =========================== */
#drinks-reduced {
  padding: 5rem 2rem 4rem;
  max-width: 960px;
  margin: 0 auto;
}

.drinks-reduced__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
  /* gradient + animation hérités du bloc partagé .drinks-reduced__title */
}

.drinks-reduced__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.drinks-reduced__card {
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  /* fond, liseré, glow et blur fournis par .chrome-glass (ajouté via JS) */
}

.drinks-reduced__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  /* gradient + animation hérités du bloc partagé .drinks-reduced__name */
}

@media (max-width: 480px) {
  #drinks-reduced { padding: 3.5rem 1.25rem 3rem; }
  .drinks-reduced__grid { grid-template-columns: 1fr; }
}

/* ===========================
   GRAIN OVERLAY
   =========================== */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .grain-overlay { opacity: .04; }
}

/* ── Mobile : bottom-sheet ── */
@media (max-width: 680px) {
  #detail-panel {
    padding: 0;
    align-items: flex-end;
  }

  #detail-content {
    width: 100%;
    height: 92vh;
    height: 92svh;
    max-height: none;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.25rem 1.25rem;
    overflow: hidden;
    gap: 1rem;
  }

  #detail-layout {
    grid-template-columns: 1fr;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  #detail-video-wrap {
    flex: 0 0 auto;
    height: 38svh;
    min-height: 180px;
    aspect-ratio: unset;
  }

  #detail-boxes {
    display: flex;
    flex-shrink: 0;
  }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 680px) {
    #detail-content {
      padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }
  }
}
