/* 303 Rhum — proposition de refonte one-page */

@font-face {
  font-family: "Copperplate CC";
  src: url("../fonts/CopperplateCC-Heavy.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Copperplate CC";
  src: url("../fonts/CopperplateCC-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --hero: #151319;
  --night: #17130d;
  --brown: #4f3d10;
  --brown-deep: #3a2d0b;
  --cream: #ece4d4;
  --paper: #f5f0e6;

  --on-dark: #efe7d8;
  --on-dark-mute: rgba(239, 231, 216, .72);
  --on-dark-soft: rgba(239, 231, 216, .5);
  --rule-dark: rgba(239, 231, 216, .2);
  --on-light: #4f3d10;
  --on-light-mute: rgba(79, 61, 16, .84);
  --on-light-soft: rgba(79, 61, 16, .52);
  --rule-light: rgba(79, 61, 16, .24);

  --title: "Copperplate CC", "Copperplate", "Copperplate Gothic Light", serif;
  --serif: "Vollkorn", Georgia, serif;

  --pad: clamp(20px, 4.4vw, 72px);
  --gap: clamp(16px, 2.2vw, 36px);
  --sec: clamp(96px, 11vw, 176px);
  --header: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--on-light);
  font: 400 18px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--brown); color: var(--cream); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
[id] { scroll-margin-top: calc(var(--header) - 1px); }
.s[id] { scroll-margin-top: calc(var(--header) - var(--sec) + 56px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Typographie : Copperplate pour les titrages, Vollkorn pour le labeur ---------- */
.title-xl, .title-l, .hero__title, .name, .abv, .label {
  font-family: var(--title);
  font-weight: 400;
  text-transform: uppercase;
}
.title-xl, .title-l, .hero__title { letter-spacing: .01em; text-wrap: balance; }
.title-xl em, .title-l em, .hero__title em { font-style: normal; }
[data-theme="light"] :is(.title-xl, .title-l) em { color: var(--on-light-soft); }
[data-theme="dark"] :is(.title-xl, .title-l, .hero__title) em { color: var(--on-dark-soft); }
.title-xl { font-size: clamp(34px, 5.2vw, 88px); line-height: 1.04; max-width: 15em; }
.title-l { font-size: clamp(30px, 3.9vw, 64px); line-height: 1.06; }
.lede {
  font-size: clamp(21px, 1.85vw, 28px);
  line-height: 1.36;
  letter-spacing: -.005em;
}
.name {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.25;
  letter-spacing: .08em;
}
.abv { font-size: clamp(16px, 1.25vw, 19px); letter-spacing: .04em; white-space: nowrap; }
.label { font-size: 12px; line-height: 1.2; letter-spacing: .16em; }
.meta { font-size: 15px; }

/* Lien texte : le trait se retire puis se redessine */
.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
}
.link:hover { animation: relink .8s var(--ease-io); }
@keyframes relink {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0 1px; background-position: 100% 100%; }
  46% { background-size: 0 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

/* Boutons : un aplat balaie le bouton de gauche à droite, le texte ne bouge pas */
.btn {
  --fill: var(--brown);
  --ink: var(--on-dark);
  --ink-hover: var(--on-dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  font: 400 13px/1 var(--title);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  transition: color .9s var(--ease), border-color .9s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--fill);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.15s var(--ease);
}
.btn:hover { color: var(--ink-hover); }
.btn:hover::before { transform: scaleX(1); }
.btn__label { display: block; }
.btn--light { --ink: var(--night); --ink-hover: var(--on-dark); --fill: var(--brown); background: var(--on-dark); border: 0; }
.btn--ghost { --ink: var(--on-dark); --ink-hover: var(--night); --fill: var(--on-dark); border-color: var(--rule-dark); }
.btn--ghost:hover { border-color: var(--on-dark); }
.btn--light::before, .btn--dark::before { inset: 0; }
.btn--dark { --ink: var(--cream); --ink-hover: var(--cream); --fill: var(--night); background: var(--brown); border: 0; }

/* ---------- Sections ---------- */
.s { padding: var(--sec) 0; }
.s--cream { background: var(--cream); color: var(--on-light); --bg: var(--cream); --rule: var(--rule-light); }
.s--paper { background: var(--paper); color: var(--on-light); --bg: var(--paper); --rule: var(--rule-light); }
.s--night { background: var(--night); color: var(--on-dark); --bg: var(--night); --rule: var(--rule-dark); }
.s--brown { background: var(--brown); color: var(--on-dark); --bg: var(--brown); --rule: var(--rule-dark); }
.s--cream p, .s--paper p { color: var(--on-light-mute); }
.s--night p, .s--brown p { color: var(--on-dark-mute); }
.s--cream .lede, .s--paper .lede { color: var(--on-light); }
.s--night .lede, .s--brown .lede { color: var(--on-dark); }

/* Filets : tracés au premier passage */
.rule-top { background: linear-gradient(var(--rule), var(--rule)) 0 0 / 100% 1px no-repeat; }

/* Packshots photographiés sur blanc : fusion « produit » sur le fond crème */
.pack { background: var(--bg); }
.pack img { mix-blend-mode: multiply; width: 100%; }

.split-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 112px);
}
.split-head .title-l { grid-column: 1 / 8; }
.split-head__text { grid-column: 9 / 13; max-width: 34em; }
.split-head__text p + p { margin-top: 1em; }

/* ---------- En-tête ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--on-dark);
  transition: color .35s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  height: var(--header);
  background: var(--paper);
  border-bottom: 1px solid var(--rule-light);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.header.is-scrolled[data-theme="dark"]::before { background: var(--night); border-color: var(--rule-dark); opacity: .96; }
.header[data-theme="light"] { color: var(--on-light); }
.header[data-theme="light"]::before { opacity: .96; }
.header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header);
  padding: 0 var(--pad);
}
.header__logo { flex: none; }
.header__logo svg { width: 58px; height: auto; transition: transform .6s var(--ease); }
.header__logo:hover svg { transform: scale(1.06); }
.nav ul { display: flex; gap: clamp(14px, 1.6vw, 28px); }
.nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font: 400 12px/1 var(--title);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-io);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="true"] { font-weight: 700; }

.menu-toggle { display: none; font: 400 13px/1 var(--title); letter-spacing: .16em; text-transform: uppercase; padding: 12px 0; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }

.menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header) + 24px) var(--pad) 32px;
  background: var(--night);
  color: var(--on-dark);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu a {
  display: block;
  padding: 14px 0;
  font: 400 clamp(20px, 6vw, 30px)/1.1 var(--title);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-dark);
}
.menu li { animation: rise .6s var(--ease) both; }
.menu li:nth-child(2) { animation-delay: .04s; }
.menu li:nth-child(3) { animation-delay: .08s; }
.menu li:nth-child(4) { animation-delay: .12s; }
.menu li:nth-child(5) { animation-delay: .16s; }
.menu li:nth-child(6) { animation-delay: .2s; }
.menu li:nth-child(7) { animation-delay: .24s; }
.menu li:nth-child(8) { animation-delay: .28s; }
.menu__legal { margin-top: 32px; font-size: 15px; color: var(--on-dark-mute); }
.menu-open { overflow: hidden; }
.menu-open .header { color: var(--on-dark); }
.menu-open .header::before { opacity: 0 !important; }

/* ---------- Accueil ---------- */
.hero {
  --rule: var(--rule-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(100svh, 680px);
  padding-top: var(--header);
  background: var(--hero);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 58%;
}
.hero__media img {
  position: absolute;
  top: calc(var(--header) * .7);
  right: 15%;
  width: auto;
  max-width: none;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 78%, transparent 100%);
}
.hero__content { position: relative; padding-bottom: clamp(80px, 12.5vh, 150px); }
.hero__title {
  font-size: clamp(34px, 4.7vw, 80px);
  line-height: 1.04;
  max-width: 11.5em;
}
.hero__text {
  max-width: 30em;
  margin-top: clamp(24px, 3vh, 36px);
  font-size: clamp(18px, 1.35vw, 20px);
  color: var(--on-dark-mute);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: clamp(28px, 4vh, 44px); }
.hero__index {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
  padding-bottom: 28px;
}
.hero__index a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  text-decoration: none;
}
.hero__index a::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1px;
  background: var(--on-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease-io);
}
.hero__index a:hover::after { transform: scaleX(1); transform-origin: left; }
.hero__index span { font: 400 13px/1.25 var(--title); letter-spacing: .12em; text-transform: uppercase; transition: transform .5s var(--ease); }
.hero__index a:hover span { transform: translateX(6px); }
.hero__index small { font-size: 15px; color: var(--on-dark-mute); }

