/* =========================================================
   Gladius — feuille de style du site mobile
   Pensé téléphone d'abord : le site sera scanné au QR,
   donc consulté debout, à une main, souvent dehors.
   ========================================================= */

:root {
  --fond: #141414;
  --panneau: #1a1a1a;
  --panneau-clair: #212121;
  --or: #d4af37;
  --or-sombre: #6b5a2e;
  --texte: #f5f5f5;
  --texte-doux: #a8a8a8;
  --trait: #333;
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--serif);
  /* évite le rebond blanc en haut/bas sur iOS */
  overscroll-behavior-y: none;
}

/* Cibles tactiles : jamais moins de 44 px de haut */
a, button { -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2); }

.enveloppe {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Sélecteur de langue ---------- */
.langues {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  border: 1px solid var(--or-sombre);
  border-radius: 999px;
  overflow: hidden;
}

.langues button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--texte-doux);
  font-family: var(--serif);
  font-size: 14px;
  padding: 7px 14px;
  min-height: 34px;
  cursor: pointer;
}

.langues button[aria-pressed="true"] {
  background: var(--or);
  color: #1a1a1a;
  font-weight: bold;
}

/* Windows n'affiche pas les drapeaux emoji (il rend « TW »/« GB ») ;
   sur mobile, où le site est réellement consulté, ils s'affichent bien. */
.langues .drapeau {
  margin-right: 5px;
  font-size: 1.05em;
  line-height: 1;
}

/* ---------- Accueil ---------- */
/* Le bloc entier — enseigne, boutons, coordonnées — est centré
   verticalement d'un seul tenant, plutôt que l'enseigne en haut
   et les boutons repoussés en bas de l'écran. */
.accueil {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  /* plus de marge en bas qu'en haut : l'oeil percoit le bloc centre
     quand il est pose legerement au-dessus du milieu geometrique */
  padding: 46px 0 82px;
}

.enseigne {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 42px;
}

.enseigne h1 {
  font-size: clamp(3rem, 17vw, 4.6rem);
  line-height: 1;
  margin: 0;
  color: var(--or);
  letter-spacing: 0.05em;
  text-shadow: 0 0 34px rgba(212, 175, 55, 0.28);
}

.enseigne .sous {
  font-size: clamp(1.05rem, 5vw, 1.4rem);
  font-style: italic;
  margin-top: 12px;
  letter-spacing: 0.14em;
}

.filet-or {
  width: min(72%, 260px);
  height: 2px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--or) 22%, var(--or) 78%, transparent);
}

/* ---------- Les trois gros boutons ---------- */
.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 16px 20px;
  background: linear-gradient(145deg, var(--panneau-clair), var(--panneau));
  border: 1px solid var(--or-sombre);
  border-radius: 16px;
  color: var(--texte);
  text-decoration: none;
  transition: border-color .2s ease, transform .12s ease;
}

.action:active { transform: scale(0.985); border-color: var(--or); }

.action .pic {
  flex: none;
  width: 34px;
  height: 34px;
  stroke: var(--or);
  fill: none;
  stroke-width: 1.7;
}

.action .txt { display: flex; flex-direction: column; }
.action .titre { font-size: 1.28rem; font-weight: bold; letter-spacing: 0.02em; }
.action .desc { font-size: 0.82rem; color: var(--texte-doux); margin-top: 3px; }
.action .fleche { margin-left: auto; color: var(--or-sombre); font-size: 1.3rem; }

/* ---------- Pied de page ---------- */
.pied {
  text-align: center;
  margin-top: 26px;
  font-size: 0.86rem;
  color: var(--texte-doux);
  line-height: 1.85;
}

.pied a { color: var(--or); text-decoration: none; font-weight: bold; font-size: 1.05rem; }

/* ---------- En-tête des pages internes ---------- */
.barre {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
}

.barre .retour {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--trait);
  border-radius: 10px;
  color: var(--texte);
  text-decoration: none;
  font-size: 1.2rem;
}

.barre h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.barre .langues { position: static; margin-left: auto; }

