/* Le Bacchus — palette tirée de la devanture : gris façade, enseigne noire, vigne gravée, lie-de-vin */
:root {
  --facade: #8d8895;
  --facade-fonce: #6f6a78;
  --facade-clair: #d3d0d7;
  --pierre: #ebe9ee;
  --papier: #f8f7f9;
  --encre: #241b22;
  --encre-doux: #5b5058;
  --lie: #5a2335;
  --lie-vif: #7b2f48;
  --nuit: #2c1821;
  --vigne: #5f6f45;
  --or: #d8b560;

  --script: "Parisienne", "Snell Roundhand", cursive;
  --texte: "Literata", Georgia, serif;

  --t-petit: 0.875rem;
  --t-base: 1.0625rem;
  --t-moyen: 1.3125rem;
  --t-grand: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --t-enseigne: clamp(4.5rem, 2rem + 11vw, 10rem);

  --largeur: 72rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --rayon: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 var(--t-base)/1.65 var(--texte);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--lie-vif); text-underline-offset: 0.18em; }
a:hover { color: var(--lie); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: var(--t-grand); }
h3 { font-size: var(--t-moyen); }
p { margin: 0 0 1em; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; }
.petit { font-size: var(--t-petit); color: var(--encre-doux); }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--or); color: var(--encre); padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.6rem 1.4rem;
  background: var(--lie); color: #fff; border: 2px solid var(--lie);
  border-radius: 999px; font: 500 1rem/1.2 var(--texte); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.bouton:hover { background: var(--lie-vif); border-color: var(--lie-vif); color: #fff; }
.bouton--ligne { background: transparent; color: var(--lie); }
.bouton--ligne:hover { background: var(--lie); color: #fff; }
.bouton--petit { min-height: 2.4rem; padding: 0.4rem 1.1rem; }
.bouton:disabled { opacity: .5; cursor: not-allowed; }

/* Barre de navigation */
.barre {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem var(--gouttiere);
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.barre.defile { border-bottom-color: var(--facade-clair); }
.barre__logo { font: 2rem/1 var(--script); color: var(--encre); text-decoration: none; }
.barre__nav { display: flex; align-items: center; gap: 1.5rem; }
.barre__nav a:not(.bouton) { color: var(--encre); text-decoration: none; font-size: 0.95rem; }
.barre__nav a:not(.bouton):hover { color: var(--lie-vif); text-decoration: underline; }
.barre__menu { display: none; }
@media (max-width: 52rem) {
  .barre__menu {
    display: block; background: none; border: 1px solid var(--facade); border-radius: 999px;
    padding: 0.4rem 1rem; font: 500 0.95rem var(--texte); color: var(--encre); cursor: pointer;
  }
  .barre__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papier); border-bottom: 1px solid var(--facade-clair);
    padding: 0.5rem var(--gouttiere) 1rem;
    display: none;
  }
  .barre__nav.ouvert { display: flex; }
  .barre__nav a:not(.bouton) { padding: 0.75rem 0; border-bottom: 1px solid var(--pierre); }
  .barre__nav .bouton { margin-top: 1rem; }
}

/* HERO : la vitrine du bar */
.vitrine { background: var(--facade); padding-bottom: clamp(1.5rem, 4vw, 3rem); color: var(--encre); }
.vitrine__store {
  height: 1.1rem;
  background:
    radial-gradient(circle at 50% 0, var(--papier) 0.55rem, transparent 0.58rem) 0 0 / 1.6rem 1.1rem repeat-x;
}
.vitrine__enseigne { text-align: center; padding: clamp(1.25rem, 3.5vw, 2.5rem) var(--gouttiere) clamp(1.25rem, 3vw, 2rem); }
.vitrine__enseigne h1 {
  font-size: var(--t-enseigne); line-height: 0.95; margin: 0; color: var(--encre);
  animation: enseigne 1.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes enseigne {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 -10% 0 0); }
}
.vitrine__sous { margin: 0.75rem auto 0; max-width: 36rem; color: var(--nuit); font-size: 1.05rem; }

