/* Agenda de réservation de Pierre-Olivier (16/11/2026). S'ajoute à page.css (mêmes jetons), une définition par composant. */

.agenda .quest-barre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.agenda { max-width: 682px; padding: 28px 30px; scroll-margin-top: 16px; }   /* s'ajoute au scroll-padding-top de la page (80 px) ; cadre resserré : l'étape entière tient à l'écran quand on arrive par un bouton « Réserver » */
.agenda .quest-compte { margin-bottom: 14px; }
.agenda .etape h3 { margin-bottom: 6px; font-size: 1.2rem; }
.agenda .etape-aide { margin-bottom: 16px; font-size: .95rem; }
.agenda .choix { gap: 10px; margin-bottom: 16px; }
.agenda .choix label { padding: 11px 14px; font-size: .95rem; }
.agenda .question-k { margin: 4px 0 10px; }
.agenda-attente { color: var(--gris); text-align: center; padding: 20px 0; }

/* étape 2 : les soins */
.soins { display: grid; gap: 12px; margin-bottom: 22px; }
.soin { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "titre prix" "duree prix"; align-items: center; column-gap: 16px; padding: 16px 20px; border-radius: var(--r); border: 1.5px solid var(--ligne); background: var(--blanc); cursor: pointer; transition: transform var(--transition); }
.soin:hover { transform: translateY(-2px); }
.soin input { position: absolute; opacity: 0; pointer-events: none; font-size: 16px; }
.soin:has(input:checked) { border-color: var(--vert); background: var(--ciel); box-shadow: inset 0 0 0 1px var(--vert); }
.soin-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soin-titre { grid-area: titre; font-weight: 800; color: var(--encre); line-height: 1.3; }
.soin-duree { grid-area: duree; color: var(--gris); font-size: .95rem; }
.soin-prix { grid-area: prix; font-size: 1.45rem; font-weight: 900; color: var(--orange); white-space: nowrap; }

/* étape 3 : les jours restent fixes ; toucher un jour ouvre une petite fenêtre avec ses heures (Julien, 16/11) */
.jours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.jour { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--ligne); background: var(--blanc); font: inherit; color: var(--encre); text-align: left; cursor: pointer; transition: transform var(--transition); }
.jour:hover { border-color: var(--orange); transform: translateY(-2px); }
.jour--choisi { border-color: var(--orange); background: var(--orange); color: var(--blanc); }
.jour:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.jour-ic { width: 20px; height: 20px; flex: none; color: var(--orange); }
.jour-txt { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.jour-nom { font-weight: 700; white-space: nowrap; }
.jour-nom b { font-size: 1.15rem; font-weight: 900; color: var(--vert-fonce); }
.jour-nb { color: var(--gris); font-size: .85rem; }
.jour--choisi .jour-ic, .jour--choisi .jour-nom b, .jour--choisi .jour-nb { color: var(--blanc); }
.jour-choix { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 28px; margin-bottom: 16px; color: var(--gris); text-align: center; }
.jour-choix b { color: var(--encre); }
.jour-choix .ic { width: 18px; height: 18px; flex: none; color: var(--orange); }
.heures { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* la petite fenêtre des heures (modale JBC : croix fixe, fond, Échap) */
.rdv-pop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rdv-pop[hidden] { display: none; }
.fond-univers:has(.rdv-pop:not([hidden])) { z-index: 130; }   /* la section isole ses calques (isolation: isolate) : sans ça, les blocs suivants passaient PAR-DESSUS la fenêtre */
.rdv-pop-fond { position: absolute; inset: 0; background: rgba(11, 51, 40, .5); }
.rdv-pop-boite { position: relative; width: min(360px, 100%); padding: 48px 24px 26px; border-radius: var(--r-lg); background: var(--blanc); box-shadow: var(--ombre-lg); text-align: center; }
.rdv-pop-x { position: absolute; top: 10px; right: 10px; display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--ciel); color: var(--vert-fonce); cursor: pointer; }
.rdv-pop-x .ic { width: 18px; height: 18px; }
.rdv-pop-k { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; font-size: .8rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--orange); }
.rdv-pop-k .ic { width: 16px; height: 16px; }
.rdv-pop-titre { margin-bottom: 18px; font-size: 1.3rem; font-weight: 900; color: var(--encre); }
.heure { position: relative; cursor: pointer; }
.heure input { position: absolute; opacity: 0; pointer-events: none; font-size: 16px; }
.heure span { display: inline-block; min-width: 72px; padding: 8px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--vert); color: var(--vert-fonce); font-weight: 800; text-align: center; transition: transform var(--transition); }
.heure:hover span { transform: translateY(-2px); border-color: var(--orange); color: var(--orange); }
.heure input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--blanc); }
.heure input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.agenda-plus { display: flex; margin: 0 auto 22px; }

/* étape 4 et fin : le récapitulatif */
.recap { margin-bottom: 18px; padding: 14px 18px; border-left: 4px solid var(--orange); border-radius: var(--r-sm); background: var(--ciel); text-align: left; }
.recap-quand { font-size: 1.15rem; font-weight: 900; color: var(--encre); }
.recap p:not(.recap-quand) { color: var(--texte); }
.quest-fin .recap { max-width: 440px; margin: 0 auto 18px; }
.agenda-fin-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.agenda-fin-btns .btn { margin-bottom: 0; }
.agenda-paiement { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; color: var(--gris); font-size: .95rem; }
.agenda-paiement .ic { width: 18px; height: 18px; flex: none; }

@media (max-width: 640px) {
    .agenda { padding: 20px 14px; scroll-margin-top: 8px; }
    .jours { grid-template-columns: minmax(0, 1fr); }
    .soin { padding: 14px 16px; }
    .soin-prix { font-size: 1.25rem; }
    .recap-quand { font-size: 1.02rem; }
    .agenda .quest-nav { gap: 8px; }
    .agenda .quest-nav .btn { min-width: 0; padding: 15px 14px; }
    .agenda #agenda-retour { flex: none; }
}
