/*
 * Réservation du studio podcast — modale plein écran avec parcours en 5 étapes.
 * Reprend les jetons de main.css (:root) : --nuit, --cyan, --rec, polices…
 * On ne définit que ce qui est propre à ce parcours.
 */

/* Modale */
.reserv-modale { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: stretch; justify-content: center; padding: 0; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.reserv-modale[hidden] { display: none !important; }
.reserv-modale.est-ouverte { opacity: 1; pointer-events: auto; }
.reserv-modale-fond { position: absolute; inset: 0; background: rgba(10, 14, 22, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.reserv-modale-contenu { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 24px auto; display: flex; flex-direction: column; overflow: hidden; align-self: center; max-height: calc(100svh - 48px); height: calc(100svh - 48px); animation: reserv-pop .25s cubic-bezier(.2,.9,.3,1.1); }
@keyframes reserv-pop { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.reserv-modale-fermer { background: transparent; border: 1px solid var(--trait); color: var(--doux); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; transition: border-color .15s, background .15s, color .15s; flex: none; margin-left: 10px; }
.reserv-modale-fermer:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(92,225,230,.08); }
.reserv-modale-fermer:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
/* Quand la modale est ouverte on fige la page derrière : overflow: hidden sur <html> ET <body>
   (sur iOS/Safari, bloquer seulement body ne suffit pas, le scroll touch fuit à travers),
   plus overscroll-behavior: contain pour couper les rebonds. */
html.a-reserv-ouverte, body.a-reserv-ouverte { overflow: hidden !important; overscroll-behavior: contain; }
html.a-reserv-ouverte { height: 100%; }
body.a-reserv-ouverte { height: 100%; touch-action: none; }
@media (max-width: 700px) {
  /* `svh` (small viewport height) tient compte des barres dynamiques des navigateurs mobiles
   * — sans ça, la barre d'actions en bas (« Je réserve mon créneau » / « Suivant ») passait
   * sous la barre nav de Safari iPhone et Chrome Android (demande du 2026-10-13). */
  .reserv-modale-contenu { margin: 0; max-height: 100svh; height: 100svh; max-width: 100%; padding-bottom: env(safe-area-inset-bottom); }
  .reserv-modale-fermer { width: 30px; height: 30px; font-size: 18px; }
}

/* Déclencheurs sur la page */
.reserv-ouvre { cursor: pointer; }

/* Bouton flottant permanent — apparaît dès qu'on dépasse le hero */
.reserv-fab { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--cyan); color: var(--nuit); border: none; border-radius: 999px; cursor: pointer; font-family: var(--f-titre); font-size: 14.5px; font-weight: 500; letter-spacing: .01em; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); transform: translateY(16px) scale(.95); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s cubic-bezier(.2,.9,.3,1.2); }
.reserv-fab.est-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.reserv-fab:hover { background: #4ad0d4; transform: translateY(-2px); }
.reserv-fab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.reserv-fab .voyant { width: 9px; height: 9px; background: var(--rec); border-radius: 50%; box-shadow: 0 0 10px var(--rec); animation: reserv-fab-pulse 2s infinite; flex: none; }
.reserv-fab-txt { line-height: 1; }
.reserv-fab-txt strong { font-weight: 600; }
.reserv-fab svg { width: 16px; height: 16px; }
@keyframes reserv-fab-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
body.a-reserv-ouverte .reserv-fab { opacity: 0; pointer-events: none; }
@media (max-width: 560px) {
  .reserv-fab { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 13.5px; }
  .reserv-fab-txt strong { display: block; margin-top: 1px; }
}

/* Palette de la modale remontée d'un cran : les surfaces internes (tête, conducteur, cartes de décor, options, récap)
   reprennent toutes --nuit-3 et --trait — on les redéfinit ici pour tout éclaircir en un endroit sans toucher au reste du site. */
.reserv-cadre { --nuit-2: #1b2030; --nuit-3: #262c3f; --trait: rgba(255,255,255,.12); background: linear-gradient(180deg, #2a3045 0%, #1d2231 100%); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.03); display: flex; flex-direction: column; max-height: 100%; }
.reserv-corps-scroll { overflow-y: auto; }
@media (max-width: 700px) { .reserv-cadre { border-radius: 0; height: 100svh; } }

.reserv-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--trait); background: var(--nuit-3); }
.reserv-barres { display: inline-flex; gap: 3px; align-items: end; height: 14px; }
.reserv-barres i { width: 3px; background: var(--cyan); border-radius: 1px; display: block; }
.reserv-barres i:nth-child(1) { height: 9px; }
.reserv-barres i:nth-child(2) { height: 14px; }
.reserv-barres i:nth-child(3) { height: 6px; }
.reserv-libelle { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--doux); flex: 1; }
.reserv-tc { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--doux); opacity: .8; }
.mono { font-family: var(--f-mono); }