.vitrine__cadre {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0.9rem;
  max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere);
}
.vitrine__photo, .vitrine__verre {
  margin: 0; border: 0.9rem solid var(--facade-fonce); border-radius: var(--rayon);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.vitrine__photo { overflow: hidden; aspect-ratio: 1; background: var(--facade-fonce); }
.vitrine__photo img { width: 100%; height: 100%; object-fit: cover; }
.vitrine__verre {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(160deg, #f3f2f5 0%, #e3e1e7 100%);
}
.vitrine__feuille {
  position: absolute; top: -2rem; right: -3rem; width: 20rem; height: 20rem;
  color: var(--facade); opacity: .45; transform: rotate(-24deg);
}
.vitrine__texte { font-size: var(--t-moyen); line-height: 1.5; max-width: 30ch; position: relative; }
.vitrine__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; position: relative; }

.statut {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem; align-self: flex-start;
  padding: 0.35rem 0.9rem; margin-bottom: auto; border-radius: 999px; max-width: 26rem;
  background: var(--papier); font-size: 0.95rem;
}
.statut::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--facade); }
.statut.ouvert::before { background: var(--vigne); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vigne) 25%, transparent); }
.statut.ferme::before { background: var(--lie-vif); }

@media (max-width: 46rem) {
  .vitrine__cadre { grid-template-columns: 1fr; }
  .vitrine__verre { min-height: 22rem; }
}

