/* ============================================================
   Les Vins de Flo — Feuille de styles principale
   ============================================================ */

/* ─── 0. Polices (auto-hébergées, sous-ensemble latin) ────── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/jost.woff2') format('woff2');
}

/* ─── 1. Variables ─────────────────────────────────────────── */
:root {
  /* Palette logo : bleu #0c476a comme couleur dominante,
     corail #ea4656 comme accent identitaire.
     Fond ivoire-bleuté — contrastes WCAG AA vérifiés. */

  --noir:       oklch(35% 0.089 233);  /* Bleu profond #0c476a — texte corps, nav/footer bg   */
  --noir-soft:  oklch(44% 0.10 233);   /* Bleu moyen — nav.scrolled, hover fond               */
  --noir-card:  oklch(93% 0.014 233);  /* Bleu très pâle — sections alternées                 */
  --creme:      oklch(97% 0.008 233);  /* Fond principal — ~10:1 avec --noir ✓                */
  --creme-dim:  oklch(78% 0.016 233);  /* Texte secondaire sur fonds sombres — ~6:1 ✓         */
  --texte-dim:  oklch(50% 0.06 233);   /* Texte secondaire sur fonds clairs — ~5:1 ✓          */
  --or:         oklch(58% 0.21 20);    /* Corail logo #ea4656 — accent décoratif               */
  --or-light:   oklch(63% 0.22 20);    /* Corail hover                                         */
  --or-dim:     oklch(36% 0.15 20);    /* Corail sombre pour bordures                          */
  --or-cta:     oklch(43% 0.18 20);    /* Bouton/label — ~5.5:1 sur --creme ✓                 */
  --gris:       oklch(60% 0.04 233);   /* Neutre bleu-gris — placeholders                     */
  --or-text:    oklch(76% 0.13 20);    /* Corail clair — texte sur fond --noir — ~4.6:1 ✓     */
  --vin:        oklch(22% 0.07 233);   /* Fond bleu nuit — citations, coup de cœur             */
  --vin-border: oklch(40% 0.10 233);   /* Accent bleu                                          */

  /* Tokens rgba */
  --accent-rgb:  234,  70,  86;        /* = #ea4656 corail */
  --bg-rgb:       12,  71, 106;        /* = #0c476a bleu logo */
  --creme-rgb:   237, 244, 250;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-ui:      'Jost', system-ui, sans-serif;

  --fs-hero:  clamp(3.75rem, 8.5vw, 7rem);
  --fs-h1:    clamp(2.75rem, 5.5vw, 4.5rem);
  --fs-h2:    clamp(2rem, 4vw, 3.25rem);
  --fs-h3:    clamp(1.45rem, 2.7vw, 2rem);
  --fs-lg:    1.2rem;
  --fs-base:  1rem;
  --fs-sm:    0.9375rem;
  --fs-xs:    0.8rem;

  --nav-h:    5rem;
  --max-w:    1280px;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── 2. Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

:focus-visible {
  outline: 2px solid var(--or-cta);
  outline-offset: 3px;
  border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

body {
  background-color: var(--creme);
  color: var(--noir);
  font-family: var(--ff-ui);
  font-size: var(--fs-base);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* Grain désactivé sur mobile : calque fixe plein écran redessiné au scroll */
@media (max-width: 768px) {
  body::after { display: none; }
}

img, video, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; border: none; background: none; }

/* ─── 3. Grille Instagram (copie locale du flux Behold) ───── */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

.instagram-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--noir-card);
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.instagram-grid a:hover img { transform: scale(1.04); }

/* Pictogramme carrousel / vidéo, comme sur Instagram */
.instagram-grid__type {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.5));
  pointer-events: none;
}

@media (max-width: 640px) {
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── 4. Typographie ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.display { font-size: var(--fs-hero); }

.label {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-cta);
}

.lead {
  font-size: var(--fs-lg);
  color: var(--texte-dim);
  max-width: 52ch;
}

/* ─── 5. Layout helpers ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.section {
  padding-top: clamp(4rem, 10vw, 8rem);
}

/* Section avec fond alterné : padding des deux côtés (fond coloré + bordures) */
.section.strip {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section--sm {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* ─── 6. Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--noir);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  transition: border-color 0.4s;
}