/* Conducteur */
.reserv-conducteur { display: flex; gap: 0; align-items: center; padding: 16px 24px; background: var(--nuit-3); border-bottom: 1px solid var(--trait); overflow-x: auto; scrollbar-width: none; }
.reserv-conducteur::-webkit-scrollbar { display: none; }
.reserv-conducteur li { display: flex; align-items: center; gap: 10px; padding: 6px 14px; color: rgba(255,255,255,.35); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; position: relative; }
.reserv-conducteur li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 1px; background: rgba(255,255,255,.15); transform: translate(-100%, -50%); }
.reserv-conducteur li .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.reserv-conducteur li.est-fait { color: var(--texte); }
.reserv-conducteur li.est-fait .n { border-color: var(--cyan); color: var(--cyan); }
.reserv-conducteur li.est-actif { color: var(--texte); }
.reserv-conducteur li.est-actif .n { background: var(--cyan); color: var(--nuit); border-color: var(--cyan); }
.reserv-conducteur li.est-accessible { cursor: pointer; }
.reserv-conducteur li.est-accessible:hover { color: var(--cyan); }
.reserv-conducteur li.est-accessible:hover .n { border-color: var(--cyan); color: var(--cyan); background: rgba(92, 225, 230, .1); }
.reserv-conducteur li.est-actif { cursor: default; }
.reserv-conducteur li:not(.est-accessible):not(.est-actif) { cursor: not-allowed; opacity: .5; }
/* L'accusé de réception n'est pas une étape : on retire la barre d'étapes à l'écran 5. */
.reserv-modale.est-envoyee .reserv-conducteur { display: none; }

.reserv-corps { padding: 36px 40px; flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; min-height: 0; scrollbar-color: rgba(255,255,255,.2) transparent; scrollbar-width: thin; }
.reserv-corps::-webkit-scrollbar { width: 8px; }
.reserv-corps::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 4px; }
.reserv-corps::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }
@media (max-width: 700px) { .reserv-corps { padding: 24px 18px; } }
.reserv-ecran[hidden] { display: none !important; }
.reserv-seq { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.reserv-seq .num { font-family: var(--f-mono); color: var(--cyan); font-size: 12px; letter-spacing: .16em; }
.reserv-seq .lib { font-family: var(--f-mono); color: var(--doux); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.reserv-seq .lib::before { content: "// "; color: rgba(255,255,255,.3); }
.reserv-titre { font-family: var(--f-titre); font-size: clamp(24px, 3vw, 32px); line-height: 1.1; margin: 4px 0 8px; font-weight: 600; }
.reserv-titre em { color: var(--cyan); font-style: normal; background: linear-gradient(transparent 60%, rgba(92,225,230,.25) 60%); padding: 0 4px; }
.reserv-chapo { color: var(--doux); max-width: 640px; margin: 0 0 28px; }

/* Grille des décors */
.reserv-decors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.reserv-decor { position: relative; background: var(--nuit-3); border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .18s, transform .18s; display: block; }
.reserv-decor:hover { border-color: rgba(255,255,255,.25); transform: translateY(-2px); }
.reserv-decor input { position: absolute; opacity: 0; pointer-events: none; }
.reserv-decor input:focus-visible + .reserv-decor-in { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 12px; }
.reserv-decor.est-choisi { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.reserv-decor.est-choisi::after { content: "CHOISI"; position: absolute; top: 10px; right: 10px; background: var(--cyan); color: var(--nuit); font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; padding: 4px 8px; border-radius: 3px; font-weight: 600; z-index: 2; }
.reserv-decor-visuel { display: block; aspect-ratio: 16 / 10; background: #1a1a1a; border-bottom: 1px solid var(--trait); overflow: hidden; position: relative; }
.reserv-decor-visuel img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Bandeau mire — placeholder tant qu'aucune photo n'a été posée en BO. */
.reserv-mire { position: absolute; inset: 0; display: flex; }
.reserv-mire i { flex: 1; height: 100%; display: block; }
.reserv-mire i:nth-child(1) { background: var(--a); }
.reserv-mire i:nth-child(2) { background: var(--b); }
.reserv-mire i:nth-child(3) { background: var(--c); }
.reserv-mire-nom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: clamp(22px, 3.4vw, 36px); font-weight: 500; letter-spacing: .08em; color: var(--txt); text-transform: uppercase; mix-blend-mode: screen; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); z-index: 2; text-align: center; padding: 0 10px; }
.reserv-mire-rec { position: absolute; right: 12px; top: 10px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .18em; color: #fff; z-index: 2; display: flex; align-items: center; gap: 5px; }
.reserv-mire-rec::before { content: ""; width: 7px; height: 7px; background: var(--rec); border-radius: 50%; display: inline-block; box-shadow: 0 0 8px var(--rec); }
.reserv-mire-tc { position: absolute; left: 12px; bottom: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: rgba(255, 255, 255, .72); z-index: 2; }
.reserv-mire-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0, 0, 0, .18) 2px, rgba(0, 0, 0, .18) 3px); pointer-events: none; z-index: 1; opacity: .45; }
.reserv-decor-corps { display: block; padding: 14px 16px 16px; }
.reserv-decor-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.reserv-decor-tete b { font-family: var(--f-titre); font-size: 17px; font-weight: 600; }
.reserv-decor-tete i { font-family: var(--f-mono); font-style: normal; font-size: 11px; color: var(--doux); letter-spacing: .04em; }
.reserv-decor-desc { display: block; color: var(--doux); font-size: 13.5px; line-height: 1.5; }
.reserv-etiquette { display: inline-block; margin-top: 10px; padding: 3px 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border-radius: 3px; background: rgba(92,225,230,.12); color: var(--cyan); border: 1px solid rgba(92,225,230,.3); }