/* Bandeau offre */
.bandeau {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.5rem;
  padding: 1rem var(--gouttiere); background: var(--or); color: var(--nuit); text-align: center;
}
.bandeau p { margin: 0; max-width: 60ch; }
.bandeau__lien { color: var(--nuit); font-weight: 700; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gouttiere); }
.section > * { max-width: var(--largeur); margin-left: auto; margin-right: auto; }
.section__tete { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__tete p { max-width: 58ch; color: var(--encre-doux); font-size: 1.1rem; }
.section--sombre { background: var(--nuit); color: #efe9ee; }
.section--sombre .section__tete p { color: #cbbfc7; }
.section--sombre a { color: var(--or); }
.section--pierre { background: var(--pierre); }

/* Carte : ardoise en colonnes */
.carte { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem 3rem; }
.carte__bloc h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--encre); padding-bottom: 0.4rem; }
.carte__bloc h3 small { font-size: var(--t-petit); color: var(--encre-doux); font-weight: 400; font-style: italic; }
.carte__bloc ul { list-style: none; padding: 0; margin: 0; }
.carte__bloc li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.45rem 0; }
.carte__bloc li::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--facade); translate: 0 -0.3em; }
.carte__bloc li span:last-child { order: 2; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Agenda */
.agenda { display: grid; grid-template-columns: minmax(17rem, 22rem) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 52rem) { .agenda { grid-template-columns: 1fr; } }
.calendrier { background: #3a2230; border-radius: 6px; padding: 1.25rem; position: sticky; top: 5rem; }
@media (max-width: 52rem) { .calendrier { position: static; } }
.calendrier__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.calendrier__tete h3 { margin: 0; font-size: 1.15rem; text-transform: capitalize; }
.calendrier__nav { background: none; border: 1px solid #6a4c5c; color: #efe9ee; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.calendrier__nav:hover { border-color: var(--or); color: var(--or); }
.calendrier__grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 0.9rem; }
.calendrier__jour-nom { color: #a8969f; font-size: 0.78rem; padding: 0.3rem 0; }
.calendrier__jour {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: none; border: 0; color: #d9ced4; font: inherit; position: relative;
}
.calendrier__jour--passe { color: #6f5864; }
.calendrier__jour--auj { box-shadow: inset 0 0 0 1px #a8969f; }
.calendrier__jour--evt { color: var(--nuit); background: var(--or); font-weight: 700; cursor: pointer; }
.calendrier__jour--evt:hover, .calendrier__jour--evt[aria-pressed="true"] { background: #fff; }
.calendrier__legende { font-size: var(--t-petit); color: #a8969f; margin: 1rem 0 0; display: flex; align-items: center; gap: 0.5rem; }
.pastille { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--or); display: inline-block; }

.evenements { list-style: none; margin: 0; padding: 0; }
.evt { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 0.5rem 1.5rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid #4a2f3d; scroll-margin-top: 6rem; }
.evt:last-child { border-bottom: 1px solid #4a2f3d; }
.evt.surligne { animation: surligne 1.6s ease-out; }
@keyframes surligne { from { background: rgba(216,181,96,.18); } to { background: transparent; } }
.evt__date { text-align: center; line-height: 1; }
.evt__jour { display: block; font-size: 2.4rem; font-weight: 500; }
.evt__mois { display: block; font-size: 0.9rem; color: #cbbfc7; margin-top: 0.3rem; }
.evt__titre { font-size: 1.25rem; margin: 0 0 0.25rem; }
.evt__meta { font-size: var(--t-petit); color: var(--or); margin: 0 0 0.4rem; }
.evt__texte { margin: 0; color: #d9ced4; max-width: 52ch; }
.evt__action { align-self: center; }
.evt__action .bouton { background: transparent; border-color: var(--or); color: var(--or); }
.evt__action .bouton:hover { background: var(--or); color: var(--nuit); }
.evt__libre { font-size: var(--t-petit); color: #cbbfc7; font-style: italic; }
@media (max-width: 36rem) {
  .evt { grid-template-columns: 3.5rem 1fr; }
  .evt__action { grid-column: 2; }
}

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 12rem; grid-auto-flow: dense; gap: 0.6rem; }
.galerie__item { position: relative; margin: 0; padding: 0; border: 0; font: inherit; background: var(--pierre); cursor: zoom-in; overflow: hidden; border-radius: var(--rayon); }
.galerie__item--large { grid-column: span 2; }
.galerie__item--haut { grid-row: span 2; }
.galerie__item--carre { grid-column: span 2; grid-row: span 2; }
.galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galerie__item:hover img { transform: scale(1.04); }
.galerie__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 0.9rem 0.7rem; text-align: left;
  background: linear-gradient(transparent, rgba(44,24,33,.85)); color: #fff; font-size: 0.95rem; line-height: 1.3;
}
.galerie__item figcaption small { display: block; opacity: .8; font-size: 0.8rem; }
@media (max-width: 46rem) {
  .galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 10rem; }
  .galerie__item--carre { grid-column: span 2; }
}

.visionneuse { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.visionneuse::backdrop { background: rgba(28,14,20,.92); }
.visionneuse[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.visionneuse figure { margin: 0; display: grid; justify-items: center; gap: 0.75rem; padding: 1rem; }
.visionneuse img { max-height: 80vh; max-width: 100%; object-fit: contain; border-radius: var(--rayon); }
.visionneuse figcaption { color: #efe9ee; text-align: center; }
.visionneuse__nav, .visionneuse__fermer { background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; padding: 1rem; }
.visionneuse__fermer { position: absolute; top: 0.5rem; right: 0.75rem; }

/* Offres */
.offres { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.offre {
  display: flex; flex-direction: column; background: var(--papier); padding: 1.75rem;
  border-top: 4px solid var(--facade); border-radius: 0 0 var(--rayon) var(--rayon);
}
.offre--vedette {
  background: var(--lie); color: #fff; border-top-color: var(--or); grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 3rem; padding: clamp(1.75rem, 4vw, 3rem);
}
.offre--vedette .offre__nom { font-size: clamp(3rem, 2rem + 3vw, 4.5rem); grid-row: span 2; align-self: center; }
.offre--vedette .offre__pied { grid-column: 2; }
@media (max-width: 46rem) { .offre--vedette { grid-template-columns: 1fr; } .offre--vedette .offre__nom { grid-row: auto; } .offre--vedette .offre__pied { grid-column: auto; } }
.offre__nom { font: 2.1rem/1.1 var(--script); margin: 0 0 0.5rem; }
.offre__accroche { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.6rem; }
.offre__detail { color: var(--encre-doux); flex: 1; }
.offre--vedette .offre__detail { color: #f0dfe5; font-size: 1.1rem; max-width: 46ch; }
.offre__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--pierre); }
.offre--vedette .offre__pied { border-top-color: rgba(255,255,255,.2); }
.offre__prix { font-size: var(--t-petit); }
.offre__prix strong { font-size: 1.2rem; }
.offre--vedette .bouton { background: var(--or); border-color: var(--or); color: var(--nuit); }
.offre--vedette .bouton:hover { background: #fff; border-color: #fff; }

.bonus { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--facade-clair); }
.bonus h3 { font-size: 1.15rem; }
.bonus p { color: var(--encre-doux); }

/* Réservation */
.resa { display: grid; grid-template-columns: 1fr 19rem; gap: 2rem 3rem; align-items: start; }
@media (max-width: 56rem) { .resa { grid-template-columns: 1fr; } .recap { order: -1; } }
.resa__etapes { grid-column: 1 / -1; display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0; counter-reset: etape; }
.resa__etapes li {
  flex: 1; counter-increment: etape; padding: 0.6rem 0; border-top: 3px solid var(--facade-clair);
  color: var(--encre-doux); font-size: 0.95rem;
}
.resa__etapes li::before { content: counter(etape) ". "; }
.resa__etapes li.actif { border-top-color: var(--lie); color: var(--encre); font-weight: 500; }
.resa__etapes li.fait { border-top-color: var(--vigne); }
.resa__panneau { border: 0; padding: 0; margin: 0; min-width: 0; }
.rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 36rem) { .rangee { grid-template-columns: 1fr; } }
.champ { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.4rem; }
.champ__label { font-weight: 500; font-size: 0.95rem; }
.champ__label--sous { display: block; margin-top: 1.25rem; font-weight: 400; color: var(--encre-doux); }
.champ__label em { font-weight: 400; color: var(--encre-doux); }
.champ__aide { font-size: var(--t-petit); color: var(--encre-doux); min-height: 1.2em; }
.champ__aide.alerte { color: var(--lie-vif); }
input, select, textarea {
  font: inherit; color: var(--encre); background: #fff;
  border: 1px solid var(--facade); border-radius: var(--rayon); padding: 0.65rem 0.8rem; min-height: 2.9rem; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--or); outline-offset: 0; border-color: var(--lie); }
[aria-invalid="true"] { border-color: var(--lie-vif); box-shadow: 0 0 0 1px var(--lie-vif); }

.choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.6rem; }
.choix label {
  position: relative; display: block; padding: 0.8rem 1rem; border: 1px solid var(--facade-clair); border-radius: var(--rayon);
  cursor: pointer; background: #fff; line-height: 1.35;
}
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix label strong { display: block; font-weight: 500; }
.choix label span { font-size: var(--t-petit); color: var(--encre-doux); }
.choix label:has(input:checked) { border-color: var(--lie); box-shadow: inset 0 0 0 1px var(--lie); background: #fbf6f8; }
.choix label:has(input:focus-visible) { outline: 3px solid var(--or); outline-offset: 2px; }

.compteur { display: grid; grid-template-columns: 2.9rem 1fr 2.9rem; }
.compteur button { background: var(--pierre); border: 1px solid var(--facade); font: 500 1.3rem var(--texte); cursor: pointer; color: var(--encre); }
.compteur button:first-child { border-radius: var(--rayon) 0 0 var(--rayon); }
.compteur button:last-child { border-radius: 0 var(--rayon) var(--rayon) 0; }
.compteur input { border-radius: 0; border-left: 0; border-right: 0; text-align: center; -moz-appearance: textfield; }
.compteur input::-webkit-inner-spin-button { -webkit-appearance: none; }

.case { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.5rem 0; cursor: pointer; }
.case input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: 0.2rem; accent-color: var(--lie); flex: none; }

.resa__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; }
.resa__actions .bouton:only-child { margin-left: auto; }

.recap { background: var(--pierre); padding: 1.5rem; border-radius: var(--rayon); position: sticky; top: 5.5rem; }
@media (max-width: 56rem) { .recap { position: static; } }
.recap h3 { font-size: 1.1rem; }
.recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.95rem; }
.recap dt { color: var(--encre-doux); }
.recap dd { margin: 0; text-align: right; }
.recap .recap__total { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--facade); padding-top: 0.75rem; margin-top: 0.5rem; font-size: 1.1rem; }
.recap .recap__cadeau { grid-column: 1 / -1; color: var(--vigne); font-style: italic; margin-top: 0.25rem; }

#recap-detail { background: #fff; border: 1px solid var(--facade-clair); border-radius: var(--rayon); padding: 1.25rem 1.5rem; }
#recap-detail p:last-child { margin: 0; }

.resa__fin { text-align: center; padding: 2rem 0; }
.resa__fin h3 { font: 3rem/1 var(--script); }
.resa__fin p { max-width: 46ch; margin: 0 auto 1.5rem; }
.resa__feuille { width: 4rem; height: 4rem; color: var(--vigne); margin: 0 auto 0.5rem; display: block; }

/* Infos */
.infos { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 52rem) { .infos { grid-template-columns: 1fr; } }
.infos__adresse { font-style: normal; font-size: 1.2rem; margin-bottom: 2rem; }
.horaires { border-collapse: collapse; width: 100%; max-width: 26rem; margin-bottom: 2rem; }
.horaires th, .horaires td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid #4a2f3d; font-weight: 400; vertical-align: top; }
.horaires td { text-align: right; font-variant-numeric: tabular-nums; }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { color: var(--or); font-weight: 500; }
.horaires .ferme { color: #8f7a86; font-style: italic; }
.infos__plus { padding-left: 1.1rem; margin: 0 0 1.5rem; color: #cbbfc7; }
.infos__reseaux { display: flex; gap: 1.5rem; }
.infos__carte iframe { width: 100%; aspect-ratio: 4/3; border: 0.6rem solid var(--facade-fonce); border-radius: var(--rayon); filter: saturate(.7); background: var(--facade); }

/* Pied */
.pied { background: var(--facade); color: var(--nuit); text-align: center; padding: 2.5rem var(--gouttiere); }
.pied__logo { font-size: 3rem; margin: 0; line-height: 1.2; }
.pied p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.pied .petit { color: #3a2e36; }