/* ---------- Onglets du menu ---------- */
.onglets {
  position: sticky;
  top: 65px;
  z-index: 19;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--fond);
  border-bottom: 1px solid var(--trait);
  overflow-x: auto;
  scrollbar-width: none;
}

.onglets::-webkit-scrollbar { display: none; }

.onglet {
  appearance: none;
  flex: none;
  border: 1px solid var(--trait);
  background: transparent;
  color: var(--texte-doux);
  font-family: var(--serif);
  font-size: 0.95rem;
  padding: 9px 16px;
  min-height: 42px;
  border-radius: 999px;
  cursor: pointer;
}

.onglet[aria-selected="true"] {
  background: var(--or);
  border-color: var(--or);
  color: #1a1a1a;
  font-weight: bold;
}

/* ---------- Contenu du menu ---------- */
.formule {
  text-align: center;
  margin: 22px 0 6px;
}

.formule .prix-formule {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--or);
  border: 1px solid var(--or-sombre);
  border-radius: 999px;
  padding: 8px 22px;
}

.formule .horaire {
  display: block;
  font-size: 0.84rem;
  color: var(--texte-doux);
  margin-top: 10px;
}

.rubrique { margin: 30px 0 0; }

.rubrique h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--trait);
  font-size: 1.16rem;
  letter-spacing: 0.03em;
}

.rubrique h3 svg { width: 20px; height: 20px; stroke: var(--texte-doux); fill: none; stroke-width: 2; flex: none; }
/* flex:none + nowrap : sans ça « 擇一肉類 » se coupe sur deux lignes */
.rubrique h3 .choix {
  margin-left: auto;
  flex: none;
  white-space: nowrap;
  font-size: 0.74rem;
  color: var(--texte-doux);
  font-weight: normal;
}

/* Un plat = une ligne : photo à gauche, texte à droite.
   Plus lisible qu'une grille sur un écran étroit. */
.plat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plat:last-child { border-bottom: 0; }

.plat img {
  flex: none;
  width: 86px;
  height: 66px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.55));
}

/* Sans photo, on garde l'alignement du texte */
.plat .sans-photo { flex: none; width: 86px; }

.plat .infos { flex: 1; min-width: 0; }
.plat .nom-plat { font-size: 1.02rem; line-height: 1.3; }
.plat .nom-en { font-size: 0.78rem; color: var(--texte-doux); font-style: italic; margin-top: 3px; line-height: 1.35; }

.plat .tarif {
  flex: none;
  font-size: 1.02rem;
  font-weight: bold;
  color: var(--or);
  text-align: right;
  white-space: nowrap;
}

.plat .tarif.supplement {
  font-size: 0.82rem;
  border: 1px solid var(--or-sombre);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Liste simple, pour les boissons sans visuel */
.tarifs { width: 100%; border-collapse: collapse; margin-top: 10px; }
.tarifs td { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.96rem; vertical-align: top; }
.tarifs td.p { text-align: right; color: var(--or); font-weight: bold; white-space: nowrap; padding-left: 12px; }
.tarifs .en { display: block; font-size: 0.76rem; color: var(--texte-doux); font-style: italic; margin-top: 2px; }
.tarifs tr:last-child td { border-bottom: 0; }

.mention {
  margin: 34px 0 40px;
  padding-top: 16px;
  border-top: 1px solid var(--trait);
  text-align: center;
  font-size: 0.8rem;
  color: var(--texte-doux);
  line-height: 1.7;
}

/* ---------- Blocs des pages accès / réservation ---------- */
.bloc {
  margin: 24px 0;
  padding: 20px;
  background: var(--panneau);
  border: 1px solid var(--trait);
  border-radius: 16px;
}

.etiquette {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--or);
  margin-bottom: 12px;
}

/* Grande et sélectionnable : on montre l'écran au chauffeur */
.adresse-zh {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.6;
  font-weight: bold;
  user-select: all;
}

.adresse-en {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--texte-doux);
  font-style: italic;
}

.astuce {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--texte-doux);
  line-height: 1.6;
}