/* Pas de backdrop-filter ni de transition d'ombre : trop coûteux au scroll sur mobile */
.nav.scrolled {
  background: rgb(var(--bg-rgb));
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--creme);
  line-height: 1.2;
}

/* Logo nav : caché sur desktop, visible sur mobile */
.nav__logo-img {
  display: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Logo hero : visible sur desktop uniquement */
.hero__logo {
  display: block;
  width:  500px;
  height: 500px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.75rem;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
}

.nav__logo span,
.nav__logo-text span {
  display: block;
  font-size: 0.75rem;
  font-family: var(--ff-ui);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or-text);
  margin-top: 2px;
}


.nav__links {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-right: 10px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--creme-dim);
  transition: color var(--ease) 0.2s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--or);
  transition: width 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.active { color: var(--creme); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__cta {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--or-text);
  border: 1px solid var(--or-dim);
  padding: 0.5rem 1.25rem;
  border-radius: 1px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.nav__cta:hover {
  background: var(--or-cta);
  color: var(--creme);
  border-color: var(--or-cta);
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--creme);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(var(--bg-rgb), 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 999;
}

.nav__mobile.open { display: flex; }

.nav__mobile .nav__link {
  font-family: var(--ff-ui);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--creme);
}

/* ─── 7. Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__content {
  align-self: flex-start;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-inline: clamp(1.25rem, 5vw, 4rem) 3rem;
  padding-left: max(1.25rem, calc((100vw - var(--max-w)) / 2 + clamp(1.25rem, 5vw, 4rem)));
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__tag::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--or);
}

.hero__title {
  font-size: clamp(3rem, 5.6vw, 4.8rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--noir);
  max-width: 14ch;
}

.hero__title em {
  font-style: italic;
  color: var(--or-cta);
}

.hero__desc {
  font-size: var(--fs-lg);
  color: var(--texte-dim);
  max-width: 42ch;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
}

.hero__img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--noir-card) 0%, var(--noir-soft) 50%, var(--noir) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img-placeholder::before {
  content: '';
  position: absolute;
  inset: 3rem;
  border: 1px solid rgba(var(--creme-rgb), 0.2);
}

.hero__img-placeholder::after {
  content: '';
  position: absolute;
  inset: 4rem;
  border: 1px solid rgba(var(--creme-rgb), 0.08);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--creme) 0%, transparent 40%);
}

/* ─── 8. Boutons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 1px;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--or-cta);
  color: var(--creme);
  border: 1px solid var(--or-cta);
}

.btn--primary:hover {
  background: var(--or);
  border-color: var(--or);
}

.btn--ghost {
  background: transparent;
  color: var(--noir);
  border: 1px solid rgba(var(--bg-rgb), 0.3);
}

.btn--ghost:hover {
  border-color: var(--noir);
  background: rgba(var(--bg-rgb), 0.06);
}

.btn--link {
  background: transparent;
  color: var(--or-cta);
  border: none;
  padding-inline: 0;
  letter-spacing: 0.08em;
}

.btn--link::after {
  content: '→';
  transition: transform 0.2s;
}

.btn--link:hover::after {
  transform: translateX(4px);
}

.btn--link:hover { transform: none; }

/* ─── 9. Séparateur ───────────────────────────────────────── */
.divider {
  width: 3rem;
  height: 1px;
  background: var(--or);
  margin-block: 1.5rem;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .label {
  display: block;
  margin-bottom: 0.75rem;
}

/* ─── 10. Cards ────────────────────────────────────────────── */
.card {
  background: oklch(99% 0.005 233);
  border: 1px solid rgba(var(--bg-rgb), 0.1);
  padding: 2rem;
  border-radius: 1px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.card:hover {
  border-color: rgba(var(--bg-rgb), 0.28);
  box-shadow: 0 4px 24px rgba(var(--bg-rgb), 0.1);
  transform: translateY(-3px);
}

.card__tag {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or-cta);
  margin-bottom: 0.75rem;
}

.card__title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--noir);
}

