/* =========================================
   FONTS
========================================= */
@font-face {
  font-family: "English Egyptian";
  src: url("fonts/EnglishEgyptian-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("fonts/josefin-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Cond";
  src: url("fonts/roboto-cond.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Quadrant Mono";
  src: url("fonts/quadrant-mono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* =========================================
   TOKENS
========================================= */
:root {
  --cream:      #f0ebe0;
  --black:      #111010;
  --gray-text:  #4a4a4a;
  --gray-label: #9a9a8a;
  --rule:       rgba(17,16,16,.18);
  --rule-dark:  rgba(240,235,224,.15);
  --placeholder: #ddd7c9;
  --paper:      #f7f3ea;
  --stone:      #e3ddd0;
  --brick:      #a54e43;
  --radius:     0;

  --font-title: "English Egyptian", Georgia, serif;
  --font-serif: "Josefin Sans", Georgia, sans-serif;
  --font-sans:  "Roboto Cond", Arial Narrow, sans-serif;
  --font-mono:  "Quadrant Mono", ui-monospace, monospace;

  /* Une seule grille pour tout le site */
  --container:  1180px;
  --gutter:     clamp(20px, 4vw, 48px);
  --col-gap:    clamp(20px, 3vw, 40px);
  --row-gap:    clamp(32px, 4vw, 64px);

  /* Rythme vertical */
  --section-y:  clamp(88px, 12vw, 176px);
  --ease:       cubic-bezier(.2, .7, .2, 1);
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: clamp(40px, 5.5vw, 80px);
}

/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-mono);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .6; }
img { display: block; max-width: 100%; }
* { text-wrap: pretty; }

/* =========================================
   LAYOUT — container + grille 6 colonnes
   Header, sections, footer partagent exactement
   les mêmes bords gauche/droit.
========================================= */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--row-gap) var(--col-gap);
}

.col-6 { grid-column: span 6; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-2 { grid-column: span 2; }

@media (max-width: 1023px) {
  .col-2 { grid-column: span 3; }
  .col-4 { grid-column: span 6; }
}
@media (max-width: 767px) {
  .col-4, .col-3, .col-2 { grid-column: span 6; }
}

/* Colonnes d'une même rangée = même hauteur */
.grid--stretch { align-items: stretch; }

/* Section : bande pleine largeur, contenu dans le container */
.section {
  padding-block: var(--section-y);
  scroll-margin-top: 20px;
}

.section--dark {
  background: var(--black);
  color: var(--cream);
}

/* Deux sections claires consécutives : un seul espace entre elles */
.section:not(.section--dark):not(.section--paper):not(.section--stone) + .section:not(.section--dark):not(.section--paper):not(.section--stone) { padding-top: 0; }

/* Rythme vertical entre les blocs d'un container */
.flow > * + * { margin-top: var(--s-4); }
.flow > .caption { margin-top: var(--s-2); }

/* =========================================
   MEDIA — l'image remplit toujours son conteneur
========================================= */
.media {
  position: relative;
  overflow: hidden;
  background: var(--placeholder);
}

.media > img,
.media > picture > img,
.media > noscript > img,
.media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.media--1x1  { aspect-ratio: 1 / 1; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--wide { aspect-ratio: 16 / 9; }
.media--wide > img { object-position: 50% 65%; }
.media--batiments > img { object-position: 50% 38%; }   /* les toits et la façade dans le cadre 16:9 */
.media--cuvees { aspect-ratio: 5035 / 2698; }          /* photo entière : aucune bouteille coupée */
.media--cuvees > img { object-position: 50% 50%; }

/* Dans une grille, le media prend la hauteur de la rangée */
.media--fill {
  align-self: stretch;
  min-height: 320px;
}

@media (max-width: 767px) {
  .media--fill { align-self: start; min-height: 0; aspect-ratio: 4 / 3; }
}

/* =========================================
   TYPOGRAPHIE
========================================= */
.label {
  display: block;
  margin-bottom: 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gray-label);
}

.divider { height: 1px; background: var(--black); }

.title {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.25;
}
.title--lg { font-size: clamp(32px, 5vw, 52px); line-height: 1.2; }
.title--md { font-size: clamp(26px, 3.2vw, 34px); }
.title--sm { font-size: 24px; }

.prose > * + * { margin-top: var(--s-2); }
.prose p {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-text);
}

