/* Polices auto-hébergées (SIL Open Font License) : aucun appel à Google Fonts avant consentement */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/alegreya.woff2) format('woff2');
}

@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/alegreya-italic.woff2) format('woff2');
}

@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/alegreya-sans-400.woff2) format('woff2');
}

@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/alegreya-sans-500.woff2) format('woff2');
}

@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/alegreya-sans-700.woff2) format('woff2');
}

/* Palette tirée du logo : jaune et orange de l'argiope, noir schiste, rouge carignan */
:root {
  --schiste: #2b2d2f;
  --schiste-soft: #55595c;
  --pierre: #eef0ee;
  --paper: #ffffff;
  --argiope: #f5b800;
  --rouille: #b4501a;
  --rouille-dark: #8a3c12;
  --carignan: #7b1e2b;
  --line: #d9dcd8;
  --serif: 'Alegreya', Georgia, serif;
  --sans: 'Alegreya Sans', 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 4.25rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6'%3E%3Cpath d='M0 5 L3 1 L6 5 L9 1 L12 5' fill='none' stroke='%23b4501a' stroke-width='1.6'/%3E%3C/svg%3E");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  background: var(--paper);
  color: var(--schiste);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rouille);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rouille-dark);
}

:focus-visible {
  outline: 3px solid var(--argiope);
  outline-offset: 3px;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--argiope);
  color: var(--schiste);
  font-family: var(--sans);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Menu ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--schiste);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  white-space: nowrap;
}

.brand:hover {
  color: var(--schiste);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  font-family: var(--sans);
  font-size: 1.05rem;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.75rem 0.7rem;
  color: var(--schiste);
  text-decoration: none;
  background-repeat: repeat-x;
  background-position: center bottom 0.2rem;
  background-size: 12px 6px;
}

.nav-links a:hover {
  color: var(--rouille);
}

/* Le zigzag du stabilimentum marque la section en cours de lecture */
.nav-links a[aria-current="true"] {
  color: var(--rouille);
  background-image: var(--zigzag);
}

.nav-links .nav-cta a {
  margin-left: 0.75rem;
  padding: 0.5rem 1.1rem;
  background: var(--argiope);
  color: var(--schiste);
  font-weight: 700;
  border-radius: 999px;
}

.nav-links .nav-cta a:hover {
  background: #ffc61a;
  color: var(--schiste);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  font: 700 1rem var(--sans);
  color: var(--schiste);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1200px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(43, 45, 47, 0.12);
    font-size: 1.2rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pierre);
  }

  .nav-links a[aria-current="true"] {
    background-image: none;
    font-weight: 700;
  }

  .nav-links .nav-cta a {
    margin: 1rem 0 0;
    text-align: center;
    border-bottom: 0;
  }
}

/* Sélecteur de langue : menu déroulant */
.lang-switch {
  position: relative;
  margin-left: 0.5rem;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--schiste);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary:hover,
.lang-switch details[open] summary {
  border-color: var(--rouille);
  color: var(--rouille);
}

.lang-chevron {
  transition: transform 0.15s;
}

.lang-switch details[open] .lang-chevron {
  transform: rotate(180deg);
}

.lang-switch ul {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 10rem;
  padding: 0.35rem;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(43, 45, 47, 0.14);
}

.nav-links .lang-switch ul a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  background-image: none;
}

.nav-links .lang-switch ul a:hover {
  background: var(--pierre);
}

.nav-links .lang-switch ul a[aria-current="page"] {
  color: var(--rouille);
  font-weight: 700;
}

@media (max-width: 1200px) {
  .lang-switch {
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pierre);
  }

  .lang-switch ul {
    position: static;
    min-width: 0;
    margin-top: 0.5rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }

  .nav-links .lang-switch ul a {
    padding: 0.5rem 0.75rem;
    border-bottom: 0;
  }
}