.card__text {
  font-size: var(--fs-base);
  color: var(--texte-dim);
  line-height: 1.6;
}

.card__img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  margin-bottom: 1.5rem;
  background: var(--noir-card);
}

.card__price {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--or-cta);
  margin-top: 1rem;
}

/* ─── 11. Highlight strip ──────────────────────────────────── */
.strip {
  background: var(--noir-card);
  border-top: 1px solid rgba(var(--bg-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--bg-rgb), 0.08);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 120px;
}

.strip__item strong {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--or-cta);
  line-height: 1;
}

.strip__item span {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texte-dim);
}

.strip__sep {
  width: 1px;
  height: 3rem;
  background: rgba(var(--bg-rgb), 0.18);
  flex-shrink: 0;
}

/* ─── 12. Témoignages / citation ───────────────────────────── */
.quote {
  position: relative;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  background: var(--noir);
  border: 1px solid oklch(55% 0.10 233 / 45%);
}

.quote::before {
  content: '"';
  position: absolute;
  top: -1.5rem;
  left: 2rem;
  font-family: var(--ff-display);
  font-size: 6rem;
  color: var(--or);
  line-height: 1;
}

.quote p {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--creme);
  margin-bottom: 1rem;
}

.quote cite {
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--or-text);
  letter-spacing: 0.08em;
}

/* ─── 13. Image avec cadre ─────────────────────────────────── */
.frame {
  position: relative;
  display: inline-block;
}

.frame::before {
  content: '';
  position: absolute;
  inset: -0.75rem -0.75rem 0.75rem 0.75rem;
  border: 1px solid rgba(var(--bg-rgb), 0.25);
  z-index: -1;
}

/* ─── 14. Hero page interne ────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(var(--bg-rgb), 0.1);
  text-align: center;
}

.page-hero .label { margin-bottom: 0.75rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead {
  margin-inline: auto;
  text-align: center;
}

/* ─── Image cave mobile (index) ────────────────────────────── */
.cave-mobile-img {
  display: none; /* masqué sur desktop */
}

@media (max-width: 768px) {
  .cave-mobile-img {
    display: block;
    position: relative;
    height: 44vw;
    max-height: 260px;
    overflow: hidden;
    margin-block: 1.75rem;
    margin-inline: calc(-1 * clamp(1.25rem, 5vw, 4rem));
    border-radius: 0;
  }

  .cave-mobile-img__inner {
    position: absolute;
    left: 0;
    width: 100%;
    top: -25%;
    height: 150%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
  }
}

/* ─── Page vins — photos ───────────────────────────────────── */

/* 1. Hero avec visuel — même layout que l'accueil */
.page-hero--visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 65vh;
  padding: 0;
  padding-top: var(--nav-h);
  text-align: left;
  border-bottom: 1px solid rgba(var(--bg-rgb), 0.1);
}

.page-hero__text {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-right: 3rem;
  padding-left: max(1.25rem, calc((100vw - var(--max-w)) / 2 + clamp(1.25rem, 5vw, 4rem)));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero__text .lead {
  margin-inline: 0;
  text-align: left;
}

.page-hero__img-wrap {
  position: relative;
  overflow: hidden;
}

.page-hero__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--creme) 0%, transparent 45%);
  pointer-events: none;
}

.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.75) saturate(0.9);
}

/* 2. Bandeau pleine largeur */
.vins-banner {
  width: 100%;
  height: clamp(220px, 38vw, 460px);
  overflow: hidden;
}
.vins-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* 3. Interlude entre régions */
.vins-interlude {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 21 / 8;
}
.vins-interlude img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

@media (max-width: 768px) {
  .page-hero--visual {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }
  .page-hero__text {
    padding-right: clamp(1.25rem, 5vw, 2rem);
    text-align: center;
  }
  .page-hero__text .lead { margin-inline: auto; text-align: center; }
  .page-hero__img-wrap { min-height: 55vw; }
  .vins-interlude { aspect-ratio: 16 / 7; }
}