/* Options — deux colonnes avec récap collant à droite */
.reserv-deux { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .reserv-deux { grid-template-columns: 1fr; } .reserv-recap { position: static; } }
.reserv-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .reserv-options { grid-template-columns: 1fr; } }
.reserv-option { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--nuit-3); border: 1px solid var(--trait); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.reserv-option:hover { border-color: rgba(255,255,255,.25); }
.reserv-option input { position: absolute; opacity: 0; pointer-events: none; }
.reserv-option.est-choisi { border-color: var(--cyan); background: rgba(92,225,230,.06); }
/* Case à cocher centrée en hauteur sur la carte, pas collée au titre (ancienne
   version avec align-items: flex-start et margin-top: 2px). Les cartes avec
   une description de 3 lignes avaient la case en haut-gauche, orpheline. */
.reserv-option-case { width: 22px; height: 22px; border: 1.5px solid rgba(255,255,255,.3); border-radius: 5px; flex: none; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; align-self: center; }
.reserv-option.est-choisi .reserv-option-case { background: var(--cyan); border-color: var(--cyan); }
.reserv-option.est-choisi .reserv-option-case::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--nuit); border-bottom: 2px solid var(--nuit); transform: rotate(-45deg) translate(1px, -1px); }
.reserv-option-corps { flex: 1; min-width: 0; }
.reserv-option-tete { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 2px; }
.reserv-option-tete b { font-family: var(--f-titre); font-weight: 600; font-size: 15px; }
.reserv-option-tete i { font-family: var(--f-mono); font-style: normal; font-size: 12.5px; color: var(--cyan); white-space: nowrap; }
.reserv-option-desc { color: var(--doux); font-size: 13.5px; display: block; line-height: 1.5; }

/* Récap latéral — reprise à droite des étapes 2 et 4 */
.reserv-recap { background: var(--nuit-3); border: 1px solid var(--trait); border-radius: 12px; padding: 22px; position: sticky; top: 0; max-height: calc(100svh - 240px); overflow-y: auto; }
.reserv-recap h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); font-weight: 500; margin: 0 0 16px; }
.reserv-recap-lignes { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.reserv-recap-lignes > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--trait); gap: 12px; font-size: 14px; margin: 0; }
.reserv-recap-lignes > div:last-child { border-bottom: none; }
.reserv-recap-lignes dt { color: var(--doux); font-weight: 400; margin: 0; }
.reserv-recap-lignes dd { text-align: right; margin: 0; }
.reserv-recap-total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--cyan); }
.reserv-recap-total .ligne { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--doux); }
.reserv-recap-total .ligne.total { font-family: var(--f-titre); font-size: 22px; font-weight: 600; color: var(--texte); padding-top: 10px; }
.reserv-recap-total .ligne.total span:last-child { color: var(--cyan); }
.reserv-recap-tva { font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: .06em; margin: 6px 0 0; }

