/* =========================================================
   WineFizz — feuille de style commune à toutes les pages
   ========================================================= */

/* ---------- polices (hébergées sur le site, sans Google) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-opsz-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-opsz-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/public-sans-latin-wght-normal.woff2') format('woff2');
}

/* ---------- couleurs (clair / sombre) ---------- */
:root {
  color-scheme: light dark;
  --bg: #ECE7D8;
  --bg-alt: #E1D9C2;
  --panel: #D9CFAF;
  --ink: #1C2318;
  --ink-soft: #4B5142;
  --green: #37442F;
  --green-soft: #6B7A5C;
  --plum: #C43A62;
  --plum-soft: #A8304F;
  --fizz: #E6789A;
  --line: rgba(28, 35, 24, 0.18);
  --line-strong: rgba(28, 35, 24, 0.32);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14170F;
    --bg-alt: #1B1F14;
    --panel: #232A1A;
    --ink: #ECE7D8;
    --ink-soft: #C3BFA8;
    --green: #9FB88B;
    --green-soft: #7C9268;
    --plum: #E8829F;
    --plum-soft: #F0A2B8;
    --fizz: #F0A2B8;
    --line: rgba(236, 231, 216, 0.16);
    --line-strong: rgba(236, 231, 216, 0.3);
  }
}

/* Transitions douces entre les pages (navigateurs récents). */
@view-transition { navigation: auto; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 3px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- en-tête / navigation ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  max-width: 1308px; margin: 0 auto;
}
.logo { display: inline-flex; }
.logo img { height: 46px; width: auto; }
nav.links ul { display: flex; gap: clamp(16px, 3vw, 34px); list-style: none; margin: 0; padding: 0; }
nav.links a {
  font-size: 0.95rem; text-decoration: none; color: var(--ink-soft);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
nav.links a:hover, nav.links a:focus-visible { color: var(--ink); border-color: var(--line-strong); }
nav.links a[aria-current="page"] { color: var(--ink); border-color: var(--plum); }
.abv-chip {
  font-size: 0.8rem; border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 5px 13px; color: var(--ink-soft); white-space: nowrap;
}
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 100px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
nav.mobile-links { display: none; }
@media (max-width: 760px) {
  nav.links, .abv-chip { display: none; }
  .menu-btn { display: inline-flex; }
  nav.mobile-links { display: block; border-top: 1px solid var(--line); }
  nav.mobile-links[hidden] { display: none; }
  nav.mobile-links ul { list-style: none; margin: 0; padding: 0; }
  nav.mobile-links a {
    display: block; padding: 16px var(--gutter); text-decoration: none;
    color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: 1.02rem;
  }
  nav.mobile-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  nav.mobile-links .abv-note { padding: 14px var(--gutter); font-size: 0.85rem; color: var(--ink-soft); }
}

/* ---------- boutons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; text-decoration: none;
  padding: 13px 24px; border-radius: 3px; display: inline-block; min-height: 44px;
  transition: transform .15s ease, background .2s ease;
}
.btn-primary { background: var(--green); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--panel); }
.bleed .btn-ghost { border-color: rgba(243,239,225,.6); color: #fff; }
.bleed .btn-ghost:hover { background: rgba(255,255,255,.12); }
.text-link { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--plum); }
.bleed .text-link { color: #fff; text-decoration-color: var(--fizz); }

/* ---------- accueil : hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(32px, 5vw, 64px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 56px);
  align-items: center; padding-bottom: clamp(40px, 6vw, 72px);
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 6px 14px 6px 10px; margin-bottom: 26px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fizz); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 14ch; }
.lede { margin-top: 24px; max-width: 44ch; font-size: 1.1rem; color: var(--ink-soft); }
.hero-art {
  position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--panel);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,35,24,0) 55%, rgba(20,23,15,.55) 100%);
}
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.bubble { fill: var(--fizz); opacity: 0; animation: rise 5.5s ease-in infinite; }
.bubble:nth-child(2) { animation-delay: 1.1s; }
.bubble:nth-child(3) { animation-delay: 2.3s; }
.bubble:nth-child(4) { animation-delay: 3.1s; }
.bubble:nth-child(5) { animation-delay: 0.6s; }
@keyframes rise {
  0%   { opacity: 0; transform: translateY(0); }
  12%  { opacity: .85; }
  85%  { opacity: 0; }
  100% { opacity: 0; transform: translateY(-165px); }
}

/* ---------- en-tête des pages intérieures ---------- */
.page-hero .wrap { padding-top: clamp(80px, 14vw, 160px); padding-bottom: clamp(48px, 7vw, 80px); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16ch; }
.page-hero .lede { color: rgba(243,239,225,.9); }
.page-intro { padding: clamp(40px, 6vw, 72px) 0 clamp(8px, 2vw, 16px); }
.page-intro h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; }

.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0;
  font-size: 0.85rem; color: var(--ink-soft);
}
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.bleed .breadcrumb ol { color: rgba(243,239,225,.8); }

