/* Vitrine RestoPronto (28/10/2026, sur le modèle de Planity.com) : liste des restaurants
   avec recherche, filtres, créneaux et carte. PC (1024 px et plus) : liste à gauche, carte
   fixe à droite. Tablette et téléphone : liste seule, carte en plein écran sur bouton. */
:root {
  --noir: #111;
  --texte: #1d1d1f;
  --discret: #5f6368;
  --ligne: #e3e3e6;
  --fond-doux: #f4f4f6;
  --accent: #9b3a22;       /* créneaux libres : contraste 7,2 sur blanc */
  --accent-fond: #fbf1ee;
  --rayon: 12px;
  --entete-h: 76px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.45; color: var(--texte); background: #fff; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --- En-tête et recherche --- */
.v-entete { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 24px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--ligne); min-height: var(--entete-h); }
.v-logo { font-weight: 800; letter-spacing: .32em; font-size: 20px; text-decoration: none; white-space: nowrap; }
.v-recherche { flex: 1; max-width: 760px; margin: 0 auto; display: flex; align-items: stretch; border: 1px solid var(--ligne); border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); background: #fff; }
.v-champ { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 6px 16px; border-right: 1px solid var(--ligne); cursor: text; }
.v-champ:nth-of-type(3) { border-right: 0; }
.v-champ-titre { font-size: 12px; font-weight: 700; color: var(--discret); }
.v-champ input { width: 100%; border: 0; padding: 2px 0; background: transparent; font-size: 16px; min-height: 28px; }
.v-champ input:focus { outline: none; }
.v-champ:focus-within { background: var(--fond-doux); border-radius: 12px; }
.v-bouton-chercher { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 6px; padding: 0 16px; min-width: 48px; min-height: 44px; border: 0; border-radius: 10px; background: var(--noir); color: #fff; cursor: pointer; }
.v-chercher-texte { display: none; }

/* --- Filtres rapides --- */
.v-filtres { display: flex; gap: 10px; padding: 14px 24px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ligne); background: #fff; }
.v-filtres::-webkit-scrollbar { display: none; }
.v-filtre { flex: none; display: inline-flex; align-items: center; text-decoration: none; min-height: 40px; padding: 0 18px; border: 1px solid var(--ligne); border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; white-space: nowrap; }
.v-filtre[aria-pressed="true"] { background: var(--noir); border-color: var(--noir); color: #fff; }

/* --- Mise en page : liste + carte --- */
.v-page { display: grid; grid-template-columns: minmax(0, 1fr); }
.v-liste { padding: 8px 24px 32px; }
.v-compte { margin: 12px 0 4px; color: var(--discret); font-size: 14px; }
.v-vide { padding: 32px 0; text-align: center; }

/* --- Carte d'un restaurant --- */
.v-carte { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--ligne); scroll-margin-top: calc(var(--entete-h) + 16px); transition: background-color .3s; }
.v-carte.v-repere { background: var(--accent-fond); }
.v-photos { position: relative; align-self: start; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 16 / 10; background: var(--fond-doux); }
.v-photos-defile { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v-photos-defile::-webkit-scrollbar { display: none; }
.v-photos-defile img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; display: block; }
.v-photo-logo { height: 100%; display: flex; align-items: center; justify-content: center; padding: 18px; }
.v-photo-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v-photo-initiale { font-size: 56px; font-weight: 700; color: var(--discret); }
.v-photo-fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: 22px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; }
.v-photo-prec { left: 8px; }
.v-photo-suiv { right: 8px; }
.v-photos:hover .v-photo-fleche, .v-photo-fleche:focus-visible { opacity: 1; }
.v-points { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.v-points span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 2px rgba(0,0,0,.4); }
.v-points span.actif { background: #fff; }

.v-infos { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.v-nom { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.25; }
.v-nom a { text-decoration: none; }
.v-nom a:hover { text-decoration: underline; }
.v-accroche { margin: 0; color: var(--discret); font-size: 15px; }
.v-ligne { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 15px; flex-wrap: wrap; }
.v-ligne svg { flex: none; color: var(--discret); }
.v-etoile { color: #b7791f; }
.v-discret { color: var(--discret); font-size: 14px; }
.v-badges { margin: 2px 0 0; }
.v-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-fond); color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }

/* Créneaux : une ligne Midi, une ligne Soir, trois jours. */
.v-creneaux { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); max-width: 400px; align-items: center; gap: 8px; margin: 10px 0 4px; }
/* Pilules en largeur partagée, jamais plus étroites que leur texte (inspection du 29/10/2026 :
   « Sam. 31 » dépassait de 2 à 6 px sur PC et tablette). */
