/* ═══════════════════════════════════════════
   DOMAINE GERMAIN PÈRE & FILS — V2
   style.css
   ═══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }

:root {
  --noir: #0D0D0D;
  --rouge: #8B1215;
  --rouge-vif: #C30C0E;
  --ivoire: #F2EDE6;
  --argent: #A09D9F;
  --chene: #9B7555;
  --beton: #B8A697;
  /* Fond type béton (gris chaud) — sections larges */
  --beton-fond: #DCD6CC;
  --blanc: #DCDBD6;
  --blanc-pur: #FFFFFF;
  --text: #1A1A1A;
  --text-light: #6B6B6B;
  --text-inv: #E8E6E0;
  --text-inv-light: #A09D9F;
  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --side: clamp(24px, 5vw, 80px);
  --max-w: 1280px;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--blanc-pur);
  overflow-x: hidden;
}

/* Titres (H2) en Cormorant pour un rendu plus haut de gamme */
h2 {
  font-family: var(--serif);
  font-weight: 500;
}

/* Titres (H1) en Cormorant sur tout le site */
h1 { font-family: var(--serif); }

/* ═══ ACCUEIL — INTRO CENTRÉE ═══ */
.home-intro {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--ivoire);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-intro.in-view {
  opacity: 1;
  transform: translateY(0);
}

.home-intro-inner {
  max-width: 870px;
  margin: 0 auto;
  padding: 0 var(--side);
  text-align: center;
}

.home-intro-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 22px;
}

.home-intro-title {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  margin-bottom: 18px;
}

.home-intro-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  background: var(--rouge);
  margin: 22px auto 0;
}

.home-intro-text {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 2.05;
  color: var(--text-light);
  max-width: 62ch;
  margin: 0 auto;
}

@media (max-width: 560px) {
  .home-intro-title { white-space: normal; }
}

/* ═══ NAV ═══ */
.nav-bar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--side);
  pointer-events: none;
  transition: background 0.4s ease, padding 0.3s ease;
}
.nav-bar > * { pointer-events: auto; }
.nav-bar.scrolled {
  background: rgba(242, 237, 230, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 18px;
  padding-bottom: 18px;
}

.nav-wordmark {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blanc-pur);
  transition: color 0.4s ease, opacity 0.3s ease;
}
.nav-bar.scrolled .nav-wordmark { color: var(--text); }
.nav-wordmark:hover { opacity: 0.6; }

.nav-logo {
  /* Dimensionné pour une signature visuelle plus présente dans la nav */
  width: clamp(192px, 20vw, 300px);
  height: auto;
  filter: none;
  transition: filter 0.4s ease, opacity 0.3s ease;
}

/* Swap logo blanc/noir selon l'état du header */
.nav-logo--dark { display: none; }
.nav-bar.scrolled .nav-logo--light { display: none; }
.nav-bar.scrolled .nav-logo--dark { display: block; }

/* Quand le menu overlay est ouvert : header "splash" (cohérent sur fond sombre) */
.nav-bar.menu-open {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-bar.menu-open .nav-logo--light { display: block; }
.nav-bar.menu-open .nav-logo--dark { display: none; }
.nav-bar.menu-open .nav-trigger-label { color: var(--blanc-pur); }
.nav-bar.menu-open .nav-trigger-icon span { background: var(--blanc-pur); }

/* Si on ouvre le menu alors que la nav est déjà en état "scrolled", on force le blanc */
.nav-bar.menu-open.scrolled .nav-trigger-label { color: var(--blanc-pur); }
.nav-bar.menu-open.scrolled .nav-trigger-icon span { background: var(--blanc-pur); }

.nav-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.nav-trigger-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blanc-pur);
  transition: color 0.4s ease;
}
.nav-bar.scrolled .nav-trigger-label { color: var(--text); }
.nav-trigger-icon {
  width: 24px;
  height: 14px;
  position: relative;
}
.nav-trigger-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--blanc-pur);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, width 0.3s ease, background 0.4s ease;
}
.nav-bar.scrolled .nav-trigger-icon span { background: var(--text); }
.nav-trigger-icon span:nth-child(1) { top: 0; }
.nav-trigger-icon span:nth-child(2) { bottom: 0; width: 60%; margin-left: auto; right: 0; left: auto; }
.nav-trigger.open .nav-trigger-icon span:nth-child(1) {
  top: 50%; transform: translateY(-50%) rotate(45deg);
}
.nav-trigger.open .nav-trigger-icon span:nth-child(2) {
  bottom: auto; top: 50%; width: 100%; transform: translateY(-50%) rotate(-45deg);
}

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: var(--noir);
  --overlay-ink: rgba(232, 230, 224, 0.78);
  --overlay-ink-muted: rgba(232, 230, 224, 0.45);
  display: flex;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.nav-overlay-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image: url("images/prechargement-video-navigation.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.nav-overlay-media.video-ready {
  background-image: none;
}
.nav-overlay-media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: none;
  filter: grayscale(1) contrast(1.1);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.nav-overlay-media iframe.is-loaded {
  opacity: 0.35;
}
.nav-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.58);
  pointer-events: none;
}
.nav-overlay.open {
  clip-path: inset(0 0 0% 0);
}
.nav-overlay-links {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 calc(var(--side) + 6vw);
  gap: 4px;
}
.nav-overlay-links a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--overlay-ink);
  padding: 0.15em 0;
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              color 0.3s ease;
}
.nav-overlay-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--rouge);
  transform: translateY(-0.25em);
  min-width: 2.4em;
  opacity: 0.95;
}
.nav-overlay.open .nav-overlay-links a {
  transform: translateY(0);
  opacity: 1;
}
.nav-overlay.open .nav-overlay-links a:nth-child(1) { transition-delay: 0.15s; }
.nav-overlay.open .nav-overlay-links a:nth-child(2) { transition-delay: 0.21s; }
.nav-overlay.open .nav-overlay-links a:nth-child(3) { transition-delay: 0.27s; }
.nav-overlay.open .nav-overlay-links a:nth-child(4) { transition-delay: 0.33s; }
.nav-overlay.open .nav-overlay-links a:nth-child(5) { transition-delay: 0.39s; }
.nav-overlay-links a:hover { color: var(--ivoire); }
.nav-overlay-links a::before {
  content: '';
  display: inline-block;
  width: 0; height: 1px;
  background: var(--rouge);
  vertical-align: middle;
  margin-right: 0;
  transition: width 0.4s ease, margin-right 0.4s ease;
}
.nav-overlay-links a:hover::before {
  width: 40px;
  margin-right: 20px;
}

