/* Rezava, feuille de styles du site
   Palette : craie, cerise, sapin, encre
   Polices : Bricolage Grotesque (titres), Figtree (texte), Syne (sceau seulement) */

/* Polices hébergées sur le site (licence libre SIL OFL), aucun appel à un service externe. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../polices/bricolage-grotesque-latin-opsz-normal.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../polices/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('../polices/syne-latin-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --craie: #F6F6F3;
  --blanc: #FFFFFF;
  --cerise: #C8102E;
  --cerise-fonce: #A30D25;
  --cerise-vif: #E8233F;
  --sapin: #2F4B3C;
  --encre: #1B1B1F;
  --gris: #55565C;
  --ligne: rgba(27, 27, 31, 0.14);
  --titre: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --texte: 'Figtree', 'Segoe UI', sans-serif;
  --rayon: 20px;
  --largeur: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

/* L'attribut hidden doit toujours l'emporter sur les styles d'affichage. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--craie);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.55;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }

p { margin: 0; }

a { color: var(--cerise); text-underline-offset: 3px; }
a:hover { color: var(--cerise-fonce); }

:focus-visible { outline: 3px solid var(--cerise); outline-offset: 3px; border-radius: 6px; }

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

.section { padding: 88px 0; }
.section--serree { padding: 64px 0; }

.surtitre {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cerise);
  margin-bottom: 14px;
}

.chapeau { font-size: 1.2rem; color: var(--gris); max-width: 46ch; }

.passer {
  position: absolute; left: -9999px; top: 0;
  background: var(--encre); color: var(--blanc); padding: 12px 18px; z-index: 50;
}
.passer:focus { left: 12px; top: 12px; color: var(--blanc); }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--texte);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.bouton--cerise { background: var(--cerise); color: var(--blanc); }
.bouton--cerise:hover { background: var(--cerise-fonce); color: var(--blanc); }
.bouton--contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.bouton--contour:hover { background: var(--encre); color: var(--craie); }
.bouton--clair { background: var(--craie); color: var(--encre); }
.bouton--clair:hover { background: var(--blanc); color: var(--encre); }
.bouton--plein { width: 100%; }
.bouton[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Sceau (logo officiel) ----------
   La taille se règle avec --u : 1px donne un sceau de 240 px de côté. */

.sceau {
  --u: 1px;
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  column-gap: calc(34 * var(--u));
  align-items: center; justify-items: center;
  width: calc(240 * var(--u)); height: calc(240 * var(--u));
  margin: 0 calc(75 * var(--u));
  padding: calc(24 * var(--u)) calc(26 * var(--u));
  border: calc(7 * var(--u)) solid currentColor;
  border-radius: calc(48 * var(--u));
  font: 800 calc(50 * var(--u))/1 'Syne', var(--titre);
  letter-spacing: 0;
  flex: none;
}
.sceau::before {
  content: ""; position: absolute;
  left: 50%; top: calc(38 * var(--u)); bottom: calc(38 * var(--u));
  width: max(1px, calc(2 * var(--u))); transform: translateX(-50%);
  background: currentColor; opacity: 0.2; border-radius: 1px;
}
.sceau::after {
  content: ""; position: absolute;
  left: calc(-75 * var(--u)); top: 50%;
  width: calc(42 * var(--u)); height: calc(42 * var(--u));
  margin-top: calc(-21 * var(--u));
  border-radius: 50%; background: currentColor;
  box-shadow: calc(334 * var(--u)) 0 0 0 currentColor;
}
.sceau b { color: var(--cerise); font-weight: inherit; }
.sceau--inverse b { color: var(--cerise-vif); }

/* ---------- En-tête ---------- */

.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 246, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.marque { display: inline-flex; align-items: center; gap: 4px; color: var(--encre); text-decoration: none; }
.marque:hover { color: var(--encre); }
.marque .sceau { --u: 0.2px; }
.marque__nom { font: 800 1.55rem/1 var(--titre); letter-spacing: -0.03em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.bouton) { color: var(--encre); text-decoration: none; font-weight: 500; padding: 10px 0; }
.nav a:not(.bouton):hover, .nav a[aria-current="page"]:not(.bouton) { color: var(--cerise); }