/* ---------- Distillerie ---------- */
.story {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-top: clamp(56px, 7vw, 104px);
}
.story__lede { grid-column: 1 / 7; }
.story__body { grid-column: 8 / 13; }
.story__body p + p { margin-top: 1.1em; }
.signature { margin-top: 36px; }
.signature svg { width: 180px; color: var(--on-light); }
.signature figcaption { margin-top: 8px; font-size: 15px; color: var(--on-light-mute); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: clamp(72px, 9vw, 136px);
}
.facts > div { padding-top: 24px; }
.facts dt {
  font-family: var(--title);
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.facts dd { margin-top: 16px; max-width: 26em; color: var(--on-light-mute); }

.bleed {
  position: relative;
  height: clamp(420px, 82vh, 900px);
  overflow: hidden;
  background: #2b2a28;
}
.bleed img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 30%;
  will-change: transform;
}

/* ---------- Savoir-faire ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}
.step:nth-child(2) { margin-top: clamp(40px, 6vw, 96px); }
.step:nth-child(3) { margin-top: clamp(80px, 12vw, 192px); }
.step__img { aspect-ratio: 4 / 5; overflow: hidden; background: #000; margin-bottom: 26px; }
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step:nth-child(2) .step__img img { object-position: 30% 50%; }
.step__img img.is-in { transition: clip-path 1.3s var(--ease), transform 1.2s var(--ease); }
.step:hover .step__img img.is-in { transform: scale(1.04); }
.step p { margin-top: 12px; max-width: 28em; }

/* ---------- Fiches produits ---------- */
.product__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 18px;
}
.product__kind { margin: 8px 0 14px; font-size: 16px; font-style: italic; }
.s--cream .product__kind, .s--paper .product__kind { color: var(--on-light); }
.s--night .product__kind, .s--brown .product__kind { color: var(--on-dark); }

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 72px);
}
.trio .pack { margin: 0 auto 28px; max-width: 360px; }
.trio .pack img, .lineup .pack img { transition: transform .8s var(--ease); }
.trio .product:hover .pack img, .js .trio .product.rv.is-in:hover .pack img { transform: translateY(-10px); transition: transform .8s var(--ease); }
.product > p:not(.product__kind) { max-width: 30em; }

