/* Les Vignerons du Toulois — reprise fidèle du site Hostinger, en plus léger et responsive */
:root {
  --noir: #232323;
  --noir-2: #1a1a1a;
  --blanc: #ffffff;
  --gris: #f2f2f2;
  --texte: #1d1e20;
  --texte-doux: #4a4a4a;
  --bordeaux: #7a1f2b;
  --titre: "Caudex", Georgia, serif;
  --corps: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --slab: "Roboto Slab", Georgia, serif;
  --script: "Lobster", "Brush Script MT", cursive;
  --largeur: 1224px;
  --rayon: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--corps); font-size: 16px; line-height: 1.6; color: var(--texte); background: var(--blanc); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blanc); color: var(--noir); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.conteneur--etroit { max-width: 860px; }
.centre { text-align: center; }
.droite { display: flex; justify-content: flex-end; }
.petit { font-size: .9rem; color: var(--texte-doux); }

/* ---------- En-tête / hero ---------- */
.hero {
  position: relative; color: var(--blanc); min-height: 520px; display: flex; flex-direction: column;
  background: var(--noir) var(--hero) center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.hero--grand { min-height: min(100svh, 850px); }
.hero > * { position: relative; }
.topbar { display: flex; flex-direction: column; align-items: center; padding: 36px 16px 0; }
.logo img { width: 250px; }
.nav { display: flex; gap: 8px 36px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.nav a { font-family: var(--slab); font-weight: 500; font-size: 15px; text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s, opacity .2s; }
.nav a:hover { border-color: rgba(255,255,255,.6); }
.nav a[aria-current="page"] { opacity: .85; border-color: var(--blanc); font-weight: 400; }
.burger { display: none; }
.hero__inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 70px; text-align: center; }
.hero__title { font-size: clamp(48px, 8vw, 96px); margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.souligne { display: inline-block; position: relative; padding-bottom: 6px; }
.souligne::after { content: ""; position: absolute; right: 0; bottom: 0; width: 66%; height: 3px; background: currentColor; }
.hero .fleche { position: absolute; right: 15%; bottom: 23%; }

/* ---------- Boutons / flèches ---------- */
.btn {
  display: inline-block; font-family: var(--corps); font-size: 15px; font-weight: 400; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: 14px 32px; border: 1px solid currentColor; background: transparent; color: var(--texte); transition: background .2s, color .2s;
}
.btn:hover { background: var(--texte); color: var(--blanc); }
.bloc--sombre .btn { color: var(--blanc); }
.bloc--sombre .btn:hover { background: var(--blanc); color: var(--noir); }
.btn--plein { background: #000; color: var(--blanc); border-color: #000; border-radius: 999px; padding: 14px 40px; }
.btn--plein:hover { background: var(--bordeaux); border-color: var(--bordeaux); color: var(--blanc); }
.btn--blanc { background: var(--blanc); color: var(--texte); border-color: var(--blanc); border-radius: 999px; padding: 12px 34px; }
.btn--blanc:hover { background: transparent; color: var(--blanc); }
.actions { margin-top: 2em; }
.fleche {
  display: inline-grid; place-items: center; width: 92px; height: 50px; border: 1px solid var(--texte); color: var(--texte);
  text-decoration: none; font-size: 20px; transition: transform .2s, background .2s, color .2s;
}
.fleche--clair { border-color: var(--blanc); color: var(--blanc); border-radius: 6px; border-width: 2px; }
.fleche:hover { transform: translateY(4px); }

/* ---------- Ronds de navigation ---------- */
.ronds { padding: 50px 16px 80px; text-align: center; }
.trait { display: block; width: 250px; max-width: 60%; height: 3px; background: var(--noir); margin: 0 auto 50px; }
.ronds__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 50px; }
.rond {
  position: relative; width: 240px; height: 240px; border-radius: 50%; border: 7px solid var(--noir); display: grid; place-items: center;
  font-family: var(--slab); font-weight: 700; font-size: 17px; text-decoration: none; overflow: hidden; transition: background .3s, color .3s;
}
.rond img { position: absolute; width: 64px; top: 48px; left: 50%; transform: translate(-50%, -12px); opacity: 0; transition: opacity .3s, transform .3s; }
.rond span { transition: transform .3s; }
.rond:hover, .rond:focus-visible { background: var(--noir); color: var(--blanc); }
.rond:hover img, .rond:focus-visible img { opacity: 1; transform: translate(-50%, 0); }
.rond:hover span, .rond:focus-visible span { transform: translateY(34px); }

/* ---------- Sections ---------- */
.bloc { padding: 90px 0; }
.bloc--serre { padding: 50px 0; }
.bloc--sombre { background: var(--noir); color: var(--blanc); }
.titre { font-size: clamp(36px, 4.5vw, 56px); }
.titre--xl { font-size: clamp(38px, 4.5vw, 60px); }
.titre--trait-gauche::after { content: ""; display: block; width: 210px; height: 3px; background: var(--noir); margin: 22px 0 0 30px; }
.lead { font-family: var(--titre); font-size: clamp(19px, 2vw, 26px); line-height: 1.45; }
.sous-titre { font-size: 15px; margin-bottom: 50px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.duo p { font-size: 15px; line-height: 1.75; }
.photo-arrondie { width: 100%; border-radius: var(--rayon); aspect-ratio: 4 / 4.3; object-fit: cover; }
#histoire .photo-arrondie { aspect-ratio: 1 / 1.05; }
.plan { margin: 50px auto 0; width: 370px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--noir-2); display: grid; place-items: center; overflow: hidden; }
.plan img { width: 88%; }

/* ---------- Actualités ---------- */
.actus { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.carte { background: var(--blanc); color: var(--texte); overflow: hidden; border-radius: 16px 16px 0 0; position: relative; }
.carte__img { width: 100%; height: 255px; object-fit: cover; }
.carte--large .carte__img { object-position: center 35%; }
.carte__corps { padding: 40px 46px 46px; }
.carte h3 { font-size: 32px; margin-bottom: .2em; }
.carte__chapo { font-size: 15px; margin-bottom: 1.8em; }
.carte p { font-size: 14px; line-height: 1.7; }
.temoignages { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; position: relative; z-index: 1; }
.temoignages blockquote { margin: 0; }
.temoignages footer { font-size: 14px; }
.carte__deco { position: absolute; right: 22px; bottom: 0; width: 130px; opacity: .9; }
.carte--large .carte__corps { padding-bottom: 150px; }

/* ---------- Nos vins ---------- */
.intro-vins { position: relative; padding-top: 70px; }
.intro-vins__grappe { position: absolute; left: 110px; top: 0; width: 200px; pointer-events: none; }
.intro-vins__texte { padding-left: 110px; padding-top: 80px; }
.puces-vins { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; max-width: 460px; }
.puces-vins a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #ddd; text-decoration: none; font-size: 14px; transition: color .2s, border-color .2s; }
.puces-vins a:hover { color: var(--bordeaux); border-color: var(--bordeaux); }
.puces-vins span { color: var(--texte-doux); white-space: nowrap; }
/* Bouteilles : apparition une à une comme l'animation d'origine (cycle 10 s : AOC puis Crinoline) */
.bouteilles { position: relative; aspect-ratio: 940 / 788; }
.bouteilles__groupe { position: absolute; inset: 0; }
.bouteille { position: absolute; width: auto; opacity: 0; animation: 10s linear infinite both; }
.bouteille--1 { height: 64%; left: 4%; top: 8%; animation-name: bouteille-g; }
.bouteille--3 { height: 64%; right: 4%; top: 8%; animation-name: bouteille-d; }
.bouteille--2 { height: 76%; left: 50%; top: 22%; translate: -50% 0; z-index: 1; animation-name: bouteille-c; }
.bouteilles__groupe--crinoline .bouteille { animation-delay: 5s; }
@keyframes bouteille-g { 0% { opacity: 0; } 4% { opacity: 1; } 41% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes bouteille-d { 0%, 2.5% { opacity: 0; } 6% { opacity: 1; } 42% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes bouteille-c { 0%, 4.5% { opacity: 0; transform: translateY(12%); } 9% { opacity: 1; transform: none; } 43% { opacity: 1; transform: none; } 48%, 100% { opacity: 0; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bouteilles__groupe--aoc .bouteille { opacity: 1; } }

.gamme { padding: 60px 0 20px; }
.titre-script { font-family: var(--script); font-size: clamp(48px, 6vw, 80px); text-align: center; margin: 40px 0 70px; }
.gamme__sous { text-align: center; margin: -60px 0 40px; letter-spacing: .15em; text-transform: uppercase; font-size: 13px; color: var(--texte-doux); }
.vin { padding: 30px 0 60px; scroll-margin-top: 20px; }
.titre-trait { font-size: clamp(32px, 3.5vw, 46px); text-align: center; }
#crinoline .titre-trait { text-transform: uppercase; }
.titre-trait::after { content: ""; display: block; width: 200px; height: 3px; background: var(--noir); margin: 26px auto 0; }
.vin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-top: 40px; }
.vin__photo img { max-height: 460px; width: 100%; object-fit: contain; }
.vin__fiche { position: relative; background: var(--gris); border-radius: 40px; padding: 44px 64px; }
.vin__feuilles { position: absolute; right: 30px; top: -70px; width: 120px; }
.vin__fiche h4 { font-size: 20px; font-weight: 700; margin: 1.1em 0 .4em; }
.vin__fiche h4:first-of-type { margin-top: 0; }
.vin__fiche p { font-size: 14px; line-height: 1.7; margin-bottom: .6em; }
.vin__prix { font-size: 20px !important; font-family: var(--titre); color: var(--bordeaux); margin: 0 !important; }
.vin__next { display: flex; justify-content: flex-end; margin-top: 30px; }

/* ---------- Galerie ---------- */
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tuile {
  position: relative; aspect-ratio: 4 / 4.8; border-radius: 16px; overflow: hidden; color: var(--blanc); text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 40px;
  background: var(--noir) var(--img) center / cover;
}
.tuile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.45)); transition: background .3s; }
.tuile:hover::before { background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.15)); }
.tuile > * { position: relative; }
.tuile__titre { font-family: var(--titre); font-size: 22px; margin-bottom: 6px; }
.tuile__texte { font-size: 15px; margin-bottom: 26px; }
.tuile .btn--blanc { padding: 12px 46px; }
.tuile:hover .btn--blanc { background: transparent; color: var(--blanc); }