/* Calendrier */
.reserv-cal-tete { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 22px 0 20px; flex-wrap: wrap; }
.reserv-cal-nav { display: flex; gap: 8px; align-items: center; }
.reserv-cal-nav button { background: var(--nuit-3); border: 1px solid var(--trait); color: var(--texte); width: 36px; height: 36px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.reserv-cal-nav button:hover { border-color: var(--cyan); color: var(--cyan); }
.reserv-cal-nav button:disabled { opacity: .3; cursor: not-allowed; }
.reserv-mois { font-family: var(--f-titre); font-weight: 600; font-size: 18px; min-width: 200px; text-align: center; }
.reserv-legende { display: flex; gap: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--doux); text-transform: uppercase; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.reserv-legende li { display: inline-flex; align-items: center; gap: 6px; }
.reserv-legende .p { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.reserv-legende .libre { background: var(--nuit-3); border: 1px solid var(--cyan); }
.reserv-legende .pris { background: var(--trait); }
.reserv-legende .choix { background: var(--cyan); }

.reserv-calendrier { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.reserv-chargement { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--doux); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.reserv-colonne-tete { font-family: var(--f-mono); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; color: rgba(255,255,255,.35); text-align: center; padding: 6px 0 10px; }
.reserv-case { background: var(--nuit-3); border: 1px solid var(--trait); border-radius: 6px; padding: 10px 8px; min-height: 92px; font-size: 12px; position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.reserv-case.hors { opacity: .18; }
.reserv-case.libre { cursor: pointer; border-color: rgba(92,225,230,.25); }
.reserv-case.libre:hover { border-color: var(--cyan); }
.reserv-case.choix { border-color: var(--cyan); background: rgba(92,225,230,.12); }
.reserv-case .num { font-family: var(--f-mono); font-size: 14px; color: var(--doux); flex: 1; display: flex; align-items: center; justify-content: center; margin: 0; }
.reserv-case.libre .num, .reserv-case.choix .num { color: var(--texte); }
.reserv-case .pastille { width: 6px; height: 6px; border-radius: 50%; display: block; margin: 0 auto; }
.reserv-case .pastille.libre { background: var(--cyan); box-shadow: 0 0 6px rgba(92, 225, 230, .55); }
.reserv-case .pastille.plein { background: rgba(255, 255, 255, .22); }
.reserv-case:not(.libre):not(.plein):not(.hors) { cursor: default; }

/* Étape 2 — scène qui porte le mois et le panneau-jour en absolu par-dessus.
   Au clic sur une case libre, on ajoute .plonge sur la section et le panneau
   grandit depuis le point exact (--ox/--oy) jusqu'à couvrir toute l'étape. */
.reserv-ecran[data-ecran="2"] { position: relative; }
.reserv-scene { position: relative; isolation: isolate; }
.reserv-scene-cal { transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1), filter .3s cubic-bezier(.22,1,.36,1); transform-origin: var(--ox,50%) var(--oy,50%); }
.reserv-ecran.plonge .reserv-scene-cal { opacity: 0; transform: scale(.9); filter: blur(3px); pointer-events: none; }

/* En plongée, on fige le défilement de la modale et on étire la section
   pour que le panneau remplisse toute la zone disponible — le scroll devient
   interne à la liste des créneaux. On masque aussi le titre « Quand tournez-vous ? »
   et sa seq, redondants quand on est déjà dans le choix du jour. */
.reserv-corps:has(.reserv-ecran.plonge) { overflow: hidden; display: flex; flex-direction: column; }
.reserv-corps:has(.reserv-ecran.plonge) > .reserv-ecran.plonge { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.reserv-ecran.plonge > .reserv-seq,
.reserv-ecran.plonge > .reserv-titre,
.reserv-ecran.plonge > .reserv-chapo { display: none; }
.reserv-ecran.plonge .reserv-scene { flex: 1 1 auto; min-height: 0; }

.reserv-panneau-jour {
  position: absolute; inset: 0; background: var(--nuit-2);
  display: flex; flex-direction: column; padding: 10px 22px 14px;
  opacity: 0; pointer-events: none;
  transform-origin: var(--ox,50%) var(--oy,50%);
  transform: scale(.08);
  border-radius: 8px;
  transition: opacity .35s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1), border-radius .3s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.reserv-ecran.plonge .reserv-panneau-jour { opacity: 1; pointer-events: auto; transform: scale(1); border-radius: 0; }
.reserv-panneau-jour[hidden] { display: none !important; }

/* Barre haute du panneau-jour : retour à gauche, repères au centre, nav jours à droite. */
.reserv-pj-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 6px; flex-wrap: wrap; }
.reserv-pj-reperes { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin-right: auto; }
.reserv-pj-reperes b { color: var(--cyan); font-weight: 500; }

.reserv-retour {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--nuit-3); color: var(--texte);
  border: 1px solid var(--trait); border-radius: 999px;
  padding: 9px 18px 9px 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.reserv-retour:hover { border-color: var(--cyan); color: var(--cyan); }
.reserv-retour:hover .fl { transform: translateX(-2px); }
.reserv-retour .fl { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(92,225,230,.14); color: var(--cyan); font-size: 15px; transition: transform .18s cubic-bezier(.22,1,.36,1); }

/* Navigation entre jours (jour précédent / suivant), aussi branchée sur ← → */
.reserv-pj-nav { display: inline-flex; gap: 6px; }
.reserv-pj-nav-btn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--nuit-3); border: 1px solid var(--trait); color: var(--texte);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1;
  cursor: pointer; transition: border-color .15s, color .15s, transform .15s;
}
.reserv-pj-nav-btn:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.reserv-pj-nav-btn:disabled { opacity: .3; cursor: not-allowed; }
.reserv-pj-nav-btn[data-jour-prec]:hover:not(:disabled) span { transform: translateX(-2px); }
.reserv-pj-nav-btn[data-jour-suiv]:hover:not(:disabled) span { transform: translateX(2px); }
.reserv-pj-nav-btn span { transition: transform .18s cubic-bezier(.22,1,.36,1); display: inline-block; }

/* Les textes de date s'alignent EN HAUT du grand chiffre : « JEUDI » colle au sommet du « 15 »,
   « octobre 2026 » juste dessous, et la ligne de sous-titre finit la pile. */
.reserv-pj-date { display: flex; align-items: flex-start; gap: 20px; padding: 6px 0 14px; border-bottom: 1px solid var(--trait); margin-bottom: 10px; flex-wrap: wrap; }
.reserv-pj-chiffre { font-family: var(--f-titre); font-weight: 700; font-size: clamp(64px, 9vw, 108px); line-height: .82; letter-spacing: -.045em; color: var(--texte); font-variant-numeric: tabular-nums; display: inline-flex; align-items: flex-start; }
.reserv-pj-chiffre .ch { position: relative; display: inline-block; }
.reserv-pj-chiffre .ch::after { content: ""; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(92,225,230,.6); animation: reserv-pulse 2.4s ease-in-out infinite; }
@keyframes reserv-pulse { 0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; box-shadow: 0 0 10px rgba(92,225,230,.6); } 50% { transform: translateY(-50%) scale(1.35); opacity: .75; box-shadow: 0 0 16px rgba(92,225,230,.9); } }
.reserv-pj-textes { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.reserv-pj-jour { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin: 0; }
.reserv-pj-mois { font-family: var(--f-titre); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.01em; line-height: 1; margin: 0; }
.reserv-pj-sous { color: var(--doux); font-size: 12.5px; margin: 2px 0 0; }

/* Chrono : chaque créneau de la journée en pastille, dans l'ordre. */
.reserv-pj-chrono { display: flex; gap: 2px; height: 7px; margin: 2px 0 14px; }
.reserv-pj-chrono[hidden] { display: none; }
.reserv-pj-chrono span { flex: 1; min-width: 2px; border-radius: 2px; background: rgba(255,255,255,.08); transition: background .15s, transform .15s; }
.reserv-pj-chrono span.libre { background: rgba(92,225,230,.45); }
.reserv-pj-chrono span.libre:hover { background: var(--cyan); transform: scaleY(1.4); cursor: pointer; }
.reserv-pj-chrono span.pris { background: rgba(255,255,255,.12); }
.reserv-pj-chrono span.passe { background: rgba(255,255,255,.04); }
.reserv-pj-chrono span.est-choisi { background: var(--cyan); box-shadow: 0 0 10px rgba(92,225,230,.55); transform: scaleY(1.6); }

/* Zone scrollable si la journée a plus de créneaux que la hauteur dispo ne permet d'afficher.
   La barre de scroll suit la même palette discrète que .reserv-corps. */
.reserv-pj-corps { flex: 1 1 auto; min-height: 0; display: flex; overflow-y: auto; overflow-x: hidden; scrollbar-color: rgba(255,255,255,.2) transparent; scrollbar-width: thin; padding-right: 4px; margin-right: -4px; }
.reserv-pj-corps::-webkit-scrollbar { width: 6px; }
.reserv-pj-corps::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.reserv-pj-corps::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }

.reserv-groupes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.reserv-groupe { display: flex; flex-direction: column; min-width: 0; }
.reserv-groupe-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--trait); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); }
.reserv-groupe-tete b { color: var(--texte); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.reserv-groupe-tete svg { width: 13px; height: 13px; color: var(--cyan); flex: none; }
.reserv-groupe-tete .ct { font-variant-numeric: tabular-nums; color: var(--cyan); font-size: 10.5px; }
.reserv-groupe-vide .reserv-groupe-tete { opacity: .4; }
.reserv-groupe-vide .reserv-groupe-tete .ct { color: var(--doux); }

/* Carte créneau : bande colorée à gauche selon le moment, flèche au survol,
   coche quand choisi. */
.reserv-creneaux { display: flex; flex-direction: column; gap: 6px; }
.reserv-creneau { position: relative; padding: 11px 14px 11px 18px; background: var(--nuit-3); border: 1px solid var(--trait); border-radius: 8px; cursor: pointer; color: inherit; font: inherit; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow: hidden; transition: border-color .15s, transform .15s, background .15s, box-shadow .18s; }
.reserv-creneau::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(92,225,230,.3); transition: background .18s, width .18s; }
.reserv-creneau:hover:not(:disabled) { border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.reserv-creneau:hover:not(:disabled)::before { background: var(--cyan); }
.reserv-creneau.est-choisi { border-color: var(--cyan); background: rgba(92,225,230,.12); box-shadow: 0 6px 20px -14px rgba(92,225,230,.7); }
.reserv-creneau.est-choisi::before { background: var(--cyan); width: 4px; }
.reserv-creneau:disabled { opacity: .32; cursor: not-allowed; }
.reserv-creneau:disabled::before { background: rgba(255,255,255,.08); }
.reserv-creneau .h { font-family: var(--f-titre); font-weight: 600; font-size: 15px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; }
.reserv-creneau .h .arrow { color: var(--cyan); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s cubic-bezier(.22,1,.36,1); font-size: 14px; display: inline-block; }
.reserv-creneau:hover:not(:disabled) .h .arrow,
.reserv-creneau.est-choisi .h .arrow { opacity: 1; transform: translateX(0); }
.reserv-creneau .pri { font-family: var(--f-mono); font-size: 10.5px; color: var(--doux); letter-spacing: .06em; }
.reserv-creneau.est-choisi .pri { color: var(--cyan); }

/* Entrée en cascade des créneaux à l'ouverture de la plongée. */
.reserv-ecran.plonge .reserv-creneau { animation: reserv-slot-entre .4s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.14s + var(--i, 0) * 40ms); }
@keyframes reserv-slot-entre { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reserv-ecran.plonge .reserv-pj-chrono { animation: reserv-chrono-entre .5s cubic-bezier(.22,1,.36,1) both; animation-delay: .1s; }
@keyframes reserv-chrono-entre { from { opacity: 0; transform: scaleX(.6); transform-origin: left; } to { opacity: 1; transform: none; } }
.reserv-ecran.plonge .reserv-pj-chrono span { animation: reserv-chrono-pastille .4s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.18s + var(--i, 0) * 20ms); }
@keyframes reserv-chrono-pastille { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reserv-pj-chiffre .ch::after,
  .reserv-ecran.plonge .reserv-creneau,
  .reserv-ecran.plonge .reserv-pj-chrono,
  .reserv-ecran.plonge .reserv-pj-chrono span { animation: none !important; }
}

