/* =====================================================================
   Réservation des repas — compléments à repas-public.css (mêmes variables, même charte)
   ===================================================================== */

/* Lien d'évitement (clavier) */
.r-evitement { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--jaune); color: var(--bleu); padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.r-evitement:focus { left: 8px; }

.r-sous-titre { font-family: var(--titre); text-transform: uppercase; letter-spacing: .04em; color: var(--bleu); font-size: 1.375rem; line-height: 1; margin-top: 20px; }
.r-pile > * + * { margin-top: 12px; }
.r-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.r-petit { font-size: .8125rem; color: var(--texte-3); }
.r-gras { font-weight: 700; }
.r-mono { font-family: var(--mono); }
.r-centre { text-align: center; }
.r-lien { color: var(--bleu); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.r-liste-etapes { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.r-liste-etapes li { display: flex; gap: 10px; align-items: flex-start; text-align: left; }
.r-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bleu); color: #fff; font-family: var(--mono); font-weight: 700; font-size: .875rem; display: flex; align-items: center; justify-content: center; }

/* Prix à droite d'un choix */
.r-choix-corps { flex: 1; min-width: 0; }
.r-prix { flex-shrink: 0; font-family: var(--mono); font-weight: 700; font-size: .875rem; color: var(--bleu); white-space: nowrap; }
.r-choix:disabled, .r-choix[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.r-choix-desc + .r-choix-desc { margin-top: 2px; }
.r-reste { display: inline-block; font-family: var(--mono); font-size: .6875rem; font-weight: 700; color: var(--bleu); background: var(--sable); border-radius: 999px; padding: 1px 8px; margin-top: 4px; }

/* Choix d'une option (ex. boisson) : sous-grille sous l'option */
.r-sous-choix { margin: 8px 0 0 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.r-sous-choix .r-bouton-choix { min-height: 44px; padding: 6px 14px; }

/* Compteur − n + */
.r-compteur { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.r-compteur .r-bouton-choix { width: 54px; min-height: 54px; font-size: 1.5rem; line-height: 1; padding: 0; }
.r-compteur-n { min-width: 4.5rem; text-align: center; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--bleu); }
.r-compteur-n small { display: block; font-size: .6875rem; font-weight: 400; color: var(--texte-3); }

/* Panier */
.r-panier { margin-top: 12px; display: grid; gap: 10px; }
.r-panier .r-encadre { display: flex; gap: 10px; align-items: flex-start; }
.r-panier-corps { flex: 1; min-width: 0; }
.r-panier-titre { font-weight: 700; color: var(--bleu); }
.r-retirer { min-height: 44px; min-width: 44px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--gris-4); background: #fff; font-size: .75rem; font-weight: 700; color: var(--texte-2); flex-shrink: 0; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--gris-3); font-weight: 800; color: var(--bleu); font-size: 1.125rem; }
.r-total .r-mono { font-size: 1.25rem; }
.r-pastille-cc { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: var(--vert); color: #fff; padding: 0 5px; border-radius: 4px; vertical-align: 1px; }

/* Grand numéro de réservation */
.r-numero { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 1.75rem; color: var(--bleu); background: var(--sable); border-radius: 16px; padding: 6px 18px; letter-spacing: .05em; }
.r-ok-titre { color: #2d7a43; }

/* Champ avec bouton */
.r-champ-bouton { display: flex; gap: 8px; }
.r-champ-bouton input { flex: 1; min-width: 0; }
.r-champ-bouton .r-bouton { min-height: 50px; padding: 0 16px; }
.r-champ .r-aide { font-size: .75rem; color: var(--texte-3); }
.r-erreur { color: #b42b33; font-weight: 700; font-size: .875rem; }

/* Bouton « Ajouter » pleine largeur dans une carte */
.r-bouton--plein { width: 100%; margin-top: 16px; }

/* Mode intégré (iframe FestiCiné) : les barres se positionnent par script (dockBars) */
html.auto-height, html.auto-height body { height: auto !important; min-height: 0 !important; overflow: hidden; }
html.in-frame body::before { position: absolute; }
html.auto-height .r-entete { position: relative; }

/* Animation désactivée si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .r-animer { animation: none; }
  * { transition: none !important; }
}

@media (min-width: 640px) {
  .r-sous-titre { font-size: 1.75rem; }
  .r-numero { font-size: 2.25rem; }
}

/* Bouton principal toujours à droite sur écran large, même seul */
@media (min-width: 640px) {
  .r-dock-in .r-bouton:only-child { margin-left: auto; }
}