.nav-overlay-side {
  width: 28%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--side) 0 0;
  gap: 26px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
}
.nav-overlay.open .nav-overlay-side {
  opacity: 1;
  transform: translateY(0);
}
.nav-overlay-side p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--overlay-ink);
}
.nav-overlay-tel,
.nav-overlay-email {
  display: inline-block;
}
.nav-overlay-tel {
  margin-bottom: 10px;
}
.nav-overlay-side a { transition: color 0.3s ease; }
.nav-overlay-side a { color: var(--overlay-ink); }
.nav-overlay-side a:hover { color: rgba(232, 230, 224, 0.95); }
.nav-overlay-side a,
.nav-overlay-lang a {
  position: relative;
  display: inline-block;
}
.nav-overlay-side a::after,
.nav-overlay-lang a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav-overlay-side a:hover::after,
.nav-overlay-lang a:hover::after {
  transform: scaleX(1);
}
.nav-overlay-social {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.nav-overlay-social a {
  color: var(--overlay-ink);
  transition: color 0.3s ease, transform 0.3s ease;
}
.nav-overlay-social a:hover {
  color: rgba(232, 230, 224, 0.95);
  transform: translateY(-1px);
}
.nav-social-icon {
  width: 26px;
  height: 26px;
  display: block;
  color: currentColor;
  fill: currentColor;
}
.nav-overlay-badges {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}
.nav-badge {
  height: 62px;
  width: auto;
  opacity: 1;
  filter: none;
}
.nav-overlay-lang {
  order: -1;
  margin-top: 0;
  display: flex; gap: 18px;
  margin-bottom: 64px;
}
.nav-overlay-lang a {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--overlay-ink-muted);
  transition: color 0.3s ease;
}
.nav-overlay-lang a.active { color: var(--overlay-ink); }
.nav-overlay-lang a:hover { color: rgba(232, 230, 224, 0.95); }

/* ═══ HERO ═══ */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%; height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--noir);
}
.hero-video {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--noir);
}
.hero-video-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.hero-video > picture {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}
.hero-video picture img {
  width: 100%;
  height: 100%;
}
.hero-video.video-ready .hero-video-poster {
  opacity: 0;
}
.hero-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100vh; min-width: 177.78vh;
  transform: translate(-50%, -50%);
  pointer-events: none; border: none;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.6s ease;
}
.hero-video iframe.is-loaded {
  opacity: 1;
}
.hero-video iframe.is-error {
  opacity: 0;
  visibility: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  /* Overlay dégradé noir (plus présent en haut et en bas) */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
}
.hero-content {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-logo {
  width: clamp(300px, 40vw, 500px);
  height: auto;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.hero-tagline {
  font-family: var(--sans);
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 18px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}
.hero-scroll-line {
  position: absolute;
  bottom: 40px; left: 50%;
  width: 1px; height: 40px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.8s ease 2s forwards;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -40px; left: 0;
  width: 1px; height: 40px;
  background: rgba(255, 255, 255, 0.35);
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDrop {
  0% { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

/* ═══ LE LIEU ═══ */
.home-lieu {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 90vh;
  overflow: hidden;
}
.home-lieu-img {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
}
.home-lieu-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08) translateY(var(--parallaxImgY, 0px));
  /* Plus réactif : évite que la parallaxe paraisse "inexistante" */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-lieu-img.in-view img { transform: scale(1) translateY(var(--parallaxImgY, 0px)); }

.home-lieu-content {
  will-change: transform;
  transform: translate3d(0, var(--parallaxSectionY, 0px), 0);
}

.home-lieu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(48px, 5vw, 80px);
}
.home-lieu-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 28px;
  opacity: 0; transform: translateX(-10px);
  transition: all 0.6s ease 0.15s;
}
.home-lieu-content.in-view .home-lieu-label {
  opacity: 1; transform: translateX(0);
}
.home-lieu-content h2 {
  font-size: clamp(44px, 5.5vw, 72px);
  color: var(--text);
  font-weight: 500;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}
.home-lieu-content.in-view h2 {
  clip-path: inset(0 0% 0 0);
}
.home-lieu-filet {
  width: 48px; height: 2px;
  background: var(--rouge);
  margin: 28px 0 32px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s ease 0.5s;
}
.home-lieu-content.in-view .home-lieu-filet { transform: scaleX(1); }

.home-lieu-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 380px;
  margin-bottom: 40px;
  opacity: 0; transform: translateY(14px);
  transition: all 0.7s ease 0.55s;
}
.home-lieu-content.in-view p {
  opacity: 1; transform: translateY(0);
}
.home-lieu-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0; transform: translateY(10px);
  transition: all 0.5s ease 0.7s;
}
.home-lieu-content.in-view .home-lieu-links {
  opacity: 1; transform: translateY(0);
}

/* ═══ LES VINS ═══ */
.home-vins {
  background: var(--noir);
  padding: clamp(100px, 14vw, 180px) 0;
  position: relative;
}
.home-vins::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--side); right: var(--side);
  height: 2px;
  background: var(--rouge);
}
.home-vins-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side);
}
.home-vins-header {
  margin-bottom: clamp(64px, 10vw, 120px);
  opacity: 0; transform: translateY(20px);
  transition: all 0.7s ease;
}
.home-vins-header.in-view {
  opacity: 1; transform: translateY(0);
}
.home-vins-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge-vif);
  margin-bottom: 20px;
}
.home-vins-header h2 {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--text-inv);
  max-width: 550px;
}
.home-vins-bottles {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(60px, 12vw, 180px);
  margin-bottom: clamp(64px, 8vw, 100px);
}
.home-vins-bottle {
  text-align: center;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-vins-bottle.in-view { opacity: 1; transform: translateY(0); }
.home-vins-bottle:nth-child(2) { transition-delay: 0.15s; }
.home-vins-bottle img {
  height: clamp(380px, 45vw, 540px);
  width: auto;
  margin: 0 auto;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-vins-bottle:hover img { transform: translateY(-10px); }
.home-vins-bottle-name {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  color: var(--text-inv);
  margin-top: 28px;
  letter-spacing: 0.03em;
}
.home-vins-bottle-detail {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--argent);
  margin-top: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.home-vins-cta {
  text-align: center;
  opacity: 0; transform: translateY(16px);
  transition: all 0.6s ease;
}
.home-vins-cta.in-view { opacity: 1; transform: translateY(0); }

/* Link arrow on light */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s ease;
}
.link-arrow span {
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--rouge);
  position: relative;
  transition: width 0.3s ease;
}
.link-arrow span::after {
  content: '';
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--rouge);
  border-top: 1px solid var(--rouge);
  transform: rotate(45deg);
}
.link-arrow:hover { color: var(--rouge); }
.link-arrow:hover span { width: 40px; }