.more { margin-top: 18px; }
.more summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 400 12px/1 var(--title);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  padding: 10px 0;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "";
  width: 11px; height: 11px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform .5s var(--ease-io);
}
.more summary:hover::after { transform: rotate(90deg); }
.more[open] summary::after { transform: rotate(45deg); }
.more summary::before {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: calc(100% - 23px); height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-io);
}
.more summary:hover::before { transform: scaleX(1); transform-origin: left; }
.more p { margin-top: 12px; font-size: 17px; max-width: 36em; }
.more[open] p { animation: rise .6s var(--ease) both; }

/* Infused */
.lineup {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.6vw, 28px);
}
.lineup .pack { margin-bottom: 22px; }
.lineup li:hover .pack img, .js .lineup li.rv.is-in:hover .pack img { transform: translateY(-12px) rotate(-1.2deg); transition: transform .8s var(--ease); }
.lineup .name { padding-top: 16px; font-size: clamp(14px, 1.05vw, 16px); }
.lineup p { margin-top: 8px; font-size: 16px; line-height: 1.5; }

/* Endémique */
.endemic__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
}
.endemic__intro { grid-column: 1 / 5; }
.endemic__intro .lede { margin-top: 28px; }
.endemic__tabs { margin-top: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--rule-dark); }
.endemic__tabs button {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  color: var(--on-dark-soft);
  transition: color .4s;
}
.endemic__tabname { font: 400 clamp(15px, 1.25vw, 19px)/1.25 var(--title); letter-spacing: .08em; text-transform: uppercase; transition: transform .5s var(--ease); }
.endemic__tabs .abv { font-size: 15px; }
.endemic__tabs button::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 1px;
  background: var(--on-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .7s var(--ease-io);
}
.endemic__tabs button:hover { color: var(--on-dark); }
.endemic__tabs button:hover .endemic__tabname { transform: translateX(8px); }
.endemic__tabs button[aria-selected="true"] { color: var(--on-dark); }
.endemic__tabs button[aria-selected="true"]::before { transform: scaleX(1); transform-origin: left; }