.menu-bouton {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: transparent; color: var(--encre); cursor: pointer;
}

@media (max-width: 900px) {
  .menu-bouton { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 24px; background: var(--craie); border-bottom: 1px solid var(--ligne);
  }
  .nav.ouvert { display: flex; }
  .nav a:not(.bouton) { padding: 14px 0; border-bottom: 1px solid var(--ligne); }
  .nav .bouton { margin-top: 14px; }
}

/* ---------- Héros ---------- */

.heros { padding: 72px 0 88px; }
.heros__grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.heros h1 { margin-bottom: 22px; }
.heros .chapeau { margin-bottom: 34px; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 900px) {
  .heros { padding: 48px 0 64px; }
  .heros__grille { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .heros .sceau { --u: 0.75px; }
}

/* Plan de salle : motif de marque */
.plan { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 28px); max-width: 500px; margin: 0 auto; width: 100%; }
.plan span { aspect-ratio: 1; border: clamp(4px, 0.6vw, 6px) solid currentColor; border-radius: 50%; }
.plan .carree { border-radius: 22%; }
.plan .reservee { background: var(--cerise); border-color: var(--cerise); }

/* ---------- Recherche ---------- */

.recherche {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 12px; align-items: end;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 24px; padding: 18px;
  box-shadow: 0 18px 40px -28px rgba(27, 27, 31, 0.45);
}
@media (max-width: 900px) { .recherche { grid-template-columns: 1fr 1fr; } .recherche .champ--large, .recherche .bouton { grid-column: 1 / -1; } }

/* ---------- Champs ---------- */

.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ label, .champ .etiquette { font-size: 0.9rem; font-weight: 600; }
.champ .aide { font-size: 0.88rem; color: var(--gris); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid rgba(27, 27, 31, 0.3); border-radius: 12px;
  background: var(--blanc); color: var(--encre);
  font: 400 1rem/1.3 var(--texte);
}
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid rgba(200, 16, 46, 0.3); border-color: var(--cerise); }

.case { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }
.case input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cerise); flex: none; }

.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.formulaire .plein { grid-column: 1 / -1; }
.formulaire legend, .formulaire__titre { font: 800 1.25rem/1.2 var(--titre); letter-spacing: -0.015em; padding: 0; margin: 14px 0 0; grid-column: 1 / -1; }
@media (max-width: 640px) { .formulaire { grid-template-columns: minmax(0, 1fr); } }