/* Colonne de texte alignée sur la hauteur de sa voisine :
   titre en haut, dernier paragraphe calé en bas */
.stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-3);
}

.meta {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray-label);
}

.caption {
  margin-top: var(--s-2);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray-label);
}

/* =========================================
   BOUTON
========================================= */
.btn {
  display: inline-block;
  align-self: flex-start;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 15px 22px;
  border: 0;
  cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: #333030; opacity: 1; }
.btn:disabled { opacity: .5; cursor: default; }

/* =========================================
   HERO (index)
========================================= */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  color: var(--cream);
}

.hero__bg { position: absolute; inset: 0; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,.45) 0%,
    rgba(10,10,10,.14) 34%,
    rgba(10,10,10,.22) 62%,
    rgba(10,10,10,.58) 100%
  );
}

.hero__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 32px 40px;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero__menu { display: flex; align-items: center; gap: 24px; }

.hero__mark { height: 71px; width: auto; }

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero__nav a:hover,
.hero__nav a[aria-current="page"] { opacity: 1; }
.hero__nav a:not([aria-current="page"]) { opacity: .65; }
.hero__nav a:not([aria-current="page"]):hover { opacity: 1; }

.hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.hero__center h1 { display: flex; justify-content: center; width: 100%; }
.hero__logo { width: min(266px, 53%); height: auto; }

.hero__tagline {
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: .3em;
  text-transform: uppercase;
  text-align: center;
}

.hero__scroll {
  align-self: center;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
}

/* =========================================
   LE LIEU
========================================= */
.lieu__text { max-width: 54ch; }

/* =========================================
   PRODUITS
========================================= */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray-text);
}

.product-card .meta { margin-top: auto; padding-top: 2px; }

/* =========================================
   ATELIERS (section sombre)
========================================= */
.section--dark .label   { color: rgba(240,235,224,.35); }
.section--dark .divider { background: var(--rule-dark); }

.atelier-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px var(--col-gap);
  align-items: baseline;
  padding-block: 26px;
  border-bottom: 1px solid rgba(240,235,224,.12);
}
.atelier-item:first-of-type { padding-top: 0; }

.atelier-item__title {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.3;
}

.atelier-item__desc {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(240,235,224,.65);
}

.atelier-item__price { text-align: right; white-space: nowrap; }

.atelier-item__amount {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 28px);
  line-height: 1.3;
}

.atelier-item__duration {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(240,235,224,.45);
}

.atelier-note {
  margin-top: 30px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240,235,224,.45);
}

/* =========================================
   CONTACT
========================================= */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-field { display: flex; flex-direction: column; gap: 7px; }

.form-field label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-label);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17,16,16,.25);
  border-radius: 0;
  appearance: none;
  outline: none;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--black);
  transition: border-color .2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(17,16,16,.3);
  font-family: var(--font-serif);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-bottom-color: var(--black); }

.form-field textarea { resize: vertical; min-height: 88px; line-height: 1.7; }
.form-field select { cursor: pointer; }

.cf-turnstile { min-height: 65px; }

.form-status {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .08em;
}
.form-status--ok  { color: #2a6e3f; }
.form-status--err { color: #8b2020; }

.contact-info { display: flex; flex-direction: column; }

.contact-info__row {
  padding-block: 18px;
  border-bottom: 1px solid rgba(17,16,16,.15);
}
.contact-info__row:first-child { border-top: 1px solid rgba(17,16,16,.15); }

.contact-info__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gray-label);
}

.contact-info__value { font-size: 17px; overflow-wrap: anywhere; }
.contact-info__value a { border-bottom: 1px solid var(--black); }

/* =========================================
   À PROPOS
========================================= */
.person {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid; /* nom / rôle / bio alignés d'un profil à l'autre */
  row-gap: 0;
}

.person__role {
  display: block;
  margin-block: var(--s-1) var(--s-3);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17,16,16,.15);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray-label);
}

/* =========================================
   PAGES INTERNES
========================================= */
.page-header { background: var(--black); }

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}