.endemic__stage { grid-column: 6 / 13; display: grid; }
.endemic__panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--gap);
  align-items: center;
}
.endemic__bottle img {
  width: auto;
  height: min(76vh, 700px);
  margin: 0 auto;
}
.endemic__notes .product__kind { margin-bottom: 26px; }
.tasting > div { padding: 16px 0; border-top: 1px solid var(--rule-dark); }
.tasting dt, .contact__list dt { font: 400 12px/1.2 var(--title); letter-spacing: .16em; text-transform: uppercase; }
.tasting dt { color: var(--on-dark); }
.tasting dd { margin-top: 10px; color: var(--on-dark-mute); }
.endemic .more { margin-top: 8px; }
.endemic .more p { color: var(--on-dark-mute); }
.endemic .more strong { font-weight: 600; color: var(--on-dark); }

/* Transitions entre les rhums Endémique (ordinateur seulement) */
@media (min-width: 901px) {
  .js .endemic__panel {
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s var(--ease), visibility 0s .55s;
  }
  .js .endemic__panel .endemic__bottle { transform: translateY(36px) scale(.97); transition: transform .9s var(--ease); }
  .js .endemic__panel .endemic__notes { transform: translateX(20px); transition: transform .9s var(--ease); }
  .js .endemic__panel.is-active { opacity: 1; visibility: visible; transition: opacity .55s var(--ease), visibility 0s; }
  .js .endemic__panel.is-active .endemic__bottle,
  .js .endemic__panel.is-active .endemic__notes { transform: none; }
}

/* Punch & planteur, Saisonnier */
.recipes {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
}
.recipes__img { grid-column: 1 / 8; }
.recipes__text { grid-column: 8 / 13; }
.recipes--reverse .recipes__text { grid-column: 1 / 6; grid-row: 1; }
.recipes--reverse .recipes__img { grid-column: 6 / 13; grid-row: 1; }
.recipes__text > p { margin-top: 28px; max-width: 32em; }
.recipes__img--cut img { width: min(100%, 680px); margin-left: auto; filter: drop-shadow(0 40px 40px rgba(20, 14, 4, .35)); }

.ruled { margin-top: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.ruled li { padding: 22px 0 24px; }
.ruled__head { display: flex; align-items: baseline; gap: 16px; }
.ruled__head .name { transition: transform .5s var(--ease); }
.ruled li:hover .name { transform: translateX(6px); }
.ruled__kind { font-size: 16px; font-style: italic; flex: 1; }
.ruled__head .abv { margin-left: auto; }
.ruled p { margin-top: 10px; font-size: 17px; max-width: 34em; }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
}
.contact__text { grid-column: 1 / 7; }
.contact__text address { margin-top: 32px; }
.contact__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px var(--gap);
  margin-top: clamp(48px, 6vw, 88px);
}
.contact__list > div { padding-top: 18px; }
.contact__list dd { margin-top: 14px; line-height: 1.75; color: var(--on-light); }
.contact__list .btn { margin-bottom: 8px; }
.contact__list .meta { color: var(--on-light-mute); }
.contact__img { grid-column: 8 / 13; overflow: hidden; }
.contact__img img { width: 100%; }

/* Pied de page */
.footer { --rule: var(--rule-dark); background: var(--night); color: var(--on-dark); padding: clamp(72px, 9vw, 128px) 0 40px; }
.footer__health {
  font: italic 400 clamp(26px, 3vw, 46px)/1.12 var(--serif);
  letter-spacing: -.01em;
  max-width: 20ch;
  color: var(--on-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--rule-dark);
}
.footer__logo { grid-column: 1 / 3; width: 84px; }
.footer__nav { grid-column: 3 / 8; columns: 2; column-gap: var(--gap); }
.footer__nav a { display: inline-block; padding: 6px 0; font: 400 12px/1.4 var(--title); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--on-dark-mute); transition: color .3s, transform .5s var(--ease); }
.footer__nav a:hover { color: var(--on-dark); transform: translateX(6px); }
.footer__legal { grid-column: 8 / 13; font-size: 15px; color: var(--on-dark-mute); }
.footer__legal p + p { margin-top: .9em; }

