/* Bons cadeaux : formulaire public [ap_bons_cadeaux]. Police héritée du thème (Kanit). */

.ap-bc {
	--ap-bc-nuit: #1D3749;
	--ap-bc-nuit-fonce: #19303F;
	--ap-bc-terre: #B2603F;
	--ap-bc-creme: #FCEDB1;
	--ap-bc-texte: #4A4A4A;
	--ap-bc-trait: #D3DAE0;
	--ap-bc-fond-choisi: #FBF4F0;
	color: var(--ap-bc-texte);
	font-family: inherit;
	line-height: 1.45;
	box-sizing: border-box;
	max-width: 100%;
}

.ap-bc *,
.ap-bc *::before,
.ap-bc *::after {
	box-sizing: inherit;
}

.ap-bc p {
	margin: 0;
}

.ap-bc-vh {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Erreur renvoyée par le serveur. */
.ap-bc-erreur {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-left: 4px solid var(--ap-bc-terre);
	background: var(--ap-bc-fond-choisi);
	color: var(--ap-bc-nuit);
	font-weight: 500;
}

/* Grille : étapes à gauche, récapitulatif à droite. */
.ap-bc-grille {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 436px);
	gap: 64px;
	align-items: start;
}

.ap-bc-etapes {
	min-width: 0;
}

.ap-bc fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ap-bc legend {
	padding: 0;
}

.ap-bc-etape + .ap-bc-etape {
	margin-top: 64px;
}

.ap-bc-etape-titre {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0 0 20px;
	color: var(--ap-bc-nuit);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
}

.ap-bc-num {
	color: var(--ap-bc-terre);
	font-size: 16px;
	font-weight: 700;
}

/* Prestations. */
.ap-bc-prestation + .ap-bc-prestation {
	margin-top: 20px;
}

.ap-bc-choix {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 21px 24px;
	border: 1px solid var(--ap-bc-trait);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}

.ap-bc-choix:hover {
	border-color: #A9B6C0;
}

.ap-bc-prestation.is-active .ap-bc-choix,
.ap-bc-choix:has(.ap-bc-radio:checked) {
	padding: 20px 23px;
	border: 2px solid var(--ap-bc-terre);
	background: var(--ap-bc-fond-choisi);
}