.page-header__logo { height: 14px; width: auto; opacity: .5; }

.page-header__nav { display: flex; gap: 28px; }

.page-header__nav a {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240,235,224,.4);
  transition: color .15s ease;
}
.page-header__nav a:hover,
.page-header__nav a[aria-current="page"] { color: var(--cream); opacity: 1; }

.legal-content { max-width: 80ch; }

.legal-content h2 {
  margin: clamp(36px, 4vw, 52px) 0 16px;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.3;
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.legal-content p,
.legal-content li {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--gray-text);
}
.legal-content ul { margin: 0 0 14px; padding-left: 1.4em; }
.legal-content strong { color: var(--black); }
.legal-content .updated { margin-top: clamp(40px, 5vw, 60px); }

/* =========================================
   FAQ
========================================= */
.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__question-text {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.35;
}

.faq__indicator {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17,16,16,.25);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1;
  color: var(--gray-label);
  transition: transform .3s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.faq__item[open]:not(.is-closing) .faq__indicator {
  transform: rotate(45deg);
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
}

.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq__item[open] .faq__body { grid-template-rows: 1fr; }
.faq__body-inner { overflow: hidden; }

.faq__answer {
  max-width: 72ch;
  padding-bottom: 24px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-text);
}

/* =========================================
   FOOTER — mêmes colonnes que la grille
========================================= */
.footer { background: var(--black); }

.footer__inner { padding-block: 56px 48px; }

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer__logo { height: 14px; width: auto; opacity: .45; }

.footer__text {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 2;
  text-transform: uppercase;
  color: rgba(240,235,224,.28);
}

.footer__nav,
.footer__legal { display: flex; flex-direction: column; gap: 10px; }

.footer__nav a,
.footer__legal a {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240,235,224,.4);
  transition: color .15s ease;
}
.footer__nav a:hover,
.footer__legal a:hover { color: var(--cream); opacity: 1; }

/* Le footer garde 3 colonnes jusqu'au mobile */
@media (max-width: 1023px) {
  .footer .col-2 { grid-column: span 2; }
}
@media (max-width: 767px) {
  .footer .col-2 { grid-column: span 3; }
  .footer .footer__brand { grid-column: span 6; }
}

/* =========================================
   MENU BURGER (mobile, index)
========================================= */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  flex-shrink: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--cream);
}

.t-icon-swap { position: relative; display: inline-grid; }

.t-icon-swap .t-icon {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity   250ms ease-in-out,
    filter    250ms ease-in-out,
    transform 250ms ease-in-out;
}

.t-icon-swap[data-state="a"] .t-icon[data-icon="a"],
.t-icon-swap[data-state="b"] .t-icon[data-icon="b"] {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.t-icon-swap[data-state="a"] .t-icon[data-icon="b"],
.t-icon-swap[data-state="b"] .t-icon[data-icon="a"] {
  opacity: 0;
  filter: blur(2px);
  transform: scale(.25);
}

@media (prefers-reduced-motion: reduce) {
  .t-icon-swap .t-icon { transition: none; }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(17,16,16,.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.nav-overlay__links a {
  font-family: var(--font-sans);
  font-size: clamp(15px, 4.5vw, 20px);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .6;
  transition: opacity .15s ease;
}
.nav-overlay__links a:hover,
.nav-overlay__links a[aria-current="page"] { opacity: 1; }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .hero__nav,
  .page-header__nav { display: none; }
}

/* =========================================
   RETOUR EN HAUT
========================================= */


/* Bouton flottant « Visiter la cidrerie » (accueil) : apparaît après le hero, disparaît à l'approche du footer */
.float-cta {
  position: fixed;
  bottom: 32px;
  right: var(--gutter);
  z-index: 100;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  background: var(--black);
  color: var(--cream);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s ease, visibility 0s linear .3s;
}
.float-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s ease;
}
.float-cta:hover { background: var(--brick); opacity: 1; }
.float-cta:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }


/* =========================================
   ACCESSIBILITÉ
========================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hp { display: none; }


/* =========================================
   APPARITION AU SCROLL
   Les classes sont posées par script.js ; sans JS (ou avec
   prefers-reduced-motion) tout reste visible.
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================
   ATELIERS — bandes qui s'élargissent (écrans larges avec survol)
========================================= */
@media (min-width: 1024px) and (hover: hover) {
  .atelier-list { display: flex; border-top: 1px solid var(--rule-dark); }

  .atelier-item {
    flex: 1 1 0;
    min-width: 0;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    padding: 32px 28px 36px;
    border-bottom: 1px solid var(--rule-dark);
    border-left: 1px solid var(--rule-dark);
    transition: flex-grow .8s var(--ease);
  }
  .atelier-item:first-of-type { padding-top: 32px; padding-left: 0; border-left: 0; }
  .atelier-item:last-of-type  { padding-right: 0; }

  .atelier-item__title { font-size: clamp(20px, 2vw, 24px); margin-bottom: 0; }
  .atelier-item__price { text-align: left; }

  .atelier-list.is-enhanced .atelier-item.is-active { flex-grow: 2.4; }

  .atelier-list.is-enhanced .atelier-item__desc {
    min-width: 300px;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s var(--ease), transform .6s var(--ease);
  }
  .atelier-list.is-enhanced .atelier-item.is-active .atelier-item__desc {
    opacity: 1;
    transform: none;
    transition-delay: .25s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .atelier-item, .atelier-item__desc { transition: none !important; }
}


/* =========================================
   IDENTITÉ — tons de la maison (étiquettes, chaux, pierre)
========================================= */
.section--paper { background: var(--paper); --collage-bg: var(--paper); }
.section--stone { background: var(--stone); }

/* Images : coins adoucis (sauf le fond du hero) */
.media { border-radius: var(--radius); }
.hero__bg { border-radius: 0; }

/* Intitulé de section : trait brique + phrase d'étape, plus de filet pleine largeur */
.section__head .divider { display: none; }
.section__head { margin-bottom: calc(var(--s-3) * -1); }
.label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--brick);
}
.label::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}
.section--dark .label { color: rgba(240,235,224,.55); }

/* Boutons et liens */
.btn { border-radius: 999px; padding: 15px 28px; }
.btn:hover { background: var(--brick); }

.link-arrow {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--brick);
  padding-bottom: 4px;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { opacity: 1; color: var(--brick); }

.grid--start { align-items: start; }

/* ---------- En bref : phrase d'ouverture + infos pratiques ---------- */
.intro__lead { max-width: 28em; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.35; }

.infos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.infos__cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 26px 28px;
  border-left: 1px solid var(--rule);
}
.infos__cell:first-child { border-left: 0; }
.infos__label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray-label);
}
.infos__value { font-size: 15px; line-height: 1.6; }
.infos__value a { border-bottom: 1px solid var(--brick); }
.infos__cell--cta { align-items: flex-start; }

@media (max-width: 1023px) {
  .infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .infos__cell:nth-child(3) { border-left: 0; }
  .infos__cell:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 599px) {
  .infos { grid-template-columns: 1fr; }
  .infos__cell { border-left: 0; }
  .infos__cell:nth-child(n+2) { border-top: 1px solid var(--rule); }
}

/* ---------- Le lieu : photo principale + petite photo qui déborde ---------- */
.collage { position: relative; }
@media (max-width: 1023px) { .collage { grid-column: span 3; } }
@media (max-width: 767px) { .collage { grid-column: span 6; } }   /* mobile : pleine largeur du contenu, comme les autres images */
.collage__main { aspect-ratio: 4 / 5; }
/* L'image prend la hauteur de la colonne de texte voisine (alignée sur le dernier lien) */
@media (min-width: 768px) {
  .collage--fill { align-self: stretch; display: flex; }
  .collage--fill .collage__main { flex: 1; aspect-ratio: auto; min-height: 300px; }
}
.media--doc { border: 1px solid var(--rule); }   /* document ancien : fond proche de celui de la page */




.media--tall { align-self: stretch; min-height: 420px; }
@media (max-width: 767px) { .media--tall { align-self: start; min-height: 0; aspect-ratio: 4 / 5; } }

