.apb {
	--apb-ink: #161616;
	--apb-cream: #FBF7F0;
	--apb-paper: #ffffff;
	--apb-sand: #f3ede2;
	--apb-line: #e6ddcc;
	--apb-gold: #B8924A;
	--apb-gold-soft: #f1e6cf;
	--apb-coral: #E2725B;
	--apb-muted: #6d6658;
	--apb-ok: #2f7a52;
	--apb-bad: #b8442f;
	--apb-radius: 14px;
	--apb-head: var(--apb-font-head, inherit);
	color: var(--apb-ink);
	font-size: 16px;
	line-height: 1.6;
	box-sizing: border-box;
}
.apb *, .apb *::before, .apb *::after { box-sizing: inherit; }
.apb h2, .apb h3, .apb h4 { font-family: var(--apb-head); color: var(--apb-ink); margin: 0 0 .4em; line-height: 1.15; }
.apb h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: .02em; }
.apb h3 { font-size: 1.25rem; letter-spacing: .03em; }
.apb-lead { color: var(--apb-muted); margin: 0 0 1.6rem; font-size: 1.05rem; }
.apb-loading { padding: 3rem 1rem; text-align: center; color: var(--apb-muted); }
.apb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Buttons */
.apb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	background: var(--apb-ink); color: var(--apb-cream) !important; border: 1.5px solid var(--apb-ink);
	border-radius: 999px; padding: .85em 1.7em; font: inherit; font-weight: 500; letter-spacing: .02em;
	text-decoration: none !important; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, opacity .15s;
}
.apb-btn:hover { transform: translateY(-1px); background: #000; }
.apb-btn:focus-visible { outline: 3px solid var(--apb-gold); outline-offset: 3px; }
.apb-btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; }
.apb-btn--ghost { background: transparent; color: var(--apb-ink) !important; }
.apb-btn--ghost:hover { background: var(--apb-ink); color: var(--apb-cream) !important; }
.apb-btn--text { background: none; border-color: transparent; color: var(--apb-muted) !important; padding-left: 0; padding-right: 0; }
.apb-btn--text:hover { background: none; color: var(--apb-ink) !important; transform: none; }
.apb-btn--big { padding: 1em 2.2em; font-size: 1.05rem; }

/* Steps */
.apb-steps { list-style: none; display: flex; gap: .4rem; margin: 0 0 2rem; padding: 0; counter-reset: s; overflow-x: auto; scrollbar-width: none; }
.apb-steps::-webkit-scrollbar { display: none; }
.apb-steps li { flex: 1 1 0; min-width: 0; }
.apb-steps li > span, .apb-steps li > button {
	display: flex; align-items: center; gap: .55rem; width: 100%; padding: .7rem .2rem; border: 0; border-top: 3px solid var(--apb-line);
	background: none; font: inherit; color: var(--apb-muted); text-align: left; cursor: default;
}
.apb-steps li > button { cursor: pointer; }
.apb-steps li.is-done > * { border-top-color: var(--apb-gold); color: var(--apb-ink); }
.apb-steps li.is-current > * { border-top-color: var(--apb-ink); color: var(--apb-ink); font-weight: 600; }
.apb-steps__n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; flex: 0 0 auto; border-radius: 50%; font-size: .85rem; background: var(--apb-sand); }
.apb-steps li.is-current .apb-steps__n { background: var(--apb-ink); color: var(--apb-cream); }
.apb-steps li.is-done .apb-steps__n { background: var(--apb-gold); color: #fff; }
.apb-steps__l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }

/* Layout */
.apb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
.apb-layout.is-single { grid-template-columns: minmax(0, 1fr); }
.apb-step { min-width: 0; }
.apb-subtitle { margin-top: 2rem !important; }
.apb-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--apb-line); flex-wrap: wrap; }
.apb-nav--end { justify-content: flex-end; }