.v-service { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--discret); padding-right: 6px; }
.v-creneau { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 3px; border: 1.5px solid var(--accent); border-radius: 8px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
a.v-creneau:hover { background: var(--accent); color: #fff; }
.v-creneau.indispo { border-color: var(--ligne); color: #6d6d73; background: var(--fond-doux); font-weight: 500; }
.v-creneau.complet { text-decoration: line-through; }

.v-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.v-lien-infos { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.v-boutons { display: flex; gap: 10px; margin-left: auto; }
.v-pilule { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--noir); border-radius: 10px; background: #fff; color: var(--noir); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.v-pilule:hover { background: var(--fond-doux); }
.v-pilule-pleine { background: var(--noir); color: #fff; }
.v-pilule-pleine:hover { background: #333; }

/* --- Carte géographique --- */
.v-carte-geo { display: none; }
.v-carte-zone { width: 100%; height: 100%; background: var(--fond-doux); }
.v-fermer-carte { display: none; }
.v-ouvrir-carte { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 900; box-shadow: 0 4px 16px rgba(0,0,0,.25); border-radius: 999px; }
/* Point d'un restaurant : pastille, foncée quand sa carte est survolée ou choisie. */
.v-point { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; border: 2.5px solid var(--noir); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.v-point::after { content: ""; position: absolute; top: 8px; left: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--noir); }
.v-point.actif { background: var(--accent); border-color: var(--accent); }
.v-point.actif::after { background: #fff; }
.leaflet-popup-content { font: 600 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

.v-sur-demande { margin: -2px 0 0; }
.v-pages { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px 0 8px; }
.v-lien-pro { flex: none; }
.v-entete-simple { justify-content: space-between; }

/* --- Page « Restaurateurs » (01/12/2026, maquette L-169a) : bandeau noir, puis sections
   en une colonne de 720 px au plus, formulaire de démo en bas. --- */
.v-restaurateurs h1, .v-restaurateurs h2, .v-legal h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
.v-heros { background: var(--noir); color: #fff; padding: 40px 24px 36px; }
.v-heros-dedans { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.v-heros h1 { margin: 0; font-size: clamp(28px, 6vw, 44px); line-height: 1.12; }
.v-heros p { margin: 0; color: #e5e5e5; font-size: 17px; }
.v-pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.v-heros .v-pastilles span { padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--noir); font-size: 14px; font-weight: 700; }
.v-heros-boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.v-pilule-accent { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 999px; }
.v-pilule-accent:hover { background: #7f2f1b; }
.v-pilule-claire { border-color: #fff; border-radius: 999px; }
.v-sections { max-width: 720px; margin: 0 auto; padding: 8px 24px 56px; }
.v-section { padding: 28px 0; border-bottom: 1px solid var(--ligne); display: grid; gap: 12px; scroll-margin-top: 16px; }
.v-section h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.v-section p { margin: 0; }
.v-pilule-large { justify-self: start; white-space: normal; text-align: center; border-radius: 999px; }
.v-coches, .v-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.v-coches li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
.v-coches li::before { content: "✓"; font-weight: 800; color: #1e7a46; }
.v-etapes { counter-reset: etape; }
.v-etapes li { counter-increment: etape; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; }
.v-etapes li::before { content: counter(etape); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.v-encadre { background: var(--accent-fond); border: 1px solid #f0d6cd; border-radius: var(--rayon); padding: 16px; display: grid; gap: 8px; }
.v-encadre strong { color: var(--accent); }
.v-faq details { border-top: 1px solid var(--ligne); }
.v-faq details:last-child { border-bottom: 1px solid var(--ligne); }
.v-faq summary { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-weight: 600; cursor: pointer; }
.v-faq details p { padding: 0 0 12px; }
.v-demande { background: var(--fond-doux); border-radius: var(--rayon); padding: 24px; margin-top: 28px; scroll-margin-top: 16px; }
.v-demande h2 { margin: 0 0 14px; font-size: 22px; font-weight: 600; }
.v-form { display: grid; gap: 14px; }
.v-form-type { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.v-form-type legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.v-form-type label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.v-form-champ { display: grid; gap: 4px; }
.v-form-champ > span { font-weight: 600; font-size: 15px; }
.v-form-champ small { font-weight: 400; color: var(--discret); }
.v-form-champ input, .v-form-champ textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c9c9ce; border-radius: 10px; background: #fff; font-size: 16px; }
.v-form-champ [aria-invalid="true"] { border-color: #b3261e; }
.v-erreur, .v-form-champ .v-erreur { color: #b3261e; font-size: 14px; }
.v-rgpd { margin: 0; color: var(--discret); font-size: 14px; }
.v-form .v-pilule { justify-self: start; }
.v-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Pages légales (mentions, confidentialité, suppression des données) --- */
.v-legal { max-width: 720px; margin: 0 auto; padding: 32px 24px 56px; overflow-wrap: anywhere; }
.v-legal h1 { margin: 0 0 16px; font-size: clamp(28px, 6vw, 38px); line-height: 1.15; }
.v-legal h2 { margin: 28px 0 8px; font-size: 19px; line-height: 1.3; scroll-margin-top: 16px; }
.v-legal h3 { margin: 0 0 8px; font-size: 17px; }
.v-legal p, .v-legal ul { margin: 0 0 10px; }
.v-legal ul { padding-left: 20px; display: grid; gap: 6px; }
.v-legal a { text-underline-offset: 3px; }
.v-maj { color: var(--discret); font-size: 14px; }
.v-bientot { font-size: 19px; font-weight: 600; }
.v-sommaire { display: grid; gap: 2px; margin: 18px 0 8px; padding: 10px 14px; background: var(--fond-doux); border-radius: var(--rayon); }
.v-sommaire a { display: flex; align-items: center; min-height: 40px; }
.v-fiche { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 14px 16px; margin: 0 0 12px; }
.v-fiche dl { margin: 0; display: grid; gap: 2px; }
.v-fiche dt { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--discret); margin-top: 6px; }
.v-fiche dd { margin: 0; }
.v-a-valider { color: #8a5a00; font-style: italic; }

.v-pied { padding: 24px; border-top: 1px solid var(--ligne); color: var(--discret); font-size: 14px; text-align: center; background: var(--fond-doux); }
.v-pied p { margin: 8px 0 0; }
.v-pied-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.v-pied-liens a { color: var(--noir); font-weight: 600; }

/* --- PC : liste + carte fixe à droite --- */
@media (min-width: 1024px) {
  .v-page { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
  .v-carte-geo { display: block; position: sticky; top: var(--entete-h); height: calc(100vh - var(--entete-h)); }
  .v-ouvrir-carte { display: none; }
  .v-chercher-texte { display: inline; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .v-carte { grid-template-columns: minmax(0, 1fr); }
  .v-photos { max-width: 420px; }
}

/* --- Tablette et téléphone --- */
@media (max-width: 1023px) {
  :root { --entete-h: 0px; }
  .v-entete { position: static; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
  .v-logo { text-align: center; font-size: 18px; }
  .v-lien-pro { align-self: center; min-height: 40px; }
  .v-recherche { width: 100%; max-width: none; flex-wrap: wrap; }
  .v-champ { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--ligne); padding: 8px 14px; }
  .v-champ:nth-of-type(3) { flex: 1 1 0; border-bottom: 0; }
  .v-bouton-chercher { padding: 0 18px; }
  .v-chercher-texte { display: inline; }
  .v-filtres { padding: 12px 16px; position: sticky; top: 0; z-index: 800; }
  .v-liste { padding: 4px 16px 96px; }
  .v-carte { scroll-margin-top: 80px; }
  /* Carte ouverte : plein écran par-dessus la liste. */
  body.v-carte-ouverte { overflow: hidden; }
  body.v-carte-ouverte .v-carte-geo { display: block; position: fixed; inset: 0; z-index: 1100; background: #fff; }
  body.v-carte-ouverte .v-fermer-carte { display: inline-flex; position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1200; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
  body.v-carte-ouverte .v-ouvrir-carte { display: none; }
  /* Pages sans recherche : logo à gauche, bouton à droite, comme sur PC. */
  /* Très petit écran : le bouton passe sous le logo plutôt que de sortir de l'écran. */
  .v-entete.v-entete-simple { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .v-entete-simple .v-logo { font-size: 14px; letter-spacing: .2em; }
  .v-entete-simple .v-lien-pro { padding: 0 14px; font-size: 14px; }
  .v-heros { padding: 28px 16px 24px; }
  .v-sections { padding: 0 16px 40px; }
  .v-legal { padding: 24px 16px 40px; }
  .v-demande { padding: 20px 16px; }
}
@media (max-width: 680px) {
  .v-carte { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 0; }
  .v-nom { font-size: 19px; }
  .v-creneaux { gap: 8px; }
  .v-creneau { min-height: 44px; font-size: 14px; }
  .v-actions { align-items: stretch; }
  .v-boutons { width: 100%; margin-left: 0; }
  .v-boutons .v-pilule { flex: 1; }
}
/* Écrans tactiles (inspection du 29/10/2026, règle B) : 44 px pour ce qui se touche,
   40 px pour les champs de saisie. */
@media (pointer: coarse) {
  .v-filtre, .v-creneau, .v-pilule, .v-badge, .v-lien-infos, .v-nom a, .v-pied a, .v-logo { min-height: 44px; }
  .v-badge, .v-lien-infos, .v-nom a, .v-pied a, .v-logo { display: inline-flex; align-items: center; }
  .v-champ input { min-height: 40px; }
}
/* Écran tactile : on fait glisser les photos du doigt, pas de flèches. */
@media (hover: none) {
  .v-photo-fleche { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
