/* =======================================================================
   Multi-Step Cards for Elementor — styles de base
   (les couleurs/tailles fines sont surchargées par les contrôles Elementor)
   ======================================================================= */

.msc-wizard {
	width: 100%;
}

/* ---------- Barre de progression ---------- */
.msc-progress {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin: 0 auto 40px;
	max-width: 900px;
}
.msc-progress__step {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: default;
}
.msc-wizard[data-clickable="1"] .msc-progress__step.is-done,
.msc-wizard[data-clickable="1"] .msc-progress__step.is-active {
	cursor: pointer;
}
.msc-progress__dot {
	position: relative;
	z-index: 2;
	display: block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #c9c9c9;
	border: 2px solid #c9c9c9;
	transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.msc-progress__line {
	position: absolute;
	z-index: 1;
	top: 13px;                /* moitié de la pastille par défaut */
	left: 50%;
	width: 100%;
	height: 4px;
	background: #c9c9c9;
	transform: translateY(-50%);
	transition: background-color .25s ease;
}
.msc-progress__label {
	margin-top: 12px;
	font-size: 16px;
	color: #333;
	transition: color .2s ease;
}

/* Neutralise le survol "rose" hérité du thème sur les étapes cliquables
   (valeurs surchargeables via les contrôles Elementor). */
.msc-wizard[data-clickable="1"] .msc-progress__step:hover .msc-progress__dot {
	background-color: #a87f23;
	border-color: #a87f23;
}
.msc-wizard[data-clickable="1"] .msc-progress__step:hover .msc-progress__label {
	color: #000;
}

/* ---------- Panneaux d'étapes ---------- */
.msc-panels {
	position: relative;
}
.msc-step {
	display: none;
	animation: msc-fade .3s ease;
}
.msc-step.is-current {
	display: block;
}
@keyframes msc-fade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.msc-heading {
	text-align: center;
	margin: 0 0 40px;
	font-size: 30px;
	color: #1a1a1a;
}

/* ---------- Disposition des cartes ----------
   Par défaut : flex + wrap, les cartes se serrent (pas d'espace 1fr forcé).
   En mode "Colonnes fixes", le widget passe .msc-cards en display:grid. */
.msc-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;   /* alignement du groupe, pilotable dans Elementor */
	align-items: stretch;
	gap: 30px;
	justify-items: center;     /* utile seulement en mode grille */
}
.msc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex: 0 1 300px;           /* largeur cible ; ne s'étire pas pour combler la boîte */
	max-width: 100%;
	box-sizing: border-box;
	text-align: center;
	padding: 20px;
	border-radius: 12px;
	background: transparent;
	cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease,
		background-color .25s ease, border-color .25s ease;
	outline: none;
}
.msc-card:focus-visible {
	box-shadow: 0 0 0 3px rgba(199,154,59,.5);
}
.msc-card.is-selected {
	box-shadow: 0 0 0 2px #c79a3b inset;
}

/* Ordre par défaut : image/numéro, puis titre, sous-titre, flèche. */
.msc-card__image,
.msc-card__badge { order: 1; }
.msc-card__title { order: 2; }
.msc-card__subtitle { order: 3; }
.msc-card__arrow { order: 90; }

/* Titre/sous-titre pleine largeur : le text-align fonctionne alors dans tous les cas. */
.msc-card__title,
.msc-card__subtitle { width: 100%; }

/* Position du texte par carte (texte au-dessus de l'image/numéro). */
.msc-card--text-above .msc-card__image,
.msc-card--text-above .msc-card__badge { order: 20; }

/* Alignement par carte (horizontal). Ces classes gagnent sur le .msc-card de base. */
.msc-card--align-left   { align-items: flex-start; text-align: left; }
.msc-card--align-center { align-items: center;     text-align: center; }
.msc-card--align-right  { align-items: flex-end;   text-align: right; }

