/*
 * Mc Hero — Marché Conclu
 * Version : 2.1.0
 * Architecture : gardes (0,2,0), composants (0,3,0) — insensible au thème
 * ET à l'ordre de chargement des autres plugins MC.
 */

/* ==================================================================
   SOCLE MC — gardes (0,2,0) + primitives de la charte
   Toute règle de composant est déclarée APRÈS ces gardes et pèse au
   moins (0,2,0) : le thème (règles à balise nue OU composées
   `.elementor h1..h6` à (0,1,1)) ne peut plus rien écraser.
   ================================================================== */

:root {
	--mc-bleu: #274480;
	--mc-bleu-fonce: #1c3260;
	--mc-nuit: #16233f;
	--mc-or: #d9af61;
	--mc-or-clair: #e8cd97;
	--mc-or-sombre: #b9903f;
	--mc-creme: #faf7f0;
	--mc-ivoire: #fcfbf7;
	--mc-encre: #2b2b28;
	--mc-gris: #6b6b66;
	--mc-sable: #e7dfcc;
	--mc-font-titres: "Playfair Display", Georgia, serif;
	--mc-font-texte: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mc-w {
	overflow-x: clip;
	padding-left: var(--mc-pad-x, 20px);
	padding-right: var(--mc-pad-x, 20px);
	font-family: var(--mc-font-texte);
	color: var(--mc-encre);
	box-sizing: border-box;
}

.mc-w *,
.mc-w *::before,
.mc-w *::after {
	box-sizing: border-box;
	min-width: 0;
}

.mc-w.mc-w [hidden] {
	display: none !important;
}

/* Gardes texte à (0,2,0) : battent `.elementor h3` (0,1,1) du thème */
.mc-w.mc-w :where(h1, h2, h3, h4, h5, h6, p) {
	margin: 0;
	padding: 0;
	letter-spacing: normal;
	text-transform: none;
}

.mc-w.mc-w :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--mc-font-titres);
	font-weight: 600;
	line-height: 1.25;
}

.mc-w.mc-w :where(ul, ol) {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Réinitialisation button à (0,2,0) */
.mc-w.mc-w :where(button) {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	font-family: var(--mc-font-texte);
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
	position: static;
	z-index: auto;
	box-shadow: none;
	cursor: pointer;
	text-align: inherit;
	text-transform: none;
	letter-spacing: normal;
}

.mc-w.mc-w :where(button):hover {
	opacity: 1;
	box-shadow: none;
	color: inherit;
	background: none;
}

.mc-w.mc-w :where(a) {
	text-decoration: none;
}

.mc-w .mc-shrink {
	overflow-wrap: anywhere;
}

/* Sur-titre */
.mc-w .mc-surtitre {
	display: block;
	font-family: var(--mc-font-texte);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--mc-or-sombre);
	margin: 0;
}

/* Boutons de la suite */
.mc-w .mc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	background: var(--mc-btn-bg, var(--mc-or));
	color: var(--mc-btn-color, var(--mc-bleu-fonce));
	border-radius: var(--mc-btn-radius, 6px);
	font-family: var(--mc-font-texte);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-align: center;
	overflow-wrap: break-word;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
	max-width: 100%;
}

.mc-w .mc-btn:hover {
	background: var(--mc-btn-bg-h, var(--mc-bleu));
	color: var(--mc-btn-color-h, #ffffff);
	transform: translateY(-1px);
}

.mc-w .mc-btn:focus-visible {
	outline: 2px solid var(--mc-or);
	outline-offset: 2px;
}

.mc-w .mc-btn--ghost {
	--mc-btn-bg: transparent;
	--mc-btn-color: var(--mc-or);
	box-shadow: inset 0 0 0 1px var(--mc-or);
}

/* Icônes */
.mc-w .mc-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
}

.mc-w .mc-ico i,
.mc-w .mc-ico i::before,
.mc-w .mc-ico svg {
	line-height: 1 !important;
	vertical-align: middle;
}

