/* ==========================================================================
   Distillerie de Lyon — Accueil
   ========================================================================== */

:root {
  --navy: #23305d;
  --red: #e10e19;
  --yellow: #f2c230;
  --paper: #fbf7ef;
  --sand: #f4ebda;
  --ink: #141a33;

  --f-display: "Bowlby One", Impact, sans-serif;
  --f-script: "Pacifico", cursive;
  --f-body: "Poppins", system-ui, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5.5vw, 80px);
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------- Typo ---------- */
.script { font-family: var(--f-script); font-weight: 400;  }

.overline {
  display: inline-flex;  gap: 10px;
  font-weight: 700;  letter-spacing: .12em; text-transform: uppercase;
}
.overline::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none;
}
.overline--light { color: var(--paper); }

.h2 {
  font-family: var(--f-display); font-weight: 400;
   line-height: .96;
  margin-top: 14px;
}
.h2--md {  line-height: 1; }
.h2--light { color: var(--paper); }

.lead {  line-height: 1.6; color: var(--ink); max-width: 560px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
   border-radius: 999px;
  font-weight: 700;  letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}

.btn--primary { background: var(--red); color: #fff; box-shadow: 4px 4px 0 var(--navy); }
.btn--inverse { background: var(--paper); color: var(--navy); box-shadow: 4px 4px 0 var(--red); }
.btn--primary:hover, .btn--inverse:hover { transform: translate(-2px, -2px); }
.btn--primary:hover { box-shadow: 6px 6px 0 var(--navy); }
.btn--inverse:hover { box-shadow: 6px 6px 0 var(--red); }
.btn:active {  box-shadow: 1px 1px 0 var(--navy); }

.btn--outline { border: 2px solid var(--navy); color: var(--navy);  }
.btn--outline:hover { background: var(--navy); color: var(--paper); }

/* ---------- Pastille ---------- */
.pastille {
    border-radius: 50%;

  display: grid; place-items: center; text-align: center;
  font-family: var(--f-display);  line-height: .95;
  rotate: -12deg;
}

/* ---------- Damier ---------- */
.damier {
  height: 48px;
  background-color: var(--paper);
  background-image:
    conic-gradient(var(--red) 25%, transparent 0 50%, var(--red) 0 75%, transparent 0);
  background-size: 48px 48px;
  animation: damier 12s linear infinite;
}
@keyframes damier { to { background-position: 48px 0; } }

/* ==========================================================================
   01 — Header
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--navy);
  transition: transform .4s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header__logo {   transition: transform .8s var(--ease); }
.header__brand:hover .header__logo { transform: rotate(360deg); }
.header__name { font-family: var(--f-display);  line-height: .95; }

.nav { display: flex;  margin: 0 auto; }
.nav__link { position: relative; text-decoration: none; font-weight: 500;  }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { font-weight: 700; }
.nav__link.is-active::after { transform: scaleX(1); height: 1px; }

.cart {
  display: inline-flex; align-items: center; gap: 10px;
   border-radius: 999px;
  background: var(--navy); color: var(--paper); text-decoration: none;
  font-weight: 700;  letter-spacing: .03em; text-transform: uppercase;
}
.cart__count {

  padding: 2px 8px; border-radius: 999px; font-size: 13px;
}
.burger { display: none; }

/* ==========================================================================
   02 — Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--paper);
}
.hero__watermark {
  position: absolute; left: -260px; top: 160px; width: 900px; opacity: .06; pointer-events: none;
}
.hero__sun {
  position: absolute; right: -60px; top: -60px;  opacity: .1; pointer-events: none;
  animation: spin 60s linear infinite;
}
.hero__inner {
  position: relative; z-index: 1;
   margin: 0 auto;

  display: grid;  
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; }

.hero__title {
  font-family: var(--f-display); font-weight: 400;
   line-height: .95; letter-spacing: -.01em;
}
.hero__script {
  color: var(--yellow); 
  rotate: 4deg; transform-origin: left; 
}
.hero__lead {  line-height: 1.5; max-width: 560px;  }

.hero__visual { position: relative; aspect-ratio: 1; width: 100%;   justify-self: end; }
.hero__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 50s linear infinite; }
/* Disque rouge + les deux bouteilles (à la place de la photo) */

/* entrée : les bouteilles montent quand le visuel apparaît */

.hero__pastille { position: absolute; z-index: 4; right: -10px; top: -20px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   03 — Vitrine : deux pastis
   ========================================================================== */
.vitrine { position: relative; padding: 100px 0 90px; overflow: hidden; --c: var(--navy); }
.vitrine[data-active="1"] { --c: var(--red); }

/* Sélecteur Anis / Pastis */
.switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 6px;
  background: var(--paper); border: 3px solid var(--navy); border-radius: 999px;
  box-shadow: 6px 6px 0 var(--navy);
}

/* Progression du scroll (mode épinglé uniquement) */

/* Slides superposés */

.slide {
  grid-area: 1 / 1; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px) minmax(0, 340px);
  gap: 56px; align-items: center;
}

