/* ==========================================================================
   Château de Garonneau — Design tokens
   Direction B — Éditorial Vigneron
   ========================================================================== */
:root{
  --cream: #FAF6EF;
  --ink: #1C1712;
  --ink-soft: #4A433C;
  --bordeaux: #7F1734;
  --bordeaux-dark: #4A0E1F;
  --sand: #EDE3D0;
  --gold: #A9824F;
  --border-soft: rgba(28,23,18,0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  --container: 1180px;
  --radius: 2px;
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 500; line-height: 1.1; color: var(--ink); }
h1{ font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 400; }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3{ font-size: 1.3rem; }
p{ color: var(--ink-soft); }
:focus-visible{ outline: 2px solid var(--bordeaux); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bordeaux);
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.eyebrow.center{ text-align:center; }
.center{ text-align:center; }

.section{ max-width: var(--container); margin: 0 auto; padding: 7rem 2rem; }
@media (max-width: 720px){ .section{ padding: 4.5rem 1.4rem; } }

/* ---------- Buttons & links ---------- */
.btn{
  display:inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.95rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn-primary{ background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }
.btn-primary:hover{ background: var(--bordeaux-dark); border-color: var(--bordeaux-dark); }
.btn-outline-light{ border-color: rgba(255,255,255,0.6); color:#fff; }
.btn-outline-light:hover{ background: rgba(255,255,255,0.12); }
.btn-outline-dark{ border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover{ background: var(--ink); color:#fff; }
.btn-ghost{ background:transparent; color: var(--ink); border-color: var(--border-soft); }

.link-arrow{
  display:inline-flex; align-items:center; gap:0.5rem;
  font-size: 0.85rem; letter-spacing:0.05em; text-transform: uppercase;
  font-weight:500; color: var(--bordeaux); position:relative;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, gap 0.3s ease;
}
.link-arrow::after{ content:"→"; transition: transform 0.3s ease; }
.link-arrow:hover{ border-color: var(--bordeaux); }
.link-arrow:hover::after{ transform: translateX(4px); }

/* ---------- Cookie banner ---------- */
.cookie-banner{
  position: fixed; left:1.2rem; right:1.2rem; bottom:1.2rem; z-index: 900;
  max-width: 620px; margin: 0 auto;
  background: var(--ink); color: #fff;
  padding: 1.2rem 1.4rem; border-radius: 6px;
  display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  transform: translateY(140%); transition: transform 0.5s ease;
}
.cookie-banner.is-visible{ transform: translateY(0); }
.cookie-banner p{ color: rgba(255,255,255,0.85); font-size: 0.85rem; flex: 1 1 260px; }
.cookie-actions{ display:flex; gap:0.6rem; }
.cookie-banner .btn-ghost{ color:#fff; border-color: rgba(255,255,255,0.35); }
.cookie-banner .btn-primary{ padding: 0.7rem 1.3rem; }

/* ---------- Header ---------- */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  display:flex; align-items:center; justify-content: space-between;
  padding: 1.3rem 2.4rem;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled{
  background: rgba(250,246,239,0.94);
  backdrop-filter: blur(6px);
  padding: 0.9rem 2.4rem;
  box-shadow: 0 1px 0 var(--border-soft);
}
.logo-mark{ display:flex; align-items:center; gap:0.7rem; z-index: 2; }
.logo-monogram{
  font-family: var(--font-display); font-size: 1.1rem;
  width: 38px; height: 38px; border: 1px solid currentColor;
  border-radius: 50%; display:flex; align-items:center; justify-content:center;
}
.logo-text{ font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em; }
.site-header:not(.is-scrolled) .logo-mark{ color: #fff; }
.site-header.is-scrolled .logo-mark{ color: var(--ink); }

.main-nav{ display:flex; align-items:center; gap:2.1rem; }
.main-nav a{
  font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight:500;
  position:relative; padding-bottom: 4px;
}
.site-header:not(.is-scrolled) .main-nav a:not(.nav-cta){ color: #fff; }
.site-header.is-scrolled .main-nav a:not(.nav-cta){ color: var(--ink); }
.main-nav a:not(.nav-cta)::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:0; background: currentColor;
  transition: width 0.3s ease;
}
.main-nav a:not(.nav-cta):hover::after{ width:100%; }
.nav-cta{
  border:1px solid currentColor; padding: 0.55rem 1.1rem; border-radius: var(--radius);
}
.site-header:not(.is-scrolled) .nav-cta{ color:#fff; }
.site-header.is-scrolled .nav-cta{ color: var(--bordeaux); border-color: var(--bordeaux); }
.nav-cta:hover{ background: var(--bordeaux); color:#fff !important; border-color: var(--bordeaux); }

.lang-switch{ display:flex; gap: 0.3rem; margin-left: 0.6rem; }
.lang-btn{
  background:none; border:none; cursor:pointer; font-family: var(--font-body);
  font-size: 0.76rem; letter-spacing: 0.05em; padding: 0.3rem 0.4rem; opacity: 0.55;
  color: inherit;
}
.lang-btn.is-active{ opacity: 1; border-bottom: 1px solid currentColor; }

.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; z-index:2; }
.nav-toggle span{ width: 24px; height: 1.5px; background: currentColor; }
.site-header:not(.is-scrolled) .nav-toggle{ color:#fff; }
.site-header.is-scrolled .nav-toggle{ color: var(--ink); }

@media (max-width: 980px){
  .main-nav{
    position: fixed; inset:0; background: var(--ink); color:#fff;
    flex-direction: column; justify-content:center; align-items:flex-start;
    padding: 2rem 2.4rem; gap: 1.6rem;
    transform: translateX(100%); transition: transform 0.45s ease;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav a{ color:#fff !important; font-size: 1.1rem; }
  .lang-switch{ margin-left:0; margin-top:1rem; }
  .nav-toggle{ display:flex; }
}

/* ---------- Placeholder media (temporary, to be replaced) ---------- */
.placeholder-media{
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(28,23,18,0.05) 0 2px, transparent 2px 14px),
    var(--sand);
  border: 1px solid var(--border-soft);
  min-height: 220px;
  display:flex; align-items:flex-end;
}
.placeholder-media::before{
  content: "Photo à venir";
  content: attr(data-placeholder);
  display:block; width:100%;
  font-size: 0.75rem; color: var(--ink-soft);
  background: rgba(250,246,239,0.85);
  padding: 0.6rem 0.9rem;
}
.placeholder-tall{ min-height: 460px; height:100%; }
.wine-bottle-placeholder{ aspect-ratio: 3/5; min-height: unset; }

/* ---------- Real (temporary, hotlinked) photos from the current site ---------- */
.photo-frame{
  position: relative; overflow:hidden;
  background: var(--sand);
  border: 1px solid var(--border-soft);
  min-height: 220px;
}
.photo-frame img{
  position:absolute; inset:0; width:100%; height:100%; object-fit: cover;
}
.photo-frame.placeholder-tall{ min-height: 460px; height:100%; }
.wine-bottle-placeholder.photo-frame{ aspect-ratio: 3/5; min-height: unset; }
.wine-bottle-placeholder.photo-frame img{ object-fit: contain; background: var(--sand); padding: 1.2rem; }
.temp-photo-badge{
  position:absolute; left:0; bottom:0; z-index:2;
  font-size: 0.68rem; color: var(--ink-soft);
  background: rgba(250,246,239,0.88);
  padding: 0.35rem 0.6rem;
}

/* ---------- Hero ---------- */
.hero{
  position: relative; height: 100vh; min-height: 620px;
  display:flex; align-items:center;
  overflow:hidden;
}
.hero-media{ position:absolute; inset:0; background-color: #3a3128; overflow:hidden; }
.hero-img{ position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.hero-overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(28,23,18,0.25), rgba(28,23,18,0.68)); }
.hero-media .temp-photo-badge{ bottom:1.2rem; left:1.2rem; background: rgba(0,0,0,0.4); color: rgba(255,255,255,0.85); }
.vine-signature{ position:absolute; inset:0; width:100%; height:100%; opacity:0.5; z-index:1; }
.vine-signature path{
  fill:none; stroke: rgba(255,255,255,0.5); stroke-width: 1.4;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: draw 3.2s ease forwards 0.4s;
}
@keyframes draw{ to{ stroke-dashoffset: 0; } }

.hero-content{ position:relative; z-index:3; color:#fff; padding: 0 2.4rem; max-width: 900px; }
.hero-content h1{ color:#fff; }
.hero .eyebrow{ color: #E7C9AA; }
.hero-sub{ color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 540px; margin: 1.4rem 0 2.2rem; }
.hero-actions{ display:flex; gap: 1rem; flex-wrap:wrap; }

.scroll-cue{ position:absolute; bottom: 2rem; left:50%; transform: translateX(-50%); z-index:3; }
.scroll-cue span{
  display:block; width:1px; height:46px; background: rgba(255,255,255,0.6);
  position:relative; overflow:hidden;
}
.scroll-cue span::after{
  content:""; position:absolute; top:-100%; left:0; width:100%; height:100%; background:#fff;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{ 50%{ top:0; } 100%{ top:100%; } }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible{ opacity:1; transform: translateY(0); }

/* ---------- Quote ---------- */
.quote-section{ padding: 6.5rem 2rem; text-align:center; max-width: 780px; margin: 0 auto; }
.quote-section p{
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); line-height:1.4;
}
.quote-section cite{ display:block; margin-top:1.2rem; font-style:normal; font-size:0.85rem; letter-spacing:0.04em; color: var(--bordeaux); text-transform: uppercase; }

/* ---------- Domaine / generic split sections ---------- */
.section-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items:center; }
.section-grid.reverse{ direction: rtl; }
.section-grid.reverse > *{ direction: ltr; }
@media (max-width: 900px){
  .section-grid{ grid-template-columns: 1fr; gap: 2.5rem; }
  .section-grid.reverse{ direction: ltr; }
}
.section-text h2{ margin-bottom: 1.3rem; }
.section-text p{ margin-bottom: 1rem; }
.section-text .link-arrow{ margin-top: 0.4rem; display:inline-flex; }

.stat-row{ display:flex; gap: 2.4rem; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--border-soft); flex-wrap:wrap; }
.stat{ display:flex; flex-direction:column; }
.stat-num{ font-family: var(--font-display); font-size: 2.1rem; color: var(--bordeaux); }
.stat-label{ font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.2rem; }

/* ---------- Savoir-faire ribbon ---------- */
.savoirfaire-section{ background: var(--sand); max-width: none; }
.savoirfaire-section > *:not(.process-ribbon){ max-width: var(--container); margin-left:auto; margin-right:auto; }
.savoirfaire-section h2{ margin-bottom: 3.5rem; }
.process-ribbon{
  position: relative;
  max-width: var(--container); margin: 0 auto;
  display:grid; grid-template-columns: repeat(5,1fr); gap: 1.8rem;
  padding-top: 1rem;
}
.ribbon-line{ position:absolute; top:-0.4rem; left:0; width:100%; height:40px; z-index:0; }
.ribbon-line path{ fill:none; stroke: var(--gold); stroke-width:1; opacity:0.5; }
.process-step{ position:relative; z-index:1; }
.process-num{ display:block; font-family: var(--font-display); color: var(--bordeaux); font-size: 1rem; margin-bottom: 0.6rem; }
.process-step h3{ margin-bottom: 0.6rem; font-size: 1.15rem; }
.process-step p{ font-size: 0.9rem; }
@media (max-width: 900px){
  .process-ribbon{ grid-template-columns: 1fr; gap: 2.2rem; }
  .ribbon-line{ display:none; }
}
.savoirfaire-section .link-arrow{ display:inline-flex; margin-top: 3rem; }

/* ---------- Vins ---------- */
.section-header-row{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom: 3rem; flex-wrap:wrap; gap:1rem; }
.wine-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 2.4rem; }
@media (max-width: 900px){ .wine-grid{ grid-template-columns: 1fr; } }
.wine-card h3{ margin: 1.2rem 0 0.6rem; }
.wine-card p{ font-size: 0.92rem; margin-bottom: 1rem; }
.wine-appellation{ font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bordeaux); margin-top: 1.1rem; }

/* ---------- Label section ---------- */
.label-section{ background: var(--ink); max-width: none; }
.label-section .section-grid{ max-width: var(--container); margin: 0 auto; padding: 7rem 2rem; }
.label-section .eyebrow{ color: #E7C9AA; }
.label-section h2, .label-section p{ color: #fff; }
.label-section p{ color: rgba(255,255,255,0.75); }

/* ---------- News ---------- */
.news-section h2{ margin-bottom: 3.5rem; }
.news-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 2.4rem; }
@media (max-width: 800px){ .news-grid{ grid-template-columns: 1fr; } }
.news-card h3{ margin: 1rem 0 0.6rem; font-size: 1.2rem; }
.news-date{ font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bordeaux); margin-top: 1rem; }
.news-card p{ font-size: 0.92rem; margin-bottom: 0.9rem; }

/* ---------- Contact CTA ---------- */
.contact-cta{ text-align:center; background: var(--sand); max-width: none; padding: 6rem 2rem; }
.contact-cta h2{ margin-bottom: 0.9rem; }
.contact-cta p{ margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,0.75); padding: 5rem 2.4rem 2rem; }
.footer-grid{ max-width: var(--container); margin: 0 auto; display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-brand{ display:flex; flex-direction:column; gap:1rem; }
.footer-brand .logo-monogram{ color:#fff; }
.footer-col h4{ font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color:#fff; margin-bottom: 1rem; }
.footer-col a{ display:block; font-size: 0.88rem; margin-bottom: 0.65rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ max-width: var(--container); margin: 0 auto; padding-top: 1.6rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:0.6rem; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ---------- Admin button ---------- */
.admin-btn{
  position: fixed; bottom: 1.1rem; right: 1.1rem; z-index: 400;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-soft);
  background: rgba(250,246,239,0.7); color: var(--ink-soft); cursor:pointer;
  font-size: 0.9rem; opacity: 0.45; transition: opacity 0.3s ease;
}
.admin-btn:hover{ opacity: 1; }

/* ---------- Pop-up de vérification d'âge ---------- */
.age-gate-overlay{
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(28,23,18,0.92);
  display:flex; align-items:center; justify-content:center;
  padding: 1.5rem;
  animation: age-gate-fade 0.4s ease;
}
@keyframes age-gate-fade{ from{ opacity:0; } to{ opacity:1; } }
.age-gate-card{
  background: var(--cream);
  max-width: 440px; width:100%;
  padding: 3rem 2.4rem;
  text-align:center;
  border: 1px solid var(--border-soft);
}
.age-gate-monogram{
  width: 44px; height: 44px; margin: 0 auto 1.6rem;
  border: 1px solid var(--ink); border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-size: 1rem; color: var(--ink);
}
.age-gate-text{
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4;
  color: var(--ink); margin-bottom: 2.2rem;
}
.age-gate-actions{ display:flex; gap: 1rem; justify-content:center; flex-wrap:wrap; }
@media (max-width: 480px){
  .age-gate-actions{ flex-direction:column; }
  .age-gate-card{ padding: 2.4rem 1.6rem; }
}