/* Link arrow on dark */
.link-arrow-inv {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-inv);
  transition: color 0.3s ease;
}
.link-arrow-inv span {
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--rouge-vif);
  position: relative;
  transition: width 0.3s ease;
}
.link-arrow-inv span::after {
  content: '';
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--rouge-vif);
  border-top: 1px solid var(--rouge-vif);
  transform: rotate(45deg);
}
.link-arrow-inv:hover { color: var(--blanc-pur); }
.link-arrow-inv:hover span { width: 40px; }

/* ═══ BANDEAU SAVOIR-FAIRE ═══ */
.home-savoir {
  position: relative;
  height: 65vh;
  min-height: 380px;
  overflow: hidden;
}
.home-savoir img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.home-savoir-over {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--side);
}
.home-savoir-content {
  opacity: 0; transform: translateY(20px);
  transition: all 0.8s ease;
}
.home-savoir-content.in-view {
  opacity: 1; transform: translateY(0);
}
.home-savoir-content h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--blanc-pur);
  margin-bottom: 16px;
}
.home-savoir-content p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ═══ FOOTER ═══ */
footer {
  background: var(--noir);
  padding: 64px var(--side) 32px;
  position: relative;
  font-family: var(--sans);
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(153, 16, 34, 1);
  z-index: 1;
  pointer-events: none;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
.footer-col-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--argent);
  margin-bottom: 18px;
}
.footer-col p, .footer-col a {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--text-inv); }
.footer-nav a {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  padding: 3px 0;
  transition: color 0.3s ease;
}
.footer-nav a:hover { color: var(--text-inv); }
.footer-badges {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
}
.footer-badge {
  height: 72px;
  width: auto;
  display: block;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.footer-social a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-social a:hover {
  color: var(--text-inv);
  transform: translateY(-1px);
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 30px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 56px;
}
.footer-legal-item { display: inline-block; }
.footer-legal a,
.footer-legal button.footer-legal-item {
  color: rgba(255, 255, 255, 0.52);
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.footer-legal a:hover,
.footer-legal button.footer-legal-item:hover {
  color: rgba(255, 255, 255, 0.78);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .home-lieu {
    flex-direction: column;
    min-height: auto;
  }
  .home-lieu-img { flex: none; height: 55vh; }
  .home-lieu-content { padding: 56px var(--side); }

  .nav-overlay-links { padding-left: var(--side); }
  .nav-overlay-side { display: none; }

  footer { padding: 48px var(--side) 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-col-label { margin-bottom: 12px; }
  .footer-col p, .footer-col a { line-height: 1.7; }
  .footer-badges { margin-top: 14px; gap: 16px; }
  .footer-badge { height: 58px; }
  .footer-social { margin-top: 12px; }
  .footer-bottom {
    margin-top: 20px;
    padding-top: 10px;
  }
  .footer-legal { gap: 12px 24px; }
}
@media (max-width: 600px) {
  .home-vins-bottles {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }
  .home-vins-bottle img { height: 340px; }
  .home-savoir { height: 50vh; }
  .nav-overlay-links a { font-size: clamp(26px, 8vw, 38px); }
  footer { padding: 40px var(--side) 18px; }
  .footer-inner { gap: 18px; }
  .footer-col-label {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .footer-col p, .footer-col a,
  .footer-nav a {
    font-size: 13px;
    line-height: 1.65;
  }
  .footer-nav a { padding: 2px 0; }
  .footer-badges {
    margin-top: 12px;
    gap: 12px;
  }
  .footer-badge { height: 50px; }
  .footer-social { margin-top: 10px; }
  .footer-bottom {
    margin-top: 16px;
    padding-top: 10px;
  }
  .footer-legal {
    font-size: 11px;
    gap: 8px 16px;
  }
}

/* ═══════════════════════════════════════════
   PAGE: NOS VINS
   ═══════════════════════════════════════════ */

/* Page hero (photo background) */
.page-hero {
  position: relative;
  height: 70vh;
  min-height: 460px;
  max-height: 720px;
  overflow: hidden;
  background: var(--noir);
}
.page-hero img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(30%);
  will-change: transform;
}
.page-hero > picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  display: block;
}
.page-hero picture img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0) 24%,
    rgba(0, 0, 0, 0) 76%,
    rgba(0, 0, 0, 0.94) 100%
  );
}
.page-hero-content {
  position: absolute;
  bottom: clamp(48px, 8vw, 80px);
  left: var(--side);
  z-index: 1;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeIn 1s ease 0.3s forwards;
}
.page-hero h1 {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 500;
  color: var(--blanc-pur);
  line-height: 1;
  margin-bottom: 12px;
}
.page-hero p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
  max-width: 420px;
}

/* Fiche vin : même hero que « Nos vins » (image + dégradé), hauteur du bandeau d’origine */
.page-hero.page-hero--fiche {
  height: 46vh;
  min-height: 320px;
  max-height: 460px;
}
/* Bandeau fiche : haut comme la page vins, bas plus léger et très progressif (pas de noir brutal) */
.page-hero.page-hero--fiche::after {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.5) 14%,
    rgba(0, 0, 0, 0.14) 28%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0) 64%,
    rgba(0, 0, 0, 0.03) 71%,
    rgba(0, 0, 0, 0.08) 77%,
    rgba(0, 0, 0, 0.14) 82%,
    rgba(0, 0, 0, 0.2) 86%,
    rgba(0, 0, 0, 0.26) 89%,
    rgba(0, 0, 0, 0.32) 91.5%,
    rgba(0, 0, 0, 0.38) 94%,
    rgba(0, 0, 0, 0.44) 96%,
    rgba(0, 0, 0, 0.5) 98%,
    rgba(0, 0, 0, 0.52) 100%
  );
}
.page-hero.page-hero--fiche .page-hero-content {
  bottom: clamp(18px, 3.5vw, 36px);
}
.page-hero.page-hero--fiche h1.page-hero-title-fiche {
  margin-bottom: 0;
  font-size: clamp(26px, 4.2vw, 52px);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.page-hero.page-hero--fiche .page-hero-terroir {
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
}
@media (max-width: 380px) {
  .page-hero.page-hero--fiche h1.page-hero-title-fiche {
    white-space: normal;
    font-size: clamp(22px, 5.2vw, 26px);
  }
}

/* Wine sections */
.vins-section {
  background: var(--ivoire);
  padding: 0 var(--side) clamp(60px, 8vw, 100px);
  position: relative;
}
.vins-section:first-of-type {
  padding-top: clamp(60px, 8vw, 100px);
}
.vins-section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 64px);
  padding-top: clamp(48px, 6vw, 80px);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.vins-section-label.in-view {
  opacity: 1;
  transform: translateX(0);
}
.vins-section-label::before {
  content: '';
  flex: 0 0 48px;
  height: 2px;
  background: var(--rouge);
}
.vins-section-label span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}

