/* PixTable — page de réservation publique */

body.page {
  background:
    radial-gradient(ellipse 70% 42% at 50% -6%, rgba(226, 101, 44, 0.22), rgba(226, 101, 44, 0) 70%),
    var(--fond);
  min-height: 100vh;
}

.bandeau-demo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  padding: 12px 16px; background: #2A1D14; border-bottom: 1px solid #5A3520;
  font-size: 14px; color: var(--texte-doux); text-align: center;
}
.bandeau-demo p { margin: 0; max-width: 560px; }
.bandeau-demo strong { color: var(--texte); }
.bouton.petit { min-height: 40px; padding: 0 14px; font-size: 13px; border-radius: 999px; }

.entete { text-align: center; padding: 52px 20px 30px; }
.marque {
  margin: 0; font-family: var(--titre); font-weight: 500;
  font-size: clamp(40px, 11vw, 64px); line-height: 1; letter-spacing: 0.28em; padding-left: 0.28em;
  color: var(--texte);
}
.accroche { margin: 14px 0 0; font-family: var(--titre); font-style: italic; font-size: 22px; color: var(--braise-clair); }
.sous-titre { margin: 8px 0 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--texte-2); }

.carte {
  max-width: 640px; margin: 0 auto 28px; padding: 26px 20px 22px;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 24px;
}
@media (min-width: 680px) { .carte { padding: 34px 34px 26px; } }
body.widget .carte { margin: 0 auto; border-radius: 20px; }

.titre-carte { margin: 0 0 22px; font-family: var(--titre); font-weight: 500; font-size: 30px; line-height: 1.1; }

.etape { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.etape legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 17px; }
.num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--braise-clair);
  color: var(--braise-clair); font-size: 13px; font-weight: 700;
}
.aide { margin: 10px 0 0; font-size: 14px; color: var(--texte-2); }
.chargement { font-size: 14px; color: var(--texte-2); padding: 12px 0; }

.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles .pastille { min-width: 48px; padding: 0 14px; }

.defilant {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--ligne-forte) transparent;
}
.jour {
  flex: 0 0 auto; scroll-snap-align: start;
  width: 66px; min-height: 82px; padding: 8px 4px; border-radius: 14px;
  border: 1px solid var(--ligne-forte); background: transparent; color: var(--texte);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.jour .j { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-2); font-weight: 600; }