/* ─── 15. Formulaire ───────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or-cta);
}

.form__input,
.form__textarea,
.form__select {
  background: oklch(99% 0.005 233);
  border: 1px solid rgba(var(--bg-rgb), 0.2);
  color: var(--noir);
  font-family: var(--ff-ui);
  font-size: var(--fs-base);
  padding: 0.85rem 1rem;
  border-radius: 1px;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder { color: var(--gris); }

.form__input:focus-visible,
.form__textarea:focus-visible,
.form__select:focus-visible {
  border-color: var(--or);
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__select option { background: oklch(99% 0.005 233); }

/* ─── 16. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--noir);
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  padding-block: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

.footer__brand .nav__logo {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
}

.footer__desc {
  font-size: var(--fs-sm);
  color: var(--creme-dim);
  max-width: 28ch;
  line-height: 1.7;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer__social a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  color: var(--creme-dim);
  transition: border-color 0.3s, color 0.3s;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer__social a:hover {
  border-color: var(--or-text);
  color: var(--or-text);
}

.footer__col-title {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-text);
  margin-bottom: 1.25rem;
}

.cave-status {
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--creme-dim);
  margin-bottom: 0.9rem;
  margin-top: -0.5rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: var(--fs-sm);
  color: var(--creme-dim);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--creme); }

.footer__address {
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--creme-dim);
  line-height: 1.8;
}

.footer__address a {
  color: var(--creme-dim);
  transition: color 0.2s;
}

.footer__address a:hover { color: var(--or-text); }

.footer__hours {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer__hours li {
  font-size: var(--fs-sm);
  color: var(--creme-dim);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer__hours li span:last-child {
  color: var(--or-text);
}

.footer__hours li.closed span:last-child {
  color: var(--creme-dim);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--creme-dim);
  letter-spacing: 0.05em;
}

.footer__legal a {
  font-size: var(--fs-xs);
  color: var(--creme-dim);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer__legal a:hover { color: var(--creme); }

/* ─── 17. Scroll reveal ────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* Sans JavaScript : contenu visible d'emblée */
@media (scripting: none) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ─── 18. Utilitaires ──────────────────────────────────────── */
.text-or    { color: var(--or-cta); }
.text-creme { color: var(--creme); }
.text-dim   { color: var(--texte-dim); }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-7 { margin-bottom: 1.75rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-inline: auto; }
.gap-2 { gap: 0.5rem; }
.text-sm { font-size: var(--fs-sm); }
.text-lg { font-size: var(--fs-lg); }
.maxw-44ch { max-width: 44ch; }
.maxw-48ch { max-width: 48ch; }
.maxw-52ch { max-width: 52ch; }

.italic { font-style: italic; }
.serif  { font-family: var(--ff-display); }

/* ─── 19. Page-specific ────────────────────────────────────── */

/* Grille asymétrique "Nos univers" — accueil */
.selection-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.card--featured {
  align-self: stretch;
}

.selection-grid__side {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 768px) {
  .selection-grid {
    grid-template-columns: 1fr;
  }
}

/* Vins — filtre */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.25rem;
  border: 1px solid rgba(var(--bg-rgb), 0.18);
  color: var(--texte-dim);
  border-radius: 1px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--or-cta);
  color: var(--noir);
  background: rgba(var(--accent-rgb), 0.06);
}

.filter-btn[data-filter="rouge"].active,
.filter-btn[data-filter="rouge"]:hover {
  border-color: oklch(45% 0.20 12 / 80%);
  color: oklch(33% 0.18 12);
  background: oklch(88% 0.06 12 / 60%);
}

.filter-btn[data-filter="blanc"].active,
.filter-btn[data-filter="blanc"]:hover {
  border-color: oklch(65% 0.15 88 / 80%);
  color: oklch(38% 0.12 88);
  background: oklch(92% 0.06 88 / 60%);
}

.filter-btn[data-filter="rose"].active,
.filter-btn[data-filter="rose"]:hover {
  border-color: oklch(55% 0.16 352 / 80%);
  color: oklch(36% 0.15 352);
  background: oklch(90% 0.05 352 / 60%);
}

.filter-btn[data-filter="petillant"].active,
.filter-btn[data-filter="petillant"]:hover {
  border-color: oklch(50% 0.13 225 / 80%);
  color: oklch(33% 0.10 225);
  background: oklch(88% 0.04 225 / 60%);
}