/* ---------- Accueil ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100svh - var(--nav-h));
  background: var(--pierre);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  max-width: 40rem;
  margin-left: auto;
}

.hero h1 {
  font-size: clamp(3rem, 7.5vw, 6.25rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0;
  margin-bottom: 0.3em;
  color: var(--schiste-soft);
}

.hero .subtitle {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.5;
  max-width: 30ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 2.75rem;
  font-family: var(--sans);
}

.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--argiope);
  color: var(--schiste);
  font: 700 1.1rem var(--sans);
  text-decoration: none;
}

.button:hover {
  background: #ffc61a;
  color: var(--schiste);
}

.hero-actions .link {
  font-size: 1.1rem;
  font-weight: 500;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0.5rem 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
}

.facts dt {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.facts dd {
  color: var(--schiste-soft);
  font-size: 0.95rem;
}

.hero-photo {
  position: relative;
  margin: 0;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.hero-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.35rem 0.8rem;
  background: rgba(43, 45, 47, 0.78);
  color: #fff;
  font: italic 0.95rem/1.4 var(--serif);
  border-radius: 4px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-photo {
    order: -1;
    height: 58svh;
    min-height: 320px;
  }

  .hero-text {
    margin: 0;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .facts {
    grid-template-columns: repeat(2, auto);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section.is-stone {
  background: var(--pierre);
}

.section.is-dark {
  background: var(--schiste);
  color: #f2f3f1;
}

.section.is-dark a {
  color: var(--argiope);
}

.prose {
  max-width: 36rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split.is-reversed > :first-child {
  order: 2;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split.is-reversed > :first-child {
    order: 0;
  }
}

.rounded {
  border-radius: 6px;
}

/* Histoire */
.story-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Engagements */
.commitments {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.commitments li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.commitments strong {
  font-family: var(--sans);
  color: var(--argiope);
  font-weight: 700;
}

@media (max-width: 520px) {
  .commitments li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.commitments-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.commitments-photo figcaption {
  margin-top: 0.6rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #c4c8c5;
}

/* Pourquoi l'argiope : bandes de l'abdomen en ouverture et en clôture */
.argiope-section {
  position: relative;
}

.argiope-section::before,
.argiope-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background: repeating-linear-gradient(90deg,
      var(--schiste) 0 22px,
      var(--argiope) 22px 34px,
      var(--paper) 34px 40px,
      var(--argiope) 40px 52px);
}

.argiope-section::before {
  top: 0;
}

.argiope-section::after {
  bottom: 0;
}

.argiope-emblem {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.argiope-section .latin {
  font-style: italic;
}

/* Cuvées */
.cuvee-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.cuvee-feature img {
  width: 100%;
}

.cuvee-meta {
  font-family: var(--sans);
  color: var(--carignan);
  font-weight: 500;
  margin-bottom: 1rem;
}

.cuvee-feature h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-style: italic;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.serving {
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--carignan);
}

@media (max-width: 760px) {
  .cuvee-feature {
    grid-template-columns: 1fr;
  }
}

.range-heading {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.cuvee-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0 2.5rem;
}

.cuvee-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.cuvee-color {
  min-width: 4.5rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font: 500 0.85rem var(--sans);
  text-align: center;
}

.cuvee-color.rouge {
  background: var(--carignan);
  color: #fff;
}

.cuvee-color.blanc {
  background: #f3e7b8;
  color: var(--schiste);
}

.cuvee-color.rose {
  background: #f4c7c3;
  color: var(--schiste);
}

/* Visite */
.visit-layout {
  align-items: start;
  margin-bottom: 2.5rem;
}

.visit-intro {
  max-width: 36rem;
}

.visit-steps {
  list-style: none;
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.visit-steps li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.visit-steps strong {
  display: block;
  font-family: var(--sans);
  color: var(--rouille);
  font-weight: 700;
}

.visit-booking {
  background: var(--paper);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

#vinyaqui-widget {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  /* Couleurs alignées sur la page */
  --vw-primary: #b4501a;
  --vw-primary-hover: #8a3c12;
  --vw-primary-light: #eef0ee;
  --vw-text: #2b2d2f;
  --vw-text-muted: #55595c;
  --vw-border: #d9dcd8;
  --vw-font: 'Alegreya Sans', 'Helvetica Neue', Arial, sans-serif;
  --vw-radius: 8px;
  --vw-radius-sm: 5px;
  --vw-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

#vinyaqui-widget .vw-select:focus {
  border-color: #b4501a;
  box-shadow: 0 0 0 3px rgba(180, 80, 26, 0.15);
}

#vinyaqui-widget .vw-alert--info {
  background: #eef0ee;
  border-color: #d9dcd8;
  color: #2b2d2f;
}

.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--schiste);
  color: #fff;
  border-radius: 8px;
}