.jour .n { font-family: var(--titre); font-size: 26px; line-height: 1.1; }
.jour .m { font-size: 12px; color: var(--texte-2); }
.jour .f { font-size: 11px; color: var(--texte-2); }
.jour[aria-pressed="true"] { background: var(--texte); border-color: var(--texte); color: var(--fond); }
.jour[aria-pressed="true"] .j, .jour[aria-pressed="true"] .m { color: #4A4036; }
.jour:disabled { opacity: 0.4; }

.service + .service { margin-top: 16px; }
.service h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-2); font-weight: 600; }
.heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.heures .pastille { padding: 0 6px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.vide { margin: 0; padding: 14px; border-radius: 12px; background: var(--surface-2); color: var(--texte-doux); font-size: 14px; }

/* Liste d'attente (service complet) */
.offre-attente {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 10px; padding: 14px 16px;
  border-radius: 14px; border: 1px dashed var(--braise-sombre); background: rgba(226, 101, 44, 0.07);
  text-align: left; color: var(--texte); transition: background .15s ease, border-color .15s ease;
}
.offre-attente:hover { background: rgba(226, 101, 44, 0.13); border-color: var(--braise); }
.offre-attente .icone {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 999px; background: var(--braise); position: relative;
}
.offre-attente .icone::before {
  content: ""; position: absolute; inset: 9px;
  background: var(--fond);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.offre-attente .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.offre-attente strong { font-size: 15px; }
.offre-attente .txt span { font-size: 13px; color: var(--texte-2); }
.offre-attente[aria-pressed="true"] { border-style: solid; border-color: var(--braise); background: rgba(226, 101, 44, 0.16); box-shadow: 0 0 0 3px rgba(240, 138, 75, 0.16); }
.offre-attente[aria-pressed="true"] .icone { animation: sonne .7s ease; }
@keyframes sonne { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(11deg); } 60% { transform: rotate(-7deg); } 80% { transform: rotate(4deg); } }
.case-sms { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(226, 101, 44, 0.07); border: 1px solid var(--braise-sombre); font-size: 14px; color: var(--texte-doux); cursor: pointer; }
.case-sms[hidden] { display: none; }
.case-sms input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--braise); }
.case-sms strong { color: var(--texte); }
.coche.cloche { background: #2A1D14; border-color: #5A3520; color: var(--braise-clair); }

.grille-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
@media (min-width: 520px) { .grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facultatif { color: var(--texte-2); font-weight: 400; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rgpd { margin: 12px 0 0; font-size: 12px; color: var(--texte-2); }

.recap {
  position: sticky; bottom: 0; z-index: 5;
  margin: 8px -20px -22px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: rgba(28, 25, 22, 0.96); border-top: 1px solid var(--ligne);
  border-radius: 0 0 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (min-width: 680px) {
  .recap { margin: 8px -34px -26px; padding: 16px 34px; flex-direction: row; align-items: center; justify-content: space-between; }
}
.recap p { margin: 0; font-size: 15px; color: var(--texte-doux); }
.recap p strong { color: var(--texte); }
.recap .bouton { width: 100%; }
@media (min-width: 680px) { .recap .bouton { width: auto; } }

.erreur { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #2A1D14; border: 1px solid #5A3520; color: var(--alerte); font-size: 14px; }

.hors-ligne { text-align: center; padding: 10px 0; }
.hors-ligne h1 { font-family: var(--titre); font-weight: 500; font-size: 28px; margin: 0 0 8px; }

/* Confirmation */
.confirmation:focus { outline: none; }
.coche {
  width: 64px; height: 64px; border-radius: 999px; margin: 4px auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ok-fond); border: 1px solid var(--ok-ligne); color: var(--ok);
  animation: apparition .5s cubic-bezier(.2, .9, .3, 1.3);
}
@keyframes apparition { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirmation h2 { margin: 0; text-align: center; font-family: var(--titre); font-weight: 500; font-size: 32px; line-height: 1.15; }
.confirmation .sous { margin: 8px 0 22px; text-align: center; color: var(--texte-2); font-size: 15px; }
.details { margin: 0 0 22px; padding: 0; list-style: none; border-top: 1px solid var(--ligne); }
.details li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ligne); font-size: 15px; }
.details li span:first-child { color: var(--texte-2); }
.details li span:last-child { font-weight: 600; text-align: right; }
.actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 520px) { .actions { flex-direction: row; } .actions .bouton { flex: 1; } }

.apercu { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--ligne-forte); }
.apercu h3 { margin: 0 0 6px; font-size: 16px; }
.apercu p { margin: 0 0 12px; font-size: 14px; color: var(--texte-2); }
.apercu .sujet { font-size: 13px; color: var(--texte-doux); margin-bottom: 8px; }
.apercu iframe { display: block; width: 100%; height: 560px; border: 0; border-radius: 14px; background: #F4EEE6; }
.appli-cta {
  margin-top: 22px; padding: 18px; border-radius: 18px; background: #2A1D14; border: 1px solid #5A3520;
  display: flex; flex-direction: column; gap: 12px;
}
.appli-cta p { margin: 0; color: var(--texte-doux); font-size: 15px; }
.appli-cta strong { color: var(--texte); }

.pied { text-align: center; padding: 6px 20px 36px; }
body.widget .pied { padding: 12px 20px 16px; }

/* Page d'annulation et 404 */
.simple { max-width: 520px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.simple h1 { font-family: var(--titre); font-weight: 500; font-size: 32px; margin: 0 0 10px; }
.simple .marque + h1, .simple .marque + .coche { margin-top: 26px; }
.simple p { color: var(--texte-doux); }
.simple .carte { text-align: left; margin-top: 24px; }
.simple form { margin-top: 18px; }

/* Offres, menus spéciaux et soirées (« À l'affiche ») */
.affiche { margin: 0 0 26px; }
.affiche h2 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-2); font-weight: 600; }
/* Sur téléphone, les offres défilent de côté : le formulaire reste visible juste en dessous. */
.affiche-liste {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ligne-forte) transparent;
}
.affiche-liste .offre-carte { flex: 0 0 84%; scroll-snap-align: start; }
.affiche-liste .offre-carte:only-child { flex-basis: 100%; }
@media (min-width: 560px) {
  .affiche-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
}
.offre-carte {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px;
  border: 1px solid var(--ligne-forte);
  background: linear-gradient(160deg, rgba(226, 101, 44, 0.12), rgba(226, 101, 44, 0) 62%), var(--surface-2);
}
.offre-carte.type-evenement { border-color: var(--braise-sombre); }
.offre-carte h3 { margin: 0; font-family: var(--titre); font-weight: 500; font-size: 21px; line-height: 1.15; }
.offre-type { margin: 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--braise-clair); font-weight: 700; }
.offre-quand { margin: 0; font-size: 13px; color: var(--texte-doux); }
.offre-desc { margin: 2px 0 8px; font-size: 14px; color: var(--texte-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.offre-carte .bouton { margin-top: auto; align-self: flex-start; }

.choix-offre { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.choix-titre { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.pastilles .pastille.large { min-height: 40px; font-size: 14px; }

.avis-lien { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(226, 101, 44, 0.10); border: 1px solid var(--braise-sombre); font-size: 14px; color: var(--texte-doux); }