.avis { border-radius: 14px; padding: 14px 18px; font-size: 0.97rem; background: rgba(47, 75, 60, 0.1); color: #20362A; }
.avis--erreur { background: rgba(200, 16, 46, 0.1); color: #7C0A1C; }
.avis[hidden] { display: none; }

/* ---------- Cartes et grilles ---------- */

.entete-section { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 720px; }

.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .grille-3, .grille-2 { grid-template-columns: minmax(0, 1fr); } }

.carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.carte p { color: var(--gris); }
.carte__icone { width: 52px; height: 52px; border-radius: 14px; background: rgba(200, 16, 46, 0.1); color: var(--cerise); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.carte__icone svg { width: 26px; height: 26px; }

.etape__numero { font: 800 2.6rem/1 var(--titre); color: var(--cerise); letter-spacing: -0.03em; }

.liste-coches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.liste-coches li { display: flex; gap: 14px; align-items: flex-start; }
.liste-coches svg { width: 24px; height: 24px; flex: none; margin-top: 2px; color: var(--cerise); }

/* ---------- Bandes de couleur ---------- */

.bande { border-radius: 32px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; }
.bande--sapin { background: var(--sapin); color: var(--craie); }
.bande--encre { background: var(--encre); color: var(--craie); }
.bande--cerise { background: var(--cerise); color: var(--blanc); }
.bande .chapeau { color: inherit; opacity: 0.9; }
.bande__texte { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.bande__visuel { display: flex; justify-content: center; }
.bande--sapin .sceau b { background: var(--craie); color: var(--sapin); width: 1.45em; height: 1.45em; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8em; }
.bande--cerise .sceau b { color: var(--encre); }
@media (max-width: 900px) { .bande { grid-template-columns: minmax(0, 1fr); } .bande .sceau { --u: 0.7px; } }

/* ---------- État vide ---------- */

.vide { background: var(--blanc); border: 1.5px dashed rgba(27, 27, 31, 0.3); border-radius: var(--rayon); padding: 48px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vide p { color: var(--gris); max-width: 52ch; }

/* ---------- Deux colonnes (formulaires) ---------- */

.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .deux-colonnes { grid-template-columns: minmax(0, 1fr); } }

.panneau { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.panneau--etroit { max-width: 520px; margin: 0 auto; }

.onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--craie); border-radius: 999px; padding: 6px; margin-bottom: 28px; }
.onglets button { min-height: 46px; border: 0; border-radius: 999px; background: transparent; font: 600 1rem/1 var(--texte); color: var(--gris); cursor: pointer; }
.onglets button[aria-selected="true"] { background: var(--encre); color: var(--craie); }

/* ---------- Questions ---------- */

.questions { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.questions details { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 16px; padding: 4px 24px; }
.questions summary { cursor: pointer; font: 700 1.1rem/1.3 var(--titre); padding: 18px 0; list-style-position: outside; }
.questions details p { color: var(--gris); padding-bottom: 20px; }

/* ---------- Texte long ---------- */

.prose { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 1.6rem; margin-top: 22px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Pied de page ---------- */

.pied { background: var(--encre); color: var(--craie); padding: 64px 0 40px; margin-top: 40px; }
.pied__grille { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.pied .sceau { --u: 0.42px; margin-bottom: 22px; }
.pied h3 { font-size: 1rem; margin-bottom: 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pied a { color: var(--craie); text-decoration: none; opacity: 0.85; }
.pied a:hover { color: var(--blanc); opacity: 1; text-decoration: underline; }
.pied__bas { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(246, 246, 243, 0.2); font-size: 0.9rem; opacity: 0.75; }
@media (max-width: 900px) { .pied__grille { grid-template-columns: minmax(0, 1fr); } }

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

/* ---------- Héros avec vidéo de fond (accueil) ---------- */

.heros--video { position: relative; isolation: isolate; overflow: hidden; background: var(--encre); color: var(--craie); padding: 104px 0 150px; }
.heros__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.heros__voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27, 27, 31, 0.84) 0%, rgba(27, 27, 31, 0.66) 55%, rgba(27, 27, 31, 0.5) 100%); }
.heros--video .surtitre { color: var(--craie); }
.heros--video .chapeau { color: var(--craie); }
.heros--video .bouton--contour { border-color: var(--craie); color: var(--craie); }
.heros--video .bouton--contour:hover { background: var(--craie); color: var(--encre); }
.heros--video :focus-visible { outline-color: var(--craie); }

.heros__pause {
  position: absolute; right: 24px; bottom: 88px;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(27, 27, 31, 0.6); color: var(--craie);
  border: 1.5px solid rgba(246, 246, 243, 0.6); cursor: pointer;
}
.heros__pause svg { width: 22px; height: 22px; }
.heros__pause svg:last-child { display: none; }
.heros__pause.en-pause svg:first-child { display: none; }
.heros__pause.en-pause svg:last-child { display: block; }

.recherche-section { position: relative; z-index: 2; margin-top: -64px; }

@media (max-width: 900px) {
  .heros--video { padding: 56px 0 120px; }
  .heros__voile { background: rgba(27, 27, 31, 0.74); }
}

/* ---------- Pogo, le guide qui suit le visiteur ---------- */

.pogo { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.pogo__avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--blanc); color: var(--cerise); display: flex; align-items: center; justify-content: center; }
.pogo__avatar svg { width: 30px; height: 30px; }

.pogo__lanceur {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 24px 8px 8px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--cerise); color: var(--blanc);
  font: 600 1.05rem/1 var(--texte);
  box-shadow: 0 16px 32px -12px rgba(27, 27, 31, 0.6), 0 0 0 4px rgba(246, 246, 243, 0.9);
  transition: background-color 0.15s, transform 0.15s;
}
.pogo__lanceur:hover { background: var(--cerise-fonce); transform: translateY(-2px); }

.pogo__fenetre {
  width: min(390px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 116px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--craie); border: 1px solid var(--ligne); border-radius: 24px;
  box-shadow: 0 28px 64px -22px rgba(27, 27, 31, 0.65);
}
.pogo__fenetre[hidden] { display: none; }

.pogo__entete { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--encre); color: var(--craie); }
.pogo__entete strong { display: block; font: 800 1.15rem/1.1 var(--titre); letter-spacing: -0.02em; }
.pogo__entete div span { font-size: 0.85rem; opacity: 0.8; }
.pogo__fermer { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--craie); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pogo__fermer:hover { background: rgba(246, 246, 243, 0.14); }
.pogo__fermer svg { width: 22px; height: 22px; }
.pogo__fermer:focus-visible { outline-color: var(--craie); }