/* ---------- sections ---------- */
section.block { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
section.block.flush { border-top: none; }
.alt { background: var(--bg-alt); }
.kicker { font-size: 0.9rem; color: var(--plum-soft); margin-bottom: 14px; font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 18ch; }
h3 { font-size: 1.25rem; }
.body-copy { margin-top: 22px; max-width: 58ch; }
.body-copy p { margin-bottom: 16px; color: var(--ink-soft); }
.body-copy p:last-child { margin-bottom: 0; }
.body-copy strong { color: var(--ink); font-weight: 600; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
.figure {
  border: 1px solid var(--line-strong); border-radius: 4px; aspect-ratio: 4 / 5;
  position: relative; overflow: hidden; background: var(--panel);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure.landscape { aspect-ratio: 5 / 4; }

.facts {
  margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px 28px; max-width: 52ch;
}
.fact { border-top: 1px solid var(--line-strong); padding-top: 10px; }
.fact dt { font-size: 0.8rem; color: var(--ink-soft); }
.fact dd { font-family: var(--serif); font-size: 1.1rem; margin: 3px 0 0; }

/* ---------- photo plein cadre ---------- */
.bleed { position: relative; overflow: hidden; isolation: isolate; color: #F3EFE1; background: #1B1F14; }
.bleed .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bleed::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,23,15,.4) 0%, rgba(13,16,9,.82) 100%);
}
.bleed > .wrap { position: relative; z-index: 2; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); }
.bleed-inner { max-width: 640px; }
.bleed .kicker { color: var(--fizz); }
.bleed h2, .bleed h1 { color: #fff; }
.bleed .body-copy p { color: rgba(243,239,225,.9); }
.bleed .body-copy strong { color: #fff; }
.bleed .fact { border-top-color: rgba(243,239,225,.35); }
.bleed .fact dt { color: rgba(243,239,225,.75); }
.bleed .fact dd { color: #fff; }

.banner-cta > .wrap { text-align: center; }
.banner-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.8vw, 2rem);
  max-width: 28ch; margin: 0 auto; line-height: 1.35; color: #fff;
}
.banner-cta .cta-row { justify-content: center; }

/* ---------- accueil : cartes de découverte ---------- */
.cards {
  margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(14px, 2.4vw, 22px); list-style: none; padding: 0;
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; }
.card a { text-decoration: none; display: block; }
.card .card-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--panel); }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card a:hover .card-img img { transform: scale(1.04); }
.card h3 { margin-top: 16px; }
.card p { margin-top: 6px; color: var(--ink-soft); font-size: 0.95rem; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 0.92rem; border-bottom: 1px solid var(--plum); }

/* ---------- moments (cartes photo) ---------- */
.moments-grid {
  margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(14px, 2.4vw, 22px); list-style: none; padding: 0;
}
@media (max-width: 860px) { .moments-grid { grid-template-columns: 1fr; } }
.moment-card {
  position: relative; overflow: hidden; border-radius: 4px; min-height: 340px;
  display: flex; align-items: flex-end; isolation: isolate; background: #1B1F14;
}
.moment-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s ease; }
.moment-card:hover img { transform: scale(1.05); }
.moment-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,23,15,0) 30%, rgba(14,17,10,.9) 100%);
}
.moment-card .card-content { position: relative; z-index: 2; padding: 20px 20px 22px; }
.moment-card .num { font-family: var(--serif); font-style: italic; color: #F0A2B8; font-size: 1rem; }
.moment-card h3 { font-size: 1.2rem; margin-top: 12px; color: #fff; }
.moment-card p { margin-top: 8px; color: rgba(243,239,225,.88); font-size: 0.93rem; }

/* ---------- terre / raisin ---------- */
.sg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0; }
.sg-grid figure { margin: 0; position: relative; }
.sg-img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--panel); }
.sg-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-grid figcaption {
  position: absolute; left: 0; top: 0; padding: 14px var(--gutter);
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.sg-caption {
  text-align: center; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); padding: 26px var(--gutter) 0; color: var(--ink-soft);
}

/* ---------- galerie ---------- */
.gallery-grid {
  margin: 48px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 12px;
}
.gallery-grid li { border-radius: 3px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid li:hover img { transform: scale(1.05); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }
@media (max-width: 520px) { .gallery-grid { grid-auto-rows: 120px; } }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 34px; max-width: 66ch; }
details.faq-item { border-top: 1px solid var(--line-strong); padding: 18px 0; }
details.faq-item:last-child { border-bottom: 1px solid var(--line-strong); }
details.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; font-family: var(--serif); font-size: 1.1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .plus {
  flex: none; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 50%; position: relative;
}
details.faq-item summary .plus::before,
details.faq-item summary .plus::after { content: ''; position: absolute; background: var(--ink); top: 50%; left: 50%; }
details.faq-item summary .plus::before { width: 9px; height: 1px; transform: translate(-50%,-50%); }
details.faq-item summary .plus::after { width: 1px; height: 9px; transform: translate(-50%,-50%); transition: opacity .2s; }
details.faq-item[open] summary .plus::after { opacity: 0; }
details.faq-item .faq-a { margin-top: 14px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- contact ---------- */
.contact-list { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 48ch; }
.contact-list a, .contact-list .row {
  text-decoration: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; font-size: 1.04rem;
}
.contact-list a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.contact-list .label { color: var(--ink-soft); font-size: 0.85rem; }
.steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: s; max-width: 58ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 6px 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--plum-soft); }
.steps li strong { color: var(--ink); font-weight: 600; }

/* ---------- pages de texte (mentions légales) ---------- */
.prose { max-width: 70ch; padding-bottom: clamp(48px, 7vw, 88px); }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 42px 0 12px; max-width: none; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.todo {
  background: color-mix(in srgb, var(--fizz) 30%, transparent); color: var(--ink);
  padding: 1px 6px; border-radius: 3px; font-weight: 600;
}

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.not-found .code { font-family: var(--serif); font-style: italic; font-size: clamp(4rem, 14vw, 8rem); color: var(--fizz); line-height: 1; }
.not-found h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 16px auto 0; max-width: 18ch; }
.not-found p { margin: 16px auto 0; color: var(--ink-soft); max-width: 44ch; }
.not-found .cta-row { justify-content: center; }

/* ---------- pied de page ---------- */
footer.site {
  border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--bg-alt);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 12px; max-width: 34ch; }
.footer-brand img { height: 52px; width: auto; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.85rem; color: var(--ink-soft);
}
.footer-note { font-size: 0.85rem; color: var(--ink); font-weight: 500; }