.mc-w .mc-ico svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Champs : hauteur UNIFORME champs texte / select */
.mc-w.mc-w :where(input[type="text"], input[type="tel"], input[type="email"], select) {
	height: 50px;
	padding: 0 14px;
	line-height: normal;
}

.mc-w.mc-w :where(textarea) {
	padding: 13px 14px;
	resize: vertical;
}

.mc-w.mc-w :where(input[type="text"], input[type="tel"], input[type="email"], textarea, select) {
	font-size: 16px;
	font-family: var(--mc-font-texte);
	width: 100%;
	background: #ffffff;
	background-image: none;
	border: 1px solid #d8d8d2;
	border-radius: 8px;
	color: var(--mc-encre);
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mc-w.mc-w :where(input, textarea, select):hover {
	border-color: var(--mc-or);
}

.mc-w.mc-w :where(input, textarea, select):focus {
	outline: none;
	border-color: var(--mc-or);
	box-shadow: 0 0 0 3px rgba(217, 175, 97, 0.2);
}

.mc-w.mc-w :where(input, textarea)::placeholder {
	color: #a9a9a2;
	opacity: 1;
}

/* Masquage accessible */
.mc-w .mc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	padding: 0;
}

/* Images plaquées : (0,2,0) bat .elementor img (0,1,1) */
.mc-w .mc-media {
	height: 100%;
	min-height: 100%;
	width: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

/* Ornements partagés */
.mc-w .mc-filet {
	display: block;
	width: 58px;
	height: 2px;
	background: linear-gradient(90deg, var(--mc-or), var(--mc-or-clair));
}

.mc-w .mc-losange {
	display: inline-block;
	width: 7px;
	height: 7px;
	background: var(--mc-or);
	transform: rotate(45deg);
}


/* ================== Widget Hero — 6 designs ================== */

.mc-w.mc-hero {
	position: relative;
	padding-left: 0;
	padding-right: 0;
}

.mc-w.mc-hero .mc-hero__track {
	position: relative;
	display: grid;
}

.mc-w.mc-hero .mc-hero__slide {
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 76px var(--mc-pad-x, 24px) 110px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease, visibility 0s linear 0.7s;
	background: var(--mc-hero-teinte, var(--mc-bleu));
}

.mc-w.mc-hero .mc-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.7s ease;
	z-index: 1;
}

/* Teintes distinctes par rang par défaut */
.mc-w.mc-hero .mc-hero__slide:nth-child(2) { --mc-hero-teinte-def: #1c3260; }
.mc-w.mc-hero .mc-hero__slide:nth-child(3) { --mc-hero-teinte-def: #2d4f95; }
.mc-w.mc-hero .mc-hero__slide:nth-child(4) { --mc-hero-teinte-def: #16233f; }

.mc-w.mc-hero .mc-hero__bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.mc-w.mc-hero .mc-hero__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 28, 54, 0.55), rgba(18, 28, 54, 0.72));
}

.mc-w.mc-hero .mc-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 880px;
	width: 100%;
	text-align: center;
}

.mc-w.mc-hero .mc-hero__surtitre {
	margin: 0 0 16px;
	color: var(--mc-or);
}

.mc-w.mc-hero .mc-hero__titre {
	font-family: var(--mc-font-titres);
	font-size: clamp(29px, 5.2vmin, 48px);
	font-weight: 600;
	line-height: 1.18;
	margin: 0;
	padding: 0;
	letter-spacing: normal;
	text-transform: none;
	color: #ffffff;
	overflow-wrap: anywhere;
}

.mc-w.mc-hero .mc-hero__titre .mc-hero__mot {
	display: inline-block;
	opacity: 0;
	transform: translateY(0.5em);
}

.mc-w.mc-hero .mc-hero__slide.is-active .mc-hero__titre .mc-hero__mot {
	animation: mc-hero-mot 0.55s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
	animation-delay: calc(0.12s + var(--mc-i, 0) * 0.07s);
}