/* Formulaire */
.reserv-champs { display: block; }
.reserv-paire { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
@media (max-width: 560px) { .reserv-paire { grid-template-columns: 1fr; } }
.reserv-champ { display: block; margin-bottom: 12px; }
.reserv-champ > span:first-child { display: block; font-family: var(--f-mono); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; color: var(--doux); margin-bottom: 6px; }
.reserv-champ small { color: rgba(255,255,255,.35); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.reserv-champ input, .reserv-champ textarea { width: 100%; background: var(--nuit-3); border: 1px solid var(--trait); color: var(--texte); padding: 12px 14px; border-radius: 6px; font-family: inherit; font-size: 15px; transition: border-color .15s; }
.reserv-champ input:focus, .reserv-champ textarea:focus { outline: none; border-color: var(--cyan); }
.reserv-champ textarea { min-height: 90px; resize: vertical; }
/* Compteur du textarea « Précisions » : discret par défaut, bascule à l'orange
   à partir de 90 % du quota, rouge à 100 %. L'attribut maxlength garantit déjà
   l'arrêt côté navigateur ; le compteur est là pour que l'utilisateur voie où
   il en est avant d'arriver à la limite. */
.reserv-compteur { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--doux); text-align: right; text-transform: uppercase; transition: color .15s; }
.reserv-compteur.est-proche { color: #f5c445; }
.reserv-compteur.est-plein { color: #ff6b6b; }
.reserv-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--doux); cursor: pointer; }
.reserv-consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--cyan); }
.reserv-turnstile, .reserv-turnstile iframe { position: absolute; left: -10000px; top: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.reserv-leurre { position: absolute; left: -10000px; top: -10000px; }
.reserv-erreur { margin-top: 12px; padding: 12px 16px; background: rgba(255, 59, 48, .1); border: 1px solid rgba(255, 59, 48, .35); border-radius: 6px; color: #ff6b6b; font-size: 14px; }

/* Confirmation — variante « ticket de plateau »
   Un en-tête compact (voyant check + réf + titre côte à côte), un chapô
   mesuré, puis le TICKET : une bande horizontale à 4 colonnes séparées par
   des pointillés, avec deux « perforations » rondes qui chevauchent le filet,
   comme un billet de plateau à détacher. Les deux boutons d'après sont
   équitables en bas. */
.reserv-confirm { display: flex; flex-direction: column; align-items: center; padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px) 36px; max-width: 900px; margin: 0 auto; width: 100%; }
.reserv-confirm-tete { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 18px; max-width: 640px; }
.reserv-confirm-check { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--cyan); color: var(--encre, #0b0d14); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(92, 225, 230, .14), 0 0 0 14px rgba(92, 225, 230, .06); animation: reserv-check-pulse 2.6s ease-out infinite; }
.reserv-confirm-check svg { width: 28px; height: 28px; }
@keyframes reserv-check-pulse { 0% { box-shadow: 0 0 0 0 rgba(92,225,230,.35), 0 0 0 0 rgba(92,225,230,.18); } 100% { box-shadow: 0 0 0 14px rgba(92,225,230,0), 0 0 0 28px rgba(92,225,230,0); } }
.reserv-confirm-intro { min-width: 0; text-align: left; }
.reserv-ref { letter-spacing: .16em; color: var(--doux); font-size: 12px; text-transform: uppercase; margin: 0 0 6px; text-align: left; }
.reserv-ref span[data-ref] { color: var(--cyan); font-weight: 600; }
.reserv-confirm .reserv-titre { text-align: left; margin: 0; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.08; }
.reserv-confirm .reserv-chapo { text-align: center; max-width: 620px; color: rgba(238, 241, 246, .78); font-size: 15px; line-height: 1.55; margin: 0 auto 28px; }

/* Le ticket */
.reserv-ticket { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(7, 8, 13, .72); border: 1px solid rgba(92, 225, 230, .3); border-radius: 12px; padding: 22px 26px; margin-bottom: 26px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5); width: 100%; align-self: stretch; }
.reserv-ticket::before, .reserv-ticket::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--nuit-3, #171b28); border: 1px solid rgba(92, 225, 230, .25); }
.reserv-ticket::before { left: -10px; border-right-color: transparent; }
.reserv-ticket::after { right: -10px; border-left-color: transparent; }
.reserv-ticket-col { padding: 0 16px; border-right: 1px dashed rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.reserv-ticket-col:first-child { padding-left: 0; }
.reserv-ticket-col:last-child { padding-right: 0; border-right: 0; }
.reserv-ticket-col .lbl { font-size: 10px; color: var(--doux); font-family: var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.reserv-ticket-col .val { font-family: var(--f-titre); font-weight: 800; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.reserv-ticket-col .val em { font-style: normal; color: var(--cyan); }
.reserv-ticket-col .sub { font-size: 10px; color: var(--doux); font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.reserv-ticket-total .val { color: var(--cyan); font-size: clamp(18px, 1.7vw, 22px); }

/* Pied : les deux boutons d'après, équitables */
.reserv-apres { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; width: 100%; }
.reserv-apres .bouton { flex: 1 1 220px; justify-content: center; min-width: 220px; max-width: 360px; }

@media (max-width: 760px) {
  .reserv-ticket { grid-template-columns: 1fr 1fr; row-gap: 20px; column-gap: 0; padding: 22px 20px; }
  .reserv-ticket-col { padding: 0 14px; border-right: 1px dashed rgba(255, 255, 255, .14); }
  .reserv-ticket-col:nth-child(2) { padding-right: 0; border-right: 0; }
  .reserv-ticket-col:nth-child(3) { padding-left: 0; border-top: 1px dashed rgba(255, 255, 255, .14); padding-top: 20px; }
  .reserv-ticket-col:nth-child(4) { padding-right: 0; border-top: 1px dashed rgba(255, 255, 255, .14); padding-top: 20px; }
}
@media (max-width: 460px) {
  .reserv-confirm-tete { gap: 14px; }
  .reserv-confirm-check { width: 48px; height: 48px; }
  .reserv-confirm-check svg { width: 24px; height: 24px; }
  .reserv-apres .bouton { min-width: 0; width: 100%; max-width: none; }
}

/* Barre d'action bas */
.reserv-barre { display: flex; justify-content: space-between; align-items: center; padding: 20px 32px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--trait); background: var(--nuit-3); gap: 16px; flex-wrap: wrap; flex: none; }
.reserv-etat { flex: 1; text-align: center; font-size: 12px; letter-spacing: .06em; color: var(--doux); min-width: 200px; }
.reserv-etat[data-etat] { transition: color .15s; }
.reserv-barre .bouton { padding: 12px 22px; font-size: 14px; }
.reserv-barre .bouton[hidden] { display: none !important; }
.reserv-suite:disabled, .reserv-envoi:disabled { opacity: .35; cursor: not-allowed; }
.reserv-suite:disabled:hover, .reserv-envoi:disabled:hover { transform: none; }
.reserv-envoi.est-en-cours { opacity: .7; pointer-events: none; }
.reserv-envoi.est-en-cours .voyant { animation: reserv-pulse .8s infinite; }
@keyframes reserv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.reserv-info-rapide { color: var(--doux); font-size: 13px; letter-spacing: .04em; margin-top: 20px; }

.reserv-noscript { margin-top: 24px; padding: 20px; background: rgba(255, 200, 0, .08); border: 1px solid rgba(255, 200, 0, .3); border-radius: 8px; text-align: center; font-size: 15px; }
.reserv-noscript a { color: var(--cyan); }

@media (max-width: 700px) {
  .reserv-corps { padding: 24px 18px; }
  .reserv-tete { padding: 12px 18px; }
  .reserv-conducteur { padding: 12px 18px; }
  .reserv-conducteur li { padding: 4px 10px; font-size: 10px; }
  .reserv-conducteur li .lib { display: none; }
  .reserv-conducteur li + li::before { width: 12px; }
  .reserv-barre { padding: 16px 18px; }
  .reserv-etat { display: none; }
  /* Panneau jour : en mobile, on empile les trois moments pour éviter des colonnes trop étroites. */
  .reserv-groupes { grid-template-columns: 1fr; gap: 10px; }
  .reserv-pj-chiffre { font-size: clamp(56px, 16vw, 80px); }
  .reserv-pj-sous { display: none; }
  .reserv-panneau-jour { padding: 8px 12px 12px; }
}

/* Capacité : avertissement affiché à l'étape 4 si le nombre d'invités dépasse la configuration choisie */
.reserv-capacite-warning { margin: 10px 0 6px; padding: 10px 14px; background: rgba(245, 196, 69, .14); border: 1px solid rgba(245, 196, 69, .4); border-radius: 6px; color: #f5c445; font-size: 13.5px; }
.reserv-capacite-warning strong { color: #ffdc77; }

/* Créneau tenu par une autre session (verrou temporaire) : grisé, mais pas condamné.
   L'état « tenu » s'affiche désormais dans la mention de droite (.pri) de la carte. */
.reserv-creneau.est-tenu { opacity: .45; cursor: not-allowed; }
.jour-case .cs .c.tenu { color: #f5c445; text-decoration: none; }