.slide:not(.is-active) { visibility: hidden; pointer-events: none; transition: visibility 0s .7s; }

/* Colonne infos */

.scale {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; max-width: 400px;
  font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}

/* Scène bouteille */

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Étiquette achat */
.label {
  position: relative; z-index: 2; background: var(--paper);
  border: 3px solid var(--navy); border-radius: var(--radius); overflow: hidden;
  box-shadow: 10px 10px 0 var(--c);
  opacity: 0; translate: 40px 0; transition: opacity .6s var(--ease), translate .8s var(--ease);
}
.slide.is-active .label { opacity: 1; translate: 0 0; transition-delay: .2s; }

/* Plein écran : la section reste figée pendant que le scroll fait défiler les produits */
@media (min-width: 1025px) and (min-height: 600px) {
  .vitrine { height: 260vh; padding: 0; overflow: visible; }

  .slide { grid-template-columns: minmax(0, 1fr) min(480px, 50vh) minmax(0, 340px); }

}

/* ==========================================================================
   04 — Le nouveau chapitre
   ========================================================================== */
.story { position: relative; background: var(--sand);  overflow-x: clip; }
.story__illu { position: absolute; right: -4px; bottom: -120px; width: 464px; opacity: .13; pointer-events: none; z-index: 2; }
.story__inner { display: grid;   align-items: center; }
@media (min-width: 1025px) { .story__content .line { white-space: nowrap; } }
.story__media { position: relative; }
.story__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 600 / 700; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.1; }
.story__pastille { position: absolute; right: -30px; top: -50px; }
.story__content .h2 { margin: 21px 0; }
.story__script { color: var(--red);  rotate: 3deg; transform-origin: left;  }

/* ==========================================================================
   05 — Le savoir-faire
   ========================================================================== */
.craft { position: relative; background: var(--navy); color: var(--paper);  overflow: hidden; }

.craft__todo { color: var(--yellow); font-weight: 500; font-size: 13px; }

.step { position: relative; }
.step__num {
  position: absolute; left: 24px; top: -40px; z-index: 1;
  font-family: var(--f-display);  color: var(--yellow); line-height: 1.4;
}
.step__photo { border-radius: 24px; overflow: hidden; aspect-ratio: 408 / 380; }
.step__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.step:hover .step__photo img { transform: scale(1.06); }
.step__title { font-family: var(--f-display); font-weight: 400;  margin: 30px 0 4px; }
.step__text {  line-height: 1.55; max-width: 380px; }

/* ==========================================================================
   06 — Bandeau humour (défilant)
   ========================================================================== */
.banner { background: var(--red); overflow: hidden; padding: 28px 0; }
.banner__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.banner:hover .banner__track { animation-play-state: paused; }
.banner__group { display: flex; align-items: center; gap: 20px; padding-right: 20px; white-space: nowrap; }
.banner__bold { font-family: var(--f-display); font-size: clamp(32px, 3.75vw, 54px); color: var(--paper); }
.banner__script { font-size: clamp(38px, 4.45vw, 64px); color: var(--yellow); }
.banner__star { font-size: 40px; color: var(--yellow); margin-left: 20px; display: inline-block; animation: spin 8s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   07 — Professionnels
   ========================================================================== */
.pro { position: relative;  }
.pro__illu { position: absolute; right: 60px; top: -40px; width: 200px; opacity: .13; pointer-events: none; }
.pro__box {
  display: grid; grid-template-columns: 1fr 560px; 
  background: var(--paper); border: 3px solid var(--navy); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--navy); overflow: hidden;
}
.pro__content {  display: flex; flex-direction: column; align-items: flex-start; }
.pro__content .h2 { margin: 14px 0 20px; }
.pro__content .lead { margin-bottom: 40px; }
.pro__photo { overflow: hidden; }
.pro__photo img { width: 100%; height: 115%; object-fit: cover; }

