/* Polices auto-hébergées — aucun appel externe (RGPD) */
/* Amatic SC est distribuée sous SIL Open Font License 1.1 : voir ../fonts/OFL-AmaticSC.txt */

@font-face {
  font-family: 'Amatic SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/amatic-sc-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Amatic SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/amatic-sc-bold.woff2') format('woff2');
}

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

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

@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/karla-normal-600.woff2') format('woff2');
}

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --creme: #F7F5F0;
  --vert-eau: #C8D5C4;
  --sable: #C9BFA6;
  --vert-profond: #2F3B2E;
  --vert-grise: #6B7A66;
  --vert-feuille: #4A6146;
  --filet: #D8DED4;

  --font-titre: 'Amatic SC', cursive;
  --font-texte: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;

  --mesure: 65ch;
  --gouttiere: clamp(1.5rem, 5vw, 4rem);
  --rythme: clamp(4rem, 10vw, 9rem);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-texte);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.75;
  color: var(--vert-profond);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-ouvert { overflow: hidden; }

.page-centree {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gouttiere);
}

.perdu { max-width: 40ch; }
.soon { max-width: 46ch; }
.soon h1 { margin-bottom: 2rem; }
.soon__mention {
  margin-top: 4rem;
  font-size: 0.78rem;
  color: var(--vert-grise);
}

img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-titre);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.025em;
}

h1 {
  font-size: clamp(3.6rem, 8vw, 6.5rem);
  font-style: normal;
}

h2 {
  font-size: clamp(2.8rem, 5vw, 4.25rem);
  font-style: normal;
}

h3 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

p + p { margin-top: 1.25em; }

.exergue {
  font-family: var(--font-titre);
  font-style: normal;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--vert-feuille);
  max-width: 32ch;
}

.vins__intro {
  max-width: 76ch;
  font-family: var(--font-texte);
  font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.35rem);
  line-height: 1.7;
  color: var(--vert-feuille);
}

.projet__intro {
  max-width: 52ch;
  font-family: var(--font-texte);
  color: var(--vert-feuille);
}

.trouver__intro {
  max-width: 52ch;
  font-family: var(--font-texte);
  color: var(--vert-feuille);
}

.surtitre {
  font-family: var(--font-titre);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vert-grise);
  margin-bottom: 1.5rem;
}

/* ============================================
   MISE EN PAGE
   ============================================ */
.contenu {
  width: min(100% - (var(--gouttiere) * 2), 1200px);
  margin-inline: auto;
}

.contenu--etroit {
  width: min(100% - (var(--gouttiere) * 2), 720px);
  margin-inline: auto;
}

.section { padding-block: var(--rythme); }
.section--eau { background: var(--vert-eau); }
.section--sable { background: var(--sable); }

.duo {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .duo { grid-template-columns: 1fr 1fr; }
  .duo--decale { grid-template-columns: 5fr 6fr; }
}

/* Page cépages : grand schéma d'introduction, suivi d'une lecture aérée en deux colonnes. */
.cepages__entete {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.cepages__schema {
  margin: 0;
}

.cepages__intro p:first-child,
.cepages__suite p:first-child {
  margin-top: 0;
}

.cepages__suite {
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 900px) {
  .cepages__entete { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .cepages__suite {
    column-count: 2;
    column-gap: clamp(2.5rem, 7vw, 7rem);
  }
  .cepages__suite p { break-inside: avoid; }
}

@media (max-width: 899px) {
  .cepages__schema {
    width: min(100%, 560px);
    margin-inline: auto;
  }
}

/* ============================================
   ENTÊTE
   ============================================ */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--filet);
}

.entete__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 0.65rem;
}

.logo {
  text-decoration: none;
  flex: 0 0 auto;
}

.logo img {
  width: 68px;
  height: auto;
}

@media (max-width: 800px) {
  .logo img { width: 54px; }
}

.nav__liste {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  padding: 0;
}

.nav__lien {
  font-family: var(--font-titre);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, color 300ms ease;
}

.nav__lien:hover,
.nav__lien[aria-current="page"] {
  border-bottom-color: var(--vert-feuille);
}

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: inherit;
}

