/* ---------------------------------------------------------------
   Mini-site de comptoir — feuille unique, mobile d'abord.
   La palette est derivee du logo de l'etablissement : le bordeaux
   #5A2B3F est echantillonne dessus, le rouge sur le verre de vin.
   --------------------------------------------------------------- */

:root {
  --bordeaux: #5A2B3F;
  --bordeaux-sombre: #3E1B2B;
  --bordeaux-clair: #7A4257;
  --rouge: #C0202E;

  --creme: #FBF7F6;
  --blanc: #FFFFFF;
  --encre: #2B151E;
  --encre-doux: #6F5A63;
  --ligne: #EDE2E6;
  --pastille: #F7EFF2;

  --rayon: 16px;
  --rayon-sm: 10px;
  --ombre: 0 1px 2px rgba(43, 21, 30, .05), 0 4px 16px rgba(43, 21, 30, .06);
  --largeur: 560px;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; }

a { color: inherit; }

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

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: 16px;
}

.icone { width: 22px; height: 22px; flex: none; }

/* ---------------- Accueil : banniere ---------------- */

.banniere {
  background: var(--bordeaux);
  padding: 28px 16px 40px;
  text-align: center;
}

.banniere__logo {
  width: min(320px, 100%);
  margin-inline: auto;
}

.entete {
  margin-top: -24px;
  background: var(--blanc);
  border-radius: var(--rayon) var(--rayon) 0 0;
  padding: 20px 20px 18px;
  text-align: center;
}

.entete h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .01em;
}

.entete__accroche {
  margin: 2px 0 0;
  color: var(--encre-doux);
  font-size: 14px;
}

.statut {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--pastille);
  font-size: 13px;
  font-weight: 500;
}

.statut__point {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--encre-doux);
  flex: none;
}

.statut--ouvert { background: #E8F5EC; color: #1B5E31; }
.statut--ouvert .statut__point { background: #24A14B; }

.statut--ferme { background: #FBEDEF; color: #8A1F2C; }
.statut--ferme .statut__point { background: var(--rouge); }

/* ---------------- Actions ---------------- */

.actions {
  background: var(--blanc);
  border-radius: 0 0 var(--rayon) var(--rayon);
  padding: 4px 12px 14px;
}

.action {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 10px;
  border: 0;
  border-top: 1px solid var(--ligne);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.action:first-child { border-top: 0; }

.action__pastille {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--pastille);
  color: var(--bordeaux);
  flex: none;
}

.action__pastille--google { background: #F1F4FC; color: #1A73E8; }
.action__pastille--wifi   { background: #EAF6F0; color: #1B7A4B; }
.action__pastille--menu   { background: #FBEFE6; color: #A8571C; }

.action__texte { flex: 1; min-width: 0; }
.action__titre { display: block; font-weight: 600; font-size: 15.5px; }
.action__detail { display: block; color: var(--encre-doux); font-size: 13px; line-height: 1.35; }

.action__fleche { color: #BBA8B0; flex: none; }

.action:active { background: var(--creme); }

/* Volet Wi-Fi */

.volet {
  display: none;
  padding: 2px 10px 16px;
}
.volet[data-ouvert] { display: block; }

.volet__carte {
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-sm);
  padding: 12px 14px;
}

.champ {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}
.champ + .champ { border-top: 1px solid var(--ligne); }

.champ__cle { color: var(--encre-doux); font-size: 13px; }
.champ__valeur { overflow-wrap: anywhere; text-align: right; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 14.5px; }

.bouton-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--rayon-sm);
  background: var(--bordeaux);
  color: var(--blanc);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.bouton-principal:active { background: var(--bordeaux-sombre); }
.bouton-principal .icone { width: 19px; height: 19px; }

.volet__aide {
  margin: 10px 2px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--encre-doux);
}

/* ---------------- Liens secondaires ---------------- */

.raccourcis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.raccourci {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  background: var(--blanc);
  border-radius: var(--rayon-sm);
  box-shadow: var(--ombre);
  color: var(--bordeaux);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
}

/* ---------------- Infos pratiques ---------------- */

.infos {
  margin-top: 14px;
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 16px 18px;
  box-shadow: var(--ombre);
}

.infos h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--encre-doux);
  font-weight: 600;
  margin-bottom: 10px;
}

.horaires { margin: 0; font-size: 14.5px; }
.horaires div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
}
.horaires .jour { color: var(--encre-doux); }
.horaires [data-aujourdhui] { font-weight: 600; color: var(--encre); }
.horaires [data-aujourdhui] .jour { color: var(--encre); }

.infos__ligne {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  padding: 7px 0;
  text-decoration: none;
}
.infos__ligne + .infos__ligne { border-top: 1px solid var(--ligne); }
.infos__ligne .icone { color: var(--bordeaux-clair); margin-top: 1px; }

/* ---------------- Pied ---------------- */

.pied {
  padding: 22px 16px 32px;
  text-align: center;
  color: var(--encre-doux);
  font-size: 12.5px;
}
.pied a { color: var(--bordeaux); text-decoration: none; font-weight: 500; }
.pied__logo { width: 96px; margin: 10px auto 0; opacity: .85; }

/* ---------------- Page carte ---------------- */

.barre {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bordeaux);
  color: var(--blanc);
}

.barre__haut {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
}

.barre__retour {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--blanc);
  text-decoration: none;
  flex: none;
}
.barre__retour:active { background: rgba(255, 255, 255, .12); }

.barre__titre {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  flex: 1;
}

.onglets {
  display: flex;
  gap: 6px;
  padding: 0 16px 10px;
}

.onglet {
  flex: 1;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .85);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.onglet[aria-selected='true'] { background: var(--blanc); color: var(--bordeaux); }

.carte-menu { padding: 18px 0 8px; }

.groupe + .groupe { margin-top: 24px; }

.groupe__titre {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--bordeaux-clair);
  font-weight: 600;
  margin-bottom: 8px;
}

.groupe__note {
  font-size: 13px;
  color: var(--encre-doux);
  margin: -4px 0 8px;
}

.plat {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 14px 16px;
  box-shadow: var(--ombre);
}
.plat + .plat { margin-top: 8px; }

.plat__tete {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plat__nom { font-weight: 600; font-size: 15.5px; flex: 1; }

.plat__prix {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--bordeaux);
  white-space: nowrap;
}

.plat__detail {
  color: var(--encre-doux);
  font-size: 13.5px;
  margin-top: 2px;
}

.plat__lignes {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
  border-top: 1px solid var(--ligne);
}

.plat__lignes li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0 0;
  font-size: 14px;
}

.plat__lignes .plat__prix { font-size: 14px; }

.plat__choix {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ligne);
  font-size: 13.5px;
  color: var(--encre-doux);
}

.etiquettes { display: inline-flex; gap: 5px; vertical-align: middle; }

.etiquette {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--pastille);
  color: var(--bordeaux-clair);
}
.etiquette .icone { width: 15px; height: 15px; }
.etiquette--option { opacity: .55; }

.legende {
  margin-top: 22px;
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 14px 16px;
  box-shadow: var(--ombre);
}

.legende__liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--encre-doux);
}
.legende__liste span { display: inline-flex; align-items: center; gap: 6px; }

.notes {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--encre-doux);
}
.notes p { margin: 0 0 6px; }

@media (min-width: 600px) {
  .banniere { padding-top: 40px; }
  .entete h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