/* Summary */
.apb-summary { position: sticky; top: 110px; background: var(--apb-paper); border: 1px solid var(--apb-line); border-radius: var(--apb-radius); padding: 1.5rem; }
.apb-summary h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.apb-summary__list { margin: 0 0 1rem; }
.apb-summary__list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--apb-line); font-size: .93rem; }
.apb-summary__list dt { color: var(--apb-muted); }
.apb-summary__list dd { margin: 0; text-align: right; font-weight: 500; }
.apb-summary__lines { list-style: none; padding: 0; margin: 0 0 .8rem; font-size: .92rem; }
.apb-summary__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.apb-summary__lines li span:last-child { white-space: nowrap; }
.apb-summary__total { display: flex; justify-content: space-between; padding: .8rem 0 .3rem; border-top: 1px solid var(--apb-ink); font-size: 1.1rem; }
.apb-summary__deposit { display: flex; justify-content: space-between; color: var(--apb-gold); font-size: .93rem; }
.apb-summary__note { margin: 1.1rem 0 0; font-size: .82rem; color: var(--apb-muted); line-height: 1.5; }

/* Choice cards (step 1) */
.apb-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.apb-choice {
	display: flex; flex-direction: column; text-align: left; padding: 0; border: 1.5px solid var(--apb-line); border-radius: var(--apb-radius);
	background: var(--apb-paper); font: inherit; color: inherit; cursor: pointer; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.apb-choice:hover { border-color: var(--apb-ink); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(22,22,22,.45); }
.apb-choice.is-selected { border-color: var(--apb-gold); box-shadow: 0 0 0 3px var(--apb-gold-soft); }
.apb-choice__media { display: block; aspect-ratio: 4 / 3; background: var(--apb-sand); overflow: hidden; }
.apb-choice__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apb-choice__media.is-empty, .apb-card__media.is-empty { display: grid; place-items: center; background: var(--apb-ink); }
.apb-card__mono { font-family: var(--apb-font-script, 'Great Vibes', cursive); font-size: 5rem; line-height: 1; color: var(--apb-gold); }
.apb-choice__body { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.2rem 1.3rem; }
.apb-choice__body strong { font-family: var(--apb-head); font-size: 1.3rem; letter-spacing: .03em; font-weight: 400; }
.apb-choice__tag { color: var(--apb-muted); font-size: .92rem; }
.apb-choice__price { margin-top: .4rem; font-size: .95rem; }

/* Calendar */
.apb-date-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.apb-cal { background: var(--apb-paper); border: 1px solid var(--apb-line); border-radius: var(--apb-radius); padding: 1.1rem; }
.apb-cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.apb-cal__head strong { text-transform: capitalize; font-size: 1.05rem; }
.apb-cal__nav { width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--apb-line); background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--apb-ink); }
.apb-cal__nav:hover:not([disabled]) { border-color: var(--apb-ink); }
.apb-cal__nav[disabled] { opacity: .3; cursor: default; }
.apb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.apb-cal__dow { text-align: center; font-size: .75rem; color: var(--apb-muted); padding: .2rem 0 .4rem; text-transform: uppercase; letter-spacing: .04em; }
.apb-cal__day { aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--apb-cream); font: inherit; font-size: .95rem; cursor: pointer; color: var(--apb-ink); transition: background .12s; }
.apb-cal__day:hover:not([disabled]) { background: var(--apb-gold-soft); }
.apb-cal__day.is-sat { font-weight: 600; }
.apb-cal__day[disabled] { background: none; color: #c7bfb0; cursor: default; }
.apb-cal__day.is-full { background: repeating-linear-gradient(135deg, #f6e1dc 0 4px, #fbefec 4px 8px); color: var(--apb-bad); text-decoration: line-through; }
.apb-cal__day.is-selected { background: var(--apb-ink); color: var(--apb-cream); }
.apb-cal__legend { margin-top: .8rem; font-size: .8rem; color: var(--apb-muted); display: flex; align-items: center; gap: .4rem; }
.apb-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; }
.apb-dot--full { background: repeating-linear-gradient(135deg, #f6e1dc 0 3px, #fbefec 3px 6px); border: 1px solid #e9c3ba; }
.apb-avail { min-height: 3.2rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--apb-sand); color: var(--apb-muted); font-size: .95rem; }
.apb-avail:empty::before { content: 'Choisissez une date dans le calendrier.'; }
.apb-avail.is-ok { background: #e6f2eb; color: var(--apb-ok); }
.apb-avail.is-bad { background: #f8e6e2; color: var(--apb-bad); }
.apb-avail.is-loading { opacity: .75; }
.apb-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.apb-chip { border: 1.5px solid var(--apb-line); background: var(--apb-paper); border-radius: 999px; padding: .5em 1.05em; font: inherit; font-size: .93rem; cursor: pointer; color: var(--apb-ink); }
.apb-chip:hover { border-color: var(--apb-ink); }
.apb-chip.is-selected { background: var(--apb-ink); border-color: var(--apb-ink); color: var(--apb-cream); }

/* Formules */
.apb-formules { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.apb-formule {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-align: left;
	border: 1.5px solid var(--apb-line); background: var(--apb-paper); border-radius: var(--apb-radius); padding: 1.4rem 1.2rem 1.2rem;
	font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.apb-formule:hover { border-color: var(--apb-ink); }
.apb-formule.is-featured { border-color: var(--apb-gold); }
.apb-formule.is-selected { border-color: var(--apb-ink); box-shadow: 0 0 0 3px var(--apb-ink) inset; background: #fffdf8; }
.apb-formule__name { font-family: var(--apb-head); font-weight: 400; font-size: 1.3rem; letter-spacing: .03em; }
.apb-formule__dur { color: var(--apb-muted); font-size: .9rem; }
.apb-formule__price { font-size: 1.6rem; font-weight: 600; margin: .3rem 0 .4rem; }
.apb-badge { position: absolute; top: -.75rem; right: 1rem; background: var(--apb-gold); color: #fff; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; padding: .3em .8em; border-radius: 999px; font-weight: 600; }
.apb-checks { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .9rem; color: #3a362f; }
.apb-checks li { position: relative; padding-left: 1.4rem; margin: .3rem 0; }
.apb-checks li::before { content: ''; position: absolute; left: 0; top: .45em; width: .75rem; height: .4rem; border-left: 2px solid var(--apb-gold); border-bottom: 2px solid var(--apb-gold); transform: rotate(-45deg); }

/* Options */
.apb-opts { display: grid; gap: .7rem; }
.apb-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'main price' 'ctrl ctrl'; gap: .4rem 1rem; align-items: center; border: 1.5px solid var(--apb-line); border-radius: 12px; padding: .9rem 1.1rem; background: var(--apb-paper); }
.apb-opt.is-selected { border-color: var(--apb-gold); background: #fffcf5; }
.apb-opt.is-disabled { opacity: .5; }
.apb-opt__main { grid-area: main; display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; }
.apb-opt__main input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--apb-ink); flex: 0 0 auto; }
.apb-opt__text { display: flex; flex-direction: column; }
.apb-opt__text small { color: var(--apb-muted); font-size: .86rem; line-height: 1.45; }
.apb-opt__price { grid-area: price; font-weight: 600; white-space: nowrap; }
.apb-opt__ctrl { grid-area: ctrl; display: flex; gap: .8rem; padding-left: 2rem; flex-wrap: wrap; }
.apb-opt__ctrl:empty { display: none; }
.apb-opt__ctrl select { padding: .4rem .7rem; border: 1px solid var(--apb-line); border-radius: 8px; font: inherit; background: #fff; }
.apb-qty { display: inline-flex; align-items: center; border: 1px solid var(--apb-line); border-radius: 999px; overflow: hidden; background: #fff; }
.apb-qty button { width: 2.2rem; height: 2.2rem; border: 0; background: none; font-size: 1.15rem; cursor: pointer; }
.apb-qty span { min-width: 3rem; text-align: center; font-weight: 600; }

/* Info / alerts */
.apb-info { margin-top: 1.6rem; padding: 1.3rem 1.4rem; border-radius: var(--apb-radius); background: var(--apb-gold-soft); }
.apb-info p { margin: 0 0 1rem; }
.apb-alert { margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: 10px; background: #f8e6e2; color: var(--apb-bad); font-weight: 500; }
.apb-alert[hidden] { display: none; }
.apb-hint { font-size: .88rem; color: var(--apb-muted); margin: 1rem 0 0; }
.apb-secure { font-size: .85rem; color: var(--apb-muted); text-align: right; margin: .8rem 0 0; }

/* Forms */
.apb-form fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; min-width: 0; }
.apb-form legend { font-family: var(--apb-head); font-size: 1.2rem; letter-spacing: .03em; padding: 0; margin-bottom: .9rem; }
.apb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.apb-field { display: flex; flex-direction: column; gap: .35rem; }
.apb-field--wide { grid-column: 1 / -1; }
.apb-field__label { font-size: .9rem; font-weight: 500; }
.apb-field__label em { font-style: normal; color: var(--apb-muted); font-weight: 400; }
.apb-form input[type=text], .apb-form input[type=email], .apb-form input[type=tel], .apb-form input[type=number], .apb-form input[type=date], .apb-form input[type=time], .apb-form select, .apb-form textarea {
	width: 100%; padding: .78rem .9rem; border: 1.5px solid var(--apb-line); border-radius: 10px; background: #fff; font: inherit; color: var(--apb-ink); transition: border-color .15s, box-shadow .15s; min-height: 3rem;
}
.apb-form textarea { min-height: 6rem; resize: vertical; }
.apb-form input:focus, .apb-form select:focus, .apb-form textarea:focus { outline: none; border-color: var(--apb-ink); box-shadow: 0 0 0 3px var(--apb-gold-soft); }
.apb-field__error { color: var(--apb-bad); font-size: .85rem; min-height: 0; }
.apb-field.has-error input, .apb-field.has-error select, .apb-field.has-error textarea { border-color: var(--apb-bad); }
.apb-check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: start; margin: 1.4rem 0 0; cursor: pointer; font-size: .95rem; }
.apb-check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--apb-ink); }
.apb-check a { color: var(--apb-ink); text-decoration: underline; text-decoration-color: var(--apb-gold); }
.apb-check .apb-field__error { grid-column: 2; }
.apb-pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; }
.apb-pick-grid .apb-field__error { grid-column: 1 / -1; }
.apb-pick-grid--small { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.apb-pick { position: relative; cursor: pointer; }
.apb-pick input { position: absolute; opacity: 0; }
.apb-pick__box { display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: 1rem 1.1rem 1rem 2.8rem; border: 1.5px solid var(--apb-line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; position: relative; }
.apb-pick__box::before { content: ''; position: absolute; left: 1rem; top: 1.15rem; width: 1.05rem; height: 1.05rem; border: 1.5px solid #bdb3a1; border-radius: 4px; background: #fff; }
.apb-pick input:checked + .apb-pick__box { border-color: var(--apb-ink); background: #fffcf5; }
.apb-pick input:checked + .apb-pick__box::before { background: var(--apb-ink); border-color: var(--apb-ink); box-shadow: inset 0 0 0 3px #fff; }
.apb-pick input:focus-visible + .apb-pick__box { box-shadow: 0 0 0 3px var(--apb-gold-soft); }
.apb-pick__box small { color: var(--apb-muted); font-size: .85rem; }
.apb-pick-grid.has-error .apb-pick__box { border-color: var(--apb-bad); }

/* Recap */
.apb-recap { border: 1px solid var(--apb-line); border-radius: var(--apb-radius); background: #fff; overflow: hidden; margin: 1.2rem 0; }
.apb-recap__row { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1.2rem; border-bottom: 1px solid #f1eadf; }
.apb-recap__row:last-child { border-bottom: 0; }
.apb-recap__row.is-total { font-size: 1.15rem; background: var(--apb-cream); }
.apb-recap__row.is-deposit { background: var(--apb-ink); color: var(--apb-cream); }
.apb-recap__row.is-muted { color: var(--apb-muted); font-size: .92rem; }
.apb-recap__info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.4rem; margin: 0; }
.apb-recap__info dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--apb-muted); }
.apb-recap__info dd { margin: 0; font-weight: 500; }

/* Result */
.apb-result { text-align: center; max-width: 640px; margin: 0 auto; padding: 2rem 0; }
.apb-result__icon { width: 4.2rem; height: 4.2rem; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--apb-ink); color: var(--apb-gold); font-size: 2rem; }
.apb-result__recap { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; margin: 1.6rem 0 0; text-align: left; }
.apb-result__recap > div { background: #fff; border: 1px solid var(--apb-line); border-radius: 12px; padding: .8rem 1rem; }
.apb-result__recap dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--apb-muted); }
.apb-result__recap dd { margin: 0; font-weight: 600; }

/* Cards (shortcodes) */
.apb-grid { display: grid; gap: 1.4rem; }
.apb-grid--prestations { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.apb-grid--formules { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding-top: .8rem; }
.apb-card { position: relative; background: var(--apb-paper); border: 1px solid var(--apb-line); border-radius: var(--apb-radius); overflow: hidden; display: flex; flex-direction: column; }
.apb-card__media { aspect-ratio: 4 / 3; background: var(--apb-sand); }
.apb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apb-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.apb-card__body .apb-btn { margin-top: auto; align-self: flex-start; }
.apb-card__tag { color: var(--apb-muted); margin: 0 0 .6rem; font-size: .95rem; }
.apb-card__price { margin: 0 0 1.2rem; }
.apb-card--formule { overflow: visible; padding: 1.8rem 1.5rem 1.5rem; }
.apb-card--formule.is-featured { border: 2px solid var(--apb-gold); box-shadow: 0 20px 40px -28px rgba(184,146,74,.8); }
.apb-card--formule .apb-btn { margin-top: auto; width: 100%; }
.apb-card--formule .apb-checks { margin-bottom: 1.4rem; }
.apb-card__amount { font-size: 2.1rem; font-weight: 600; margin: .2rem 0 .6rem; line-height: 1.1; }
.apb-options-list { display: grid; gap: .1rem; }
.apb-option-row { display: flex; justify-content: space-between; gap: 1.4rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--apb-line); }
.apb-option-row h4 { font-size: 1.15rem; margin: 0 0 .2rem; }
.apb-option-row p { margin: 0; color: var(--apb-muted); font-size: .95rem; }
.apb-option-row__price { font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
	.apb-layout { grid-template-columns: minmax(0, 1fr); }
	.apb-summary { position: static; padding: 1.1rem 1.2rem; }
	.apb-summary__note { display: none; }
	.apb-date-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.apb-steps__l { display: none; }
	.apb-steps li.is-current .apb-steps__l { display: inline; }
	.apb-fields { grid-template-columns: minmax(0, 1fr); }
	.apb-recap__info { grid-template-columns: minmax(0, 1fr); }
	.apb-nav { flex-direction: column-reverse; align-items: stretch; }
	.apb-nav .apb-btn { width: 100%; }
	.apb-secure { text-align: center; }
	.apb-opt__ctrl { padding-left: 0; }
	.apb-pick-grid, .apb-pick-grid--small { grid-template-columns: minmax(0, 1fr); }
}