@media (max-width: 800px) {
  .entete { backdrop-filter: none; }

  .burger {
    display: block;
    position: relative;
    z-index: 102;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    background: var(--creme);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
  }

  .nav[data-ouvert="true"] {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__liste {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .nav__lien { font-size: 2.25rem; font-family: var(--font-titre); font-style: normal; }

  .heros {
    min-height: calc(100svh - 83px);
    min-height: calc(100dvh - 83px);
    padding-block: 3.5rem 2.5rem;
  }

  .heros--video::before {
    background: linear-gradient(180deg, rgba(26, 36, 27, 0.64), rgba(26, 36, 27, 0.74));
  }
}

/* ============================================
   HÉROS
   ============================================ */
.heros {
  min-height: min(88vh, 800px);
  display: grid;
  align-content: center;
  padding-block: var(--rythme);
}

.heros--video {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--creme);
  background: var(--vert);
}

.heros--video::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(26, 36, 27, 0.82) 0%, rgba(26, 36, 27, 0.58) 52%, rgba(26, 36, 27, 0.34) 100%);
  pointer-events: none;
}

.heros--video .contenu {
  position: relative;
  z-index: 2;
  text-align: center;
}

.heros__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heros--video .surtitre,
.heros--video .heros__manifeste {
  color: var(--creme);
}

.heros--video .heros__manifeste {
  margin-inline: auto;
}

.heros__titre { margin-bottom: 2rem; }

.heros__manifeste {
  max-width: 46ch;
  color: var(--vert-grise);
}

/* ============================================
   PLACEHOLDERS PHOTO
   ============================================ */
.photo {
  margin: 0;
}

.photo__image {
  display: block;
  width: 100%;
  height: auto;
}

.photo__image--etiquette {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.photo__image--chai-portrait {
  width: min(100%, 360px);
  margin-inline: auto;
}

.photo--vitis-batardus {
  width: min(100%, 535px);
  margin-inline: auto;
}

.photo__vide {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2rem;
  background: var(--filet);
  border: 1px dashed var(--vert-grise);
  color: var(--vert-grise);
  aspect-ratio: var(--ratio, 4 / 3);
}

.photo__vide strong {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.photo__vide span {
  font-size: 0.85rem;
  max-width: 30ch;
}

.photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--vert-grise);
}

/* ============================================
   CUVÉES
   ============================================ */
.cuvees {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 700px) {
  .cuvees { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

.cuvee {
  display: block;
  text-decoration: none;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--creme);
  border: 1px solid var(--filet);
  transition: border-color 300ms ease, transform 300ms ease;
}

.cuvee:hover {
  border-color: var(--vert-feuille);
  transform: translateY(-3px);
}

.cuvee__nom {
  font-family: var(--font-titre);
  font-style: normal;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.cuvee__type {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vert-grise);
  margin-bottom: 1.25rem;
}

.cuvee__sans-sulfites {
  font-size: 0.78rem;
  color: var(--vert-grise);
  margin-top: -0.9rem;
  margin-bottom: 1.25rem;
}

.cuvee__definition {
  max-width: 52ch;
  font-family: var(--font-texte);
  color: var(--vert-feuille);
}

.section--pressurage { padding-top: 0; }

.section--rendezvous { padding-block: clamp(2rem, 4vw, 3.5rem); }

.agenda { margin-top: 2.5rem; text-align: left; }

.agenda__liste {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--filet);
}

.agenda__liste li {
  display: grid;
  gap: 0.4rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--filet);
}

.agenda__liste time {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agenda__liste span { color: var(--vert-grise); }

.photo--pressurage {
  width: min(100%, 720px);
  margin-inline: auto;
}

.cuvee__extrait { color: var(--vert-grise); font-size: 0.95rem; }

/* ============================================
   LIENS & BOUTONS
   ============================================ */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap 300ms ease;
}

.lien-fleche:hover { gap: 1rem; }

/* ============================================
   PIED DE PAGE
   ============================================ */
.pied {
  background: var(--vert-profond);
  color: var(--creme);
  padding-block: clamp(3rem, 7vw, 5rem);
  font-size: 0.9rem;
}

.pied a { color: var(--creme); }

.pied__logo {
  width: clamp(6rem, 8vw, 6.5rem);
  height: auto;
  margin-bottom: 1rem;
}

.pied__grille {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

@media (min-width: 700px) {
  .pied__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pied__titre {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 1rem;
}

.pied ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }

.pied__evin {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 245, 240, 0.2);
  font-size: 0.8rem;
  opacity: 0.75;
  text-align: center;
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */
.saut-contenu {
  position: absolute;
  left: -9999px;
}

.saut-contenu:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 0.5rem;
  z-index: 200;
  background: var(--vert-profond);
  color: var(--creme);
  padding: 0.75rem 1.5rem;
}