.vins-section--rouges {
  background: var(--beton-fond);
}

/* Wine grid — 4 per row */
.vins-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
}

/* Individual wine item */
.vin-item {
  text-align: center;
  text-decoration: none;
  display: block;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.vin-item.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger: each item gets a progressive delay based on grid position */
.vin-item:nth-child(1) { transition-delay: 0.00s; }
.vin-item:nth-child(2) { transition-delay: 0.06s; }
.vin-item:nth-child(3) { transition-delay: 0.12s; }
.vin-item:nth-child(4) { transition-delay: 0.18s; }
.vin-item:nth-child(5) { transition-delay: 0.24s; }
.vin-item:nth-child(6) { transition-delay: 0.30s; }
.vin-item:nth-child(7) { transition-delay: 0.36s; }

.vin-item-img {
  position: relative;
  height: clamp(370px, 40vw, 500px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 20px;
}
.vin-item-img::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: min(280px, 82%);
  height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.00) 72%
  );
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.vin-item:has(.vin-item-img img)::after,
.vin-item:has(.vin-item-img picture)::after,
.vin-item-img:has(img)::after,
.vin-item-img:has(picture)::after {
  opacity: 1;
}
.vin-item-img picture {
  display: block;
  height: 100%;
}
.vin-item-img img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.vin-item:hover .vin-item-img img {
  transform: translateY(-8px);
}

/* Placeholder bottle silhouette */
.vin-placeholder {
  width: 64px;
  height: 100%;
  position: relative;
}
.vin-placeholder svg {
  width: 100%;
  height: 100%;
  color: var(--beton);
  opacity: 0.2;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.vin-item:hover .vin-placeholder svg {
  opacity: 0.35;
  transform: translateY(-8px);
}

/* Wine name */
.vin-item-name {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.3s ease;
  position: relative;
}
.vin-item-name::before {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: var(--rouge);
  margin: 10px auto 12px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.vin-item:hover .vin-item-name {
  color: var(--rouge);
}
.vin-item:hover .vin-item-name::before {
  transform: scaleX(1);
}
.vin-item-terroir {
  font-family: var(--serif);
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Négoce separator */
.vins-section-sub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--argent);
  text-align: center;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Responsive wine grid */
@media (max-width: 1024px) {
  .vins-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }
}
@media (max-width: 600px) {
  .vins-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }
  .vin-item-img {
    height: 300px;
  }
  .page-hero {
    height: 55vh;
    min-height: 360px;
  }
  .page-hero.page-hero--fiche {
    height: 36vh;
    min-height: 240px;
    max-height: none;
  }
}

/* ═══════════════════════════════════════════
   PAGE: FICHE VIN (détail)
   ═══════════════════════════════════════════ */

/* Back link on hero */
.fiche-back {
  position: absolute;
  bottom: 24px;
  left: var(--side);
  z-index: 2;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fiche-back::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--rouge-vif);
  transition: width 0.3s ease;
}
.fiche-back:hover { color: var(--blanc-pur); }
.fiche-back:hover::before { width: 24px; }

/* Retour « Nos Vins » : coin haut-gauche de la colonne bouteille */
.fiche-bottle > .fiche-back {
  top: var(--fiche-back-top);
  bottom: auto;
  left: clamp(16px, 3vw, 36px);
  z-index: 5;
}

/* Fiche hero (small band) */
.fiche-hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  max-height: 400px;
  overflow: hidden;
  background: var(--noir);
}
.fiche-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.fiche-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.4);
}

/* Main layout */
.fiche {
  display: grid;
  grid-template-columns: 48% 1fr;
  background: var(--ivoire);
}

/* Bottle column — sticky */
.fiche-bottle {
  /* Aligné avec .fiche-back (haut gauche) pour caler le haut de la bouteille */
  --fiche-back-top: clamp(48px, 5.5vh, 72px);
  position: relative;
  background: radial-gradient(
    ellipse 130% 100% at 50% 36%,
    #2a2a2a 0%,
    #151515 38%,
    #080808 68%,
    #000000 100%
  );
}
.fiche-bottle-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  /* Espace sous le bouton retour : bouteille un peu plus basse / plus petite */
  padding: calc(var(--fiche-back-top) + 28px) clamp(12px, 2vw, 24px) 0;
  box-sizing: border-box;
}
.fiche-bottle-inner picture {
  display: block;
  height: 100%;
}
.fiche-bottle-inner img {
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center top;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeIn 1s ease 0.3s forwards;
}

/* Info column */
.fiche-info {
  padding: clamp(64px, 8vw, 100px) clamp(48px, 5vw, 80px) 80px clamp(48px, 5vw, 72px);
}

/* Appellation & title */
.fiche-appellation {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 12px;
}
.fiche-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.1;
}
.fiche-terroir-name {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  margin-top: 4px;
}
.fiche-filet {
  width: 48px;
  height: 2px;
  background: var(--rouge);
  margin: 28px 0;
}

/* Terroir description */
.fiche-terroir-desc {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Data table */
.fiche-data {
  margin-bottom: 48px;
}
.fiche-data-row {
  display: flex;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.fiche-data-row:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.fiche-data-label {
  flex: 0 0 130px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}
.fiche-data-value {
  flex: 1;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

/* Section headings */
.fiche-section-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fiche-section-title::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--rouge);
}

/* Dégustation */
.fiche-degustation {
  margin-bottom: 48px;
}
.fiche-degustation-item {
  margin-bottom: 20px;
}
.fiche-degustation-item:last-child {
  margin-bottom: 0;
}
.fiche-degustation-label {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
}
.fiche-degustation-text {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Service & accords */
.fiche-service {
  margin-bottom: 48px;
}

/* Download */
.fiche-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  transition: color 0.3s ease;
  margin-bottom: 48px;
}
.fiche-download:hover { color: var(--rouge); }
.fiche-download svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* Prev / Next navigation */
.fiche-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.fiche-nav a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.3s ease;
}
.fiche-nav a:hover { color: var(--rouge); }
.fiche-nav-label {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  margin-top: 4px;
}

/* Responsive fiche */
@media (max-width: 900px) {
  .page-hero img {
    object-position: left center;
  }
  .page-hero.page-hero--domaine img {
    object-position: center center;
  }
  .fiche {
    grid-template-columns: 1fr;
  }
  .fiche-bottle {
    display: flex;
    flex-direction: column;
    height: 65vh;
    min-height: 400px;
  }
  .fiche-bottle-inner {
    position: relative;
    flex: 1;
    min-height: 0;
    height: 100%;
    align-items: stretch;
    justify-content: center;
    padding: calc(var(--fiche-back-top) + 24px) clamp(16px, 4vw, 32px) 0;
  }
  .fiche-bottle-inner img {
    height: 100%;
    max-height: 100%;
  }
  .fiche-info {
    padding: 48px var(--side) 64px;
  }
  .fiche-hero {
    height: 30vh;
    min-height: 200px;
  }
  .page-hero.page-hero--fiche {
    height: 36vh;
    min-height: 240px;
    max-height: none;
  }
}