@keyframes mc-hero-mot {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mc-w.mc-hero .mc-hero__texte {
	margin: 18px 0 0;
	padding: 0;
	font-family: var(--mc-font-texte);
	font-size: 17px;
	line-height: 1.75;
	color: #ccd6ec;
}

.mc-w.mc-hero .mc-hero__btns {
	margin-top: 30px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.mc-w.mc-hero .mc-hero__slide [data-anim] {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.mc-w.mc-hero .mc-hero__slide.is-active [data-anim] {
	opacity: 1;
	transform: none;
}

.mc-w.mc-hero .mc-hero__slide.is-active .mc-hero__surtitre { transition-delay: 0.05s; }
.mc-w.mc-hero .mc-hero__slide.is-active .mc-hero__texte    { transition-delay: 0.45s; }
.mc-w.mc-hero .mc-hero__slide.is-active .mc-hero__btns     { transition-delay: 0.6s; }

/* Puces bas-gauche, flèches bas-droite */
.mc-w.mc-hero .mc-hero__dots {
	position: absolute;
	left: var(--mc-pad-x, 24px);
	bottom: 28px;
	z-index: 3;
	display: flex;
	gap: 10px;
}

.mc-w.mc-hero .mc-hero__dot {
	width: 28px;
	height: 4px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.32);
	transition: background-color 0.3s ease, width 0.3s ease;
	cursor: pointer;
}

.mc-w.mc-hero .mc-hero__dot.is-on {
	background: var(--mc-or);
	width: 40px;
}

.mc-w.mc-hero .mc-hero__arrows {
	position: absolute;
	right: var(--mc-pad-x, 24px);
	bottom: 18px;
	z-index: 3;
	display: flex;
	gap: 8px;
}

.mc-w.mc-hero .mc-hero__arrow {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	font-size: 18px;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	flex: 0 0 auto;
	position: static;
	z-index: auto;
	box-shadow: none;
}

.mc-w.mc-hero .mc-hero__arrow:hover {
	background: var(--mc-or);
	border-color: var(--mc-or);
	color: var(--mc-bleu-fonce);
	opacity: 1;
	box-shadow: none;
}

.mc-w.mc-hero .mc-hero__arrow:focus-visible {
	outline: 2px solid var(--mc-or);
	outline-offset: 2px;
}

/* ================================================================
   Design 1 — BLEU : aplat bleu profond (défaut)
   ================================================================ */

.mc-w.mc-hero--bleu .mc-hero__slide,
.mc-w.mc-hero--photo .mc-hero__slide {
	background: var(--mc-hero-teinte, var(--mc-hero-teinte-def, var(--mc-bleu)));
}

/* ================================================================
   Design 2 — NUIT : dégradé profond à lueur or
   ================================================================ */

.mc-w.mc-hero--nuit .mc-hero__slide {
	background:
		radial-gradient(circle at 82% 12%, rgba(217, 175, 97, 0.2), transparent 40%),
		radial-gradient(circle at 8% 92%, rgba(217, 175, 97, 0.1), transparent 36%),
		linear-gradient(165deg, var(--mc-hero-teinte, var(--mc-hero-teinte-def, var(--mc-bleu))) 0%, var(--mc-nuit) 100%);
}

.mc-w.mc-hero--nuit .mc-hero__inner::after {
	content: "";
	display: block;
	width: 58px;
	height: 2px;
	margin: 26px auto 0;
	background: linear-gradient(90deg, var(--mc-or), var(--mc-or-clair));
}

/* ================================================================
   Design 3 — CRÈME : fond crème, encadré filet or
   ================================================================ */

.mc-w.mc-hero--creme .mc-hero__slide {
	background: var(--mc-hero-teinte, var(--mc-creme));
}

.mc-w.mc-hero--creme .mc-hero__inner {
	border: 1px solid var(--mc-or);
	padding: 52px clamp(20px, 5vmin, 60px);
	position: relative;
}

.mc-w.mc-hero--creme .mc-hero__inner::before {
	content: "";
	position: absolute;
	inset: 6px;
	border: 1px solid rgba(217, 175, 97, 0.35);
	pointer-events: none;
}

.mc-w.mc-hero--creme .mc-hero__titre {
	color: var(--mc-bleu);
}

.mc-w.mc-hero--creme .mc-hero__texte {
	color: var(--mc-gris);
}

.mc-w.mc-hero--creme .mc-hero__dot {
	background: rgba(39, 68, 128, 0.22);
}

.mc-w.mc-hero--creme .mc-hero__dot.is-on {
	background: var(--mc-or);
}

.mc-w.mc-hero--creme .mc-hero__arrow {
	color: var(--mc-bleu);
	background: rgba(39, 68, 128, 0.08);
	border-color: rgba(39, 68, 128, 0.2);
}

/* ================================================================
   Design 4 — PHOTO : image assombrie (via champ image des slides)
   ================================================================ */

/* (structure commune : .mc-hero__bg + .mc-hero__veil) */

/* ================================================================
   Design 5 — IVOIRE : minimal clair, titre bleu, filet or
   ================================================================ */

.mc-w.mc-hero--ivoire .mc-hero__slide {
	background: var(--mc-hero-teinte, var(--mc-ivoire));
}

.mc-w.mc-hero--ivoire .mc-hero__titre {
	color: var(--mc-bleu);
}

.mc-w.mc-hero--ivoire .mc-hero__texte {
	color: var(--mc-gris);
}

.mc-w.mc-hero--ivoire .mc-hero__inner::after {
	content: "";
	display: block;
	width: 58px;
	height: 2px;
	margin: 26px auto 0;
	background: linear-gradient(90deg, var(--mc-or), var(--mc-or-clair));
}

.mc-w.mc-hero--ivoire .mc-hero__dot {
	background: rgba(39, 68, 128, 0.22);
}

.mc-w.mc-hero--ivoire .mc-hero__dot.is-on {
	background: var(--mc-or);
}

.mc-w.mc-hero--ivoire .mc-hero__arrow {
	color: var(--mc-bleu);
	background: rgba(39, 68, 128, 0.08);
	border-color: rgba(39, 68, 128, 0.2);
}

/* ================================================================
   Design 6 — CADRE : bleu profond, grand cadre or autour du slide
   ================================================================ */

.mc-w.mc-hero--cadre .mc-hero__slide {
	background:
		radial-gradient(circle at 50% 0%, rgba(217, 175, 97, 0.12), transparent 46%),
		var(--mc-hero-teinte, var(--mc-hero-teinte-def, var(--mc-bleu-fonce)));
}

.mc-w.mc-hero--cadre .mc-hero__slide::before {
	content: "";
	position: absolute;
	inset: 16px;
	border: 1px solid rgba(217, 175, 97, 0.55);
	pointer-events: none;
	z-index: 1;
}

.mc-w.mc-hero--cadre .mc-hero__dots {
	bottom: 34px;
	left: calc(var(--mc-pad-x, 24px) + 16px);
}

.mc-w.mc-hero--cadre .mc-hero__arrows {
	bottom: 26px;
	right: calc(var(--mc-pad-x, 24px) + 16px);
}

/* ---------------- Mouvement réduit / responsive ---------------- */

@media (prefers-reduced-motion: reduce) {
	.mc-w.mc-hero .mc-hero__titre .mc-hero__mot,
	.mc-w.mc-hero .mc-hero__slide.is-active .mc-hero__titre .mc-hero__mot {
		animation: none;
		opacity: 1;
		transform: none;
	}
	.mc-w.mc-hero .mc-hero__slide [data-anim],
	.mc-w.mc-hero .mc-hero__slide.is-active [data-anim] {
		transition: none;
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 767px) {
	.mc-w.mc-hero .mc-hero__slide {
		padding-top: 58px;
		padding-bottom: 100px;
	}
	.mc-w.mc-hero .mc-hero__texte {
		font-size: 16px;
	}
	.mc-w.mc-hero--cadre .mc-hero__slide::before {
		inset: 10px;
	}
}
