/* Domaine des Tuffières : domaine viticole fictif à Vouvray.
   Direction : le coteau vu de la rive sud (Loire, falaise de tuffeau, vignes du plateau), puis la
   coupe du sol. Couleurs prises au paysage : tuffeau, vert bouteille, or du chenin, gris de Loire.
   Fraunces pour la voix du vigneron, Albert Sans pour les informations pratiques. */
:root {
  --tuffeau: #efe6d3;
  --creme: #f8f3e8;
  --bouteille: #1e2b22;
  --bouteille-2: #2a3a2e;
  --chenin: #b8912f;
  --chenin-texte: #775a10;
  --encre-douce: #4d5249;
  --loire: #8fa3a8;
  --filet: rgba(30, 43, 34, .22);
  --filet-clair: rgba(239, 230, 211, .3);
  --titre: "Fraunces Variable", Fraunces, Georgia, "Times New Roman", serif;
  --texte: "Albert Sans Variable", "Albert Sans", "Segoe UI", system-ui, sans-serif;
  --marge: clamp(1rem, 5vw, 4.5rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--tuffeau); color: var(--bouteille); font-family: var(--texte); font-size: 1.0625rem; line-height: 1.65; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--chenin-texte); outline-offset: 3px; }

.demo-bandeau { background: var(--bouteille); color: #e6dcc6; }
.surtitre { font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--chenin-texte); }
.section-titre { font-family: var(--titre); font-weight: 420; font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1; letter-spacing: -.02em; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: .85rem var(--marge); background: var(--tuffeau); border-bottom: 1px solid var(--filet); }
.marque { font: 500 1.1875rem/1 var(--titre); text-decoration: none; position: relative; z-index: 2; transition: color .3s; }
.menu-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; background: none; border: 0; color: inherit; font: 600 .875rem/1 var(--texte); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 0 .25rem; transition: color .3s; }
.menu-grappe { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
.menu-grappe span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.menu-grappe span:last-child { grid-column: 1 / -1; justify-self: center; }
.menu-ouvert body { overflow: hidden; }
.menu-ouvert .marque, .menu-ouvert .menu-btn { color: var(--tuffeau); }
.menu-plein { position: fixed; inset: 0; z-index: 1; color: var(--tuffeau); }
.menu-plein[hidden] { display: none; }
.menu-fond { position: absolute; inset: 0; background: var(--bouteille); }
.menu-interieur { position: relative; height: 100%; overflow-y: auto; display: grid; align-content: center; gap: 2.5rem; padding: 6rem var(--marge) 3rem; }
.menu-liens { display: grid; gap: .5rem; }
.menu-liens a { font: 400 clamp(2.2rem, 7vw, 4.5rem)/1.1 var(--titre); text-decoration: none; display: inline-block; }
.menu-liens a:hover, .menu-liens a:focus-visible { font-style: italic; }
.menu-infos { color: #d9cfb8; border-top: 1px solid var(--filet-clair); padding-top: 1.25rem; }

/* ---------- Accueil : le coteau ---------- */
.accueil { position: relative; display: grid; }
.accueil-texte { position: relative; z-index: 2; padding: 2.5rem var(--marge) 1.5rem; display: grid; gap: 1rem; }
.accueil-titre { font: 380 clamp(3rem, 9vw, 8.5rem)/.95 var(--titre); letter-spacing: -.03em; }
.accueil-titre em { font-weight: 300; }
.accueil-chapeau { max-width: 32rem; font-size: 1.125rem; color: var(--encre-douce); }
.paysage { position: relative; order: 2; height: 52svh; min-height: 300px; overflow: hidden; background: #efe6d3; }
.plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.mv-actif .plan, .mv-actif .cadran { will-change: transform; }
@media (max-width: 799px) { .paysage { height: 44svh; min-height: 260px; } .plan-vignes, .plan-coteau, .plan-loire { top: -30%; height: 130%; } }
@media (min-width: 800px) {
  .accueil { height: calc(100svh - 3.5rem); min-height: 620px; }
  .paysage { position: absolute; inset: 0; height: auto; }
  .accueil-texte { align-self: start; padding-top: clamp(2.5rem, 8vh, 5rem); grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: 3rem; align-items: end; }
  .accueil-texte .surtitre { grid-column: 1 / -1; }
  .accueil-chapeau { max-width: 24rem; padding-bottom: .8rem; }
  .plan-vignes, .plan-coteau, .plan-loire { top: 36%; height: 64%; }
}

/* ---------- Intro ---------- */
.intro { padding: clamp(4rem, 11vw, 8rem) var(--marge); background: var(--creme); }
.intro-texte { max-width: 58rem; margin: 0 auto; font: 380 clamp(1.5rem, 3.2vw, 2.5rem)/1.3 var(--titre); }

/* ---------- Sous le rang ---------- */
.sol { background: var(--tuffeau); }
.sol-tete { padding: clamp(4rem, 10vw, 7rem) var(--marge) 2rem; display: grid; gap: 1rem; max-width: 80rem; margin: 0 auto; }
.sol-tete p { max-width: 32rem; color: var(--encre-douce); }
.sol-colonne { position: relative; padding-top: 7rem; --gouttiere: 4.5rem; }
.cep { position: absolute; top: 1.5rem; left: calc(var(--gouttiere) / 2 - 2.25rem); width: 4.5rem; }
@media (min-width: 800px) { .cep { top: 0; left: calc(var(--gouttiere) / 2 - 3.75rem); width: 7.5rem; } }
.racine-cache { position: absolute; z-index: 2; top: 7rem; left: calc(var(--gouttiere) / 2 - 1rem); width: 2rem; height: calc(100% - 19rem); overflow: hidden; pointer-events: none; }
.racine { width: 100%; height: 100%; overflow: visible; }
.sol-jauge { display: none; }
.couche { position: relative; padding: 3rem var(--marge) 3rem calc(var(--gouttiere) + 1rem); }
.couche-texte { max-width: 34rem; display: grid; gap: .5rem; position: relative; z-index: 3; }
.couche-prof { font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.couche h3 { font: 450 clamp(1.6rem, 3.4vw, 2.4rem)/1.1 var(--titre); }
.couche-terre { background: #4e3f31 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg fill='%23665341'%3E%3Ccircle cx='12' cy='20' r='3'/%3E%3Ccircle cx='60' cy='12' r='2'/%3E%3Ccircle cx='40' cy='55' r='3'/%3E%3Ccircle cx='80' cy='70' r='2'/%3E%3Ccircle cx='20' cy='80' r='2'/%3E%3C/g%3E%3C/svg%3E"); color: #f3ead7; }
.couche-perruches { background: #84533a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='140'%3E%3Cg fill='%23676a6b' stroke='%233f4244' stroke-width='1.5'%3E%3Cpath d='M20 30 q14 -12 30 -2 q6 12 -8 16 q-18 4 -22 -14z'/%3E%3Cpath d='M100 20 q18 -6 26 6 q-4 14 -18 12 q-12 -4 -8 -18z'/%3E%3Cpath d='M60 90 q16 -10 28 0 q2 14 -14 16 q-16 0 -14 -16z'/%3E%3Cpath d='M130 100 q10 -8 20 2 q-2 12 -12 10 q-10 -2 -8 -12z'/%3E%3C/g%3E%3C/svg%3E"); color: #fbf4e4; }
.couche-aubuis { background: #cbb892 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='100'%3E%3Cg fill='%23e5dac0'%3E%3Cellipse cx='20' cy='20' rx='6' ry='3'/%3E%3Cellipse cx='80' cy='40' rx='8' ry='3'/%3E%3Cellipse cx='40' cy='76' rx='5' ry='2'/%3E%3Cellipse cx='100' cy='86' rx='7' ry='3'/%3E%3C/g%3E%3C/svg%3E"); color: var(--bouteille); }
.couche-tuffeau { background: #e9dfc8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='120'%3E%3Cg fill='none' stroke='%23cdbf9f' stroke-width='1.5'%3E%3Cpath d='M20 30 a8 8 0 1 1 12 6'/%3E%3Cpath d='M90 70 a6 6 0 1 1 9 5'/%3E%3Cpath d='M50 100 l10 -8 l10 8'/%3E%3C/g%3E%3C/svg%3E"); color: var(--bouteille); padding-bottom: 0; }
.couche-terre .couche-prof, .couche-perruches .couche-prof { color: #f0d79a; }
.couche-aubuis .couche-prof, .couche-tuffeau .couche-prof { color: #5e470d; }
.cave-voute { max-width: 26rem; margin: 2.5rem 0 0 auto; position: relative; z-index: 3; }
.cave-voute text { font-family: var(--titre); }
@media (min-width: 800px) {
  .sol-colonne { --gouttiere: 12rem; }
  .couche { min-height: 72vh; padding-top: 5rem; padding-right: 14rem; }
  .sol-jauge { display: block; position: absolute; top: 7rem; right: var(--marge); bottom: 0; width: 10rem; z-index: 4; pointer-events: none; }
  .jauge-libelle, .jauge-valeur { display: block; }
  .sol-jauge > span { position: sticky; top: 45vh; }
  .jauge-libelle { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: .35rem; }
  .jauge-valeur { font: 400 2rem/1.1 var(--titre); }
  .cave-voute { margin: 2rem 0 0 auto; max-width: 22rem; }
}
/* La jauge suit l'élément sticky ; on la rend lisible sur les couches claires et foncées. */
.sol-jauge .jauge-libelle, .sol-jauge .jauge-valeur { background: var(--creme); color: var(--bouteille); padding: .2rem .6rem; }
.sol-jauge .jauge-libelle { top: 45vh; }
.sol-jauge .jauge-valeur { top: calc(45vh + 1.8rem); }

/* ---------- L'année du chenin ---------- */
.annee { background: var(--bouteille); color: var(--tuffeau); }
.annee-scene { padding: clamp(4rem, 10vw, 7rem) var(--marge); display: grid; gap: 2.5rem; max-width: 80rem; margin: 0 auto; }
.annee-cadran { position: relative; width: min(100%, 22rem); justify-self: center; }
.cadran { width: 100%; height: auto; overflow: visible; }
.cadran text { font-family: var(--texte); }
.cadran-repere { position: absolute; left: 50%; top: -14px; width: 16px; height: 12px; margin-left: -8px; background: var(--chenin); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.annee .section-titre { margin-bottom: 2rem; }
.saisons { display: grid; gap: 1.75rem; }
.saison { border-top: 1px solid var(--filet-clair); padding-top: 1rem; display: grid; gap: .35rem; }
.saison-mois { font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: #e3c57a; }
.saison h3 { font: 420 1.75rem/1.15 var(--titre); }
.saison p:last-child { color: #ddd3bd; max-width: 32rem; }
@media (min-width: 800px) { .annee-scene { grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; } .annee-cadran { width: min(100%, 30rem); } }
.mv-actif .annee-scene { height: 100vh; align-content: center; padding-top: 5rem; padding-bottom: 2rem; }
.mv-actif .saisons { position: relative; min-height: 15rem; }
.mv-actif .saison { position: absolute; inset: 0 0 auto 0; opacity: 0; }
.mv-actif .saison:first-child { opacity: 1; }
@media (max-width: 799px) {
  .mv-actif .annee-scene { gap: 1.25rem; align-content: start; padding-top: 5rem; }
  .mv-actif .annee-cadran { width: min(72vw, 17rem); }
  .mv-actif .annee .section-titre { font-size: 2rem; margin-bottom: 1rem; }
  .mv-actif .saison h3 { font-size: 1.4rem; }
}

/* ---------- Bandeau photo ---------- */
.bandeau-photo { margin: 0; background: var(--creme); --rideau: var(--creme); padding: clamp(3rem, 7vw, 5rem) 0 0; }
.bandeau-cadre { aspect-ratio: 16 / 9; max-height: 80vh; width: 100%; }
.bandeau-cadre img { width: 100%; height: 116%; object-fit: cover; margin-top: -8%; }
.bandeau-photo figcaption { padding: .75rem var(--marge) 0; font-size: .875rem; color: var(--encre-douce); }

/* ---------- Les vins ---------- */
.vins { padding: clamp(4rem, 10vw, 7rem) var(--marge); background: var(--creme); }
.vins-tete { display: grid; gap: 1rem; margin: 0 auto 3rem; max-width: 80rem; }
.vins-tete p { color: var(--encre-douce); }
.bouteilles { display: grid; gap: 3rem; max-width: 80rem; margin: 0 auto; }
.vin { display: grid; grid-template-columns: 6rem 1fr; column-gap: 1.25rem; align-items: start; }
.casier { grid-row: 1 / span 5; position: relative; overflow: hidden; padding-bottom: 10px; }
.casier::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: #6b4a33; }
.bouteille { width: 100%; height: auto; }
.bouteille text { font-family: var(--titre); }
.vin h3 { font: 450 1.75rem/1.1 var(--titre); }
.vin-style { font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--chenin-texte); margin: .35rem 0 .75rem; }
.vin dl { display: grid; gap: .3rem; font-size: .9375rem; }
.vin dl div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; }
.vin dt { font-weight: 600; }
.vin dd { color: var(--encre-douce); }
.vin-prix { margin-top: .9rem; font: 500 1.25rem/1.2 var(--titre); }
.vins-note { max-width: 80rem; margin: 3rem auto 0; font-size: .9375rem; color: var(--encre-douce); }
@media (min-width: 900px) {
  .bouteilles { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .vin { grid-template-columns: 1fr; }
  .casier { grid-row: auto; width: 62%; margin: 0 auto 1.75rem; }
  .vin:nth-child(even) .casier { margin-top: 3rem; }
}

/* ---------- Caveau ---------- */
.caveau { padding: clamp(4rem, 10vw, 7rem) var(--marge); background: var(--tuffeau); --rideau: var(--tuffeau); }
.caveau-grille { display: grid; gap: 3rem; max-width: 80rem; margin: 0 auto; align-items: center; }
.caveau-photo { aspect-ratio: 4 / 5; }
.caveau-photo img { width: 100%; height: 112%; object-fit: cover; margin-top: -6%; }
.caveau-chapeau { font: 380 1.4rem/1.35 var(--titre); margin: 1.5rem 0 2rem; }
.caveau-infos { display: grid; gap: 1rem; }
.caveau-infos div { border-top: 1px solid var(--filet); padding-top: .75rem; display: grid; gap: .15rem; }
.caveau-infos dt { font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--chenin-texte); }
@media (min-width: 800px) { .caveau-grille { grid-template-columns: 1fr 1fr; gap: 6rem; } }

/* ---------- Pied ---------- */
.pied { background: var(--bouteille); color: #e9dfc9; padding: 4rem var(--marge) 2rem; }
.pied-marque { font: 350 clamp(2.4rem, 8vw, 6rem)/1 var(--titre); letter-spacing: -.02em; margin-bottom: 2.5rem; }
.pied-grille { display: grid; gap: 1.25rem; border-top: 1px solid var(--filet-clair); padding-top: 1.5rem; }
.pied-evin { font-weight: 600; }
.pied-demo { margin-top: 2.5rem; font-size: .8125rem; color: #c9bfa8; max-width: 46rem; }
.pied :focus-visible { outline-color: #e3c57a; }
@media (min-width: 800px) { .pied-grille { grid-template-columns: 1fr 1fr 1fr; } }
