/* Hello Park Booking : formulaire de réservation, page « Ma réservation » et bloc compact.
 * Dessin repris de la maquette v9 de la refonte (docs/maquettes-v9/reservation.html).
 * Tout est préfixé .hpb. Les couleurs et polices viennent du thème de la refonte quand il est actif,
 * sinon des mêmes valeurs en repli (staging, autre thème). */
.hpb {
	--hpb-bg: var(--bg, #F6F3EC);
	--hpb-card: var(--card, #FFFFFF);
	--hpb-ink: var(--ink, #0B1220);
	--hpb-muted: var(--muted, #4D5769);
	--hpb-line: var(--line, rgb(11 18 32 / .10));
	--hpb-field: var(--field, #F3F1EA);
	--hpb-chip: var(--chip, #ECE9E0);
	--hpb-chip-hover: var(--chip-hover, #DFDBCE);
	--hpb-btn: var(--btn, #0B1220);
	--hpb-btn-hover: var(--btn-hover, #1E2A44);
	--hpb-on-btn: var(--on-btn, #FFFFFF);
	--hpb-teal: var(--teal, #30CFC2);
	--hpb-teal-ink: var(--teal-ink, #0B6F68);
	--hpb-mint: var(--t-mint, #DDF6EE);
	--hpb-sun: var(--t-sun, #FFEFC2);
	--hpb-on-tile: var(--on-tile, #0B1220);
	--hpb-on-tile-muted: var(--on-tile-muted, #3D4A5C);
	--hpb-err: var(--err, #B3261E);
	--hpb-shadow: var(--shadow, 0 1px 2px rgb(11 18 32 / .04), 0 18px 40px -22px rgb(11 18 32 / .28));
	--hpb-display: var(--f-display, "HPB Nunito", "Arial Rounded MT Bold", system-ui, sans-serif);
	--hpb-body: var(--f-body, "HPB Figtree", system-ui, -apple-system, "Segoe UI", sans-serif);
	--hpb-ease: var(--ease, cubic-bezier(.23, 1, .32, 1));
	--hpb-r-l: 28px;
	--hpb-r-m: 20px;
	position: relative;
	isolation: isolate;
	color: var(--hpb-ink);
	font-family: var(--hpb-body);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}
.hpb *, .hpb *::before, .hpb *::after { box-sizing: border-box; }
/* Le formulaire se reconstruit à chaque choix : sans cela, le navigateur perd son repère de défilement et la page saute. */
.hpb, .hpb * { overflow-anchor: none; }
/* Neutralise les styles génériques des thèmes sur nos éléments. */
.hpb button { text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.2; font-family: var(--hpb-display); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.hpb :where(p, h2, h3, dl, dd, ol, ul) { letter-spacing: normal; margin: 0; }
.hpb :where(h2, h3) { color: var(--hpb-ink); font-family: var(--hpb-display); text-transform: none; }
.hpb label { margin: 0; font-weight: inherit; }
.hpb a, .hpb a:visited { color: var(--hpb-teal-ink); font-weight: 700; text-decoration: none; transition: color 160ms; }
.hpb a:hover, .hpb a:focus { color: var(--hpb-ink); text-decoration: none; }
.hpb a:focus-visible { outline: 3px solid var(--hpb-teal); outline-offset: 2px; border-radius: 4px; }
.hpb ::selection { background: var(--hpb-teal); color: #0B1220; }
.hpb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hpb-nowrap { white-space: nowrap; }

/* Icônes */
.hpb-icon { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.hpb-icon svg { width: 100%; height: 100%; }

/* Structure */
.hpb-shell { max-width: 1180px; margin: 0 auto; }
.hpb-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; margin-top: 22px; }
@media (max-width: 900px) { .hpb-grid { grid-template-columns: minmax(0, 1fr); } }

/* Fil des étapes : la voiture avance jusqu'à l'étape en cours */
.hpb-trk { --i: 0; position: relative; list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.hpb-trk li { margin: 0; padding: 0; }
.hpb-trk li::marker { content: none; }
.hpb-trk button { width: 100%; display: grid; justify-items: center; align-content: start; gap: 6px; margin: 0; padding: 0 4px 30px; border: 0; background: none; color: var(--hpb-muted); font: 600 .86rem/1.2 var(--hpb-body); cursor: default; text-align: center; }
.hpb-trk button:hover { background: none; color: var(--hpb-muted); }
.hpb-trk__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hpb-chip); color: var(--hpb-ink); font: 800 .9rem var(--hpb-display); transition: background-color 240ms, color 240ms; }
.hpb-trk li.is-on button, .hpb-trk li.is-on button:hover { color: var(--hpb-ink); font-weight: 700; }
.hpb-trk li.is-on .hpb-trk__n { background: var(--hpb-btn); color: var(--hpb-on-btn); }
.hpb-trk li.is-done button, .hpb-trk li.is-done button:hover { color: var(--hpb-ink); }
.hpb-trk li.is-done .hpb-trk__n { background: var(--hpb-teal); color: #0B1220; }
.hpb-trk li.is-link button { cursor: pointer; }
.hpb-trk li.is-link button:hover .hpb-trk__l { color: var(--hpb-teal-ink); }
.hpb-trk button:focus-visible { outline: 3px solid var(--hpb-teal); outline-offset: 2px; border-radius: 10px; }
.hpb-trk__rail { position: absolute; left: 0; right: 0; bottom: 8px; height: 6px; border-radius: 6px; background: var(--hpb-chip); overflow: hidden; }
.hpb-trk__rail i { display: block; height: 100%; background: var(--hpb-teal); transform-origin: left; transform: scaleX(calc((var(--i) + .5) / 4)); transition: transform 700ms var(--hpb-ease); }
.hpb-trk__run { position: absolute; left: 0; bottom: -3px; width: 25%; height: 28px; pointer-events: none; transform: translateX(calc(var(--i) * 100%)); transition: transform 700ms var(--hpb-ease); }
.hpb-car { display: block; width: 52px; margin: 0 auto; }
.hpb-car svg { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .hpb-trk button { font-size: .78rem; } .hpb-xs-hide { display: none; } }

/* Carte du formulaire */
.hpb-form { container: hpbform / inline-size; background: var(--hpb-card); border-radius: var(--hpb-r-l); box-shadow: var(--hpb-shadow); padding: clamp(18px, 3vw, 32px); min-width: 0; }
.hpb-form.hpb-in { animation: hpbStepIn 320ms var(--hpb-ease); }
.hpb-form.hpb-in.hpb-back { animation-name: hpbStepBack; }
@keyframes hpbStepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes hpbStepBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.hpb-head { margin-bottom: 4px; }
.hpb-title { font: 900 1.5rem/1.2 var(--hpb-display); letter-spacing: -.01em; margin: 0; }
.hpb-title:focus { outline: 0; }
.hpb-sub { color: var(--hpb-muted); margin-top: 6px; }
.hpb-h3 { margin: 26px 0 12px; font: 800 1.05rem/1.3 var(--hpb-display); }

/* Étape 1 : départ et retour */
.hpb-dates { margin-top: 18px; }
.hpb-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hpb-leg { position: relative; background: var(--hpb-field); border-radius: var(--hpb-r-m); padding: 14px 14px 10px; min-width: 0; display: grid; gap: 2px; transition: box-shadow 160ms; }
.hpb-leg b { font: 800 .95rem var(--hpb-display); }
.hpb-leg small { color: var(--hpb-muted); font-size: .8rem; line-height: 1.3; min-height: 2.6em; }
/* Sans le calendrier maison (script bloqué) : champs du navigateur, discrets. */
.hpb-leg input, .hpb-leg select { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--hpb-ink); padding: 6px 0; font-family: var(--hpb-display); font-weight: 700; font-size: 1rem; }
.hpb-leg select { font-weight: 900; font-size: 1.6rem; }

/* Notes et erreurs */
.hpb-hint { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--hpb-sun); color: #0B1220; font-size: .92rem; font-weight: 600; }
.hpb-hint .hpb-icon { margin-top: 2px; }
.hpb-error { color: var(--hpb-err); font-weight: 600; font-size: .9rem; margin: 10px 2px 0; }
.hpb-ok { display: flex; gap: 8px; align-items: center; color: var(--hpb-teal-ink); font-weight: 600; font-size: .92rem; margin-top: 8px; }
.hpb-notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--hpb-r-m); font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
.hpb-notice .hpb-icon { margin-top: 2px; }
.hpb-notice--error { background: color-mix(in srgb, var(--hpb-err) 11%, var(--hpb-card)); color: var(--hpb-err); }
.hpb-notice--info { background: var(--hpb-sun); color: #0B1220; }
.hpb-notice--ok { background: var(--hpb-mint); color: var(--hpb-on-tile); }
.hpb-help { font-size: .92rem; color: var(--hpb-muted); }

/* Boutons */
.hpb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin: 0; padding: 0 26px; border: 0; border-radius: 999px;
	background: var(--hpb-chip); color: var(--hpb-ink); font: 800 1rem/1 var(--hpb-display); text-decoration: none; cursor: pointer;
	transition: background-color 160ms, transform 100ms ease-out;
}
.hpb-btn:active { transform: scale(.97); }
.hpb-btn:focus-visible { outline: 3px solid var(--hpb-teal); outline-offset: 3px; }
.hpb-btn--primary { background: var(--hpb-btn); color: var(--hpb-on-btn); }
.hpb-btn--primary:hover, .hpb-btn--primary:focus { background: var(--hpb-btn-hover); color: var(--hpb-on-btn); }
/* Un lien en forme de bouton (ex. appel du voiturier) garde le texte clair : la règle générale des liens ne doit pas l'écraser. */
.hpb a.hpb-btn--primary, .hpb a.hpb-btn--primary:visited, .hpb a.hpb-btn--primary:hover, .hpb a.hpb-btn--primary:focus { color: var(--hpb-on-btn); }
.hpb-btn--ghost:hover, .hpb-btn--ghost:focus { background: var(--hpb-chip-hover); color: var(--hpb-ink); }
.hpb-btn--block { width: 100%; }
.hpb-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.hpb-chev { display: inline-flex; width: 18px; height: 18px; transition: transform 200ms var(--hpb-ease); }
.hpb-chev svg { width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) { .hpb-btn:not([disabled]):hover .hpb-chev { transform: translateX(3px); } }
.hpb .hpb-linkbtn { border: 0; background: none; margin: 0; padding: 6px 0; font: 700 .95rem var(--hpb-body); color: var(--hpb-teal-ink); text-decoration: none; cursor: pointer; transition: color 160ms; }
.hpb .hpb-linkbtn:hover, .hpb .hpb-linkbtn:focus { background: none; color: var(--hpb-ink); text-decoration: none; }
.hpb .hpb-linkbtn:focus-visible { outline: 3px solid var(--hpb-teal); outline-offset: 2px; border-radius: 6px; }
.hpb-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.hpb-nav .hpb-next { margin-left: auto; }
.hpb-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: hpbSpin 700ms linear infinite; }
@keyframes hpbSpin { to { transform: rotate(360deg); } }

/* Étape 2 : rappel des dates, cartes de choix */
.hpb-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-radius: var(--hpb-r-m); background: var(--hpb-mint); color: var(--hpb-on-tile); font-weight: 600; margin-bottom: 22px; }
.hpb .hpb-band .hpb-linkbtn { color: var(--hpb-teal-ink); }
.hpb .hpb-band .hpb-linkbtn:hover { color: var(--hpb-on-tile); }
.hpb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hpb-opts.is-one { grid-template-columns: minmax(0, 1fr); }
.hpb-opt { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--hpb-r-m); background: var(--hpb-field); cursor: pointer; transition: transform 100ms ease-out, box-shadow 160ms, background-color 200ms; }
.hpb-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hpb-opt:active { transform: scale(.98); }
.hpb-opt b { font: 800 1rem/1.25 var(--hpb-display); padding-right: 28px; }
.hpb-opt__p { font-weight: 600; font-size: .92rem; color: var(--hpb-muted); font-variant-numeric: tabular-nums; }
.hpb-opt__d { font-size: .86rem; color: var(--hpb-muted); line-height: 1.4; }
.hpb-opt__art { display: block; width: var(--w, 56px); height: 40px; margin-bottom: 6px; }
.hpb-opt__art svg { width: 100%; height: 100%; }
.hpb-tick { position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: #0B6F68; color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform 220ms var(--hpb-ease); }
.hpb-tick svg { width: 14px; height: 14px; }
.hpb-opt:has(input:checked) { background: var(--hpb-mint); color: var(--hpb-on-tile); box-shadow: inset 0 0 0 2px #0B6F68; }
.hpb-opt:has(input:checked) b { color: var(--hpb-on-tile); }
.hpb-opt:has(input:checked) .hpb-opt__p, .hpb-opt:has(input:checked) .hpb-opt__d { color: var(--hpb-on-tile-muted); }
.hpb-opt:has(input:checked) .hpb-tick { transform: none; }
.hpb-opt:has(input:focus-visible) { outline: 3px solid var(--hpb-teal); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .hpb-opt:hover { box-shadow: inset 0 0 0 2px var(--hpb-line); } .hpb-opt:has(input:checked):hover { box-shadow: inset 0 0 0 2px #0B6F68; } }
/* Selon la largeur du formulaire (et non de l'écran) : cartes en lignes quand la colonne est étroite. */
@container hpbform (max-width: 540px) {
	.hpb-opts { grid-template-columns: minmax(0, 1fr); }
	.hpb-opt.is-row { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 14px; }
	.hpb-opt.is-row .hpb-opt__art { margin: 0; }
	.hpb-opt.is-row .hpb-opt__p { padding-right: 30px; }
}
.hpb-promo { margin-top: 22px; }
.hpb-promo summary { cursor: pointer; font-weight: 700; color: var(--hpb-teal-ink); list-style: none; padding: 6px 0; text-decoration: none; }
.hpb-promo summary:hover { color: var(--hpb-ink); }
.hpb-promo summary::-webkit-details-marker { display: none; }
.hpb-promo summary:focus-visible { outline: 3px solid var(--hpb-teal); outline-offset: 2px; border-radius: 6px; }
.hpb-promo__line { display: flex; gap: 10px; margin-top: 10px; }
.hpb-promo__line .hpb-btn { min-height: 52px; flex: none; }

/* Étape 3 : champs */
.hpb-frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
@container hpbform (max-width: 460px) { .hpb-frow { grid-template-columns: minmax(0, 1fr); } }
.hpb-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.hpb-field > label { font-weight: 600; font-size: .92rem; }
.hpb-field__hint { font-size: .82rem; color: var(--hpb-muted); }
.hpb-field .hpb-error { margin: 0; font-size: .86rem; }
.hpb .hpb-input {
	width: 100%; min-height: 52px; margin: 0; border: 0; border-radius: 14px; background: var(--hpb-field); color: var(--hpb-ink); padding: 0 16px;
	font: 500 1rem var(--hpb-body); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 160ms; outline: 0;
}
.hpb .hpb-input::placeholder { color: var(--hpb-muted); opacity: .7; }
.hpb .hpb-input:hover { box-shadow: inset 0 0 0 1.5px var(--hpb-line); }
.hpb .hpb-input:focus { box-shadow: inset 0 0 0 2px var(--hpb-teal); }
.hpb .hpb-input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--hpb-err); }
.hpb .hpb-input:disabled { opacity: .55; cursor: not-allowed; }
.hpb-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.hpb-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: #0B6F68; }
.hpb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Étape 4 : paiement */
.hpb-recapbox { margin-top: 18px; padding: 16px; border-radius: var(--hpb-r-m); background: var(--hpb-field); }
.hpb-recap { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.hpb-recap dt { color: var(--hpb-muted); }
.hpb-recap dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.hpb-pay { display: grid; gap: 14px; margin-top: 20px; }
.hpb-stripe { min-height: 120px; }
.hpb-cgv { font-size: .95rem; }
.hpb-secure { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--hpb-muted); }
.hpb-secure .hpb-icon { color: var(--hpb-teal-ink); margin-top: 1px; }
.hpb-test { font-size: .82rem; color: var(--hpb-muted); padding: 10px 14px; border-radius: 12px; border: 2px dashed var(--hpb-line); }
.hpb-pay .hpb-nav { margin-top: 6px; }

/* Billet (récapitulatif) */
.hpb-ticket { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); background: var(--hpb-card); border-radius: var(--hpb-r-l); box-shadow: var(--hpb-shadow); padding: 22px; display: grid; gap: 14px; min-width: 0; }
@media (max-width: 900px) { .hpb-ticket { position: static; } }
.hpb-ticket__title { font: 800 1.15rem/1.2 var(--hpb-display); margin: 0; }
.hpb-tk-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hpb-tk-legs small { display: block; color: var(--hpb-muted); font-size: .8rem; }
.hpb-tk-legs b { font: 800 1rem/1.25 var(--hpb-display); }
.hpb-tk-cut { position: relative; border-top: 2px dashed var(--hpb-line); margin: 2px -22px; }
.hpb-tk-cut::before, .hpb-tk-cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--hpb-bg); }
.hpb-tk-cut::before { left: -11px; }
.hpb-tk-cut::after { right: -11px; }
.hpb-tk-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.hpb-tk-lines li { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.hpb-tk-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.hpb-tk-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.hpb-tk-total b { font: 900 2rem/1 var(--hpb-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hpb-price { display: inline-flex; align-items: baseline; gap: 10px; }
.hpb-tk-total { flex-wrap: wrap; }
.hpb-tk-total > span:first-child { white-space: nowrap; }
.hpb-tk-total .hpb-price { margin-left: auto; }
.hpb-was { font: 600 1rem var(--hpb-body); color: var(--hpb-muted); text-decoration-thickness: 1.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hpb-tk-save { color: var(--hpb-teal-ink); font-weight: 600; }
.hpb-paysave { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--hpb-r-m); background: var(--hpb-mint); color: var(--hpb-on-tile); font-weight: 600; font-size: .95rem; }
.hpb-paysave .hpb-icon { color: var(--hpb-teal-ink); flex: none; margin-top: 2px; }
.hpb-tk-empty { color: var(--hpb-muted); font-size: .95rem; }
.hpb-vat { font-size: .82rem; color: var(--hpb-muted); margin-top: -8px; }
.hpb-oks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.hpb-oks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 0; color: var(--hpb-muted); font-size: .95rem; }
.hpb-ok-ico { display: block; width: 22px; height: 22px; color: var(--hpb-teal-ink); margin-top: 1px; }
.hpb-ok-ico svg { width: 100%; height: 100%; }
.hpb-ticket .hpb-notice { margin: 0; }

/* Barre du bas sur téléphone : total et bouton de l'étape */
.hpb-bar { display: none; }
@media (max-width: 900px) {
	.hpb-bar.is-visible {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
		background: var(--hpb-card); box-shadow: 0 -10px 30px -18px rgb(11 18 32 / .35); border-top: 1px solid var(--hpb-line);
		animation: hpbBarIn 300ms var(--hpb-ease);
	}
	body.hpb-has-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
	/* Un champ qui reçoit le focus ne doit pas se retrouver sous la barre. */
	html:has(body.hpb-has-bar) { scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
	/* Le bouton flottant de consentement se place au-dessus de la barre, sans recouvrir « Continuer ». */
	body.hpb-has-bar .cmplz-manage-consent { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
	.hpb-nav .hpb-next { display: none; }
	.hpb-nav:not(:has(.hpb-btn--ghost)) { display: none; }
}
@keyframes hpbBarIn { from { transform: translateY(100%); } to { transform: none; } }
.hpb-bar__sum { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.hpb-bar__sum:hover, .hpb-bar__sum:focus { background: none; color: inherit; }
.hpb-bar__sum small { font: 500 .8rem var(--hpb-body); color: var(--hpb-muted); }
.hpb-bar__sum .hpb-was { font-size: .9rem; }
.hpb-bar__sum b { font: 900 1.5rem/1 var(--hpb-display); font-variant-numeric: tabular-nums; color: var(--hpb-ink); }
.hpb-bar .hpb-btn { min-height: 52px; padding: 0 24px; }

/* Confirmation */
.hpb-done { max-width: 720px; display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(24px, 5vw, 48px); background: var(--hpb-card); border-radius: var(--hpb-r-l); box-shadow: var(--hpb-shadow); }
.hpb-seal { width: 72px; height: 72px; border-radius: 50%; background: var(--hpb-teal); color: #0B1220; display: grid; place-items: center; animation: hpbSeal 500ms var(--hpb-ease); }
.hpb-seal .hpb-icon { width: 36px; height: 36px; }
@keyframes hpbSeal { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.hpb-ref { font: 900 1.8rem var(--hpb-display); letter-spacing: .04em; padding: 10px 18px; border-radius: 14px; background: var(--hpb-field); user-select: all; }
.hpb-done .hpb-card { width: 100%; text-align: left; margin-top: 12px; }

/* Récapitulatif d'une réservation (confirmation et « Ma réservation ») */
.hpb-view { max-width: 720px; }
.hpb-card { background: var(--hpb-card); border-radius: var(--hpb-r-l); box-shadow: var(--hpb-shadow); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.hpb-done .hpb-card { box-shadow: none; padding: 0; background: none; }
.hpb-badge { display: inline-flex; gap: 8px; align-items: center; justify-self: start; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.hpb-badge--ok { background: var(--hpb-mint); color: var(--hpb-on-tile); }
.hpb-badge--wait { background: var(--hpb-sun); color: #0B1220; }
.hpb-lines { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: .95rem; padding-top: 14px; border-top: 2px dashed var(--hpb-line); }
.hpb-lines dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.hpb-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.hpb-total strong { font: 900 1.6rem/1 var(--hpb-display); font-variant-numeric: tabular-nums; }
.hpb-howto { display: grid; gap: 10px; padding: 18px; border-radius: var(--hpb-r-m); background: var(--hpb-mint); color: var(--hpb-on-tile); }
.hpb-howto h3 { font: 800 1.05rem var(--hpb-display); color: var(--hpb-on-tile); }
.hpb-howto ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--hpb-on-tile-muted); }
.hpb-phone, .hpb-contact { font-weight: 700; }

/* Bloc compact [hellopark_booking_mini] */
.hpb-mini { display: grid; gap: 12px; padding: 20px; background: var(--hpb-card); border-radius: var(--hpb-r-l); box-shadow: var(--hpb-shadow); }
.hpb-mini__group { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; align-items: end; padding: 14px; border-radius: var(--hpb-r-m); background: var(--hpb-field); }
.hpb-mini__title { grid-column: 1 / -1; font: 800 .95rem var(--hpb-display); }
.hpb-mini input, .hpb-mini select { width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: var(--hpb-card); color: var(--hpb-ink); padding: 0 12px; font: 600 1rem var(--hpb-body); }
@media (min-width: 900px) { .hpb-mini { grid-template-columns: 1fr 1fr auto; align-items: end; } }

@media (prefers-reduced-motion: reduce) {
	.hpb *, .hpb-bar { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Hauteur réservée avant que le script dessine le formulaire : évite que le pied de page saute (décalage de mise en page). */
.hpb[data-hpb-app="booking"]:has(> noscript:only-child) { min-height: 840px; }
@media (min-width: 861px) { .hpb[data-hpb-app="booking"]:has(> noscript:only-child) { min-height: 560px; } }

/* Offre de bienvenue (code réglé dans l'admin) : fenêtre plein écran à la demande de Sarah (2026-11-23).
   Voile sombre, carte centrée aux formes du formulaire, bandeau menthe avec la voiture du site.
   Montrée seulement après un geste du visiteur sur la page de réservation (jamais à l'arrivée). */
html.hpb-offer-open, html.hpb-offer-open body { overflow: hidden; }
.hpb.hpb-offer-wrap {
	position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; isolation: auto;
	padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
	background: rgb(11 18 32 / .55); opacity: 0; transition: opacity 240ms var(--hpb-ease);
	overflow-y: auto; overscroll-behavior: contain;
}
.hpb.hpb-offer-wrap.is-in { opacity: 1; }
.hpb .hpb-offer {
	position: relative; width: min(440px, 100%); overflow: hidden;
	background: var(--hpb-card); color: var(--hpb-ink); border-radius: var(--hpb-r-l);
	box-shadow: 0 30px 80px -30px rgb(11 18 32 / .6);
	transform: translateY(18px) scale(.98); transition: transform 320ms var(--hpb-ease);
}
.hpb.hpb-offer-wrap.is-in .hpb-offer { transform: none; }
.hpb .hpb-offer__art {
	position: relative; height: 112px; background: var(--hpb-mint); overflow: hidden;
}
.hpb .hpb-offer__art::before {
	content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
	background: repeating-linear-gradient(90deg, rgb(11 111 104 / .35) 0 14px, transparent 14px 26px);
}
.hpb .hpb-offer__car { position: absolute; left: 50%; top: 50%; width: 96px; margin: -24px 0 0 -48px; display: block; }
.hpb .hpb-offer__car svg { display: block; width: 100%; height: auto; }
.hpb.hpb-offer-wrap.is-in .hpb-offer__car { animation: hpbOfferCar 700ms var(--hpb-ease) both; }
@keyframes hpbOfferCar { from { transform: translateX(-160px); } to { transform: none; } }
.hpb .hpb-offer__body { padding: 26px 28px 24px; text-align: center; animation: hpbStepIn 220ms var(--hpb-ease); }
.hpb .hpb-offer__close {
	position: absolute; z-index: 1; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center;
	border: 0; border-radius: 999px; background: rgb(255 255 255 / .75); color: var(--hpb-ink); cursor: pointer;
}
.hpb .hpb-offer__close .hpb-icon, .hpb .hpb-offer__close svg { width: 20px; height: 20px; }
.hpb .hpb-offer__title { margin: 0 0 10px; font: 800 1.6rem/1.2 var(--hpb-display); color: var(--hpb-ink); text-wrap: balance; }
.hpb .hpb-offer__text { margin: 0 auto 22px; max-width: 34ch; color: var(--hpb-muted); font-size: 1rem; line-height: 1.6; }
.hpb .hpb-offer__code {
	display: inline-block; padding: 1px 9px; border-radius: 8px; background: var(--hpb-chip); color: var(--hpb-ink);
	font-weight: 800; letter-spacing: .03em; white-space: nowrap;
}
.hpb .hpb-offer__actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.hpb .hpb-offer__actions .hpb-btn { width: 100%; }
.hpb .hpb-offer__no {
	min-height: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer;
	font: 700 .95rem/1.2 var(--hpb-body); color: var(--hpb-muted);
}
.hpb .hpb-offer:focus { outline: none; }
.hpb .hpb-offer__close:focus-visible, .hpb .hpb-offer__no:focus-visible { outline: 3px solid var(--hpb-teal-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
	.hpb .hpb-offer__close:hover { background: #fff; }
	.hpb .hpb-offer__no:hover { color: var(--hpb-ink); }
}
@media (max-width: 480px) {
	.hpb .hpb-offer__art { height: 96px; }
	.hpb .hpb-offer__body { padding: 22px 20px 20px; }
	.hpb .hpb-offer__title { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
	.hpb.hpb-offer-wrap { transition: opacity 120ms linear; }
	.hpb .hpb-offer { transition: none; transform: none; }
	.hpb.hpb-offer-wrap.is-in .hpb-offer__car, .hpb .hpb-offer__body { animation: none; }
}