.ap-bc-radio {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	border: 2px solid #8C9AA5;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.ap-bc-radio:checked {
	border-color: var(--ap-bc-terre);
	background: radial-gradient(circle, var(--ap-bc-terre) 0 5px, #fff 5.5px);
}

.ap-bc-choix-texte {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ap-bc-titre {
	color: var(--ap-bc-nuit);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

.ap-bc-sous-titre {
	color: var(--ap-bc-texte);
	font-size: 15px;
	font-weight: 300;
}

.ap-bc-prix {
	flex: none;
	color: var(--ap-bc-nuit);
	font-size: 16px;
	font-weight: 300;
	white-space: nowrap;
}

.ap-bc-prix strong {
	font-size: 22px;
	font-weight: 700;
}

/* Formules de la prestation choisie. */
.ap-bc-formules {
	padding: 24px 0 12px 66px;
}

.ap-bc-formules[hidden] {
	display: none;
}

.ap-bc-formules-titre {
	margin: 0 0 12px;
	color: var(--ap-bc-nuit);
	font-size: 15px;
	font-weight: 400;
}

.ap-bc-aide {
	color: #7A858D;
	font-weight: 300;
}

.ap-bc-segments-liste {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ap-bc-segment {
	position: relative;
	flex: 0 1 150px;
	min-width: 0;
	cursor: pointer;
}

.ap-bc-segment-corps {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 66px;
	padding: 8px 10px;
	border: 1px solid var(--ap-bc-trait);
	border-radius: 6px;
	background: #fff;
	color: var(--ap-bc-nuit);
	text-align: center;
	transition: background-color .15s, border-color .15s;
}

.ap-bc-segment:hover .ap-bc-segment-corps {
	border-color: #A9B6C0;
}

.ap-bc-segment-libelle {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
}

.ap-bc-segment-prix {
	font-size: 13px;
	font-weight: 300;
}

.ap-bc-segment input:checked + .ap-bc-segment-corps {
	border-color: var(--ap-bc-nuit);
	background: var(--ap-bc-nuit);
	color: #fff;
}

.ap-bc-segment input:checked + .ap-bc-segment-corps .ap-bc-segment-libelle {
	font-weight: 500;
}

/* Compteurs adultes / enfants. */
.ap-bc-steppers {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
}

.ap-bc-steppers > .ap-bc-formules-titre {
	flex: 1 0 100%;
	margin-bottom: 0;
}

.ap-bc-stepper {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ap-bc-stepper-label {
	color: var(--ap-bc-nuit);
	font-size: 15px;
}

.ap-bc-stepper-prix {
	color: #7A858D;
	font-size: 13px;
	font-weight: 300;
}

.ap-bc-stepper-ctrl {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--ap-bc-trait);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.ap-bc .ap-bc-pas {
	width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--ap-bc-nuit);
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.ap-bc .ap-bc-pas[hidden] {
	display: none;
}

.ap-bc .ap-bc-pas:hover:not(:disabled) {
	background: var(--ap-bc-fond-choisi);
}

.ap-bc .ap-bc-pas:disabled {
	color: #B8C1C8;
	cursor: default;
}

.ap-bc .ap-bc-nombre {
	width: 56px;
	min-height: 44px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-inline: 1px solid var(--ap-bc-trait);
	border-radius: 0;
	background: #fff;
	color: var(--ap-bc-nuit);
	font: inherit;
	font-size: 17px;
	font-weight: 500;
	text-align: center;
	-moz-appearance: textfield;
}

/* Sans script : pas de boutons ±, les flèches natives du champ restent. */
.ap-bc:not(.ap-bc--js) .ap-bc-nombre {
	width: 76px;
	border-inline: 0;
	-moz-appearance: auto;
}

.ap-bc--js .ap-bc-nombre::-webkit-inner-spin-button,
.ap-bc--js .ap-bc-nombre::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Étape 02. */
.ap-bc-case {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ap-bc-case input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--ap-bc-terre);
	cursor: pointer;
}

.ap-bc-case label {
	color: var(--ap-bc-nuit);
	font-size: 17px;
	cursor: pointer;
}

.ap-bc-offrir-champs {
	padding: 20px 0 0 36px;
}

.ap-bc-offrir-champs[hidden] {
	display: none;
}

.ap-bc-champ + .ap-bc-champ {
	margin-top: 22px;
}

.ap-bc-champ label {
	display: block;
	margin-bottom: 8px;
	color: var(--ap-bc-nuit);
	font-size: 15px;
	font-weight: 400;
}

.ap-bc .ap-bc-texte {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #9AA7B1;
	border-radius: 4px;
	background: #fff;
	color: var(--ap-bc-nuit);
	font: inherit;
	font-size: 16px;
	font-weight: 300;
}

.ap-bc .ap-bc-texte--court {
	max-width: 330px;
}

.ap-bc textarea.ap-bc-texte {
	min-height: 110px;
	resize: vertical;
}

/* Récapitulatif. */
.ap-bc-recap {
	position: sticky;
	top: 24px;
	margin-top: 56px;
	padding: 36px 32px 32px;
	border-radius: 14px;
	background: var(--ap-bc-nuit);
	color: #fff;
}

.ap-bc-recap-sur {
	color: var(--ap-bc-creme);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
}

.ap-bc .ap-bc-recap-libelle {
	margin-top: 22px;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.3;
}

.ap-bc .ap-bc-recap-detail {
	margin-top: 4px;
	color: rgba(255, 255, 255, .82);
	font-size: 15px;
	font-weight: 300;
}

.ap-bc-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .16);
}

.ap-bc-total-libelle {
	font-size: 16px;
	font-weight: 300;
}

.ap-bc-total-prix {
	font-size: 38px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.ap-bc .ap-bc-sans-js {
	margin-top: 18px;
	color: rgba(255, 255, 255, .82);
	font-size: 15px;
	font-weight: 300;
}

.ap-bc:not(.ap-bc--js) .ap-bc-si-js,
.ap-bc--js .ap-bc-sans-js {
	display: none;
}

.ap-bc .ap-bc-payer {
	display: block;
	width: 100%;
	margin: 26px 0 0;
	padding: 18px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ap-bc-terre);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-style: italic;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s;
}

.ap-bc .ap-bc-payer:hover {
	background: #9C5235;
}

.ap-bc .ap-bc-mention {
	margin-top: 20px;
	color: rgba(255, 255, 255, .82);
	font-size: 13px;
	font-weight: 300;
	line-height: 1.6;
}

.ap-bc-vide {
	padding: 20px 24px;
	border: 1px solid var(--ap-bc-trait);
	border-radius: 8px;
}

/* Focus clavier visible partout. */
.ap-bc-radio:focus-visible,
.ap-bc-case input:focus-visible,
.ap-bc .ap-bc-pas:focus-visible,
.ap-bc .ap-bc-nombre:focus-visible,
.ap-bc .ap-bc-texte:focus-visible,
.ap-bc-segment input:focus-visible + .ap-bc-segment-corps {
	outline: 3px solid var(--ap-bc-terre);
	outline-offset: 2px;
}

.ap-bc .ap-bc-payer:focus-visible {
	outline: 3px solid var(--ap-bc-creme);
	outline-offset: 3px;
}

/* Tablette et mobile : le récapitulatif passe sous les étapes. */
@media (max-width: 899px) {
	.ap-bc-grille {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.ap-bc-recap {
		position: static;
		margin-top: 0;
	}
}

@media (max-width: 600px) {
	.ap-bc-etape-titre {
		font-size: 23px;
	}

	.ap-bc-choix,
	.ap-bc-prestation.is-active .ap-bc-choix,
	.ap-bc-choix:has(.ap-bc-radio:checked) {
		flex-wrap: wrap;
		gap: 4px 14px;
		padding: 16px;
	}

	.ap-bc-prestation.is-active .ap-bc-choix,
	.ap-bc-choix:has(.ap-bc-radio:checked) {
		padding: 15px;
	}

	.ap-bc-choix-texte {
		flex-basis: calc(100% - 36px);
	}

	.ap-bc-titre {
		font-size: 18px;
	}

	.ap-bc-prix {
		margin-left: 36px;
	}

	.ap-bc-formules {
		padding-left: 0;
	}

	.ap-bc-segment {
		flex: 1 1 0;
	}

	.ap-bc-segment-corps {
		padding: 8px 4px;
	}

	.ap-bc-segment-libelle {
		font-size: 14px;
	}

	.ap-bc-offrir-champs {
		padding-left: 0;
	}

	.ap-bc-recap {
		padding: 28px 22px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ap-bc * {
		transition: none !important;
	}
}