.cta-box p {
  margin: 0;
  font-size: 1.25rem;
}

.cta-box strong {
  display: block;
  font-size: 1.5rem;
}

/* FAQ */
.faq-section {
  border-top: 1px solid var(--line);
}

.faq-list {
  max-width: 50rem;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font: 700 1.2rem var(--sans);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--rouille);
  font-size: 1.5rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary:hover {
  color: var(--rouille);
}

.faq-list details p {
  max-width: 42rem;
  padding-bottom: 1.25rem;
}

/* Contact */
#contact .split {
  align-items: start;
}

#contact h3 {
  margin-top: 0.6rem;
  margin-bottom: 1.25rem;
}

.contact-info {
  font-family: var(--sans);
  font-size: 1.15rem;
}

.contact-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.5rem;
  margin-bottom: 2rem;
}

.contact-info dt {
  color: var(--schiste-soft);
}

.contact-info dd {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.map-section iframe,
.map-placeholder {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 8px;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
  background: var(--pierre);
  color: var(--schiste);
}

.map-placeholder a,
.map-placeholder button,
.cookie-banner button,
.cookie-link {
  font: inherit;
  cursor: pointer;
}

.map-placeholder button,
.cookie-banner button {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--rouille);
  background: var(--rouille);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
}

.vinyaqui-backlink {
  display: block;
  margin-top: 0.75rem;
  font-size: 1rem;
  text-align: center;
}

/* ---------- Pied de page ---------- */

footer {
  padding: 2.5rem var(--gutter);
  background: var(--schiste);
  color: #c4c8c5;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

footer a {
  color: #fff;
}

.footer-top {
  text-decoration: none;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-social {
  display: inline-flex;
}

.footer-social:hover {
  color: var(--argiope);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: #fff;
  color: var(--schiste);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  font-family: var(--sans);
  font-size: 1rem;
  z-index: 1000;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cookie-banner button.secondary {
  background: #fff;
  color: var(--rouille);
}

.cookie-link {
  background: none;
  border: 0;
  color: inherit;
  text-decoration: underline;
}


#vinyaqui-widget .vw-widget {
  --vw-primary: #b4501a;
  --vw-primary-hover: #8a3c12;
  --vw-primary-light: #eef0ee;
  --vw-text: #2b2d2f;
  --vw-text-muted: #55595c;
  --vw-border: #d9dcd8;
  --vw-font: 'Alegreya Sans', 'Helvetica Neue', Arial, sans-serif;
  --vw-radius: 8px;
  --vw-radius-sm: 5px;
  --vw-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

#vinyaqui-widget .vw-widget .vw-select:focus {
  box-shadow: 0 0 0 3px rgba(180, 80, 26, 0.15);
}

#vinyaqui-widget .vw-widget .vw-alert--info {
  background: #eef0ee;
  border-color: #d9dcd8;
  color: #2b2d2f;
}

#vinyaqui-widget .vw-widget .vw-backlink-wrap {
  text-align: center;
}
