/* Pignon-resto : le style « Verre » de Pignon-hub, en tons de cuisine (tomate, basilic, moutarde, crème). */
.resto {
  --fond: #F1E7DA;
  --accent: #B8442F;
  --accent-fonce: #92331F;
  --sauge: #4E7A3A;
}
.resto .tache--1 { background: #F2BFA6; }
.resto .tache--2 { background: #CFE0B8; }
.resto .tache--3 { background: #F3DDA2; }
.resto .tache--4 { background: #E9CDBF; }
.resto .marque__patte { background: linear-gradient(160deg, #D9603F, var(--accent-fonce)); }

/* Cartes d'établissement */
.resto .carte__visuel--resto { background: linear-gradient(160deg, rgba(242, 191, 166, .6), rgba(255, 255, 255, .25)); }
.resto .carte__visuel--resto svg { width: 34%; height: auto; color: var(--accent); opacity: .55; }
.pastille--ouvert { color: #2F5E22; background: rgba(120, 175, 100, .3); }
.pastille--ferme { color: #7A3324; background: rgba(184, 68, 47, .14); }

/* Filtres de l'accueil */
.filtres-resto { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.filtres-resto .champ { margin: 0; min-width: 10rem; flex: 1 1 10rem; }
.filtres-resto .champ--case { flex: 0 0 auto; min-width: 0; }

/* Fiche : façons de commander et horaire */
.facons { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .4rem 0 0; list-style: none; }
.horaire { width: 100%; border-collapse: collapse; }
.horaire th, .horaire td { padding: .35rem .2rem; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .6); }
.horaire th { font-weight: 700; width: 40%; }
.horaire tr.aujourdhui { color: var(--accent-fonce); }
.cuisines { color: var(--doux); }

/* Espace : grille des heures */
.grille-heures { display: grid; gap: .5rem; }
.grille-heures__tete, .grille-heures__jour { display: grid; grid-template-columns: 6.5rem minmax(7rem, 1fr) minmax(7rem, 1fr) auto; gap: .5rem; align-items: center; }
.grille-heures__tete span { font-weight: 800; font-size: .85rem; color: var(--doux); }
.grille-heures__jour select { width: 100%; min-height: 2.6rem; }
.grille-heures__plage2 { grid-column: 2 / -1; display: grid; grid-template-columns: auto minmax(7rem, 1fr) minmax(7rem, 1fr); gap: .5rem; align-items: center; }
.grille-heures__plage2[hidden], .grille-heures__ajout[hidden], .grille-heures__copier[hidden] { display: none; }
.grille-heures__ajout { white-space: nowrap; font-size: .9rem; }
.resto input[type=time] { min-height: 42px; padding: .4rem .6rem; border-radius: 12px; border: 1px solid rgba(100, 92, 83, .22);
  background: rgba(255, 252, 248, .7); color: var(--texte); font: inherit; }
.resto input[type=time]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184, 68, 47, .2); }
@media (max-width: 640px) { .grille-heures__tete { display: none; } .grille-heures__jour { grid-template-columns: 1fr 1fr; } .grille-heures__jour strong, .grille-heures__ajout { grid-column: 1 / -1; justify-self: start; } .grille-heures__plage2 { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } .grille-heures__plage2 > .carte__meta { grid-column: 1 / -1; } }

/* Phase 2 : le menu */
.menu__sommaire{display:flex;flex-wrap:wrap;gap:.4rem;margin:.4rem 0 1rem}
.menu__sommaire a{text-decoration:none}
.menu__section{padding-top:.6rem;scroll-margin-top:6rem}
.menu__plats{list-style:none;margin:0;padding:0;display:grid;gap:.2rem}
.menu__plat{display:flex;gap:.9rem;align-items:flex-start;padding:.7rem 0;border-top:1px solid rgba(100,92,83,.14)}
.menu__plat:first-child{border-top:0}
.menu__plat--indispo{opacity:.55}
.menu__photo{flex:none;width:84px;height:84px;object-fit:cover;border-radius:14px}
.menu__photo--grande{width:100%;height:auto;max-height:280px;margin-bottom:.6rem}
.menu__corps{flex:1;min-width:0}
.menu__ligne{display:flex;justify-content:space-between;gap:1rem;align-items:baseline}
.menu__prix{font-weight:800;white-space:nowrap}
.menu__autre-prix,.menu__description,.menu__allergenes{margin:.2rem 0 0;color:var(--doux);font-size:.95rem}
.menu__allergenes{font-size:.85rem}
.menu__etiquettes{display:flex;flex-wrap:wrap;gap:.3rem;margin:.35rem 0 0}
.liste-plats{list-style:none;margin:0 0 .6rem;padding:0}
.liste-plats__plat{display:flex;justify-content:space-between;gap:.8rem;align-items:flex-start;padding:.55rem 0;border-top:1px solid rgba(100,92,83,.14)}
.liste-plats__plat:first-child{border-top:0}
.liste-plats__plat--indispo{opacity:.6}
.liste-plats .ligne-boutons{flex:none;display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.liste-plats form,.panneau__tete form{margin:0}

/* Phase 3 : la recherche */
.carte__plats{display:grid;gap:.15rem;font-size:.88rem;color:var(--texte);margin:.15rem 0}
.carte__plat--indispo{opacity:.55;text-decoration:line-through}
.resultats-resto{margin-bottom:1rem}
.pagination{display:flex;gap:1rem;align-items:center;justify-content:center;margin-top:1.5rem;flex-wrap:wrap}
.filtres-resto .champ--ville [data-ma-position]{justify-self:start;margin-top:.2rem}
/* Phase 5 : publications des restos */
.pastille--special { color: #7A4A00; background: rgba(246, 195, 67, .45); }
.publication-resto { padding: .8rem 1rem; margin-top: .7rem; border-radius: 16px; }
.publication-resto p { margin: .3rem 0 0; }
.publier-resto { margin-bottom: .6rem; }
.publication-resto__photo { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; margin-top: .6rem; }
.suggestion-resto { padding: .8rem 1rem; border-radius: 16px; margin-top: .7rem; }