:focus-visible {
  outline: 2px solid var(--vert-feuille);
  outline-offset: 3px;
}

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

/* Utilitaires de mise en page : remplacent les styles inline afin de garder une CSP stricte. */
.u-mb-3 { margin-bottom: 3rem; }
.u-mb-2 { margin-bottom: 2rem; }
.u-mb-1-5 { margin-bottom: 1.5rem; }
.u-mt-2-5 { margin-top: 2.5rem; }
.u-mt-2 { margin-top: 2rem; }
.u-mt-1-5 { margin-top: 1.5rem; }
.u-mt-1 { margin-top: 1rem; }
.u-pt-0 { padding-top: 0; }
.u-pb-2 { padding-bottom: 2rem; }
.u-mx-auto { margin-inline: auto; }
.u-centrer { text-align: center; }
.u-opacite-80 { opacity: 0.8; }
.u-texte-gris { color: var(--vert-grise); }
.u-mt-1-5-texte-gris { margin-top: 1.5rem; color: var(--vert-grise); }
.u-mt-2-5-texte-gris { margin-top: 2.5rem; color: var(--vert-grise); }
.u-lh-1-9 { line-height: 1.9; }
.u-mt-1-5-petit { margin-top: 1.5rem; font-size: 0.9rem; }
.u-intro-contact { color: var(--vert-grise); max-width: 34ch; margin-bottom: 2.5rem; }
.u-adresse-contact { font-style: normal; line-height: 1.8; margin-bottom: 1.5rem; }
.u-note-contact { margin-top: 1.5rem; color: var(--vert-grise); font-size: 0.9rem; max-width: 34ch; }
.u-adresse-rendezvous { font-style: normal; margin-top: 2rem; line-height: 1.9; }

/* ============================================
   FICHE TECHNIQUE
   ============================================ */
.fiche {
  margin: 0;
  border-top: 1px solid var(--filet);
}

.fiche > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--filet);
}

@media (min-width: 600px) {
  .fiche > div { grid-template-columns: 14rem 1fr; }
}

.fiche dt {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vert-grise);
}

.fiche dd {
  margin: 0;
}

/* ============================================
   FORMULAIRE
   ============================================ */
.formulaire {
  display: grid;
  gap: 1.5rem;
}

.champ {
  display: grid;
  gap: 0.5rem;
}

.champ label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vert-grise);
}

.champ__option {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.7;
}

.champ input,
.champ select,
.champ textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--vert-profond);
  background: var(--creme);
  border: 1px solid var(--filet);
  border-radius: 0;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 300ms ease;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  border-color: var(--vert-feuille);
  outline: none;
}

.champ textarea {
  resize: vertical;
  min-height: 8rem;
}

.pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bouton {
  justify-self: start;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--creme);
  background: var(--vert-profond);
  border: 1px solid var(--vert-profond);
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  transition: background 300ms ease, color 300ms ease;
}

.bouton:hover {
  background: transparent;
  color: var(--vert-profond);
}

.formulaire__mention {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--vert-grise);
}

.formulaire__retour {
  margin: 0;
  color: var(--vert-feuille);
  font-weight: 600;
}

.formulaire__retour[data-erreur="true"] {
  color: #8b2f2f;
}

/* ============================================
   PAGE CONTACT — alignement haut
   ============================================ */
.duo--haut {
  align-items: start;
}

@media (min-width: 900px) {
  .duo--haut { grid-template-columns: 4fr 6fr; }
}

/* ============================================
   SECTION CONTACT COMPACTE
   ============================================ */
.section-contact {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section-contact .duo {
  gap: clamp(2rem, 4vw, 4rem);
}

.formulaire__ligne {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .formulaire__ligne { grid-template-columns: 1fr 1fr; }
}

.section-contact .formulaire { gap: 1.25rem; }
.section-contact .champ input,
.section-contact .champ select,
.section-contact .champ textarea { padding: 0.7rem 0.9rem; }
.section-contact .bouton { padding: 0.8rem 2.25rem; }

/* ============================================
   PAGES LÉGALES
   ============================================ */
.texte-legal h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.texte-legal h2:first-child { margin-top: 0; }

.texte-legal h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.texte-legal p { color: var(--vert-grise); }
.texte-legal strong { color: var(--vert-profond); }

.filet-legal {
  border: 0;
  border-top: 1px solid var(--filet);
  margin-block: 4rem;
}

.maj-legal {
  margin-top: 3rem;
  font-size: 0.85rem;
  font-style: italic;
}