.filter-btn[data-filter="naturel"].active,
.filter-btn[data-filter="naturel"]:hover {
  border-color: oklch(48% 0.15 148 / 80%);
  color: oklch(31% 0.12 148);
  background: oklch(88% 0.05 148 / 60%);
}

/* ── Coup de cœur ───────────────────────────────────────────── */
.coeur {
  background: var(--vin);
  border: 1px solid var(--vin-border);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.coeur__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coeur__date {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
}

.coeur__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.coeur__entry {
  padding-left: 1rem;
  border-left: 1px solid rgba(var(--accent-rgb), 0.15);
}

.coeur__wine {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--or-text);
  margin-bottom: 0.4rem;
}

.coeur__note {
  font-size: var(--fs-sm);
  color: var(--creme-dim);
  line-height: 1.7;
}

/* ── Texte éditorial région ─────────────────────────────────── */
.region-editorial {
  grid-area: editorial;
  max-width: 72ch;
  min-width: 0;
  margin-bottom: 0.5rem;
}

.region-editorial p {
  color: var(--texte-dim);
  line-height: 1.85;
  font-size: var(--fs-lg);
}

.region-editorial strong {
  color: var(--noir);
  font-weight: 500;
}

.region-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.color-tag {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(var(--bg-rgb), 0.18);
  color: var(--texte-dim);
}

.color-tag--rouge    { border-color: oklch(45% 0.20 12 / 65%); color: oklch(33% 0.18 12); background: oklch(88% 0.06 12 / 60%); }
.color-tag--blanc    { border-color: oklch(65% 0.15 88 / 65%); color: oklch(38% 0.12 88); background: oklch(92% 0.06 88 / 60%); }
.color-tag--rose     { border-color: oklch(55% 0.16 352 / 65%); color: oklch(36% 0.15 352); background: oklch(90% 0.05 352 / 60%); }
.color-tag--petillant{ border-color: oklch(50% 0.13 225 / 65%); color: oklch(33% 0.10 225); background: oklch(88% 0.04 225 / 60%); }
.color-tag--naturel  { border-color: oklch(48% 0.15 148 / 65%); color: oklch(31% 0.12 148); background: oklch(88% 0.05 148 / 60%); }

/* Section région */
.region-section { margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }

.region-content {
  display: grid;
  grid-template-areas:
    "title title"
    "editorial map";
  grid-template-columns: 1fr clamp(110px, 14vw, 170px);
  column-gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.region-map {
  grid-area: map;
  width: clamp(110px, 14vw, 170px);
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  position: relative;
}

.region-map img {
  width: 100%;
  height: auto;
  display: block;
}

.region-spot {
  position: absolute;
  inset: 0.5rem;
  width: calc(100% - 1rem);
  height: calc(100% - 1rem);
  pointer-events: none;
}

.region-spot ellipse {
  fill: var(--or);
  opacity: 0.38;
}

@media (max-width: 640px) {
  .region-content {
    grid-template-areas:
      "map title"
      "editorial editorial";
    grid-template-columns: 72px 1fr;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    align-items: center;
  }
  .region-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .region-title::after { display: none; }
  .region-map { width: 72px; }
  .region-editorial { max-width: none; margin-bottom: 0; }
}

.region-title {
  grid-area: title;
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--noir);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(var(--bg-rgb), 0.12);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.region-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(var(--bg-rgb), 0.08);
}

/* Dégustations — event card */
.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: oklch(99% 0.005 233);
  border: 1px solid rgba(var(--bg-rgb), 0.1);
  border-radius: 1px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
  margin-bottom: 1rem;
}

.event-card:hover {
  border-color: rgba(var(--bg-rgb), 0.28);
  box-shadow: 0 4px 24px rgba(var(--bg-rgb), 0.08);
  transform: translateX(4px);
}

.event-date {
  text-align: center;
  min-width: 4rem;
}

.event-date strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--or-cta);
  line-height: 1;
}

.event-date span {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texte-dim);
}

.event-info h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: var(--noir);
}

.event-info p {
  font-size: var(--fs-sm);
  color: var(--texte-dim);
}

