/* Module de réservation : reprend les couleurs et formes de la maquette (thème BébéParent(hèse)). */
.bpr { --bpr-sel: #5A6A4B; --bpr-sel-fond: #EEF0E5; --bpr-ligne: #E7DFD3; --bpr-gris: #69655A; --bpr-r: 14px; }
.bpr *, .bpr *::before, .bpr *::after { box-sizing: border-box; }
.bpr-carte { background: #fff; border: 1px solid var(--bpr-ligne); border-radius: 36px; padding: 30px; }
.bpr-etroit { max-width: 720px; margin-inline: auto; }
.bpr-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; }
.bpr h3 { font-family: var(--wp--preset--font-family--figtree); font-size: 15px; font-weight: 700; color: var(--bpr-gris); letter-spacing: 0; margin: 0 0 12px; }
.bpr-carte > h3 { font-family: var(--wp--preset--font-family--fraunces); font-size: 26px; font-weight: 500; color: var(--wp--preset--color--titre); margin-bottom: 16px; }
.bpr-etape + .bpr-etape { margin-top: 24px; }
.bpr-test { background: #FBEAE0; color: #6E4533; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
.bpr-chargement { color: var(--bpr-gris); text-align: center; padding: 40px 0; }

.bpr button { font: inherit; cursor: pointer; }
.bpr button:not(.wp-element-button) { color: inherit; }
.bpr button:focus-visible, .bpr input:focus-visible, .bpr a:focus-visible { outline: 3px solid var(--bpr-sel); outline-offset: 2px; }
.bpr-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.bpr-acc button { min-height: 44px; padding: 0 15px; border-radius: 999px; border: 2px solid var(--bpr-ligne); background: transparent; font-weight: 600; font-size: 15px; }
.bpr-acc button[aria-pressed="true"] { background: var(--bpr-sel); border-color: var(--bpr-sel); color: #fff; }
.bpr-formules { display: flex; flex-direction: column; gap: 10px; }
.bpr-opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px 16px; border-radius: var(--bpr-r); border: 2px solid var(--bpr-ligne); background: transparent; min-height: 48px; }
.bpr-opt small { display: block; color: var(--bpr-gris); font-size: 14px; }
.bpr-opt b { white-space: nowrap; }
.bpr-opt[aria-pressed="true"] { border-color: var(--bpr-sel); background: var(--bpr-sel-fond); }

.bpr label { display: block; font-weight: 600; font-size: 15px; margin: 12px 0 6px; }
.bpr input[type="text"], .bpr input[type="email"], .bpr input[type="tel"] { width: 100%; font: inherit; color: var(--wp--preset--color--encre); background: #fff; border: 1.5px solid #8E897B; border-radius: var(--bpr-r); padding: 12px 14px; min-height: 50px; }
.bpr-sugg { display: flex; flex-direction: column; margin-top: 6px; border-radius: var(--bpr-r); overflow: hidden; }
.bpr-sugg button { text-align: left; background: #fff; border: 1px solid var(--bpr-ligne); border-top-width: 0; padding: 11px 14px; min-height: 44px; }
.bpr-sugg button:first-child { border-top-width: 1px; border-radius: var(--bpr-r) var(--bpr-r) 0 0; }
.bpr-sugg button:last-child { border-radius: 0 0 var(--bpr-r) var(--bpr-r); }
.bpr-sugg button:hover { background: var(--bpr-sel-fond); }
/* Focus clavier : contour à l'intérieur (l'encadré coupe ce qui dépasse) */
.bpr-sugg button:focus-visible { outline-offset: -3px; }
.bpr-msg { margin: 10px 0 0; padding: 12px 14px; border-radius: var(--bpr-r); font-size: 15px; line-height: 1.45; }
.bpr-ok { background: #EEF0E5; color: #3F4935; }
.bpr-plus { background: #FBEAE0; color: #6E4533; }
.bpr-non { background: #F6E3DE; color: #7A2E20; }

.bpr-mois { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bpr-mois-nom { font-family: var(--wp--preset--font-family--fraunces); font-size: 22px; color: var(--wp--preset--color--titre); margin: 0; text-transform: capitalize; }
.bpr-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bpr-ligne); background: #fff; font-size: 20px; line-height: 1; }
.bpr-nav[disabled] { opacity: .35; cursor: default; }
.bpr-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.bpr-dow { font-size: 14px; font-weight: 700; color: var(--bpr-gris); padding-bottom: 4px; }
.bpr-off { height: 44px; display: grid; place-items: center; color: #767268; }
.bpr-cal button { height: 44px; border-radius: var(--bpr-r); border: 1px solid var(--bpr-ligne); background: transparent; font-weight: 600; padding: 0; }
.bpr-cal button[aria-pressed="true"], .bpr-slot[aria-pressed="true"] { background: var(--bpr-sel); border-color: var(--bpr-sel); color: #fff; }
.bpr-jour-choisi { font-weight: 600; margin: 18px 0 10px; }
.bpr-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.bpr-slot { height: 46px; border-radius: var(--bpr-r); border: 1px solid var(--bpr-ligne); background: transparent; font-weight: 600; }

.bpr-liste { list-style: none; padding: 0; margin: 4px 0 10px; }
.bpr-liste li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; border-bottom: 1px solid var(--bpr-ligne); margin: 0; }
.bpr-liste li span:last-child { text-align: right; overflow-wrap: anywhere; }
/* Montants du récapitulatif : jamais coupés. Les fiches (bpr-infos : prestation, lieu, e-mail…) passent à la ligne. */
.bpr-liste:not(.bpr-infos) li:not(.bpr-quand) span:last-child:not(:first-child) { white-space: nowrap; overflow-wrap: normal; }
.bpr-infos li span:first-child { color: var(--bpr-gris); flex: none; }
.bpr-infos li span:last-child { min-width: 0; }
@media (max-width: 520px) {
	.bpr-infos li { flex-direction: column; gap: 2px; }
	.bpr-infos li span:first-child { font-size: 13.5px; }
	.bpr-infos li span:last-child { text-align: left; }
}
.bpr-liste .bpr-quand { font-weight: 600; }
.bpr-liste .bpr-total { font-weight: 700; font-size: 16.5px; border-bottom: 0; }
.bpr-fin { font-size: 14px; color: var(--bpr-gris); margin: 6px 0; }
.bpr-chk { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; line-height: 1.45; }
.bpr-chk input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--bpr-sel); }
.bpr-chk[hidden] { display: none !important; }
.bpr-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bpr-payer, .bpr-valider, .bpr-continuer { width: 100%; margin-top: 14px; border: 0; }
.bpr-payer[disabled], .bpr-valider[disabled] { opacity: .5; cursor: default; }

/* Deux étapes dans le même encadré */
.bpr [hidden] { display: none !important; }
.bpr-progression { list-style: none; display: flex; gap: 8px 22px; flex-wrap: wrap; margin: 0 0 22px; padding: 0 0 16px; border-bottom: 1px solid var(--bpr-ligne); }
.bpr-progression li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; color: var(--bpr-gris); }
.bpr-progression span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bpr-ligne); font-size: 13px; }
.bpr-progression [aria-current] { color: var(--wp--preset--color--titre); }
.bpr-progression [aria-current] span { background: var(--bpr-sel); border-color: var(--bpr-sel); color: #fff; }
.bpr-t-coord { margin-top: 22px !important; }
.bpr-e2-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; max-width: 900px; margin-inline: auto; }
.bpr-e2-grille > .bpr-etape { margin-top: 0; }
.bpr-t-e2:focus { outline: none; }
/* Titre ou message d'un écran de résultat : reçoit le focus par script (lecteurs d'écran), sans contour */
.bpr h3[tabindex="-1"]:focus, .bpr .bpr-msg[tabindex="-1"]:focus { outline: none; }
.bpr-infos { margin-top: 14px; }
.bpr-modifier { margin-top: 8px; }
.bpr-e2 .bpr-cb { margin-top: 0; }
.bpr-erreur { color: #7A2E20; font-weight: 600; font-size: 14.5px; margin: 10px 0 0; }
.bpr-erreur:empty { display: none; }
.bpr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.bpr-secondaire { min-height: 50px; padding: 0 22px; border-radius: 999px; border: 2px solid #A6AB90; background: transparent; color: var(--wp--preset--color--titre); font-weight: 600; }
.bpr-zone-action .bpr-calendrier { margin-top: 18px; }

@media (max-width: 1000px) { .bpr-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .bpr-grille > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 700px) {
	.bpr-grille { grid-template-columns: minmax(0, 1fr); }
	.bpr-grille > div:last-child { grid-column: auto; }
	.bpr-e2-grille { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.bpr-e2-grille > section:last-child { border-top: 1px solid var(--bpr-ligne); padding-top: 18px; }
	.bpr-carte { padding: 20px; border-radius: 24px; }
}

/* Carte bancaire (champs sécurisés Mollie dans l'encadré) */
.bpr-cb { border: 1px solid var(--bpr-ligne); border-radius: var(--bpr-r); padding: 12px 14px 6px; margin: 16px 0 6px; }
.bpr-cb[hidden] { display: none; }
.bpr-cb legend { font-weight: 700; font-size: 15px; padding: 0 6px; }
.bpr-cb-lib { font-weight: 600; font-size: 14px; margin: 8px 0 4px; }
.bpr-mollie { background: #fff; border: 1.5px solid #8E897B; border-radius: var(--bpr-r); padding: 13px 14px; min-height: 50px; }
.bpr-mollie.has-focus { border-color: var(--bpr-sel); box-shadow: 0 0 0 2px rgba(90, 106, 75, .25); }
.bpr-mollie.is-invalid { border-color: #7A2E20; }
.bpr-cb-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.bpr-cb-err { color: #7A2E20; font-size: 13px; margin: 3px 0 0; }
.bpr-cb-err:empty { display: none; }
.bpr-cb-note { margin-top: 10px; }

/* Chargements : formes grises à la place du contenu, rond d'attente, apparitions douces.
   Tout mouvement est coupé si la personne a demandé à réduire les animations. */
.bpr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bpr-squelette { display: block; }
.bpr-squelette > span:not(.bpr-sr) { display: block; border-radius: var(--bpr-r); background: #EFEAE1; }
.bpr-sq-titre { height: 40px; margin: 0 22% 14px; }
.bpr-sq-cal { height: 262px; background: repeating-linear-gradient(90deg, #EFEAE1 0 calc(100% / 7 - 5px), transparent calc(100% / 7 - 5px) calc(100% / 7)) , #fff !important; -webkit-mask: repeating-linear-gradient(180deg, #000 0 44px, transparent 44px 49px); mask: repeating-linear-gradient(180deg, #000 0 44px, transparent 44px 49px); }
.bpr-sq-heures { height: 100px; margin-top: 18px; background: repeating-linear-gradient(90deg, #EFEAE1 0 88px, transparent 88px 96px), #fff !important; -webkit-mask: repeating-linear-gradient(180deg, #000 0 46px, transparent 46px 54px); mask: repeating-linear-gradient(180deg, #000 0 46px, transparent 46px 54px); }
.bpr-attente { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.bpr-rond { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid var(--bpr-sel-fond); border-top-color: var(--bpr-sel); }
.bpr-chargement::before { content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid #E7DFD3; border-top-color: #5A6A4B; }
@media (prefers-reduced-motion: no-preference) {
	@keyframes bpr-pouls { 50% { opacity: .45; } }
	@keyframes bpr-tour { to { transform: rotate(360deg); } }
	@keyframes bpr-entree { from { opacity: 0; transform: translateY(8px); } }
	.bpr-squelette { animation: bpr-pouls 1.4s ease-in-out infinite; }
	.bpr-rond, .bpr-chargement::before { animation: bpr-tour .8s linear infinite; }
	.bpr-e1:not([hidden]), .bpr-e2:not([hidden]), .bpr-etroit, .bpr-heures > *, .bpr-dep > * { animation: bpr-entree .25s ease-out both; }
	.bpr button { transition: background-color .15s, border-color .15s, color .15s; }
}
.bpr-lien-bouton { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