.page-hero.page-hero--domaine img {
  filter: none;
}

.page-hero.page-hero--savoir-faire img {
  filter: none;
}

.page-hero.page-hero--terroirs img {
  filter: none;
}
@media (max-width: 600px) {
  .fiche-bottle {
    height: 55vh;
    min-height: 340px;
  }
  .fiche-data-label {
    flex: 0 0 100px;
  }
}

/* ═══════════════════════════════════════════
   PAGE: LE DOMAINE
   ═══════════════════════════════════════════ */

.domaine-intro {
  background: var(--ivoire);
  padding: clamp(80px, 10vw, 120px) var(--side);
}
.domaine-intro-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.domaine-intro-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}
.domaine-intro-label.in-view {
  opacity: 1;
  transform: translateY(0);
}
.domaine-intro h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 28px;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.7s ease 0.1s;
}
.domaine-intro h2.in-view {
  opacity: 1;
  transform: translateY(0);
}
.domaine-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.7s ease 0.2s;
}
.domaine-intro p.in-view {
  opacity: 1;
  transform: translateY(0);
}

.timeline {
  background: var(--beton-fond);
  padding: 0 var(--side) clamp(80px, 10vw, 120px);
  position: relative;
}
.timeline-header {
  text-align: center;
  padding-top: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(48px, 6vw, 72px);
}
.timeline-header span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
}
.timeline-track {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 40px;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
}
.timeline-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.06);
}
.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--rouge);
  transition: none;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.timeline-ghost-year {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(120px, 16vw, 220px);
  font-weight: 300;
  line-height: 1;
  color: rgba(13, 13, 13, 0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.02em;
}
.timeline-item--left .timeline-ghost-year {
  right: -2vw;
}
.timeline-item--right .timeline-ghost-year {
  left: -2vw;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ivoire);
  background: var(--beton);
  transform: translateX(-50%) scale(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
  z-index: 2;
}
.timeline-item.in-view .timeline-dot {
  transform: translateX(-50%) scale(1);
}
.timeline-item.in-view .timeline-dot.dot-active {
  background: var(--rouge);
}
.timeline-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-dot {
  z-index: 1;
}
.timeline-item.in-view .timeline-content {
  opacity: 1;
  transform: translateX(0) !important;
}
.timeline-item--left .timeline-content {
  grid-column: 1;
  text-align: right;
  padding-right: clamp(32px, 4vw, 56px);
  transform: translateX(-20px);
}
.timeline-item--left .timeline-spacer {
  grid-column: 2;
}
.timeline-item--right .timeline-content {
  grid-column: 2;
  text-align: left;
  padding-left: clamp(32px, 4vw, 56px);
  transform: translateX(20px);
}
.timeline-item--right .timeline-spacer {
  grid-column: 1;
}
.timeline-year {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.timeline-text {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 340px;
}
.timeline-item--left .timeline-text {
  margin-left: auto;
}
.timeline-photo {
  margin-top: 20px;
  overflow: hidden;
  max-width: 340px;
}
.timeline-item--left .timeline-photo {
  margin-left: auto;
}
.timeline-photo picture {
  display: block;
  width: 100%;
}
.timeline-photo img {
  width: 100%;
  height: auto;
  opacity: 1;
  transform: scale(1);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-photo img:hover {
  transform: scale(1.03);
}

.domaine-closing {
  position: relative;
  height: 55vh;
  min-height: 340px;
  overflow: hidden;
}
.domaine-closing img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.domaine-closing-over {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--side);
}
.domaine-closing-content {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.7s ease;
}
.domaine-closing-content.in-view {
  opacity: 1;
  transform: translateY(0);
}
.domaine-closing-content h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  color: var(--blanc-pur);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .timeline-ghost-year {
    font-size: clamp(72px, 24vw, 132px);
    top: 12px;
    transform: none;
    opacity: 0.55;
  }
  .timeline-item--left .timeline-ghost-year,
  .timeline-item--right .timeline-ghost-year {
    left: 24px;
    right: auto;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 32px;
  }
  .timeline-line {
    left: 0;
    transform: none;
  }
  .timeline-dot {
    left: 0;
    transform: translateX(-50%) scale(0);
  }
  .timeline-item.in-view .timeline-dot {
    transform: translateX(-50%) scale(1);
  }
  .timeline-item--left .timeline-content,
  .timeline-item--right .timeline-content {
    grid-column: 1;
    text-align: left;
    padding-left: 24px;
    padding-right: 0;
    transform: translateX(16px);
  }
  .timeline-item--left .timeline-text {
    margin-left: 0;
  }
  .timeline-item--left .timeline-photo {
    margin-left: 0;
  }
  .timeline-spacer {
    display: none;
  }
  .timeline-photo {
    max-width: 300px;
  }
  .domaine-intro h2 {
    white-space: normal;
  }
}

/* ═══════════════════════════════════════════
   PAGE: SAVOIR-FAIRE
   ═══════════════════════════════════════════ */

.hero-sf {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--noir);
}
.hero-sf iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
}
.hero-sf::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.hero-sf .page-hero-content {
  position: absolute;
  bottom: clamp(48px, 8vw, 72px);
  left: var(--side);
  z-index: 1;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeIn 1s ease 0.3s forwards;
}

.sf-intro {
  background: var(--ivoire);
  padding: clamp(80px, 10vw, 120px) var(--side);
}
.sf-intro-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.sf-intro-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}
.sf-intro-label.in-view {
  opacity: 1;
  transform: translateY(0);
}
.sf-intro p {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.7s ease 0.15s;
}
.sf-intro p.in-view {
  opacity: 1;
  transform: translateY(0);
}