/* ---------- Cartes produits : contour fin, sans fond ---------- */
.product-card {
  position: relative;
  --tone: #b9b2a3;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.product-card:hover { border-color: rgba(17,16,16,.45); background: var(--paper); }
.product-card__name { font-size: clamp(24px, 2.4vw, 30px); font-weight: 300; }

/* Avec image : l'étiquette peinte en tête de carte, le texte dessous */
.product-card--image { padding: 0; border-top: 1px solid var(--rule); }
.product-card__media {
  aspect-ratio: 3 / 2;
  border-radius: 0;
  border-bottom: 1px solid var(--rule);
}
.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px 24px;
}
.product-card__body .meta { margin-top: auto; padding-top: 4px; }

/* Cidres : 3 cartes puis 2 de même taille, centrées sous les trois (colonnes 2-3 et 4-5) */
@media (min-width: 1024px) {
  .product-card--c1 { grid-column: 2 / span 2; }
  .product-card--c2 { grid-column: 4 / span 2; }
}


/* ---------- Ateliers sur fond pierre ---------- */
.section--stone .atelier-item { border-bottom-color: rgba(17,16,16,.14); }
.section--stone .atelier-item__desc { color: var(--gray-text); }
.section--stone .atelier-item__duration,
.section--stone .atelier-note { color: rgba(17,16,16,.5); }

@media (min-width: 1024px) and (hover: hover) {
  .section--stone .atelier-list { border-top-color: rgba(17,16,16,.14); }
  .section--stone .atelier-item { border-left-color: rgba(17,16,16,.14); }
}

.atelier-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px var(--col-gap);
  margin-top: 30px;
}
.atelier-foot .atelier-note { margin-top: 0; }

/* ---------- FAQ : titre collant à gauche, questions à droite ---------- */
.faq-lead {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-self: start;
  position: sticky;
  top: 40px;
}
@media (max-width: 1023px) { .faq-lead { grid-column: span 6; position: static; } .faq-grid-q { grid-column: span 6; } }


/* ---------- Accueil : phrase d'ouverture ---------- */
.statement {
  max-width: 30em;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--black);
}

/* ---------- Contact ---------- */
.contact-lead { display: flex; flex-direction: column; gap: var(--s-3); align-self: start; }
.form-card {
  padding: clamp(24px, 3.5vw, 44px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

/* ---------- À propos ---------- */
.fact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 30px 30px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.fact__figure {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  color: var(--brick);
}
.fact__tag {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray-label);
}
.fact__title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2vw, 24px);
  line-height: 1.3;
}
.fact__desc { font-size: 15px; line-height: 1.85; color: var(--gray-text); }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px var(--col-gap);
  padding: clamp(28px, 4vw, 52px);
  background: var(--stone);
  border-radius: var(--radius);
}
.cta-band__text { display: flex; flex-direction: column; gap: 10px; }
.cta-band__text p { font-size: 15px; color: var(--gray-text); }


/* =========================================
   HERO VIDÉO
========================================= */
.hero__video {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__video.is-playing { opacity: 1; }

.hero__inner { position: relative; }
.hero__sound {
  position: absolute;
  right: 0;
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--cream);
  background: rgba(17,16,16,.28);
  border: 1px solid rgba(240,235,224,.45);
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.hero__sound[hidden] { display: none; }
.hero__sound:hover { background: rgba(17,16,16,.5); border-color: var(--cream); }
.hero__sound:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }



/* ---------- Page Territoire ---------- */
.topic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-3) var(--col-gap);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.topic__title { grid-column: span 2; }
.topic__body { grid-column: span 4; }
@media (max-width: 767px) {
  .topic__title, .topic__body { grid-column: span 6; }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: var(--s-3) 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 8px 18px;
  border: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.4;
  color: var(--black);
}

/* Plusieurs liens l'un sous l'autre */
.links-row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* ---------- À propos : fiches avec photo ---------- */
.fact--image { padding: 0; }
.fact__media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border-bottom: 1px solid var(--rule);
}
.fact__media img[src*="presse-tanvez"] { object-position: 50% 4%; }   /* la plaque « Usines Tanvez » dans le cadre */
.fact__media img[src*="haute-tige"] { object-position: 50% 38%; }   /* le pommier chargé de pommes dans le cadre 4:3 */
.fact__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 30px 30px;
}
