/* ============================================================
   La Cave des Orangers — feuille de style (maquette)
   ============================================================ */

:root {
  --wine:    #3a0d15;   /* bordeaux profond */
  --wine-2:  #52111d;
  --accent:  #c8531f;   /* orange (clin d'œil aux orangers) */
  --gold:    #c9a24b;
  --cream:   #f6efe4;
  --ink:     #1c1512;
  --muted:   #6f635b;
  --line:    rgba(0,0,0,.10);
  --radius:  16px;
  --serif:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.btn {
  display: inline-block; padding: .8rem 1.6rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold  { background: var(--gold); color: #241a06; box-shadow: 0 10px 24px rgba(201,162,75,.35); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(246,239,228,.4); }
.btn-ghost:hover { background: rgba(246,239,228,.1); }

/* ---------------- En-tête ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: rgba(58,13,21,.92);
  backdrop-filter: blur(8px);
  color: var(--cream);
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--cream); }
.brand-mark { font-size: 1.4rem; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .3px; }
.site-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }
.site-nav a { text-decoration: none; color: rgba(246,239,228,.85); font-size: .95rem; }
.site-nav a:hover { color: #fff; }
.nav-cta {
  border: 1px solid rgba(246,239,228,.4); padding: .45rem 1rem; border-radius: 999px;
}
.nav-cta:hover { background: rgba(246,239,228,.12); }

/* ---------------- Héro ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% -10%, #6a1522 0%, var(--wine) 45%, #260209 100%);
  color: var(--cream);
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 5.5rem);
}
.hero-inner { max-width: 780px; position: relative; z-index: 2; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; color: var(--gold); margin: 0 0 1rem; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 600; }
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(246,239,228,.82); max-width: 60ch; margin: 1.2rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.6rem; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 3rem); padding: 0; margin: 0; }
.hero-facts li { font-size: .9rem; color: rgba(246,239,228,.7); }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold); }
.hero-glow {
  position: absolute; right: -10%; top: -20%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(200,83,31,.35), transparent 60%);
  filter: blur(30px); z-index: 1;
}

/* ---------------- Sections génériques ---------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem); max-width: 1180px; margin: 0 auto; }
.section-head { max-width: 640px; margin: 0 auto clamp(1.8rem, 4vw, 2.8rem); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--wine); }
.section-head p { color: var(--muted); margin: .6rem 0 0; }
.section-head--light h2 { color: var(--cream); }
.section-head--light p, .section-head--light .prestige-eyebrow { color: rgba(246,239,228,.8); }

/* ---------------- Filtres ---------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center;
  justify-content: center; margin-bottom: 1.4rem;
}
.filter-group { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: .45rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.search input {
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem;
  font-size: .9rem; min-width: 230px; font-family: var(--sans);
}
.search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.result-count { text-align: center; color: var(--muted); font-size: .85rem; margin: 0 0 2rem; }

/* ---------------- Grille catalogue ---------------- */
.cat-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  align-items: start;
}
.wine-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; align-self: start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wine-card:hover, .wine-card:focus-within { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(58,13,21,.14); }
.wine-card-trigger {
  appearance: none; display: flex; flex-direction: column; width: 100%; padding: 0;
  border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.wine-card-trigger:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.wine-visual {
  position: relative; aspect-ratio: 4/3; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 15%, #fbf6ec 0%, #efe4d2 100%);
}
.wine-visual svg, .wine-visual img { height: 88%; width: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.22)); }
.wine-badges { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.wine-badge {
  font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 999px; color: #fff; background: var(--wine);
}
.wine-badge--rouge { background: #7a1f2b; }
.wine-badge--blanc { background: #a98b2e; }
.wine-badge--prestige { background: var(--gold); color: #241a06; }
.wine-badge--availability { margin-left: auto; }
.wine-badge--en_stock { background: #226442; }
.wine-badge--rupture { background: #8b2635; }
.wine-badge--sur_commande { background: #725f25; }
.wine-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.wine-appellation { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.wine-name { font-family: var(--serif); font-size: 1.35rem; color: var(--wine); line-height: 1.05; }
.wine-cepages { font-size: .8rem; color: var(--muted); }
.wine-desc { font-size: .85rem; color: #4a3f38; margin: .3rem 0 0; }
.wine-foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: baseline; justify-content: space-between; }
.wine-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.wine-year { font-size: .82rem; color: var(--muted); }
.wine-card-more { margin-top: .6rem; color: var(--accent); font-size: .78rem; font-weight: 600; }
.wine-call { display: inline-flex; justify-content: center; margin-top: 1rem; padding: .65rem 1rem; border-radius: 999px; background: var(--wine); color: var(--cream); font-weight: 600; font-size: .85rem; text-decoration: none; }
.wine-call:hover { background: var(--wine-2); }
.wine-call:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.empty { text-align: center; color: var(--muted); padding: 2rem; }

/* Fiche catalogue : une fenêtre stable au-dessus de la page, sans déformer la grille. */
.wine-sheet {
  width: min(680px, calc(100% - 2rem)); max-height: min(760px, calc(100dvh - 2rem));
  padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: transparent;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.wine-sheet::backdrop { background: rgba(26,8,13,.66); backdrop-filter: blur(4px); }
.wine-sheet-panel { position: relative; max-height: inherit; overflow: auto; padding: clamp(1.5rem, 4vw, 2.4rem); background: #fffdf8; }
.wine-sheet-close {
  position: absolute; top: .8rem; right: .8rem; display: grid; place-items: center; width: 2.35rem; height: 2.35rem;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--wine); font: 1.7rem/1 var(--sans); cursor: pointer;
}
.wine-sheet-close:hover { background: #f2e7ce; }
.wine-sheet-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wine-sheet-region { margin: 0 3rem .25rem 0; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wine-sheet h2 { color: var(--wine); font-size: clamp(2rem, 6vw, 2.8rem); }
.wine-sheet-appellation { margin: .2rem 0 1.5rem; color: var(--muted); font-style: italic; }
.wine-sheet-availability { display: inline-flex; margin: -1rem 0 1.3rem; padding: .26rem .58rem; border-radius: 999px; background: #e7f2e9; color: #17633e; font-size: .76rem; font-weight: 700; }
.wine-sheet-availability--rupture { background: #fae7e9; color: #8b2635; }
.wine-sheet-availability--sur_commande { background: #f3eedc; color: #665419; }
.wine-sheet-details { display: grid; gap: .85rem; margin: 0; }
.wine-sheet-details div { display: grid; grid-template-columns: minmax(5.2rem, .38fr) 1fr; gap: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.wine-sheet-details dt, .wine-sheet-pairings p { color: var(--wine); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wine-sheet-details dd { margin: 0; color: #4a3f38; font-size: .92rem; line-height: 1.5; }
.wine-sheet-pairings { margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.wine-sheet-pairings p { margin: 0 0 .55rem; }
.wine-sheet-pairings ul { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.wine-sheet-pairings li { padding: .25rem .58rem; border: 1px solid rgba(201,162,75,.35); border-radius: 999px; background: #f2e7ce; color: #4a3212; font-size: .78rem; }

/* ---------------- Haut de gamme (scroll) ---------------- */
.prestige {
  background:
    radial-gradient(140% 100% at 50% 0%, #4a1620 0%, #260209 60%, #17060a 100%);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.prestige .section-head { padding: 0 clamp(1rem, 4vw, 3rem); }
.prestige-eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; color: var(--gold); }

.prestige-stage {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem);
}

/* La photo et la bouteille appartiennent à la même scène : elles défilent ensemble. */
.prestige-carousel { min-width: 0; outline: none; }
.prestige-carousel:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 12px; }
.prestige-table {
  position: relative; isolation: isolate; min-height: clamp(350px, 43vw, 520px); overflow: hidden;
  border: 1px solid rgba(201,162,75,.45); border-radius: 12px;
  background-image:
    linear-gradient(180deg, rgba(15,5,8,.08) 0%, rgba(15,5,8,.04) 45%, rgba(15,5,8,.26) 100%),
    url("images/table-prestige.jpg");
  background-position: center center; background-size: cover; background-attachment: scroll;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 22px 48px rgba(0,0,0,.35);
}
.prestige-bottle-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bottle-contact-shadow {
  position: absolute; left: 50%; bottom: 11%; width: clamp(120px, 18vw, 175px); height: 26px;
  border-radius: 50%; background: rgba(0,0,0,.64); filter: blur(9px); transform: translateX(-50%);
}
.prestige-bottle {
  position: absolute; left: 50%; bottom: 11%; z-index: 1; height: clamp(265px, 34vw, 405px); width: auto;
  filter: drop-shadow(0 13px 8px rgba(0,0,0,.48)); transform: translateX(-50%); opacity: 1;
  transition: transform .36s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
}
.prestige-bottle.is-leaving { opacity: 0; transform: translateX(calc(-50% - 42px)); }
.prestige-bottle.is-entering { opacity: 0; transform: translateX(calc(-50% + 42px)); }
.prestige-bottle.is-entering.is-settled { opacity: 1; transform: translateX(-50%); }
.prestige-bottle.is-fading { opacity: 0; }
.prestige-arrow {
  position: absolute; top: 50%; z-index: 2; width: 2.8rem; height: 2.8rem; padding: 0;
  border: 1px solid rgba(246,239,228,.65); border-radius: 50%; background: rgba(38,2,9,.72); color: var(--cream);
  font-family: var(--serif); font-size: 2rem; line-height: 1; cursor: pointer; transform: translateY(-50%);
  transition: background .18s ease, transform .18s ease;
}
.prestige-arrow:hover { background: var(--wine); transform: translateY(-50%) scale(1.07); }
.prestige-arrow:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.prestige-arrow--previous { left: .9rem; }
.prestige-arrow--next { right: .9rem; }
.prestige-thumbnails { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: .6rem; margin-top: .75rem; }
.prestige-thumbnail {
  min-width: 0; padding: .4rem; border: 1px solid rgba(246,239,228,.24); border-radius: 8px;
  background: rgba(246,239,228,.08); color: rgba(246,239,228,.82); cursor: pointer; font: inherit; text-align: center;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.prestige-thumbnail img { display: block; height: 44px; width: auto; max-width: 100%; margin: 0 auto .15rem; filter: drop-shadow(0 6px 4px rgba(0,0,0,.4)); }
.prestige-thumbnail span { display: block; overflow: hidden; font-size: .66rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.prestige-thumbnail:hover, .prestige-thumbnail.is-active { border-color: var(--gold); background: rgba(201,162,75,.18); color: var(--cream); transform: translateY(-2px); }
.prestige-thumbnail:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Carte du sommelier */
.menu-card {
  align-self: stretch;
  background: linear-gradient(180deg, #fbf5e8 0%, #f2e7ce 100%);
  color: #2a1a10;
  border-radius: 8px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 24px 50px rgba(0,0,0,.45);
  border: 1px solid rgba(201,162,75,.5);
  position: relative;
  min-height: 420px;
}
.menu-card::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(120,80,20,.35);
  border-radius: 4px; pointer-events: none;
}
.menu-card-region { text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; color: #8a5a1a; margin: 0 0 .3rem; }
.menu-card-name { font-family: var(--serif); font-size: 1.9rem; color: var(--wine); line-height: 1.05; }
.menu-card-appellation { font-style: italic; color: #6a4a20; margin: .2rem 0 1rem; }
.menu-card-specs { display: grid; grid-template-columns: 1fr; gap: .5rem; margin: 0 0 1rem; padding: .8rem 0; border-top: 1px solid rgba(120,80,20,.25); border-bottom: 1px solid rgba(120,80,20,.25); }
.menu-card-specs div { display: flex; justify-content: space-between; gap: 1rem; }
.menu-card-specs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8a6a3a; }
.menu-card-specs dd { margin: 0; font-size: .85rem; text-align: right; font-weight: 500; }
.menu-card-note { font-size: .85rem; margin: .45rem 0; color: #3a2a1a; }
.menu-card-note strong { color: var(--wine); }
.menu-card-price { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--wine); margin: 1rem 0 0; text-align: right; }
.menu-card { transition: opacity .25s ease; }
.menu-card.is-swapping { opacity: .35; }

/* ---------------- À propos ---------------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.about-text h2 { color: var(--wine); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .8rem; }
.about-text p { color: #4a3f38; margin: 0 0 1rem; }
.about-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.about-points li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.about-points strong { display: block; color: var(--wine); font-family: var(--serif); font-size: 1.2rem; }
.about-points span { font-size: .9rem; color: var(--muted); }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; max-width: 820px; margin: 0 auto; }
.contact-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.contact-block h3 { color: var(--wine); font-size: 1.4rem; margin-bottom: .8rem; }
.contact-block a { color: var(--accent); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }
.horaires { list-style: none; padding: 0; margin: 0; }
.horaires li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.horaires li:last-child { border-bottom: none; }
.contact-socials { margin-top: 1rem; display: flex; gap: .8rem; }
.contact-socials a { font-size: .85rem; }

/* ---------------- Pied ---------------- */
.site-footer { background: var(--wine); color: rgba(246,239,228,.8); text-align: center; padding: 2rem 1rem; font-size: .85rem; }
.site-footer a { color: var(--gold); }
.footer-links { margin-top: .4rem; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.footer-note { color: rgba(246,239,228,.45); }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .prestige-stage { grid-template-columns: 1fr; align-items: stretch; }
  .prestige-carousel { order: 1; }
  .menu-card { min-height: auto; order: 2; }
  .prestige-table { min-height: min(115vw, 460px); }
  .prestige-bottle { height: min(76vw, 365px); }
  .prestige-thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .wine-sheet-details div { grid-template-columns: 1fr; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
