/* Maquette La Mascotte (S31) : couleurs de l'enseigne (anthracite, orange de la marmotte), fond crème, Inter. */
@font-face {
  font-family: 'Inter';
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-variable.woff2') format('woff2');
}

:root {
  --anthracite: #1f2226;
  --anthracite-2: #2b2f34;
  --orange: #cf6d2a;
  --orange-fonce: #a9531a;
  --orange-clair: #fbeee3;
  --creme: #f7f2ea;
  --blanc: #ffffff;
  --texte: #24272b;
  --texte-2: #5d6268;
  --ligne: #e6dfd4;
  --vert: #1d7a46;
  --rayon: 18px;
  --ombre: 0 10px 30px rgb(31 34 38 / 0.10);
  --police: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--police);
  color: var(--texte);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; line-height: 1.55; }
a { color: inherit; }

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: 700 15px/1 var(--police);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.bouton:active { transform: scale(0.97); }
.bouton--grand { min-height: 52px; padding: 0 26px; font-size: 16px; }
.bouton--plein { width: 100%; }
.bouton--orange { background: var(--orange); color: #fff; }
.bouton--orange:hover { background: var(--orange-fonce); }
.bouton--clair { background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.55); backdrop-filter: blur(6px); }
.bouton--sombre { background: var(--anthracite); color: #fff; }
.bouton--sombre:hover { background: var(--anthracite-2); }
.bouton[disabled] { opacity: 0.45; cursor: not-allowed; }
.lien { font-weight: 700; color: var(--orange-fonce); text-decoration: none; }

/* En-tête */
.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px max(16px, calc((100% - 1200px) / 2));
  background: rgb(31 34 38 / 0.92);
  backdrop-filter: blur(12px);
  color: #fff;
}
.entete__marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.entete__marque img { width: 44px; height: 44px; }
.entete__nav { display: flex; gap: 22px; margin-left: auto; }
.entete__nav a { text-decoration: none; font-weight: 600; opacity: 0.85; }
.entete__nav a:hover { opacity: 1; }
.entete__commander { min-height: 40px; }

/* Accroche */
.accroche { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.accroche__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.accroche__voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(31 34 38 / 0.15) 0%, rgb(31 34 38 / 0.35) 40%, rgb(31 34 38 / 0.92) 100%); }
.accroche__contenu { position: relative; width: min(1200px, 100%); margin: 0 auto; padding: 48px 16px 56px; }
.accroche__logo { width: 96px; height: 96px; margin-bottom: 18px; filter: drop-shadow(0 6px 18px rgb(0 0 0 / 0.35)); }
.accroche h1 { font-size: clamp(44px, 9vw, 88px); line-height: 0.95; }
.accroche__texte { margin-top: 14px; font-size: clamp(18px, 2.6vw, 24px); font-weight: 600; max-width: 30ch; }
.accroche__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.accroche__puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.accroche__puces li { padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.14); backdrop-filter: blur(6px); font-size: 14px; font-weight: 600; }

/* Atouts */
.atouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1200px, calc(100% - 32px));
  margin: -28px auto 0;
  position: relative;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--ligne);
  box-shadow: var(--ombre);
}
.atout { display: grid; gap: 6px; padding: 22px 24px; background: var(--blanc); }
.atout strong { font-size: 18px; }
.atout span { color: var(--texte-2); font-size: 15px; }

/* Salle */
.salle {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 40px;
  width: min(1200px, calc(100% - 32px));
  margin: 72px auto;
}
.salle img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; box-shadow: var(--ombre); }
.salle__texte { display: grid; gap: 16px; justify-items: start; }
.salle h2 { font-size: clamp(28px, 4vw, 40px); }
.salle p { color: var(--texte-2); font-size: 17px; }