.msc-card__image {
	margin-bottom: 16px;
	line-height: 0;
}
.msc-card__image img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}
.msc-card__badge {
	font-size: 120px;
	line-height: 1;
	font-weight: 700;
	color: #d9c089;
	margin-bottom: 4px;
}
.msc-card__title {
	font-size: 26px;
	font-weight: 600;
	color: #2e5a34;
	letter-spacing: .02em;
}
.msc-card__subtitle {
	margin-top: 8px;
	font-size: 15px;
	color: #666;
}
.msc-card__arrow {
	margin-top: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #c79a3b;
	color: #fff;
	transition: background-color .25s ease;
	flex: 0 0 auto;
}

/* ---------- Image / numéro en arrière-plan (par carte) ---------- */
.msc-card--media-bg {
	overflow: hidden;
}
.msc-card--media-bg::after {
	/* voile optionnel pour la lisibilité (couleur définie via Elementor) */
	content: "";
	position: absolute;
	inset: 0;
	background-color: transparent;
	z-index: 1;
	pointer-events: none;
}
.msc-card--media-bg .msc-card__image {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
	order: 0;
}
.msc-card--media-bg .msc-card__image img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}
.msc-card--media-bg .msc-card__badge {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	z-index: 0;
	order: 0;
}
.msc-card--media-bg .msc-card__title,
.msc-card--media-bg .msc-card__subtitle,
.msc-card--media-bg .msc-card__arrow {
	position: relative;
	z-index: 2;
}

/* ---------- Position libre de la flèche ---------- */
.msc-card[class*="msc-card--arrow-"] .msc-card__arrow {
	position: absolute;
	margin: 0;
	z-index: 3;
}
.msc-card--arrow-bottom-right .msc-card__arrow  { bottom: var(--msc-arrow-y, 16px); right: var(--msc-arrow-x, 16px); }
.msc-card--arrow-bottom-left .msc-card__arrow   { bottom: var(--msc-arrow-y, 16px); left: var(--msc-arrow-x, 16px); }
.msc-card--arrow-top-right .msc-card__arrow     { top: var(--msc-arrow-y, 16px); right: var(--msc-arrow-x, 16px); }
.msc-card--arrow-top-left .msc-card__arrow      { top: var(--msc-arrow-y, 16px); left: var(--msc-arrow-x, 16px); }
.msc-card--arrow-bottom-center .msc-card__arrow { bottom: var(--msc-arrow-y, 16px); left: 50%; transform: translateX(-50%); }
.msc-card--arrow-center .msc-card__arrow        { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* ---------- Étape finale : documents ---------- */
.msc-step--result .msc-docs {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 560px;
	margin: 0 auto;
}
.msc-doc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 24px;
	border-radius: 8px;
	background: #2e5a34;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.msc-doc:hover {
	background: #3e7746;
	transform: translateY(-2px);
}
.msc-doc__icon {
	display: inline-flex;
	line-height: 0;
}
.msc-doc__icon svg,
.msc-doc__icon i {
	width: 1em;
	height: 1em;
	font-size: 1em;
}
.msc-docs__empty {
	color: #888;
	font-style: italic;
	text-align: center;
}

/* ---------- Navigation ---------- */
.msc-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-top: 32px;
}
/* Boutons Précédent / Recommencer.
   Sélecteurs volontairement spécifiques pour neutraliser le style de bouton
   du thème (fond/couleur "rose" au survol, focus, etc.). */
.msc-wizard .msc-nav .msc-nav__btn,
.msc-wizard .msc-nav .msc-nav__btn:link,
.msc-wizard .msc-nav .msc-nav__btn:visited {
	background: none;
	background-color: transparent;
	border: none;
	box-shadow: none;
	outline: none;
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 15px;
	color: #8a6d1f;
	transition: color .2s ease, background-color .2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.msc-wizard .msc-nav .msc-nav__btn:hover,
.msc-wizard .msc-nav .msc-nav__btn:focus,
.msc-wizard .msc-nav .msc-nav__btn:active {
	color: #000;
	background: none;
	background-color: transparent;
	box-shadow: none;
	outline: none;
	text-decoration: none;
}

.msc-empty {
	padding: 20px;
	text-align: center;
	color: #999;
	border: 1px dashed #ccc;
	border-radius: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.msc-progress__label { font-size: 13px; }
	.msc-card__badge { font-size: 90px; }
	.msc-card__title { font-size: 22px; }
	.msc-heading { font-size: 24px; }
}
