/* =========================================================
   Château Sarail La Guillaumière — feuille de style
   Reprend l'esprit du thème d'origine (Hestia) : navigation
   blanche, grands bandeaux photo assombris, titres en petites
   capitales, accent prune #480032, pied de page anthracite.
   ========================================================= */

:root {
  --accent: #480032;
  --accent-light: #6d1d55;
  --text: #3c4858;
  --muted: #6b7280;
  --dark: #323437;
  --darker: #26282b;
  --line: #e7e7e7;
  --soft: #f7f5f4;
  --radius: 3px;
  --container: 1140px;
  --nav-h: 70px;
  --serif: "Roboto Slab", Georgia, "Times New Roman", serif;
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
strong { font-weight: 700; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--text); line-height: 1.3; margin: 0 0 .6em; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Navigation ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: #fff;
  box-shadow: 0 1px 10px -6px rgba(0,0,0,.42), 0 1px 10px 0 rgba(0,0,0,.12), 0 4px 5px -2px rgba(0,0,0,.1);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; color: #555; font-family: var(--serif); font-size: 1.35rem; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--accent); }
.brand img { max-height: 46px; width: auto; }
.brand-text { font-variant: small-caps; letter-spacing: .02em; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: #555;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav .dropdown-toggle {
  display: block; padding: 10px 15px;
  font-family: var(--sans); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em;
  color: #555; background: none; border: 0; cursor: pointer; line-height: 20px;
}
.main-nav a:hover, .main-nav .dropdown-toggle:hover, .main-nav a[aria-current="page"], .main-nav .is-active > .dropdown-toggle { color: var(--accent); text-decoration: none; }
.has-dropdown { position: relative; }
.dropdown-toggle::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: 2px; border-top: 4px solid; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px; padding: 6px 0 !important;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 10px 50px 0 rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { text-transform: none; font-size: 14px; padding: 9px 20px; }
.dropdown a:hover { background: var(--soft); }

/* ---------- Bandeaux (hero) ---------- */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 430px; padding: calc(var(--nav-h) + 40px) 20px 60px;
  color: #fff; overflow: hidden; background: var(--dark);
}
.hero-home { min-height: 100vh; min-height: 100svh; max-height: 900px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero h1 {
  color: #fff; font-family: var(--sans); font-weight: 700; font-variant: small-caps;
  font-size: 45px; line-height: 1.25; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero .hero-sub { font-family: var(--serif); font-size: 1.15rem; margin: 18px 0 0; opacity: .95; }
.hero .hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1; color: #fff; opacity: .8; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.scroll-hint:hover { color: #fff; opacity: 1; text-decoration: none; }
.scroll-hint::after { content: ""; display: block; width: 10px; height: 10px; margin: 8px auto 0; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 15px 33px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--sans); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; line-height: 1.4;
  background: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 0 2px 2px 0 rgba(72,0,50,.14), 0 3px 1px -2px rgba(72,0,50,.2), 0 1px 5px 0 rgba(72,0,50,.12);
  transition: box-shadow .2s, background .2s;
}
.btn:hover { color: #fff; text-decoration: none; background: var(--accent-light); box-shadow: 0 14px 26px -12px rgba(72,0,50,.42), 0 4px 23px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(72,0,50,.2); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.8); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- Contenu ---------- */
main { background: #fff; }
.section { padding: 70px 0; }
.section-soft { background: var(--soft); padding: 70px 0 !important; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 1.9rem; margin-bottom: .3em; }
.section-title p { color: var(--muted); margin: 0; }
.lead { font-size: 1.15rem; line-height: 1.75; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Bloc image + texte (alterné) */
.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin: 0 0 70px; }
.media-text:last-child { margin-bottom: 0; }
.media-text.reverse .media-text__media { order: 2; }
.media-text__media img { width: 100%; border-radius: var(--radius); box-shadow: 0 16px 38px -12px rgba(0,0,0,.35); }
.media-text__media figcaption, figure figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; font-style: italic; }
figure { margin: 0; }

/* En-tête de fiche vin */
.wine-head { text-align: center; margin-bottom: 50px; }
.wine-head img { margin: 0 auto 12px; max-height: 110px; width: auto; }
.wine-wordmark { font-family: var(--serif); font-size: 2rem; color: #8a1538; font-variant: small-caps; margin: 0 0 6px; }
.wine-aoc { font-size: 1.1rem; margin: 0; }

/* Fiche technique */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0 0 60px; }
.facts div { background: #fff; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 500; line-height: 1.45; }

/* Cartes vins */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; color: var(--text);
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { text-decoration: none; color: var(--text); transform: translateY(-4px); box-shadow: 0 16px 38px -12px rgba(0,0,0,.4), 0 4px 25px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(0,0,0,.2); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 500; }
.card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.card p { font-size: .95rem; color: var(--muted); margin: 0 0 16px; flex: 1; }
.card-more { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; color: var(--accent); }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; margin: 50px 0 0; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1.1; }
.stats span { font-size: .9rem; color: var(--muted); }

/* Galerie / figures */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.figure-center { max-width: 760px; margin: 0 auto 50px; }
.figure-center img { margin: 0 auto; border-radius: var(--radius); }
.figure-small img { max-width: 320px; }

/* Frise historique */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; margin-bottom: 60px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -34px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.timeline-date { font-family: var(--serif); font-weight: 700; color: var(--accent); font-size: 1.3rem; margin-bottom: 8px; }
.timeline-item figure { margin-top: 24px; }

/* Visite / infos pratiques */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.hours { background: var(--soft); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: var(--radius); margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { position: relative; margin-top: 60px; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 16 / 7; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; }

/* Navigation entre vins */
.wine-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 30px; margin-top: 60px; }
.wine-nav a { display: block; color: var(--text); }
.wine-nav a:hover { text-decoration: none; color: var(--accent); }
.wine-nav small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wine-nav .next { text-align: right; }
.wine-nav .all { text-align: center; }

/* Bandeau d'appel à l'action */
.cta { background: var(--accent); color: #fff; text-align: center; padding: 60px 20px; }
.cta h2 { color: #fff; }
.cta p { opacity: .9; max-width: 640px; margin: 0 auto 26px; }
.cta .btn { background: #fff; color: var(--accent); }
.cta .btn:hover { background: #f1e6ee; color: var(--accent); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); font-size: .92rem; padding: 60px 0 0; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-brand { font-family: var(--serif); color: #fff; font-size: 1.3rem; font-variant: small-caps; margin-bottom: 10px; }
.footer-bottom { margin-top: 50px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.55); }

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto;
    padding: 10px 0 30px; transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a, .main-nav .dropdown-toggle { padding: 14px 24px; font-size: 14px; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 0 !important; background: var(--soft); border-radius: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { padding-left: 40px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .hero { min-height: 340px; }
  .hero-home { min-height: 88vh; min-height: 88svh; }
  .hero h1 { font-size: 32px; }
  .section, .section-soft { padding: 50px 0 !important; }
  .media-text, .visit { grid-template-columns: 1fr; gap: 26px; margin-bottom: 50px; }
  .media-text.reverse .media-text__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .map { aspect-ratio: 4 / 3; }
  .wine-nav { grid-template-columns: 1fr 1fr; }
  .wine-nav .all { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .card img { aspect-ratio: 4 / 3; }
  .brand { font-size: 1.1rem; }
  .hero .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .hero > img, .cta, .map, .wine-nav { display: none !important; }
  .hero { min-height: 0; padding: 20px 0; color: #000; background: none; }
  .hero::after { display: none; }
  .hero h1 { color: #000; text-shadow: none; }
}

/* Cépages (page Présentation) */
.facts.cepages div { padding: 24px; }
.facts.cepages dt { font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0; text-transform: none; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.facts.cepages dd strong { font-size: 1.05rem; }
.facts.cepages .muted { display: block; margin-top: 6px; font-weight: 400; font-size: .95rem; line-height: 1.6; }