/* Âge légal */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--hero);
  color: var(--on-dark);
  text-align: center;
  transition: transform 1s var(--ease-io), visibility 0s 1s;
}
.gate[hidden] { display: none; }
.gate.is-leaving { transform: translateY(-100%); visibility: hidden; }
.gate__inner { max-width: 640px; transition: opacity .4s, transform 1s var(--ease-io); }
.gate.is-leaving .gate__inner { opacity: 0; transform: translateY(-60px); }
.gate__logo { width: 120px; margin: 0 auto 48px; animation: rise 1.2s var(--ease) both; }
.gate__title { font: 400 clamp(17px, 1.8vw, 22px)/1.5 var(--title); letter-spacing: .06em; text-transform: uppercase; animation: rise 1.2s var(--ease) .12s both; }
.gate__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; animation: rise 1.2s var(--ease) .22s both; }
.gate__refused { margin-top: 24px; color: var(--on-dark); }
.gate__legal { margin-top: 48px; font-size: 15px; color: var(--on-dark-mute); }
.gate-open { overflow: hidden; }

/* ---------- Animations de premier passage ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Titres découpés en mots qui montent */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em 0 .06em; margin: -.14em 0 -.06em; }
.w__i { display: inline-block; }
.js .split .w__i { transform: translateY(115%); }
.js .split.is-in .w__i { transform: none; transition: transform 1.05s var(--ease) calc(var(--i, 0) * 45ms); }