.event-badge {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--or-dim);
  color: var(--or-cta);
  white-space: nowrap;
}

/* Grille deux colonnes centrée verticalement, gouttière large */
.grid-2--center {
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}

.container--narrow { max-width: 800px; }

/* Accueil — section Instagram */
.section--instagram { padding-top: clamp(5rem, 11vw, 9rem); }

/* Dégustations — liste « Le format » */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--texte-dim);
}

.feature-list__dash {
  color: var(--or-cta);
  font-size: 1rem;
}

/* Dégustations — carte tarifs */
.price-card {
  background: var(--noir-card);
  border: 1px solid rgba(var(--accent-rgb),0.15);
  padding: 2.5rem;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.price-item:not(:last-child) {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(var(--accent-rgb),0.1);
}

.price-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.price-item__name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
}

.price-item__price {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--or-cta);
  white-space: nowrap;
}

.price-item__desc {
  font-size: var(--fs-sm);
  color: var(--texte-dim);
}

/* Contact — grille infos + formulaire */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-item .label { display: block; margin-bottom: 0.5rem; }

.info-item p,
.info-item address {
  font-style: normal;
  color: var(--texte-dim);
  font-size: var(--fs-base);
  line-height: 1.9;
}

.info-item a {
  color: var(--texte-dim);
  transition: color 0.2s;
}

.info-item a:hover { color: var(--or-cta); }

.map-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  color: var(--gris);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1rem;
}

.map-placeholder a {
  color: var(--or-cta);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-placeholder iframe {
  display: block;
  border: 0;
}

.contact-form__title {
  margin-bottom: 1.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.form__hint {
  color: var(--texte-dim);
  font-size: 0.7rem;
}

/* Champ anti-spam invisible */
.form__honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.form__legal {
  margin-top: 0.75rem;
  font-size: var(--fs-xs);
  color: var(--texte-dim);
  text-align: center;
}

.form__legal a {
  color: var(--or-cta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Message de confirmation après envoi */
.form-success {
  text-align: center;
  padding: 3rem 0;
}

.form-success__title {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  color: var(--or-cta);
  margin-bottom: 0.75rem;
}

.form-success__text {
  color: var(--texte-dim);
  font-size: 0.9rem;
}

/* Mentions légales */
.legal-content {
  max-width: 720px;
  margin-inline: auto;
}

.legal-content h2 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--noir);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(var(--accent-rgb),0.25);
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p {
  color: var(--texte-dim);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content address {
  font-style: normal;
  color: var(--texte-dim);
  line-height: 1.9;
  margin-bottom: 0.75rem;
}

.legal-content a {
  color: var(--or-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--texte-dim);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content ul li { margin-bottom: 0.3rem; }

/* ─── 20. Overrides contexte clair (classes footer réutilisées dans body) ── */

/* .footer__hours utilisé dans la section infos de l'accueil (fond pâle) */
.section .footer__hours li {
  color: var(--texte-dim);
}
.section .footer__hours li span:last-child {
  color: var(--or-cta);
}
.section .footer__hours li.closed span:last-child {
  color: var(--texte-dim);
}

/* ─── 21. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .nav__logo-img { display: none; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__logo-img { display: block; }
  .hero__logo { display: none; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__content {
    padding-inline: clamp(1.25rem, 5vw, 2rem);
    padding-right: clamp(1.25rem, 5vw, 2rem);
    padding-left: clamp(1.25rem, 5vw, 2rem);
  }

  .hero__visual {
    display: none;
  }

  .hero__meta {
    gap: 1.25rem;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  .form__row { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; }

  .event-card { grid-template-columns: 1fr; gap: 1rem; }
  .event-card:hover { transform: none; }

  .strip__sep { display: none; }
  .strip__inner { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .strip__item { flex-direction: row; align-items: center; text-align: left; gap: 0.75rem; min-width: 0; }
  .strip__item strong { font-size: 1.35rem; }
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section .footer__hours li { flex-direction: column; gap: 0.2rem; }
}

@media (max-width: 400px) {
  .nav__mobile .nav__link { font-size: 2rem; }
}