/* Mosaïque animée (reprend les GIF d'origine) : grande photo devant, vignettes derrière, rotation */
.mosaique { position: relative; max-width: 1000px; margin: 30px auto 0; aspect-ratio: 1152 / 648; }
.mosaique__photo {
  position: absolute; padding: 0; border: 3px solid var(--blanc); border-radius: 12px; overflow: hidden; background: var(--gris); cursor: zoom-in;
  box-shadow: 0 6px 22px rgba(0,0,0,.12); transition: left .9s ease, top .9s ease, width .9s ease, height .9s ease, opacity .9s ease;
}
.mosaique:not(.prete) .mosaique__photo { transition: none; }
.mosaique__photo img { width: 100%; height: 100%; object-fit: cover; }
.mosaique__legende { text-align: center; font-size: 14px; color: var(--texte-doux); margin: 14px 0 0; }
.visionneuse { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.visionneuse::backdrop { background: rgba(0,0,0,.88); }
.visionneuse img { max-width: 96vw; max-height: 94vh; border-radius: 6px; }
.visionneuse__fermer { position: fixed; top: 14px; right: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 32px; cursor: pointer; }

/* ---------- Contact ---------- */
.expedition { margin-bottom: 50px; padding-inline: 16px; }
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: start; max-width: 1060px; }
.formulaire { margin-top: 40px; display: grid; gap: 20px; }
.formulaire__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.formulaire label { display: grid; gap: 6px; font-size: 14px; }
.formulaire input, .formulaire textarea {
  font: inherit; font-size: 16px; width: 100%; border: 1px solid transparent; background: var(--gris); padding: 12px 14px; border-radius: 0; color: var(--texte); transition: border-color .2s, background .2s;
}
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--noir); background: var(--blanc); }
.formulaire textarea { resize: vertical; min-height: 130px; }
.formulaire .btn { padding: 12px 40px; }
.formulaire .btn[disabled] { opacity: .5; cursor: wait; }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__statut { margin: 0; font-size: 15px; min-height: 1.5em; text-align: center; }
.formulaire__statut.ok { color: #1e6b34; }
.formulaire__statut.erreur { color: #a3162b; }
.contact__infos { background: var(--gris); border-radius: var(--rayon); padding: 40px; margin-top: 110px; }
.contact__infos h3 { font-size: 20px; margin: 1.2em 0 .3em; }
.contact__infos h3:first-child { margin-top: 0; }
.grand-lien { font-family: var(--titre); font-size: 24px; text-decoration: none; }
.carte-acces { background: var(--noir); padding: 50px 16px; }
.carte-acces__cadre {
  max-width: 1100px; margin: auto; height: 380px; display: grid; place-content: center; justify-items: center; gap: 10px; color: #bbb;
  background: #2c2c2c; border-radius: 4px;
}
.carte-acces__cadre p { color: #bbb; }
.carte-acces__cadre iframe { width: 100%; height: 100%; border: 0; display: block; }
.carte-acces__cadre.chargee { display: block; }

/* ---------- Pied de page ---------- */
.footer { background: var(--noir); color: var(--blanc); padding: 70px 0 30px; }
.footer__grid { width: min(var(--largeur), 100% - 32px); margin: auto; display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; padding-inline: 50px; }
.footer__brand img { width: 290px; margin-bottom: 36px; }
.footer address { font-style: normal; font-size: 14px; text-transform: uppercase; }
.footer__title { font-size: 24px; margin-bottom: .7em; }
.footer p, .footer li { font-size: 14px; line-height: 1.9; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: underline; }
.footer__note { font-style: italic; }
.footer__small { font-size: 13px !important; line-height: 1.6 !important; }
.footer__legal { width: min(var(--largeur), 100% - 32px); margin: 50px auto 0; padding: 22px 50px 0; border-top: 1px solid #3a3a3a; font-size: 12px; color: #9a9a9a; text-align: center; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1000px) {
  .duo, .vin__grid, .contact { grid-template-columns: 1fr; gap: 40px; }
  .duo--inverse > img { order: -1; }
  .actus { grid-template-columns: 1fr; }
  .tuiles { grid-template-columns: 1fr 1fr; }
  .intro-vins__texte { padding-left: 0; padding-top: 110px; }
  .intro-vins__grappe { left: 0; width: 150px; }
  .footer__grid { grid-template-columns: 1fr 1fr; padding-inline: 0; }
  .contact__infos { margin-top: 0; }
  .photo-arrondie, #histoire .photo-arrondie { aspect-ratio: 4 / 3; }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .hero { min-height: 380px; }
  .hero--grand { min-height: min(88svh, 720px); }
  .topbar { flex-direction: row; justify-content: space-between; padding: 18px 16px 0; }
  .logo img { width: 140px; }
  .burger { display: grid; gap: 5px; width: 46px; height: 46px; place-content: center; background: rgba(0,0,0,.25); border: 0; border-radius: 50%; cursor: pointer; z-index: 20; }
  .burger span { display: block; width: 22px; height: 2px; background: var(--blanc); transition: transform .25s, opacity .25s; }
  .menu-ouvert .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-ouvert .burger span:nth-child(2) { opacity: 0; }
  .menu-ouvert .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 10; margin: 0; flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 26px;
    background: rgba(26,26,26,.97); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav a { font-size: 22px; }
  .menu-ouvert .nav { opacity: 1; visibility: visible; }
  .menu-ouvert .burger { position: fixed; top: 18px; right: 16px; }
  .hero .fleche { right: 50%; transform: translateX(50%); bottom: 36px; }
  .hero .fleche:hover { transform: translate(50%, 4px); }
  .bloc { padding: 60px 0; }
  .ronds { padding: 40px 16px 60px; }
  .ronds__list { gap: 18px; }
  .rond { width: 140px; height: 140px; border-width: 5px; font-size: 13px; padding: 0 10px; text-align: center; }
  .rond img { width: 40px; top: 22px; }
  .rond:hover span { transform: translateY(24px); }
  .temoignages { grid-template-columns: 1fr; gap: 10px; }
  .carte__corps { padding: 28px 22px 30px; }
  .carte--large .carte__corps { padding-bottom: 130px; }
  .carte h3 { font-size: 26px; }
  .vin__fiche { padding: 36px 26px; border-radius: 28px; }
  .vin__feuilles { width: 90px; top: -50px; right: 10px; }
  .vin__photo img { max-height: 320px; }
  .puces-vins { grid-template-columns: 1fr; }
  .tuiles { grid-template-columns: 1fr; }
  .tuile { aspect-ratio: 4 / 3.4; padding: 26px; }
  .formulaire__ligne { grid-template-columns: 1fr; }
  .contact__infos { padding: 28px 22px; }
  .titre--trait-gauche::after { width: 150px; margin-left: 0; }
  .footer { padding-top: 50px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .footer__brand img { margin: 0 auto 20px; }
  .footer__legal { padding-inline: 0; }
  .carte-acces__cadre { height: 300px; }
}