.sf-section {
  background: var(--ivoire);
  padding: 0 var(--side) clamp(80px, 10vw, 120px);
}
.sf-section--beton {
  background: var(--beton-fond);
  padding-top: clamp(56px, 7vw, 88px);
}
.sf-section--cave {
  background: var(--ivoire);
  padding-top: clamp(56px, 7vw, 92px);
}
.sf-section--cave-gallery {
  background: var(--ivoire);
  padding-top: 0;
  padding-bottom: clamp(80px, 10vw, 120px);
}
.domaine-gallery {
  padding-top: clamp(44px, 6vw, 84px);
}
.sf-block {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.sf-block--reverse {
  direction: rtl;
}
.sf-block--reverse > * {
  direction: ltr;
}
.sf-visual {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-visual.in-view {
  opacity: 1;
  transform: translateY(0);
}
.sf-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  padding-bottom: 0;
  height: auto;
  overflow: hidden;
  background: var(--noir);
}
.sf-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.sf-photo {
  width: 100%;
  height: auto;
  display: block;
}
.sf-photo-tall {
  height: clamp(400px, 50vw, 560px);
  object-fit: cover;
}

.sf-text {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.sf-text.in-view {
  opacity: 1;
  transform: translateY(0);
}
.sf-text-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sf-text-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--rouge);
}
.sf-text h2 {
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.15;
}
.sf-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
}
.sf-text p:last-of-type {
  margin-bottom: 0;
}

/* ── Filmstrip ── */
.sf-filmstrip {
  margin-top: clamp(64px, 8vw, 104px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  /* Reveal animation on the container */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-filmstrip::-webkit-scrollbar {
  display: none;
}
.sf-filmstrip.in-view {
  opacity: 1;
  transform: translateY(0);
}
.sf-filmstrip--tight {
  margin-top: 0;
}
.sf-filmstrip.is-dragging {
  cursor: grabbing;
}
.sf-filmstrip-track {
  display: flex;
  gap: clamp(10px, 1.2vw, 16px);
  padding-inline: var(--side);
}
.sf-filmstrip-item {
  flex: 0 0 clamp(220px, 52vw, 620px);
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: var(--noir);
}
.sf-filmstrip-item picture {
  display: block;
  width: 100%;
  height: 100%;
}
.sf-filmstrip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-filmstrip:not(.is-dragging) .sf-filmstrip-item:hover img {
  transform: scale(1.03);
}

.sf-band {
  position: relative;
  height: clamp(300px, 40vw, 500px);
  overflow: hidden;
}
.sf-band iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}
.sf-band picture {
  display: block;
  width: 100%;
  height: 100%;
}
.sf-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-band.in-view img {
  transform: scale(1);
}

.sf-duo {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sf-duo picture {
  display: block;
  width: 100%;
}
.sf-duo img {
  width: 100%;
  height: clamp(280px, 32vw, 400px);
  object-fit: cover;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-duo picture:nth-child(2) img,
.sf-duo img:nth-child(2) {
  transition-delay: 0.1s;
}
.sf-duo img.in-view {
  opacity: 1;
  transform: translateY(0);
}

.sf-text-centered {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.7s ease;
}
.sf-text-centered.in-view {
  opacity: 1;
  transform: translateY(0);
}
.sf-text-centered .sf-text-label {
  justify-content: center;
}
.sf-text-centered .sf-text-label::before {
  display: none;
}
.sf-text-centered h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
}
.sf-text-centered p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .sf-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sf-block--reverse {
    direction: ltr;
  }
  .sf-duo {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sf-duo img {
    height: 50vw;
    min-height: 220px;
  }
  .sf-filmstrip-item {
    flex: 0 0 clamp(210px, 72vw, 420px);
  }
  .hero-sf {
    height: 55vh;
    min-height: 380px;
  }
}

/* ═══════════════════════════════════════════
   PAGE: TERROIRS
   ═══════════════════════════════════════════ */

.terroir-intro {
  background: var(--ivoire);
  padding: clamp(64px, 8vw, 100px) var(--side);
}
.terroir-intro-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.terroir-intro h2 {
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.7s ease;
}
.terroir-intro h2.in-view {
  opacity: 1;
  transform: translateY(0);
}
.terroir-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.7s ease 0.1s;
}
.terroir-intro p + p {
  margin-top: 16px;
}
.terroir-intro p.in-view {
  opacity: 1;
  transform: translateY(0);
}

.terroir-sols {
  background: var(--ivoire);
  padding: clamp(56px, 7vw, 92px) var(--side) clamp(80px, 10vw, 120px);
}

.terroir-map {
  position: relative;
  width: 100%;
  background: var(--beton-fond);
  padding: clamp(56px, 8vw, 96px) 0;
}
.terroir-map-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  text-align: center;
  margin-bottom: 22px;
}
.terroir-map-subtitle {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
  margin: 0 0 40px;
}
.terroir-map-canvas {
  position: relative;
  width: 100%;
}
#map {
  width: 100%;
  height: 75vh;
  min-height: 500px;
}

.map-filters {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 800;
  flex-wrap: nowrap;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 0 12px;
  box-sizing: border-box;
}
.filter-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.filter-btn:hover {
  background: var(--blanc-pur);
  border-color: rgba(139, 18, 21, 0.25);
}
.filter-btn.active {
  background: var(--text);
  color: var(--ivoire);
  border-color: var(--text);
}

