/* ============================================================
   MAISON GODINAT — Site institutionnel (même charte que la boutique)
   ============================================================ */
:root {
  --creme:  #F8F4EF;
  --encre:  #1A1109;
  --or:     #B8902A;
  --or-f:   #8f6f1f;
  --vin:    #7C2D3E;
  --sable:  #EDE8E0;
  --gris:   #6B6359;
  --clair:  #FDFBF8;
  --bord:   #D9D0C4;
  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'Lato', 'Helvetica Neue', Arial, sans-serif;
  --largeur: 1200px;
  --gouttiere: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--encre); background: var(--creme); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--vin); }
a:hover { color: var(--or-f); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--encre); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p + p { margin-top: 1em; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.text-centre { text-align: center; }
.surtitre { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--or); margin-bottom: .8rem; }
.titre-section { text-align: center; margin-bottom: 2.5rem; }
.titre-section::after { content: ''; display: block; width: 48px; height: 2px; background: var(--or); margin: 1rem auto 0; }
.aller-contenu { position: absolute; left: -9999px; top: 0; background: var(--encre); color: #fff; padding: .6rem 1rem; z-index: 100; }
.aller-contenu:focus { left: 1rem; }

/* --- Boutons ------------------------------------------------ */
.bouton { display: inline-block; padding: .85rem 1.7rem; border-radius: 3px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; text-align: center; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.bouton-or { background: var(--or); color: #fff; }
.bouton-or:hover { background: var(--or-f); color: #fff; }
.bouton-clair { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.75); }
.bouton-clair:hover { background: #fff; color: var(--encre); }
.bouton-contour { color: var(--encre); border-color: var(--encre); }
.bouton-contour:hover { background: var(--encre); color: #fff; }
.boutons, .appel { display: flex; flex-wrap: wrap; gap: 1rem; }
.appel { justify-content: center; padding-block: 3rem 4rem; }
.lien-fleche { display: inline-block; margin-top: 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vin); }
.lien-fleche::after { content: ' →'; transition: margin .2s; }

/* --- Bannière d'annonce ----------------------------------- */
.banniere { background: var(--vin); color: #fff; text-align: center; font-size: .88rem; padding: .6rem var(--gouttiere); }
.banniere p { max-width: none; }
.banniere a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.banniere a:hover { color: #f3e3b5; }

/* --- En-tête ---------------------------------------------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(248,244,239,.97); border-bottom: 1px solid var(--bord); backdrop-filter: blur(6px); }
.entete-int { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 82px; }
.logo img { height: 50px; width: auto; mix-blend-mode: multiply; }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu ul { display: flex; gap: 1.6rem; list-style: none; }
.menu ul a { color: var(--encre); text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding-block: .4rem; border-bottom: 2px solid transparent; }
.menu ul a:hover, .menu ul a[aria-current="page"] { color: var(--vin); border-bottom-color: var(--or); }
.menu-boutique { padding: .7rem 1.2rem; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--encre); transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1020px) {
  .burger { display: flex; }
  .entete-int { height: 70px; }
  .logo img { height: 42px; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--creme); border-bottom: 1px solid var(--bord); box-shadow: 0 12px 24px rgba(26,17,9,.08); padding: .5rem var(--gouttiere) 1.5rem; display: none; }
  .menu.ouvert { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--bord); font-size: .9rem; }
  .menu ul a[aria-current="page"] { border-bottom-color: var(--bord); }
  .menu-boutique { margin-top: 1.2rem; padding: 1rem; }
}

/* --- Accueil : grande image ------------------------------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; color: #fff; background: #3a2a1c var(--photo, none) center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,17,9,.72) 0%, rgba(26,17,9,.45) 55%, rgba(26,17,9,.15) 100%); }
.hero-int { position: relative; padding-block: 5rem; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero .surtitre { color: #e9cf8a; }
.hero-texte { font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 300; max-width: 38rem; margin-bottom: 2.2rem; }

.visuel-promo { padding-top: 3rem; }
.visuel-promo img { width: 100%; border-radius: 4px; box-shadow: 0 6px 30px rgba(26,17,9,.12); }

/* --- Accueil : trois blocs -------------------------------- */
.blocs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; padding-block: 4.5rem; }
.bloc { display: flex; flex-direction: column; background: var(--clair); border: 1px solid var(--bord); border-radius: 4px; overflow: hidden; color: var(--encre); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.bloc:hover { color: var(--encre); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(26,17,9,.1); }
.bloc img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.bloc-texte { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.bloc h2 { font-size: 1.35rem; margin-bottom: .7rem; }
.bloc p { color: var(--gris); font-size: .95rem; }
.bloc .lien-fleche { margin-top: auto; padding-top: 1rem; }
.bloc:hover .lien-fleche::after { margin-left: .3rem; }

/* --- Bloc photo + texte ----------------------------------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; max-width: var(--largeur); margin: 0 auto 4rem; padding-inline: var(--gouttiere); gap: 0; }
.duo-photo img { width: 100%; height: 100%; min-height: 320px; max-height: 620px; object-fit: cover; border-radius: 4px 0 0 4px; }
.duo-texte { background: var(--clair); border: 1px solid var(--bord); border-left: 0; border-radius: 0 4px 4px 0; padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.duo-texte h2, .duo-texte h3 { margin-bottom: 1.2rem; }
.duo-texte p { color: #3b3128; }
.duo-texte .bouton { align-self: flex-start; margin-top: 1.8rem; }
.duo-inverse .duo-photo { order: 2; }
.duo-inverse .duo-photo img { border-radius: 0 4px 4px 0; }
.duo-inverse .duo-texte { border-left: 1px solid var(--bord); border-right: 0; border-radius: 4px 0 0 4px; }
.duo-boutique .duo-texte { background: var(--encre); border-color: var(--encre); color: #efe7da; }
.duo-boutique h2 { color: #fff; }
.duo-boutique .duo-texte p { color: #e5dccd; }

/* --- Accueil : nous trouver ------------------------------- */
.sites { padding-block: 1rem 4.5rem; }
.sites-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; margin-bottom: 2rem; }
.carte-site { background: var(--clair); border: 1px solid var(--bord); border-top: 3px solid var(--or); border-radius: 4px; padding: 1.8rem; }
.carte-site h3 { margin-bottom: .3rem; }
.carte-site p + p { margin-top: .6rem; }
.pied-detail { font-size: .85rem; color: var(--gris); font-style: italic; }

/* --- Pages intérieures ------------------------------------ */
.bandeau-page { position: relative; min-height: clamp(220px, 38vh, 380px); display: flex; align-items: flex-end; background: #3a2a1c var(--photo, none) center / cover no-repeat; }
.bandeau-page::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,17,9,.7) 0%, rgba(26,17,9,.15) 70%); }
.bandeau-page .conteneur { position: relative; padding-block: 2.5rem; }
.bandeau-page h1 { color: #fff; }
.intro { padding-block: 3.5rem 3rem; }
.intro p { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.6; max-width: 52rem; margin-inline: auto; text-align: center; color: #3b3128; }

.citation { max-width: 860px; text-align: center; padding-block: 2rem 4.5rem; }
.citation h2 { margin-bottom: 1.2rem; }
.citation p { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #3b3128; }

/* Domaines */
.domaine { padding-block: 1rem 4.5rem; scroll-margin-top: 100px; }
.domaine-titre { text-align: center; margin-bottom: 2.2rem; }
.domaine-grille { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.domaine-inverse .domaine-photos { order: -1; }
.domaine-texte p { color: #3b3128; }
.domaine-photos { display: grid; gap: 1rem; }
.domaine-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
#histoire, #vision, #metiers { scroll-margin-top: 100px; }

/* Nos vins */
.couleurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.couleur { display: flex; flex-direction: column; padding: 2.2rem 1.8rem; border-radius: 4px; color: #fff; text-decoration: none; min-height: 250px; transition: transform .25s, box-shadow .25s; }
.couleur:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(26,17,9,.18); }
.couleur h2 { color: #fff; margin-bottom: .8rem; }
.couleur p { opacity: .92; }
.couleur .lien-fleche { color: #fff; margin-top: auto; padding-top: 1.2rem; }
.couleur-blanc { background: linear-gradient(140deg, #b89a4b, #8d7330); }
.couleur-rouge { background: linear-gradient(140deg, #7C2D3E, #521b28); }
.couleur-rose  { background: linear-gradient(140deg, #c77a7f, #9c4f58); }

/* Contact */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; padding-bottom: 3rem; }
.carte-contact { background: var(--clair); border: 1px solid var(--bord); border-top: 3px solid var(--or); border-radius: 4px; padding: clamp(1.5rem, 3vw, 2.4rem); }
.carte-contact h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.carte-contact dl { margin-top: 1.4rem; }
.carte-contact dt { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or); margin-top: 1.1rem; }
.carte-contact dd p + p { margin-top: .2rem; }
.carte-contact .lien-fleche { margin-top: .4rem; }
.encadre { max-width: 860px; text-align: center; background: var(--sable); border-radius: 4px; padding: 2rem; margin-bottom: 4rem; }
.encadre .bouton { margin-top: 1.2rem; }

.revendeurs { max-width: 860px; padding-bottom: 1rem; }
.revendeur { background: var(--clair); border: 1px solid var(--bord); border-radius: 4px; padding: 1.2rem 1.4rem; }
.revendeur + .revendeur { margin-top: .8rem; }

/* Mentions légales */
.texte-legal { max-width: 860px; padding-block: 3.5rem 4rem; }
.texte-legal h1 { margin-bottom: 2rem; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.texte-legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--bord); }

/* --- Pied de page ----------------------------------------- */
.pied { background: var(--encre); color: #cfc5b6; font-size: .92rem; }
.pied a { color: #efe7da; text-decoration: none; }
.pied a:hover { color: var(--or); }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.pied-marque img { width: 190px; background: var(--creme); padding: .55rem .8rem; border-radius: 4px; margin-bottom: 1.2rem; box-sizing: content-box; }
.pied-marque p { margin-bottom: 1.4rem; max-width: 22rem; }
.pied-site h2 { font-family: var(--serif); color: #fff; font-size: 1.1rem; margin-bottom: .3rem; }
.pied-site p + p { margin-top: .7rem; }
.pied .pied-detail { color: #a89d8c; }
.reseaux { display: flex; gap: .8rem; list-style: none; margin-top: 1.4rem; }
.reseaux a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #5a4d3f; border-radius: 50%; }
.pied-bas { border-top: 1px solid #3a2f24; padding-block: 1.4rem 1.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; }
.pied-bas nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.evin { font-style: italic; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .blocs, .couleurs { grid-template-columns: 1fr; max-width: 560px; }
  .bloc img { aspect-ratio: 16 / 9; }
  .couleur { min-height: 0; }
  .duo { grid-template-columns: 1fr; }
  .duo-photo, .duo-inverse .duo-photo { order: 0; }
  .duo-photo img, .duo-inverse .duo-photo img { min-height: 0; aspect-ratio: 16 / 10; border-radius: 4px 4px 0 0; }
  .duo-texte, .duo-inverse .duo-texte { border: 1px solid var(--bord); border-top: 0; border-radius: 0 0 4px 4px; }
  .duo-boutique .duo-texte { border-color: var(--encre); }
  .domaine-grille { grid-template-columns: 1fr; }
  .domaine-inverse .domaine-photos { order: 0; }
  .domaine-photos { grid-template-columns: 1fr 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-marque { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sites-grille, .contacts, .pied-grille { grid-template-columns: 1fr; }
  .hero { min-height: 72vh; }
  .hero::before { background: linear-gradient(0deg, rgba(26,17,9,.8) 0%, rgba(26,17,9,.45) 100%); }
  .boutons .bouton, .appel .bouton { flex: 1 1 100%; }
  .duo-texte .bouton { align-self: stretch; }
  .domaine-photos { grid-template-columns: 1fr; }
  .pied-bas { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