.pogo__fil { position: relative; flex: 1 1 auto; min-height: 170px; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: rgba(27, 27, 31, 0.25) transparent; }
.pogo__bulle { max-width: 88%; padding: 14px 16px; border-radius: 18px; font-size: 1rem; line-height: 1.5; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pogo__bulle--pogo { align-self: flex-start; background: var(--blanc); border-bottom-left-radius: 6px; }
.pogo__bulle--moi { align-self: flex-end; background: var(--encre); color: var(--craie); border-bottom-right-radius: 6px; padding: 10px 16px; }
.pogo__lien { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 18px; border-radius: 999px; background: var(--cerise); color: var(--blanc); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.pogo__lien:hover { background: var(--cerise-fonce); color: var(--blanc); }

/* Les choix : une liste calme, un par ligne */
.pogo__pastilles { flex: none; display: flex; flex-direction: column; padding: 6px 20px 14px; background: var(--blanc); border-top: 1px solid var(--ligne); }
.pogo__pastilles:empty { display: none; }
.pogo__choix { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--ligne); background: transparent; color: var(--encre); font: 500 1rem/1.3 var(--texte); text-align: left; cursor: pointer; }
.pogo__choix svg { width: 18px; height: 18px; flex: none; color: var(--cerise); transition: transform 0.15s; }
.pogo__choix:hover { color: var(--cerise); }
.pogo__choix:hover svg { transform: translateX(3px); }
.pogo__bas { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; }
.pogo__petit { border: 0; background: none; padding: 6px 0; min-height: 32px; color: var(--gris); font: 400 0.88rem/1.2 var(--texte); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pogo__petit:hover { color: var(--cerise); }

.pied { padding-bottom: 104px; }
.heros__pause { right: auto; left: 24px; }

@media (max-width: 520px) {
  .pogo { right: 12px; bottom: 12px; }
  .pogo.ouvert .pogo__lanceur span:last-child { display: none; }
  .pogo.ouvert .pogo__lanceur { padding: 8px; }
}

/* ---------- Pastilles à bascule (filtres, préférences) ---------- */

.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { min-height: 42px; padding: 8px 16px; border: 1.5px solid rgba(27, 27, 31, 0.3); border-radius: 999px; background: var(--blanc); color: var(--encre); font: 500 0.95rem/1.2 var(--texte); cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.puce:hover { border-color: var(--encre); }
.puce[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--craie); }
.puce:disabled { opacity: 0.6; cursor: progress; }
.etiquette { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }

/* ---------- Module des restaurants (accueil) ---------- */

.filtres { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px 32px; align-items: start; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 24px; margin-bottom: 28px; }
.filtres__perso { grid-column: 1 / -1; }
.filtres .champ label { margin-bottom: 4px; }
@media (max-width: 900px) { .filtres { grid-template-columns: minmax(0, 1fr); } }

.grille-restos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .grille-restos { grid-template-columns: minmax(0, 1fr); } }

.resto { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.resto__visuel { position: relative; aspect-ratio: 16 / 10; background: var(--sapin); color: var(--craie); display: flex; align-items: center; justify-content: center; }
.resto__visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resto__initiale { font: 800 4.2rem/1 var(--titre); opacity: 0.9; }
.resto__complet { position: absolute; left: 14px; top: 14px; background: var(--encre); color: var(--craie); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.resto__coeur { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(246, 246, 243, 0.96); color: var(--encre); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.resto__coeur svg { width: 22px; height: 22px; }
.resto__coeur:hover { color: var(--cerise); }
.resto__coeur[aria-pressed="true"] { color: var(--cerise); }
.resto__coeur[aria-pressed="true"] svg { fill: currentColor; }
.resto__texte { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.resto__ville { color: var(--gris); }
.resto__message { color: var(--gris); font-size: 0.92rem; }
.resto__pastilles { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.resto__pastilles li { font-size: 0.82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(47, 75, 60, 0.1); color: #20362A; }

/* ---------- Espace client et gestion ---------- */

.espace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 900px) { .espace { grid-template-columns: minmax(0, 1fr); } }
.espace__entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.bloc { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 24px; padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bloc--large { grid-column: 1 / -1; }
.bloc h3 { font-size: 1.4rem; }
.bloc__aide { color: var(--gris); font-size: 0.95rem; }

.lignes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lignes:empty { display: none; }
.ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); overflow-wrap: anywhere; }
.ligne__detail { display: block; color: var(--gris); font-size: 0.9rem; }
.ligne__retirer { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--gris); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ligne__retirer:hover { background: rgba(200, 16, 46, 0.1); color: var(--cerise); }
.ligne__retirer svg { width: 18px; height: 18px; }

.ajout { display: flex; gap: 10px; flex-wrap: wrap; }
.ajout input, .ajout select { flex: 1 1 180px; min-height: 50px; padding: 12px 14px; border: 1.5px solid rgba(27, 27, 31, 0.3); border-radius: 12px; background: var(--blanc); color: var(--encre); font: 400 1rem/1.3 var(--texte); min-width: 0; }
.ajout select { flex: 0 1 170px; }
.ajout input:focus, .ajout select:focus { outline: 3px solid rgba(200, 16, 46, 0.3); border-color: var(--cerise); }

.separateur { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--gris); font-size: 0.9rem; }
.separateur::before, .separateur::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.lien-discret { background: none; border: 0; padding: 6px 0; min-height: 32px; color: var(--cerise); font: inherit; font-size: 0.93rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
p.vide { display: block; }

/* Bouton officiel de connexion Google, centré dans le panneau */
.google-officiel { display: flex; justify-content: center; min-height: 44px; }

/* Bouton d'enregistrement au bas d'un bloc de l'espace client */
.bloc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Cartes fidélité et coupons : le code à montrer au restaurant */
.code-court { flex: none; padding: 8px 14px; border-radius: 12px; background: var(--craie); border: 1px solid var(--ligne); font: 700 1.1rem/1 var(--texte); letter-spacing: 0.14em; color: var(--encre); }
.ligne__fin { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Page de gestion et espace restaurant */
.titre-zone { font-size: 1.6rem; margin: 36px 0 18px; }
.compteur { display: inline-block; min-width: 26px; padding: 3px 9px; margin-left: 6px; border-radius: 999px; background: var(--cerise); color: #fff; font: 700 0.85rem/1.3 var(--texte); text-align: center; vertical-align: middle; }
.demandes { display: flex; flex-direction: column; gap: 16px; }
.demandes:empty { display: none; }
.demande { border: 1px solid var(--ligne); border-radius: 18px; padding: clamp(18px, 2.4vw, 24px); display: flex; flex-direction: column; gap: 14px; background: var(--craie); }
.demande__entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demande__entete h4 { font-size: 1.2rem; }
.demande__details { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 24px; margin: 0; }
.demande__details div { min-width: 0; overflow-wrap: anywhere; }
.demande__details dt { font-size: 0.85rem; color: var(--gris); }
.demande__details dd { margin: 0; font-weight: 600; }
.demande__message { background: var(--blanc); border-radius: 12px; padding: 12px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.etat { display: inline-block; padding: 4px 12px; border-radius: 999px; font: 600 0.85rem/1.4 var(--texte); background: rgba(27, 27, 31, 0.08); color: var(--encre); white-space: nowrap; }
.etat--ok { background: rgba(47, 75, 60, 0.14); color: #20362A; }
.etat--non { background: rgba(200, 16, 46, 0.1); color: #7C0A1C; }