/* ==========================================================================
   08 — Footer
   ========================================================================== */
.footer { position: relative; background: var(--navy); color: var(--paper); overflow: hidden; }
.footer__illu { position: absolute;   width: 260px; opacity: .15; pointer-events: none; }
.footer__top { display: grid; grid-template-columns: 1.85fr 1fr 1fr 1fr; gap: 40px;  }
.footer__logo { width: 120px; height: 120px; }
.footer__script { color: var(--yellow); font-size: 30px;    }
.footer__address { font-size: 14px; line-height: 1.6; }
.footer__address a { text-decoration: none; }
.footer__col { display: flex; flex-direction: column; gap: 16px; }
.footer__heading { font-family: var(--f-display); font-size: 20px; color: var(--yellow);  }
.footer__col a { text-decoration: none; font-weight: 500; font-size: 15px; width: fit-content; transition: color .2s, translate .3s var(--ease); }
.footer__col a:hover {  translate: 4px 0; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(251, 247, 239, .2); padding: 30px 0 52px;
  font-weight: 500; font-size: 14px;
}
.footer__copy { font-weight: 400; font-size: 13px; }

/* ==========================================================================
   Animations au scroll & de texte
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="left"] { transform: translateX(-60px); }
.js [data-reveal="zoom"] { transform: scale(.85); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Titres découpés ligne par ligne, puis mot par mot */
[data-split] .line { display: block; }
.js [data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .word > span {
  display: inline-block; transform: translateY(110%) rotate(6deg);
  transition: transform 1s var(--ease); transition-delay: var(--d, 0ms);
}
.js [data-split].is-in .word > span { transform: none; }

/* Textes manuscrits : effet « écrit à la main » */
.js [data-write] {
  clip-path: inset(-20% 100% -20% 0);
  transition: clip-path 1.3s cubic-bezier(.65, 0, .35, 1) .25s;
}
.js [data-write].is-in { clip-path: inset(-20% -5% -20% 0); }

/* Pastilles qui tombent en place */
.js [data-pop] { scale: 0; rotate: -90deg; transition: scale .8s var(--ease-back) .4s, rotate .8s var(--ease-back) .4s; }
.js [data-pop].is-in { scale: 1; rotate: -12deg; animation: wobble 5s ease-in-out 1.4s infinite; }
@keyframes wobble { 0%, 100% { rotate: -12deg; } 50% { rotate: -4deg; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-split] .word > span, .js [data-write], .js [data-pop] {
    opacity: 1 !important; transform: none !important; clip-path: none !important; scale: 1 !important;
  }

  .slide:not(.is-active) { display: none; }
}

/* ==========================================================================
   Échelle fluide : tailles calées sur la largeur ET la hauteur de l'écran
   (les réglages mobiles plus bas restent prioritaires)
   ========================================================================== */
.overline { font-size: clamp(11px, .9vw, 13px); }
.h2 { font-size: clamp(34px, min(5.2vw, 9vh), 80px); }
.h2--md { font-size: clamp(30px, min(4vw, 7vh), 64px); }
.lead { font-size: clamp(16px, 1.2vw, 18px); }
.btn { padding: clamp(14px, 1.2vw, 18px) clamp(22px, 2vw, 30px); font-size: clamp(13px, 1vw, 15px); }
.btn--outline { padding: clamp(12px, 1.05vw, 16px) clamp(20px, 1.9vw, 28px); }
.pastille { width: clamp(100px, min(9.7vw, 16vh), 140px); height: clamp(100px, min(9.7vw, 16vh), 140px); font-size: clamp(17px, min(1.67vw, 2.8vh), 24px); }

.header__inner { padding-top: clamp(10px, 1.6vh, 16px); padding-bottom: clamp(10px, 1.6vh, 16px); }
.header__logo { width: clamp(48px, min(4.4vw, 7vh), 64px); height: clamp(48px, min(4.4vw, 7vh), 64px); }
.header__name { font-size: clamp(15px, 1.25vw, 18px); }
.nav { gap: clamp(24px, 3vw, 44px); }
.nav__link { font-size: clamp(14px, 1.1vw, 16px); }
.cart { padding: clamp(10px, .85vw, 12px) clamp(16px, 1.5vw, 22px); font-size: clamp(12px, .97vw, 14px); }

/* Hero : le fond bleu remplit exactement la fenêtre (header compris),
   le damier n'apparaît qu'au premier scroll */
.hero { display: flex; flex-direction: column; }
.hero__inner {
  min-height: calc(100svh - var(--header-h, 98px)); width: 100%; max-width: calc(var(--container) + 2 * var(--gutter));
  padding: clamp(28px, 6vh, 90px) var(--gutter) clamp(28px, 6vh, 78px);
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center;
}
.hero__content .overline { margin-bottom: clamp(14px, 2.6vh, 24px); }
/* toujours 3 lignes : « mort ce soir. » ≈ 7,9 em doit tenir dans la colonne */
.hero__title { font-size: clamp(44px, min(6vw, 10.4vh), 88px); }
.hero__title .line { white-space: nowrap; }
.hero__script { font-size: clamp(28px, min(3.8vw, 6.2vh), 58px); margin: clamp(16px, 3.4vh, 36px) 0 clamp(18px, 4.2vh, 52px); }
.hero__lead { font-size: clamp(16px, min(1.35vw, 2.3vh), 20px); margin-bottom: clamp(20px, 3.4vh, 32px); }
.hero__visual { max-width: min(600px, 64vh); margin: 0; }

.hero__sun { width: clamp(240px, 29vw, 420px); }

/* Vitrine */

/* Nouveau chapitre */
.story { padding: clamp(56px, 10vh, 100px) 0; }
.story__inner { grid-template-columns: minmax(0, min(600px, 42vw)) 1fr; gap: clamp(40px, 4.5vw, 64px); }
.story__media { width: min(100%, calc(80vh * 600 / 700)); }
.story__script { font-size: clamp(26px, 2.4vw, 34px); margin: clamp(16px, 3vh, 26px) 0 clamp(20px, 3.4vh, 30px); }

/* Savoir-faire */
.craft { padding: clamp(56px, 11vh, 110px) 0 clamp(50px, 9vh, 90px); }

.step__photo { max-height: 46vh; }
.step__num { font-size: clamp(40px, 3.9vw, 56px); }
.step__title { font-size: clamp(22px, 2vw, 28px); margin-top: clamp(18px, 3vh, 30px); }
.step__text { font-size: clamp(15px, 1.1vw, 16px); }

/* Pros & footer */
.pro { padding: clamp(48px, 9vh, 90px) 0; }
.pro__box { min-height: min(460px, 70vh); }
.pro__content { padding: clamp(32px, 5.3vw, 77px) clamp(24px, 4vw, 57px); }
.footer__top { padding: clamp(40px, 7vh, 62px) 0 clamp(36px, 6vh, 56px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .story__inner { grid-template-columns: 1fr 1fr; gap: 60px; }
  .pro__box { grid-template-columns: 1fr 42%; }
}

@media (max-width: 1024px) {
  .nav { gap: 28px; }
  .hero__inner { grid-template-columns: 1fr; padding: 60px var(--gutter) 70px; }
  .hero__inner { align-content: center; padding-top: clamp(32px, 5svh, 60px); padding-bottom: clamp(32px, 5svh, 70px); }
  .hero__visual { justify-self: center; margin: clamp(24px, 4svh, 60px) 0 0; max-width: min(420px, 30svh); }

  .slide { grid-template-columns: 1fr; gap: 40px; max-width: 560px; margin: 0 auto; }

  .story__inner { grid-template-columns: 1fr; }
  .story__media { max-width: 560px; }

  .pro__box { grid-template-columns: 1fr; }
  .pro__photo { order: -1; height: 300px; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .header__inner { padding: 12px 20px; gap: 12px; }
  .header__logo { width: 44px; height: 44px; }
  .header__name { font-size: 14px; }
  .cart { margin-left: auto; padding: 8px 12px; font-size: 12px; gap: 6px; }
  .cart__count { font-size: 11px; padding: 1px 6px; }
  .burger {
    display: grid; gap: 5px; place-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--navy); cursor: pointer;
  }
  .burger span { display: block; width: 18px; height: 2px; background: var(--paper); transition: transform .3s var(--ease), opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: var(--paper); border-bottom: 2px solid var(--navy);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 -2px 0); }
  .nav__link { padding: 18px 20px; font-family: var(--f-display); font-size: 24px; font-weight: 400; border-top: 1px solid rgba(35, 48, 93, .15); }
  .nav__link::after { display: none; }

  .hero__watermark { width: 500px; left: -200px; }
  .hero__sun { width: 240px; }
  .hero__inner { padding: clamp(24px, 4svh, 50px) 20px clamp(28px, 4svh, 60px); }
  .hero__title { font-size: clamp(34px, min(10.4vw, 5.4svh), 44px); }
  .hero__script { font-size: clamp(24px, 7.4vw, 32px); margin: clamp(14px, 2.4svh, 28px) 0 clamp(10px, 2svh, 18px); }
  .hero__lead { font-size: 15px; margin-bottom: clamp(16px, 2.6svh, 28px); }
  .hero__content .btn { width: 100%; justify-content: center; }
  .hero__visual { max-width: min(300px, 27svh); margin-top: clamp(20px, 3svh, 40px); }
  .hero__pastille { width: 84px; height: 84px; font-size: 15px; right: -34px; top: 4%; }

  .hero__content .btn { padding: 15px 22px; }
  .damier { height: 36px; background-size: 36px 36px; }
  @keyframes damier { to { background-position: 36px 0; } }

  .vitrine { padding: 56px 0 60px; }

  .switch { width: 100%; box-shadow: 4px 4px 0 var(--navy); }

  .slide { gap: 28px; }

  .label { box-shadow: 6px 6px 0 var(--c); }

  .story { padding: 48px 0 60px; }
  .story__illu { width: 220px; bottom: auto; top: 470px; }
  .story__inner { gap: 32px; }
  .story__photo { aspect-ratio: 350 / 380; }
  .story__pastille { width: 100px; height: 100px; font-size: 17px; right: -10px; top: -26px; }
  .story__script { font-size: 26px; margin: 16px 0 20px; }
  .story .btn { width: 100%; justify-content: center; }
  .lead { font-size: 16px; }

  .craft { padding: 56px 0 50px; }

  .craft__todo { display: none; }

  .step { flex: 0 0 280px; scroll-snap-align: start; }
  .step__photo { aspect-ratio: 280 / 300; }
  .step__num { font-size: 40px; top: -30px; left: 16px; }
  .step__title { font-size: 22px; margin-top: 20px; }
  .step__text { font-size: 15px; }

  .banner { padding: 22px 0; }

  .pro { padding: 40px 0 50px; }
  .pro__illu { display: none; }
  .pro__box { box-shadow: 6px 6px 0 var(--navy); }
  .pro__photo { height: 180px; }
  .pro__content { padding: 28px 24px 32px; }
  .pro__content .lead { margin-bottom: 28px; }
  .pro .btn { width: 100%; justify-content: center; }

  .footer__illu { width: 180px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .footer__logo { width: 80px; height: 80px; }
  .footer__script { font-size: 24px; }
  .footer__col { gap: 8px; }
  .footer__heading { margin-bottom: 0; }
  .footer__bottom { flex-direction: column; font-size: 13px; }
}

/* ==========================================================================
   Vitrine plein écran — mobile & tablette : même animation, mise en page compacte
   ========================================================================== */
@media (max-width: 1024px) and (min-height: 500px) {
  .vitrine { height: 260vh; padding: 0; overflow: visible; }

  .switch { width: 100%; box-shadow: 4px 4px 0 var(--navy); }

  .slide { grid-template-columns: 1fr; gap: clamp(8px, 2svh, 24px); max-width: 640px; width: 100%; margin: 0 auto; align-items: start; }

  .scale { margin-top: clamp(8px, 1.6svh, 18px); max-width: none; }

  .label { box-shadow: 6px 6px 0 var(--c); border-radius: 22px; }

}

/* tablette : infos et étiquette côte à côte sous la bouteille */
@media (min-width: 600px) and (max-width: 1024px) and (min-height: 500px) {
  .slide { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); column-gap: 32px; }

}
/* petits téléphones : on garde l'essentiel */
@media (max-width: 1024px) and (min-height: 500px) and (max-height: 700px) {
  .scale { display: none; }

}
/* petits téléphones : le hero tient dans l'écran (l'intro reprend l'accroche manuscrite) */
@media (max-width: 767px) and (max-height: 720px) {
  .hero__lead { display: none; }
  .hero__script { margin-bottom: 20px; }
}

/* ==========================================================================
   03 — La gamme : carrousel plein écran (maquette Figma « version enrichie »)
   Fond uni à la couleur de l'étiquette, révélé par un cercle qui s'ouvre.
   ========================================================================== */
/* Couleurs de la gamme déclarées comme animables : fondu doux d'une bouteille à l'autre */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #fbf7ef; }
@property --halo { syntax: '<color>'; inherits: true; initial-value: #1b3a86; }
@property --ring { syntax: '<color>'; inherits: true; initial-value: #f6c844; }
@property --dots { syntax: '<color>'; inherits: true; initial-value: #0f2764; }
@property --damier { syntax: '<color>'; inherits: true; initial-value: #e5172d; }
.gamme { transition: --bg 1.2s cubic-bezier(.45, 0, .25, 1), --halo 1.2s cubic-bezier(.45, 0, .25, 1), --ring 1.2s ease, --dots 1.2s ease, --damier 1.2s ease; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gamme { position: relative; --bg: #fbf7ef; --halo: #1b3a86; --ring: #f6c844; --dots: #0f2764; --damier: #e5172d; --cy: 47.4%; }
.gamme__pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: clip; }
@media (min-height: 500px) {
  .gamme { height: 400vh; }
  .gamme__pin { position: sticky; top: 0; }
}
.gamme__bg { position: absolute; inset: 0; background: var(--bg); }
.gamme__wipe { position: absolute; inset: -20%; opacity: 0; pointer-events: none; background: radial-gradient(circle at 50% var(--cy), var(--glow, transparent) 0%, var(--glow, transparent) 22%, transparent 58%); }

/* Logo du produit */
.gamme__logos { position: absolute; z-index: 5; left: clamp(20px, 3.3vw, 50px); top: clamp(20px, 5.8vh, 50px); height: clamp(100px, 26vh, 230px); }
.glogo { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: none; opacity: 0; translate: -24px 0; transition: opacity .5s var(--ease), translate .8s var(--ease); }
.glogo.is-active { opacity: 1; translate: 0 0; transition-delay: .3s; }

/* Pagination */
.gdots { position: absolute; z-index: 5; top: clamp(24px, 6vh, 52px); right: clamp(20px, 7.7vw, 116px); display: flex; gap: 10px; }
.gdots__dot { width: 14px; height: 14px; border-radius: 99px; border: 2px solid var(--dots); background: transparent; cursor: pointer; padding: 0; transition: width .5s var(--ease), background-color .3s, border-color .6s; }
.gdots__dot.is-active { width: 38px; background: var(--dots); }

/* Halo, monument (découpé par le cercle), anneau */
.gamme__stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gamme__halo { position: absolute; left: 50%; top: var(--cy); width: min(70.6vh, 84vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; overflow: hidden; background: var(--halo); transition: none; }
.gamme.is-changing .gamme__halo { animation: halo-pop 1.2s cubic-bezier(.34, 1.3, .64, 1); }
@keyframes halo-pop { 0% { scale: .9; } 100% { scale: 1; } }
.gamme__ring { position: absolute; left: 50%; top: var(--cy); width: min(79.4vh, 94vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 3px dashed var(--ring); transition: border-color .6s; animation: spin 60s linear infinite; }
.gmonu {
  position: absolute; height: auto; max-width: none;
  opacity: 0; translate: 0 18%; transition: opacity .6s var(--ease), translate 1s var(--ease);
}
.gmonu.is-active { opacity: 1; translate: 0 0; transition-delay: .2s; }

/* Bouteilles */
.gamme__track { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.gitem {
  position: absolute; left: var(--px, 50%); top: var(--py, 77.1%); margin: 0; transform-origin: 50% 100%;
  translate: -50% -100%; rotate: var(--r, 0deg); scale: var(--s, 1); opacity: var(--o, 1);
  transition: left 1s var(--ease), top 1s var(--ease), rotate 1s var(--ease), scale 1s var(--ease), opacity .5s var(--ease);
}
.gphoto { display: block; height: min(61.8vh, 100vw); }

.gphoto { width: auto; max-width: none; filter: drop-shadow(12px 12px 0 rgba(15, 39, 100, .28)); }

/* Damier de l'étiquette */
.gamme__damier {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 36px;
  background: conic-gradient(var(--damier) 25%, transparent 0 50%, var(--damier) 0 75%, transparent 0) 0 0 / 36px 36px;
}

/* Panneaux d'infos (un par bouteille) */
.gamme__panels { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.gpanel { position: absolute; inset: 0; }
.gpanel > * { opacity: 0; transition: opacity .45s var(--ease), translate .8s var(--ease); }
.gpanel.is-active > * { opacity: 1; pointer-events: auto; transition-delay: .4s; }

/* Colonne gauche : monument nommé + phrase forte */
.gleft { position: absolute; left: clamp(20px, 3.4vw, 52px); top: 34.6vh; width: 258px; translate: -24px 0; }
.gpanel.is-active .gleft { translate: 0 0; }
.gmonument { display: flex; align-items: center; gap: 10px; margin: 0 0 30px; }
.gmonument__icon { flex: none; width: 26px; height: 40px; object-fit: contain; }
.gmonument small { display: block; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--lbl); opacity: .75; }
.gmonument b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 17px; line-height: 1.05; color: var(--name); margin-top: 2px; }
.gphrase {
  margin: 0; width: 250px; padding: 19px 23px 21px; border-radius: 20px; 
  background: var(--paper); border: 3px solid #0f2764; box-shadow: 6px 6px 0 var(--pshadow);
    color: #23305d;
}

/* Bandeau façon côté d'étiquette */
.gside {
  position: absolute; right: clamp(20px, 10vw, 151px); top: 26.7vh; width: 196px; rotate: -2deg; translate: 24px 0;
  background: var(--paper); border: 3px solid var(--sstroke); border-radius: 20px; box-shadow: 6px 6px 0 var(--sshadow); overflow: hidden;
}
.gpanel.is-active .gside { translate: 0 0; }
.gside__row { margin: 0; padding: 14px 18px; }
.gside__row + .gside__row { border-top: 3px solid var(--sstroke); }
.gside__big { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, min(2.1vw, 3.6vh), 31px); line-height: 1; color: var(--stext); white-space: nowrap; }
.gside small { display: block; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #0f2764; opacity: .8; margin-top: 4px; }
.gside__tip {   color: var(--stext); margin: 4px 0 8px; }

/* Carte d'infos sous la bouteille */
.gcard {
  position: absolute; left: 50%; top: 71.3%; width: min(640px, calc(100vw - 40px)); translate: -50% 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 34px; border-radius: 32px; background: var(--paper); border: 3px solid #0f2764; box-shadow: 8px 8px 0 var(--cshadow);
}
.gpanel.is-active .gcard { translate: -50% 0; }
.gcard__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gcard__tags li { padding: 5px 13px; border-radius: 999px; border: 2px solid var(--dark); color: var(--dark); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.gcard__meta { font-weight: 500; font-size: 13px; color: #0f2764; opacity: .8; margin-top: 8px; }
.gcard__price { display: none; }
.gcard__phrase { display: none; }
.gcard__btn {
  flex: none; display: inline-flex; align-items: center; padding: 15px 22px; border-radius: 999px;
  background: var(--dark); color: var(--paper); text-decoration: none; box-shadow: 3px 3px 0 #0f2764;
  font-weight: 700; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; transition: translate .3s var(--ease), box-shadow .3s var(--ease);
}
.gcard__btn:hover { translate: -2px -2px; box-shadow: 5px 5px 0 #0f2764; }

/* Écrans plus étroits : le bandeau disparaît, le prix passe dans la carte */
@media (max-width: 1180px) {
  .gside { display: none; }
  .gcard__price { display: inline; }
  .gleft { width: 220px; }
  .gphrase { width: 220px; font-size: 19px; }
}
@media (max-width: 1024px) {
  .gleft { display: none; }
  .gcard { flex-wrap: wrap; }
  .gcard__phrase { display: block; flex: 1 0 100%; text-align: center; font-size: clamp(17px, 2.6vh, 22px); line-height: 1.25; color: #23305d; text-wrap: balance; }
  .gamme { --cy: 42%; }
  .gphoto { height: min(48vh, 96vw); }
}
@media (max-width: 767px) {

  .gdots { gap: 6px; } .gdots__dot { width: 10px; height: 10px; } .gdots__dot.is-active { width: 24px; }
  .gamme__halo { width: min(80vw, 44vh); }
  .gamme__ring { width: min(90vw, 50vh); border-width: 2px; }
  .gphoto { height: min(40vh, 96vw); }
  .gcard { top: auto; bottom: 46px; flex-direction: column; align-items: stretch;   border-radius: 22px; box-shadow: 6px 6px 0 var(--cshadow); }
  .gcard__btn { justify-content: center;  }
  .gcard__tags li { padding: 4px 10px; font-size: 10px; }
  .gamme__damier { height: 28px; background-size: 28px 28px; }
}
