/* ============================================================
   THE REFILL — Website shared styles
   Builds on design/handoff/colors_and_type.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rf-midnight);
  color: var(--rf-cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------------- LAYOUT ---------------- */
.wrap { width: min(1280px, 92vw); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 48px);
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,23,63,.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rf-hairline);
  padding-top: 11px; padding-bottom: 11px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 38px); }
.nav__links a {
  font-family: var(--font-heavy); font-weight: 700; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(238,240,206,.78);
  transition: color .18s ease;
}
.nav__links a:hover { color: var(--rf-cream); }
.nav__links a.active { color: var(--rf-orange); }
.nav__links .navhide { display: inline; }
@media (max-width: 760px){ .nav__links .navhide { display: none; } }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-heavy); font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; font-size: 14px; cursor: pointer; border: none;
  border-radius: var(--r-pill); padding: 15px 26px; line-height: 1;
  transition: transform .14s cubic-bezier(.2,.7,.2,1), filter .2s ease, box-shadow .2s ease;
}
.btn svg, .btn i { width: 18px; height: 18px; }
.btn--primary { background: var(--rf-orange); color: #1a0f06; box-shadow: 0 6px 20px rgba(255,117,31,.28); }
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,117,31,.40); }
.btn--volt { background: var(--rf-volt); color: #2a2d05; }
.btn--volt:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--rf-cream); border: 2px solid var(--rf-cream); }
.btn--ghost:hover { background: var(--rf-cream); color: var(--rf-midnight); transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--lg { font-size: 16px; padding: 18px 34px; }

/* ---------------- TYPE HELPERS ---------------- */
.eyebrow {
  font-family: var(--font-heavy); font-weight: 700; font-size: clamp(12px,1.3vw,14px);
  letter-spacing: .24em; text-transform: uppercase; color: var(--rf-orange);
}
.kicker-line { display: inline-flex; align-items: center; gap: 14px; }
.kicker-line::before { content: ""; width: 42px; height: 2px; background: var(--rf-orange); }
.display {
  font-family: var(--font-headline); text-transform: uppercase; line-height: .86;
  letter-spacing: .015em; font-size: clamp(48px, 9vw, 132px); margin: 0;
}
.h-sec {
  font-family: var(--font-headline); text-transform: uppercase; line-height: .88;
  letter-spacing: .02em; font-size: clamp(36px, 6vw, 78px); margin: 0;
}
.slant { font-family: var(--font-heavy); font-weight: 800; font-style: italic; text-transform: uppercase; }
.lead { font-family: var(--font-body); font-weight: 500; font-size: clamp(16px,1.5vw,19px); line-height: 1.6; color: rgba(238,240,206,.82); }
.script { font-family: var(--font-script); color: var(--rf-orange); }
.mono { font-family: var(--font-mono); letter-spacing: .03em; }

/* period-separated word rhythm */
.beats { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.6vw, 22px); }
.beats span { font-family: var(--font-headline); letter-spacing: .04em; font-size: clamp(18px,2.4vw,30px); white-space: nowrap; }

/* ---------------- POSTER MOTIFS ---------------- */
.footgrid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-top: 2px solid var(--rf-hairline-gold);
}
.footgrid > div { text-align: center; padding-top: 16px; border-right: 2px solid var(--rf-hairline-gold); }
.footgrid > div:last-child { border-right: none; }
.footgrid .n { font-family: var(--font-headline); font-size: clamp(40px,6vw,80px); line-height: .8; }
.footgrid .m { font-family: var(--font-headline); font-size: clamp(18px,2.2vw,30px); letter-spacing: .1em; opacity: .82; }

/* outlined fact box */
.outbox { border: var(--border-frame); padding: 16px 24px; display: inline-block; }

/* ---------------- SCROLL REVEAL ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
.reveal--left { transform: translateX(-36px); }
.reveal--left.in { transform: none; }
.reveal--right { transform: translateX(36px); }
.reveal--right.in { transform: none; }
.reveal--scale { transform: scale(.94); }
.reveal--scale.in { transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1 !important; transform: none !important; } }
@media print { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------------- FOOTER ---------------- */
.foot { background: var(--rf-midnight-2); border-top: 1px solid var(--rf-hairline); padding: 40px 0 32px; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; align-items: flex-start; }
.foot__brand img { height: 90px; margin-bottom: 16px; }
.foot__cols { display: flex; gap: clamp(36px, 6vw, 90px); flex-wrap: wrap; }
.foot__col h4 { font-family: var(--font-heavy); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--rf-orange); margin: 0 0 14px; }
.foot__col a { display: block; font-size: 14px; color: rgba(238,240,206,.72); margin: 8px 0; transition: color .18s; }
.foot__col a:hover { color: var(--rf-cream); }
.foot__grid { margin: 44px 0 0; }
.foot__grid .n { font-size: clamp(28px, 4vw, 52px); padding-bottom: 12px; }
.foot__grid .m { font-size: clamp(13px, 1.4vw, 18px); padding-bottom: 12px; }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rf-hairline); }
.foot__bottom .beats span { font-size: clamp(16px,2vw,24px); color: var(--rf-cream); }
.foot__bottom small { font-family: var(--font-mono); font-size: 12px; color: var(--rf-fg-muted); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-family: var(--font-heavy); font-weight: 700; font-size: 12.5px; border-radius: var(--r-pill); padding: 8px 14px; }
.chip i, .chip svg { width: 15px; height: 15px; }
.chip--blue { background: var(--rf-blue); color: #fff; }
.chip--volt { background: var(--rf-volt); color: #2a2d05; }
.chip--wine { background: var(--rf-wine); color: #fff; }
.chip--ghost { background: rgba(238,240,206,.10); color: var(--rf-cream); border: 1px solid var(--rf-hairline); }
.chip--orange { background: var(--rf-orange); color: #1a0f06; }

/* mascot float */
.sipper { transition: transform .4s cubic-bezier(.2,.7,.2,1); cursor: pointer; }
.sipper:hover { transform: translateY(-8px) rotate(-3deg); }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
.sipper--bob { animation: bob 4s ease-in-out infinite; }

/* cheers click */
@keyframes cheers {
  0%   { transform: translateY(0)     rotate(0deg)   scale(1);    }
  18%  { transform: translateY(-20px) rotate(-14deg) scale(1.14); }
  38%  { transform: translateY(-26px) rotate(-20deg) scale(1.18); }
  58%  { transform: translateY(-26px) rotate(-20deg) scale(1.18); }
  78%  { transform: translateY(-10px) rotate(-6deg)  scale(1.06); }
  90%  { transform: translateY(-3px)  rotate(-1deg)  scale(1.01); }
  100% { transform: translateY(0)     rotate(0deg)   scale(1);    }
}
.sipper--cheers { animation: cheers .9s cubic-bezier(.2,.7,.2,1) forwards !important; }

/* santé bubble */
.sante-bubble {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  font-family: var(--font-heavy);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rf-cream);
  white-space: nowrap;
  transform: translateX(-50%);
  animation: bubbleUp 1.7s ease forwards;
}
@keyframes bubbleUp {
  0%   { opacity: 0; translate: 0 0;    scale: .8; }
  14%  { opacity: 1; translate: 0 -8px; scale: 1;  }
  65%  { opacity: 1; translate: 0 -8px; scale: 1;  }
  100% { opacity: 0; translate: 0 -28px; scale: .9; }
}
@media (prefers-reduced-motion: reduce) { .sipper--cheers { animation: none !important; } .sante-bubble { display: none; } }