.marker-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--blanc-pur);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.marker-pin:hover,
.marker-pin.active {
  transform: scale(1.25);
}
.pin-saint-romain { background: #4a7a40; }
.pin-pommard { background: #8b2a2a; }
.pin-beaune { background: #b05020; }
.pin-volnay { background: #6a2080; }
.pin-meursault { background: #8a7020; }
.pin-hautes-cotes { background: #3a6080; }
.pin-aligote { background: #507840; }
.pin-bourgogne { background: #704060; }

.marker-label {
  background: transparent !important;
  border: none !important;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.marker-label.is-zoom-hidden,
.marker-label.is-collapsed {
  opacity: 0;
  visibility: hidden;
}
.marker-label.is-highlight {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2500 !important;
}
.marker-label.is-highlight .marker-label-text {
  background: rgba(245, 240, 232, 0.98);
}
.marker-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.marker-label-line {
  flex-shrink: 0;
  width: 22px;
  height: 0;
  border-top: 1px solid currentColor;
  opacity: 0.5;
}
.marker-label-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
  padding: 1px 4px 2px;
  background: linear-gradient(
    180deg,
    rgba(245, 240, 232, 0) 0%,
    rgba(245, 240, 232, 0.88) 38%,
    rgba(245, 240, 232, 0.88) 100%
  );
  text-shadow:
    0 0 18px rgba(245, 240, 232, 1),
    0 0 10px rgba(245, 240, 232, 0.95),
    1px 0 0 rgba(255, 255, 255, 0.85),
    -1px 0 0 rgba(255, 255, 255, 0.85);
}
.marker-label-wrap--e {
  transform: translate(14px, -50%);
  flex-direction: row;
}
.marker-label-wrap--w {
  transform: translate(calc(-100% - 14px), -50%);
  flex-direction: row-reverse;
}
.marker-label-wrap--n {
  transform: translate(-50%, calc(-100% - 14px));
  flex-direction: column;
  align-items: center;
}
.marker-label-wrap--n .marker-label-line {
  width: 0;
  height: 18px;
  border-top: none;
  border-left: 1px solid currentColor;
}
.marker-label-wrap--s {
  transform: translate(-50%, 14px);
  flex-direction: column-reverse;
  align-items: center;
}
.marker-label-wrap--s .marker-label-line {
  width: 0;
  height: 18px;
  border-top: none;
  border-left: 1px solid currentColor;
}
.marker-label-wrap--ne {
  transform: translate(10px, calc(-100% - 10px));
  flex-direction: row;
  align-items: flex-end;
}
.marker-label-wrap--nw {
  transform: translate(calc(-100% - 10px), calc(-100% - 10px));
  flex-direction: row-reverse;
  align-items: flex-end;
}
.marker-label-wrap--se {
  transform: translate(10px, 10px);
  flex-direction: row;
  align-items: flex-start;
}
.marker-label-wrap--sw {
  transform: translate(calc(-100% - 10px), 10px);
  flex-direction: row-reverse;
  align-items: flex-start;
}

.terroir-map .leaflet-tile {
  filter: sepia(15%) saturate(85%) brightness(1.02) contrast(0.97);
}
.marker-domaine {
  position: relative;
  width: 18px;
  height: 18px;
  background: var(--rouge);
  border: 3px solid var(--blanc-pur);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(139, 18, 21, 0.35), 0 0 0 1px rgba(139, 18, 21, 0.12);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.marker-domaine::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--rouge);
  opacity: 0.45;
  pointer-events: none;
  animation: marker-pulse 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.marker-domaine:hover {
  transform: scale(1.35);
  box-shadow: 0 4px 16px rgba(139, 18, 21, 0.45), 0 0 0 2px rgba(139, 18, 21, 0.2);
}
@keyframes marker-pulse {
  0%   { transform: scale(0.9); opacity: 0.55; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Leaflet force une couleur bleue par défaut sur les liens internes — on réaligne sur le rouge du site */
.leaflet-container a.popup-link,
.leaflet-popup-content a {
  color: var(--rouge);
}
.leaflet-container a.popup-link:hover,
.leaflet-popup-content a:hover {
  color: var(--rouge-vif);
}
.marker-label-domaine {
  background: transparent;
  border: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.9),
     1px -1px 0 rgba(255, 255, 255, 0.9),
    -1px  1px 0 rgba(255, 255, 255, 0.9),
     1px  1px 0 rgba(255, 255, 255, 0.9),
     0 0 8px rgba(255, 255, 255, 1);
}
.leaflet-popup-content-wrapper {
  background: var(--blanc-pur) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12) !important;
  padding: 0 !important;
}
.leaflet-popup-tip {
  background: var(--blanc-pur) !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  min-width: 230px;
}
.leaflet-popup-close-button {
  color: var(--text-light) !important;
  font-size: 18px !important;
  padding: 6px 8px !important;
}
.popup-inner {
  padding: 18px 22px 16px;
}
.popup-cat {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--rouge);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.popup-appellation {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.popup-pending {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--sans);
  font-size: 12px;
  font-style: italic;
  color: var(--text-light);
  letter-spacing: 0.02em;
}
.popup-link--vin::after {
  content: none;
}
.popup-nom {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 10px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.popup-meta {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.8;
}
.popup-meta .label {
  color: var(--argent);
  margin-right: 6px;
}
.popup-link {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--rouge);
  transition: color 0.2s ease;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.popup-link + .popup-link {
  margin-top: 0;
  border-top: none;
  padding-top: 6px;
}
.popup-link:hover {
  color: var(--rouge-vif);
}
.popup-link::after {
  content: ' ->';
}
.map-legend {
  position: absolute;
  bottom: 28px;
  right: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 16px;
  z-index: 800;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.map-legend-title {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-light);
  text-transform: uppercase;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.map-legend-item:last-child {
  margin-bottom: 0;
}
.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
.map-legend-dot--saint-romain { background: #4a7a40; }
.map-legend-dot--pommard { background: #8b2a2a; }
.map-legend-dot--beaune { background: #b05020; }
.map-legend-dot--volnay { background: #6a2080; }
.map-legend-dot--meursault { background: #8a7020; }
.map-legend-dot--hautes-cotes { background: #3a6080; }
.leaflet-control-zoom {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
.leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 0 !important;
}
.leaflet-control-zoom a:hover {
  background: var(--blanc-pur) !important;
}
.leaflet-control-attribution {
  font-family: var(--sans) !important;
  font-size: 10px !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 768px) {
  #map {
    height: 60vh;
    min-height: 400px;
  }
  .map-filters {
    top: 12px;
    gap: 4px;
    flex-wrap: wrap;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }
  .filter-btn {
    font-size: 10px;
    padding: 6px 9px;
    letter-spacing: 0.08em;
  }
  .map-legend {
    bottom: 16px;
    right: 12px;
    left: auto;
    padding: 10px 12px;
    max-width: calc(100% - 24px);
  }
  .marker-label-text {
    font-size: 15px;
  }
  .marker-label-line {
    width: 16px;
  }
  .marker-label-wrap--n .marker-label-line,
  .marker-label-wrap--s .marker-label-line {
    height: 14px;
  }
  .marker-pin {
    width: 16px;
    height: 16px;
    border-width: 2.5px;
  }
}

/* ═══════════════════════════════════════════
   CONTACT
   =══════════════════════════════════════════ */

/* Hero photo — reprend le traitement des autres page-hero (vins, terroirs) */
.page-hero--contact {
  height: 56vh;
  min-height: 420px;
  max-height: 620px;
}
.page-hero--contact img {
  filter: none;
}

/* Vidéo intégrée en tête de la colonne formulaire (16:9) */
.contact-form-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ivoire);
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.contact-form-video iframe {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border: 0;
  pointer-events: none;
}

/* Intro ivoire — même rythme que .home-intro / .sf-intro */
.contact-intro {
  background: var(--ivoire);
  padding: clamp(80px, 12vw, 140px) 0 clamp(56px, 7vw, 88px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-intro.in-view {
  opacity: 1;
  transform: translateY(0);
}
.contact-intro-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--side);
  text-align: center;
}
.contact-intro-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 22px;
}
.contact-intro h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 26px;
  line-height: 1.12;
}
.contact-intro h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--rouge);
  margin: 24px auto 0;
}
.contact-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

/* Split : coordonnées + formulaire — continue sur ivoire, même padding-bottom que .sf-section */
.contact-split {
  background: var(--ivoire);
  padding: 0 0 clamp(80px, 10vw, 120px);
}
.contact-split-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

/* — Bloc coordonnées */
.contact-info {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: sticky;
  top: 120px;
}
.contact-info.in-view {
  opacity: 1;
  transform: translateY(0);
}
.contact-info-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-info-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--rouge);
}
.contact-info-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 22px;
}
.contact-info-filet {
  width: 40px;
  height: 1px;
  background: var(--argent);
  margin-bottom: 34px;
  opacity: 0.6;
}
.contact-info-block {
  margin-bottom: 26px;
}
.contact-info-block:last-of-type {
  margin-bottom: 0;
}
.contact-info-key {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--argent);
  margin-bottom: 8px;
}
.contact-info-block p {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}
.contact-info-block a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact-info-block a:hover {
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}
.contact-info-social {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.contact-info-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.contact-info-social a:hover {
  color: var(--blanc-pur);
  background: var(--rouge);
  border-color: var(--rouge);
}
.contact-info-social .nav-social-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* — Formulaire */
.contact-form-wrap {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.contact-form-wrap.in-view {
  opacity: 1;
  transform: translateY(0);
}
.contact-form-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-form-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--rouge);
}
.contact-form-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 18px;
}
.contact-form-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 520px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-field--full {
  width: 100%;
}
.contact-field-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--argent);
}
.contact-field-optional {
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--argent);
  opacity: 0.7;
  font-weight: 400;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding: 10px 0 12px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s ease;
  width: 100%;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231A1A1A' stroke-width='1.2' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px 14px;
  padding-right: 28px;
  cursor: pointer;
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--rouge);
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: rgba(139, 18, 21, 0.5);
}

.rgpd-notice {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-light);
}
.rgpd-notice a {
  color: var(--rouge);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rgpd-notice a:hover {
  color: var(--rouge-vif);
}
.contact-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}
.contact-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-inv);
  background: var(--noir);
  padding: 18px 28px;
  border: 1px solid var(--noir);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.contact-form-submit svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  transition: transform 0.3s ease;
}
.contact-form-submit:hover {
  background: var(--rouge);
  border-color: var(--rouge);
}
.contact-form-submit:hover svg {
  transform: translateX(4px);
}
.contact-form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Honeypot anti-spam (contact) */
.contact-form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form-status {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.6;
  min-height: 1em;
}
.contact-form-status.is-success {
  color: #1f6b3a;
  padding: 14px 16px;
  background: rgba(31, 107, 58, 0.07);
  border-left: 2px solid #1f6b3a;
}
.contact-form-status.is-error {
  color: var(--rouge);
  padding: 14px 16px;
  background: rgba(139, 18, 21, 0.06);
  border-left: 2px solid var(--rouge);
}