/* Accueil : séquence d'ouverture */
.js .header { transform: translateY(-100%); }
.js.is-ready .header { transform: none; transition: transform 1s var(--ease) .5s, color .35s var(--ease); }
.js .hero__media img { opacity: 0; transform: scale(1.1) translateY(30px); }
.js.is-ready .hero__media img { opacity: 1; transform: none; transition: opacity 1.6s var(--ease), transform 2.4s var(--ease); }
.js .hero__text, .js .hero__actions { opacity: 0; transform: translateY(24px); }
.js.is-ready .hero__text, .js.is-ready .hero__actions { opacity: 1; transform: none; transition: opacity 1s var(--ease) .55s, transform 1.1s var(--ease) .55s; }
.js.is-ready .hero__actions { transition-delay: .68s; }
.js .hero__index a { opacity: 0; transform: translateY(14px); }
.js.is-ready .hero__index a { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js.is-ready .hero__index a:nth-child(1) { transition-delay: .8s; }
.js.is-ready .hero__index a:nth-child(2) { transition-delay: .88s; }
.js.is-ready .hero__index a:nth-child(3) { transition-delay: .96s; }
.js.is-ready .hero__index a:nth-child(4) { transition-delay: 1.04s; }
.js.is-ready .hero__index a:nth-child(5) { transition-delay: 1.12s; }
.hero__index a { background: linear-gradient(var(--rule), var(--rule)) 0 0 / 100% 1px no-repeat; }
.js .hero__index a { background-size: 0 1px; }
.js.is-ready .hero__index a { background-size: 100% 1px; transition: opacity .9s var(--ease), transform .9s var(--ease), background-size 1.2s var(--ease-io); }

/* Blocs */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js :is(.lineup, .facts, .steps, .trio, .ruled, .contact__list) > .rv:nth-child(2) { transition-delay: .09s; }
.js :is(.lineup, .facts, .steps, .trio, .ruled, .contact__list) > .rv:nth-child(3) { transition-delay: .18s; }
.js :is(.lineup, .ruled, .contact__list) > .rv:nth-child(4) { transition-delay: .27s; }
.js .lineup > .rv:nth-child(5) { transition-delay: .36s; }
.js .lineup > .rv:nth-child(6) { transition-delay: .45s; }

/* Filets qui se tracent */
.facts > div, .product__head, .lineup .name, .ruled li, .contact__list > div {
  background: linear-gradient(var(--rule), var(--rule)) 0 0 / 100% 1px no-repeat;
}
.js :is(.facts > div, .product, .lineup li, .ruled li, .contact__list > div).rv :is(.product__head, .name),
.js :is(.facts > div, .ruled li, .contact__list > div).rv { background-size: 0 1px; }
.js .rv.is-in :is(.product__head, .name),
.js :is(.facts > div, .ruled li, .contact__list > div).rv.is-in { background-size: 100% 1px; transition: opacity 1s var(--ease), transform 1.1s var(--ease), background-size 1.3s var(--ease-io) .15s; }
.ruled li .name { background: none; }

/* Bouteilles qui se posent */
.js .rv .pack img, .js .pack.rv img, .js .rv.recipes__img--cut img, .js .endemic__stage.rv .endemic__panel.is-active .endemic__bottle img { transform: translateY(70px); }
.js .rv.is-in .pack img, .js .pack.rv.is-in img, .js .rv.is-in.recipes__img--cut img, .js .endemic__stage.rv.is-in .endemic__panel.is-active .endemic__bottle img { transform: none; transition: transform 1.6s var(--ease); }

/* Photographies qui se découvrent */
.js .rv-img { clip-path: inset(16% 0 0 0); transform: scale(1.12); transition: clip-path 1.4s var(--ease), transform 1.8s var(--ease); }
.js .rv-img.is-in { clip-path: inset(0 0 0 0); transform: none; }
.js .bleed .rv-img { transform: none; clip-path: inset(0 8% 0 8%); transition: clip-path 1.6s var(--ease-io); }
.js .bleed .rv-img.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .rv-img, .js .split .w__i, .js .header, .js .hero__media img, .js .hero__text, .js .hero__actions, .js .hero__index a { opacity: 1; transform: none; clip-path: none; }
  .js .rv :is(.product__head, .name), .js .rv, .js .hero__index a { background-size: 100% 1px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 1100px) {
  .hero__index { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .lineup { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
  .lineup .pack { max-width: 220px; margin-left: auto; margin-right: auto; }
  .endemic__intro { grid-column: 1 / 6; }
  .endemic__stage { grid-column: 6 / 13; }
  .endemic__panel { grid-template-columns: 1fr; }
  .endemic__bottle img { height: min(52vh, 480px); }
}

@media (max-width: 900px) {
  :root { --header: 64px; }
  body { font-size: 17px; }
  .header__logo svg { width: 48px; }

  .hero { justify-content: flex-start; }
  .hero__media {
    position: relative;
    width: 100%;
    height: 64svh;
    min-height: 420px;
    margin-top: calc(var(--header) * -1);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
  }
  .hero__media img { left: 0; right: 0; margin: 0 auto; height: 100%; }
  .hero__content { margin-top: -96px; padding-bottom: 40px; }
  .hero__index { grid-template-columns: 1fr 1fr; padding-bottom: 32px; }

  .split-head { display: block; }
  .split-head__text { margin-top: 24px; }
  .story { display: block; }
  .story__body { margin-top: 32px; }
  .facts { grid-template-columns: 1fr; gap: 32px; }

  .bleed { height: 56svh; }

  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step:nth-child(n) { margin-top: 0; }
  .step__img { aspect-ratio: 4 / 3; }

  .trio { grid-template-columns: 1fr; gap: 72px; }
  .trio .pack { max-width: 300px; }

  .lineup { grid-template-columns: repeat(2, 1fr); gap: 48px 20px; }

  .endemic__grid { display: block; }
  .endemic__tabs { display: none; }
  .endemic__stage { display: block; margin-top: 56px; }
  .endemic__panel { grid-template-columns: 1fr; gap: 28px; }
  .endemic__panel + .endemic__panel { margin-top: 72px; }
  .endemic__bottle img { height: 440px; }

  .recipes { display: block; }
  .recipes__img { margin-bottom: 48px; }
  .recipes--reverse .recipes__img { margin: 56px 0 0; }
  .recipes__img--cut img { margin: 0 auto; }

  .contact__grid { display: block; }
  .contact__img { margin-top: 56px; }
  .contact__list { grid-template-columns: 1fr; gap: 28px; }

  .footer__grid { display: block; }
  .footer__nav { margin-top: 40px; }
  .footer__legal { margin-top: 40px; }
}

@media (max-width: 520px) {
  .hero__index { grid-template-columns: 1fr; row-gap: 0; }
  .hero__index a { padding: 12px 0; }
  .lineup { gap: 40px 16px; }
  .lineup p { font-size: 15px; }
  .ruled__head { flex-wrap: wrap; gap: 4px 12px; }
  .endemic__bottle img { height: 400px; }
}