/* Carte et commande */
.carte { padding: 64px 0 80px; background: var(--anthracite); color: #fff; border-radius: 32px 32px 0 0; }
.carte__tete { width: min(1200px, calc(100% - 32px)); margin: 0 auto 22px; display: grid; gap: 8px; }
.carte__tete h2 { font-size: clamp(32px, 5vw, 48px); }
.carte__tete p { color: rgb(255 255 255 / 0.7); }
.onglets, .filtres {
  display: flex;
  gap: 8px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.onglets button, .filtres button {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: 700 15px/1 var(--police);
  cursor: pointer;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}
.onglets button[aria-selected='true'] { background: var(--orange); }
.filtres button { min-height: 36px; font-size: 14px; font-weight: 600; background: transparent; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.25); }
.filtres button[aria-pressed='true'] { background: #fff; color: var(--anthracite); box-shadow: none; }
.filtres[hidden] { display: none; }
.carte__corps {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: start;
  gap: 24px;
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto 0;
}
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }

.produit {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--texte);
}
.produit--indispo { opacity: 0.55; }
.produit__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--creme); box-shadow: 0 4px 12px rgb(0 0 0 / 0.12); }
.produit__corps { display: grid; gap: 6px; min-width: 0; }
.produit__nom { font-size: 17px; font-weight: 800; line-height: 1.2; }
.produit__compo { font-size: 13.5px; color: var(--texte-2); line-height: 1.4; }
.produit__pied { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.produit__prix { font-weight: 800; font-size: 17px; margin-right: auto; white-space: nowrap; }
.pastille { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--orange-clair); color: var(--orange-fonce); }
.pastille--vert { background: #e6f3eb; color: var(--vert); }
.tailles { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--creme); }
.tailles button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 700 13px/1 var(--police);
  color: var(--texte-2);
  cursor: pointer;
}
.tailles button[aria-pressed='true'] { background: var(--anthracite); color: #fff; }
.ajouter {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font: 800 22px/1 var(--police);
  cursor: pointer;
}
.ajouter:active { transform: scale(0.92); }

/* Panier (colonne sur ordinateur, feuille sur téléphone) */
.panier {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: var(--blanc);
  color: var(--texte);
  box-shadow: var(--ombre);
}
.panier h3 { font-size: 22px; }
.panier__vide { color: var(--texte-2); font-size: 15px; }
.lignes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-height: 42vh; overflow: auto; }
.ligne { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--ligne); }
.ligne__nom { font-weight: 700; font-size: 15px; }
.ligne__prix { font-weight: 700; }
.quantite { display: inline-flex; align-items: center; gap: 10px; }
.quantite button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--creme); font: 800 18px/1 var(--police); cursor: pointer; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 20px; font-weight: 800; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--creme); }
.choix button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; font: 700 14px/1.2 var(--police); color: var(--texte-2); cursor: pointer; }
.choix button[aria-pressed='true'] { background: var(--blanc); color: var(--texte); box-shadow: 0 2px 8px rgb(0 0 0 / 0.08); }
.champ { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.champ input, .champ select {
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--ligne);
  border-radius: 12px;
  font: 500 16px var(--police);
  color: var(--texte);
  background: var(--blanc);
}
.champ input:focus, .champ select:focus { outline: none; border-color: var(--orange); }
.note { font-size: 13px; color: var(--texte-2); }

/* Barre du bas et feuille (téléphone) */
.barre-panier { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgb(31 34 38 / 0.5)); }
.barre-panier .bouton { min-height: 56px; font-size: 16px; justify-content: space-between; padding: 0 22px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); }
.feuille { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; }
.feuille[hidden] { display: none; }
.feuille__fond { position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); }
.feuille__contenu {
  position: relative;
  max-height: 92vh;
  overflow: auto;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background: var(--blanc);
  display: grid;
  gap: 14px;
}
.confirmation { display: grid; justify-items: center; gap: 12px; padding: 10px 0; text-align: center; }
.confirmation__rond { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e6f3eb; color: var(--vert); font-size: 36px; font-weight: 800; }
.confirmation h3 { font-size: 24px; }
.confirmation__tablette { padding: 14px 16px; border-radius: 14px; background: var(--creme); font-size: 14.5px; }

/* Infos */
.infos {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 24px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}
.infos__bloc { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 26px; border-radius: 24px; background: var(--blanc); box-shadow: var(--ombre); }
.infos h2 { font-size: 26px; }
.infos__adresse { font-size: 18px; font-weight: 600; }
.infos__jours { font-weight: 700; font-size: 18px; }
.infos__heures { display: flex; gap: 10px; flex-wrap: wrap; }
.infos__heures span { padding: 8px 14px; border-radius: 999px; background: var(--orange-clair); color: var(--orange-fonce); font-weight: 800; }
.infos__petit { color: var(--texte-2); font-size: 14.5px; }
.infos__photo { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: 24px; box-shadow: var(--ombre); }

.pied { display: grid; justify-items: center; gap: 8px; padding: 40px 16px 120px; background: var(--anthracite); color: rgb(255 255 255 / 0.75); text-align: center; font-size: 14px; }
.pied__maquette { font-size: 12.5px; opacity: 0.7; }

/* Tablette et téléphone */
@media (max-width: 980px) {
  .carte__corps { grid-template-columns: 1fr; }
  .panier { display: none; }
  .salle { grid-template-columns: 1fr; gap: 22px; margin: 56px auto; }
  .infos { grid-template-columns: 1fr 1fr; }
  .infos__photo { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (min-width: 981px) {
  .barre-panier { display: none !important; }
}
@media (max-width: 640px) {
  .entete__nav { display: none; }
  .entete__commander { margin-left: auto; }
  .accroche { min-height: 88vh; }
  .accroche__logo { width: 76px; height: 76px; }
  .atouts { grid-template-columns: 1fr; margin-top: -20px; }
  .atout { padding: 16px 18px; }
  .grille { grid-template-columns: 1fr; }
  .produit { grid-template-columns: 72px 1fr; }
  .produit__photo { width: 72px; height: 72px; }
  .infos { grid-template-columns: 1fr; padding: 48px 0; }
  .carte { padding: 48px 0 64px; border-radius: 26px 26px 0 0; }
}
