/* Parcours de demande de rendez-vous en étapes — reprend les couleurs du thème quand elles existent. */
.alx-q-wrap, .alx-questionnaire {
	--alx-vert: var(--vert, #3F7D58);
	--alx-vert-clair: var(--vert-clair, #E4EEE7);
	--alx-texte: var(--texte, #29322F);
	--alx-doux: var(--texte-doux, #55605B);
	--alx-sable: var(--sable, #F6ECDD);
	--alx-fond: var(--fond, #FFF8EE);
	--alx-terra: var(--terracotta-clair, #F1E4DA);
	--alx-trait: #EFE4D3;
	display: block;
	font-weight: 400;
	container-type: inline-size;
}

/* Les champs CF7 sont déplacés dans les panneaux ; on neutralise les marges de paragraphe. */
.alx-wiz-actif .wpcf7-response-output { margin: 1rem 0 0; }

.alx-wiz {
	display: flex; overflow: hidden; background: #fff; border-radius: 28px;
	box-shadow: 0 1px 0 var(--alx-trait), 0 24px 48px rgba(41, 50, 47, 0.06); color: var(--alx-texte);
}

/* ---------- Frise d'étapes ---------- */
.alx-wiz__nav { flex: none; width: 230px; background: var(--alx-fond); border-right: 1px solid var(--alx-trait); padding: 32px 24px; box-sizing: border-box; }
.alx-wiz__frise { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.alx-wiz__etape { position: relative; margin: 0; padding: 0 0 22px; }
.alx-wiz__etape:last-child { padding-bottom: 0; }
.alx-wiz__etape:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: #E2D5C2; }
.alx-wiz__etape.is-fait:not(:last-child)::before { background: var(--alx-vert); }
.alx-wiz__etape-btn {
	display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left;
	font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; box-shadow: none;
	text-transform: none; letter-spacing: normal; line-height: 1.3; border-radius: 10px;
}
button.alx-wiz__etape-btn { cursor: pointer; }
button.alx-wiz__etape-btn:hover, button.alx-wiz__etape-btn:focus { background: none; color: inherit; }
button.alx-wiz__etape-btn:hover .alx-wiz__etape-sous { text-decoration: underline; }
button.alx-wiz__etape-btn:focus-visible { outline: 2px solid var(--alx-texte); outline-offset: 4px; }
.alx-wiz__pastille {
	width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
	font-size: 0.875rem; font-weight: 700; box-sizing: border-box; border: 1.5px solid #C9BFB1; color: #8C918E; background: var(--alx-fond);
	position: relative; z-index: 1;
}
.alx-wiz__etape-texte { display: flex; flex-direction: column; padding-top: 4px; min-width: 0; }
.alx-wiz__etape-titre { font-size: 0.875rem; color: #8C918E; }
.alx-wiz__etape-sous { font-size: 0.8125rem; color: var(--alx-doux); overflow-wrap: anywhere; }
.alx-wiz__etape.is-fait .alx-wiz__pastille { background: var(--alx-vert); border-color: var(--alx-vert); color: #fff; }
.alx-wiz__etape.is-fait .alx-wiz__etape-titre, .alx-wiz__etape.is-actif .alx-wiz__etape-titre, .alx-wiz__etape.is-refus .alx-wiz__etape-titre { color: var(--alx-texte); font-weight: 700; }
.alx-wiz__etape.is-actif .alx-wiz__pastille { background: var(--alx-texte); border-color: var(--alx-texte); color: #fff; }
.alx-wiz__etape.is-refus .alx-wiz__pastille { background: #C99A7A; border-color: #C99A7A; color: #fff; }

/* ---------- Zone principale ---------- */
.alx-wiz__main { flex: 1; min-width: 0; padding: clamp(1.5rem, 3vw, 2.25rem); }
.alx-wiz__panneau { display: flex; flex-direction: column; gap: 1rem; }
.alx-wiz__panneau[hidden] { display: none; }
.alx-wiz__surtitre { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--alx-vert); }
.alx-wiz__titre { margin: 0; font-family: var(--titres, inherit); font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.2; color: var(--alx-texte); outline: none; }
.alx-wiz__aide { margin: -0.375rem 0 0; color: var(--alx-doux); font-size: 0.9375rem; line-height: 1.55; }

.alx-wiz__choix { display: flex; flex-direction: column; gap: 0.625rem; }
.alx-wiz__option {
	position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; margin: 0;
	border: 1.5px solid var(--alx-trait); border-radius: 16px; padding: 15px 18px; font-weight: 700; line-height: 1.35;
	transition: border-color 0.15s, background-color 0.15s;
}
.alx-wiz__option:hover { border-color: #C9BFB1; }
.alx-wiz__option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.alx-wiz__radio { width: 20px; height: 20px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid #C9BFB1; background: #fff; transition: border 0.15s; }
.alx-wiz__option.is-coche { border: 2px solid var(--alx-vert); background: var(--alx-vert-clair); padding: 14.5px 17.5px; }
.alx-wiz__option.is-coche .alx-wiz__radio { border: 6px solid var(--alx-vert); }
.alx-wiz__option:has(input:focus-visible) { outline: 2px solid var(--alx-texte); outline-offset: 2px; }

.alx-wiz__actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.25rem; }
.alx-wiz .alx-wiz__retour {
	font: inherit; font-weight: 700; color: var(--alx-vert); background: none; border: 0; padding: 8px 0; cursor: pointer;
	text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.3; align-self: flex-start;
}
.alx-wiz .alx-wiz__retour:hover, .alx-wiz .alx-wiz__retour:focus { color: var(--alx-texte); background: none; }
.alx-wiz .alx-wiz__retour:focus-visible { outline: 2px solid var(--alx-texte); outline-offset: 2px; border-radius: 6px; }
.alx-wiz .alx-wiz__btn {
	font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; cursor: pointer; border-radius: 999px; padding: 14px 26px;
	border: 1.5px solid var(--alx-vert); background: #fff; color: var(--alx-vert); text-transform: none; letter-spacing: normal; box-shadow: none;
}
.alx-wiz .alx-wiz__btn--primaire { background: var(--alx-vert); color: #fff; }
.alx-wiz .alx-wiz__btn:not(:disabled):hover { background: var(--alx-texte); border-color: var(--alx-texte); color: #fff; }
.alx-wiz .alx-wiz__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.alx-wiz .alx-wiz__btn:focus-visible { outline: 2px solid var(--alx-texte); outline-offset: 3px; }

/* Refus */
.alx-wiz__refus { display: flex; gap: 14px; align-items: flex-start; background: var(--alx-terra); border-radius: 20px; padding: 20px 22px; }
.alx-wiz__refus p { margin: 0; line-height: 1.6; }
.alx-wiz__refus .alx-wiz__titre { font-size: 1.1875rem; margin-bottom: 0.25rem; }
.alx-wiz__refus-question { font-size: 0.875rem; color: var(--alx-doux); margin-bottom: 0.5rem !important; }
.alx-wiz__refus-icone { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; color: #8E5F42; }

/* Créneau : bouton de validation pleine largeur, comme la maquette */
.alx-wiz__panneau--creneau .alx-wiz__btn--primaire { min-width: min(100%, 200px); }

/* Coordonnées : champs CF7 */
.alx-wiz__panneau--coord > p, .alx-wiz__panneau--coord > div { margin: 0; }
.alx-wiz__panneau--coord .wpcf7-submit { align-self: flex-start; }

/* Fin */
.alx-wiz__panneau--fin { align-items: flex-start; }
.alx-wiz__fin-icone { width: 52px; height: 52px; border-radius: 50%; background: var(--alx-vert); color: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; }
.alx-wiz__panneau--fin .alx-wiz__actions { width: 100%; }

/* ---------- Écrans étroits : frise horizontale compacte ---------- */
@container (max-width: 640px) {
	.alx-wiz { flex-direction: column; border-radius: 22px; }
	.alx-wiz__nav { width: auto; border-right: 0; border-bottom: 1px solid var(--alx-trait); padding: 14px 16px; overflow-x: auto; scrollbar-width: none; }
	.alx-wiz__frise { flex-direction: row; gap: 6px; }
	.alx-wiz__etape { padding: 0; flex: none; }
	.alx-wiz__etape::before { display: none; }
	.alx-wiz__etape-texte { display: none; }
	.alx-wiz__etape.is-actif .alx-wiz__etape-texte, .alx-wiz__etape.is-refus .alx-wiz__etape-texte { display: flex; padding: 4px 6px 0 0; }
	.alx-wiz__etape.is-actif .alx-wiz__etape-titre, .alx-wiz__etape.is-refus .alx-wiz__etape-titre { white-space: nowrap; }
	.alx-wiz__etape .alx-wiz__etape-sous { display: none; }
	.alx-wiz__etape-btn { align-items: center; gap: 8px; }
	.alx-wiz__main { padding: 1.25rem; }
	.alx-wiz__actions { flex-direction: column-reverse; align-items: stretch; }
	.alx-wiz__actions > span:empty { display: none; }
	.alx-wiz .alx-wiz__retour { align-self: center; }
}

/* Le style des libellés CF7 du thème (colonne) ne s'applique pas aux options. */
.wpcf7 .alx-wiz__option { flex-direction: row; align-items: center; gap: 14px; text-align: left; font-size: 1rem; }

/* Étapes cliquables : protection contre le style global des boutons d'Elementor (kit). */
.alx-wiz .alx-wiz__frise button.alx-wiz__etape-btn,
.alx-wiz .alx-wiz__frise button.alx-wiz__etape-btn:hover,
.alx-wiz .alx-wiz__frise button.alx-wiz__etape-btn:focus {
	background: transparent; color: inherit; border: 0; border-radius: 10px; padding: 0; margin: 0; box-shadow: none;
	font-family: inherit; font-size: inherit; font-weight: inherit; line-height: 1.3; text-transform: none; letter-spacing: normal; width: 100%;
}
/* L'écran « Merci » remplace le message de CF7 en cas de succès. */
.wpcf7 form.alx-wiz-actif.sent .wpcf7-response-output { display: none; }

/* Champs obligatoires */
.alx-wiz .requis { color: #A3321F; }
.alx-wiz .facultatif { font-weight: 400; color: var(--alx-doux); font-size: 0.875rem; }
.alx-wiz .champs-requis { margin: -0.5rem 0 0 !important; font-size: 0.875rem; color: var(--alx-doux); }
.alx-wiz .champs-requis span { color: #A3321F; }
.alx-wiz .wpcf7-not-valid { border-color: #A3321F !important; box-shadow: 0 0 0 1px #A3321F; }
.alx-wiz .wpcf7-not-valid-tip { color: #A3321F; font-size: 0.875rem; font-weight: 600; margin-top: 4px; }

/* Précision libre (« Autre » → « Précisez ») */
.alx-wiz__precision { display: flex; flex-direction: column; gap: 6px; margin-top: -0.25rem; padding: 14px 16px; border-radius: 16px; background: var(--alx-vert-clair); }
.alx-wiz__precision label { font-weight: 700; font-size: 0.9375rem; }
.alx-wiz .alx-wiz__precision textarea {
	font: inherit; font-size: 1rem; line-height: 1.45; width: 100%; box-sizing: border-box; min-height: 88px; max-height: 220px; padding: 10px 14px; resize: vertical;
	border: 1.5px solid #CFE0D4; border-radius: 12px; background: #fff; color: var(--alx-texte);
}
.alx-wiz .alx-wiz__precision textarea:focus { border-color: var(--alx-vert); outline: 2px solid var(--alx-vert); outline-offset: 0; }
.alx-wiz__precision-aide { font-size: 0.8125rem; color: var(--alx-doux); }

/* Récapitulatif */
.alx-wiz__recap { background: var(--alx-fond); border: 1px solid var(--alx-trait); border-radius: 18px; padding: 16px 18px; width: 100%; box-sizing: border-box; }
.alx-wiz__recap-titre { margin: 0 0 8px !important; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--alx-vert); }
.alx-wiz__recap-liste { margin: 0; display: flex; flex-direction: column; }
.alx-wiz__recap-liste > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4px 16px; padding: 9px 0; border-top: 1px solid var(--alx-trait); }
.alx-wiz__recap-liste > div:first-child { border-top: 0; padding-top: 0; }
.alx-wiz__recap-liste dt { font-size: 0.875rem; line-height: 1.4; color: var(--alx-doux); }
.alx-wiz__recap-liste dd { margin: 0; line-height: 1.4; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; font-size: 0.9375rem; overflow-wrap: anywhere; }
.alx-wiz__recap-liste .is-creneau dd { color: #2C5A3F; }
.alx-wiz .alx-wiz__modifier {
	flex: none; font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--alx-vert); background: none; border: 0; padding: 2px 0; margin: 0;
	cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.3;
}
.alx-wiz .alx-wiz__modifier:hover, .alx-wiz .alx-wiz__modifier:focus { color: var(--alx-texte); background: none; }
.alx-wiz__recap-zone { width: 100%; }
@container (max-width: 520px) {
	.alx-wiz__recap-liste > div { grid-template-columns: 1fr; }
}

/* ---------- Étape « Garantie » (empreinte bancaire) et message d'erreur des coordonnées ---------- */
.alx-wiz__erreur { margin: 0; color: #B3261E; font-weight: 600; font-size: 0.9375rem; }
.alx-wiz__erreur:empty { display: none; }
.alx-wiz [aria-invalid="true"] { border-color: #B3261E !important; }
.alx-wiz__panneau--garantie .alx-empreinte-wrap { width: 100%; }
.alx-wiz__panneau--garantie .wpcf7-submit { width: 100%; }

/* Boutons plus compacts : « Lundi 12 octobre à 10h45 · Continuer → » tient sur une ligne. */
.alx-wiz .alx-wiz__btn { font-size: 0.9375rem; padding: 12px 22px; }
.alx-wiz .alx-wiz__retour { font-size: 0.9375rem; }
/* « ← Précédent » et le bouton principal alignés sur la même ligne. */
.alx-wiz__actions > .alx-wiz__retour { align-self: center; }

/* Case de consentement : lignes resserrées. */
.alx-wiz .wpcf7-list-item { margin: 0; }
.alx-wiz .wpcf7-list-item-label { line-height: 1.4; }
.alx-wiz .consentement label, .alx-wiz .wpcf7-acceptance label { line-height: 1.4; }

/* Précision sur plusieurs lignes : retours à la ligne conservés dans le récapitulatif. */
.alx-wiz__recap-liste dd > span { white-space: pre-line; }