.horaires-tab { width: 100%; border-collapse: collapse; }
.horaires-tab td { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 0.96rem; vertical-align: top; }
.horaires-tab tr:last-child td { border-bottom: 0; }
.horaires-tab td.h { text-align: right; color: var(--or); font-weight: bold; white-space: nowrap; }

/* ---------- Formulaire de réservation ---------- */
.formulaire { margin: 22px 0 10px; }

.champ { margin-bottom: 22px; }

.champ label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--or);
  margin-bottom: 10px;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 14px 15px;
  background: var(--panneau);
  border: 1px solid var(--trait);
  border-radius: 12px;
  color: var(--texte);
  font-family: var(--serif);
  /* 16px minimum : en dessous, iOS zoome tout seul au focus */
  font-size: 16px;
  min-height: 52px;
}

.champ textarea { resize: vertical; line-height: 1.5; }

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--or);
}

.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }

/* Nombre de couverts : grille régulière de 5 par ligne, sinon le
   retour à la ligne laisse une deuxième rangée dépareillée. */
#couverts-choix {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

#couverts-choix .pastille { min-width: 0; padding: 0; }

.pastille {
  appearance: none;
  min-width: 52px;
  min-height: 52px;
  padding: 0 14px;
  background: var(--panneau);
  border: 1px solid var(--trait);
  border-radius: 12px;
  color: var(--texte);
  font-family: var(--serif);
  font-size: 1rem;
  cursor: pointer;
}

.pastille.large { flex: 1; min-width: 46%; font-size: 0.92rem; }

.pastille[aria-pressed="true"] {
  background: var(--or);
  border-color: var(--or);
  color: #1a1a1a;
  font-weight: bold;
}

/* Une pastille indisponible reste visible mais clairement éteinte */
.pastille.indispo,
.pastille:disabled {
  opacity: .35;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* ---------- Bandeau des dates ---------- */
.bande-dates {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bande-dates::-webkit-scrollbar { display: none; }

.date-case {
  appearance: none;
  flex: none;
  min-width: 62px;
  min-height: 74px;
  padding: 9px 8px;
  background: var(--panneau);
  border: 1px solid var(--trait);
  border-radius: 13px;
  color: var(--texte);
  font-family: var(--serif);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.15;
}

.date-case .j { font-size: 0.68rem; color: var(--texte-doux); letter-spacing: 0.04em; }
.date-case .n { font-size: 1.28rem; font-weight: bold; }
.date-case .m { font-size: 0.64rem; color: var(--texte-doux); }

.date-case[aria-pressed="true"] {
  background: var(--or);
  border-color: var(--or);
  color: #1a1a1a;
}
.date-case[aria-pressed="true"] .j,
.date-case[aria-pressed="true"] .m { color: #4a3c12; }

/* ---------- Créneaux horaires ---------- */
.creneaux {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.creneau {
  appearance: none;
  min-height: 52px;
  background: var(--panneau);
  border: 1px solid var(--trait);
  border-radius: 12px;
  color: var(--texte);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.creneau[aria-pressed="true"] {
  background: var(--or);
  border-color: var(--or);
  color: #1a1a1a;
  font-weight: bold;
}

/* Créneau complet : on le laisse visible, barré, pour montrer
   que le service existe mais qu'il n'y a plus de place. */
.creneau.indispo {
  opacity: .3;
  text-decoration: line-through;
  cursor: not-allowed;
}

.aide {
  margin: 9px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--texte-doux);
  min-height: 1px;
}

.aide.alerte { color: #e8a33d; }
.aide.centre { text-align: center; margin-top: 16px; }

.envoyer {
  width: 100%;
  min-height: 60px;
  margin-top: 6px;
  background: var(--or);
  border: 0;
  border-radius: 14px;
  color: #1a1a1a;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.envoyer:disabled { opacity: 0.6; }

.resultat {
  margin: 26px 0;
  padding: 20px;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.resultat.succes { background: rgba(79, 213, 138, .1); border: 1px solid #4fd58a; color: #8ce8b4; }
.resultat.erreur { background: rgba(255, 107, 107, .1); border: 1px solid #ff6b6b; color: #ff9b9b; }

/* Masque les blocs de la langue inactive */
[data-lang-only] { display: none; }