/* — Plan d'accès — même rythme que .terroir-map (beton-fond + padding équilibré) */
.contact-map-section {
  position: relative;
  background: var(--beton-fond);
  padding: clamp(56px, 8vw, 96px) 0;
}
.contact-map-header {
  max-width: 820px;
  margin: 0 auto clamp(44px, 5vw, 64px);
  padding: 0 var(--side);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-map-header.in-view {
  opacity: 1;
  transform: translateY(0);
}
.contact-map-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 18px;
}
.contact-map-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 18px;
}
.contact-map-lede {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
}
#contact-map {
  width: 100%;
  height: 64vh;
  min-height: 460px;
  background: var(--noir);
}
.contact-map-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) var(--side) 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.contact-map-footer .contact-map-itineraire {
  align-self: center;
}
.contact-map-meta {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
}
.contact-map-meta-key {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--argent);
  margin-bottom: 8px;
}
.contact-map-itineraire {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  padding: 16px 26px;
  border: 1px solid var(--text);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.contact-map-itineraire svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  transition: transform 0.3s ease;
}
.contact-map-itineraire:hover {
  background: var(--noir);
  color: var(--text-inv);
  border-color: var(--noir);
}
.contact-map-itineraire:hover svg {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-split-inner {
    grid-template-columns: 1fr;
    gap: clamp(48px, 8vw, 72px);
  }
  .contact-info {
    position: static;
  }
  .contact-map-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-map-itineraire {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .page-hero--contact {
    height: 50vh;
    min-height: 360px;
  }
  .contact-split {
    padding: 72px 0;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .contact-form-actions {
    justify-content: stretch;
  }
  .contact-form-submit {
    width: 100%;
    justify-content: center;
  }
  #contact-map {
    height: 55vh;
    min-height: 380px;
  }
  .contact-map-footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .contact-map-itineraire {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════
   MENTIONS LÉGALES — modale
   ═══════════════════════════════════════════ */
body.legal-modal-open {
  overflow: hidden;
}
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.legal-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 920px);
  background: var(--ivoire);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.985);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.legal-modal.is-open .legal-modal-panel {
  transform: translateY(0) scale(1);
}
.legal-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
}
.legal-modal-close:hover {
  background: var(--blanc-pur);
}
.legal-modal-close span {
  position: relative;
  width: 18px;
  height: 18px;
}
.legal-modal-close span::before,
.legal-modal-close span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
}
.legal-modal-close span::before { transform: rotate(45deg); }
.legal-modal-close span::after { transform: rotate(-45deg); }
.legal-modal-scroll {
  overflow-y: auto;
  padding: clamp(36px, 5vw, 52px) clamp(28px, 4vw, 44px) clamp(32px, 4vw, 40px);
  -webkit-overflow-scrolling: touch;
}
.legal-modal-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 10px;
}
.legal-modal-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(139, 18, 21, 0.2);
}
.legal-section {
  margin-bottom: 28px;
}
.legal-section h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 12px;
}
.legal-section p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}
.legal-section a {
  color: var(--rouge);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-section a:hover {
  color: var(--rouge-vif);
}
.legal-dl {
  margin: 0;
}
.legal-dl > div {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 8px 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.legal-dl > div:last-child {
  border-bottom: none;
}
.legal-dl dt {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin: 0;
}
.legal-dl dd {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.legal-list {
  margin: 12px 0 0;
  padding-left: 1.1em;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}
.legal-list li + li {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .legal-modal {
    padding: 0;
    align-items: flex-end;
  }
  .legal-modal-panel {
    width: 100%;
    max-height: 92vh;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .legal-dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ── Bouton retour en haut ── */
.btn-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 2px;
  border: 1px solid var(--rouge);
  background: var(--rouge);
  color: var(--blanc-pur);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2100;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease;
}

.btn-back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-back-to-top:hover {
  background: var(--rouge-vif);
  border-color: var(--rouge-vif);
}

.btn-back-to-top:focus-visible {
  outline: 2px solid var(--rouge-vif);
  outline-offset: 3px;
}

.btn-back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .btn-back-to-top {
    right: 16px;
    bottom: 16px;
  }
}
