/**
 * MP ELEC – feuille de style principale.
 *
 * Sommaire
 *  1. Variables
 *  2. Base
 *  3. Mise en page : conteneurs .mp-con (modèle flex : padding 10px, gap 20px, largeur boxée)
 *  4. Éléments : titres, textes, boutons, images, listes, icônes
 *  5. Décors : pastilles, halos, barre dégradée
 *  6. En-tête, navigation, recherche, menu mobile
 *  7. Pied de page
 *  8. Cartes et grilles (réalisations, articles), carrousel, visionneuse
 *  9. Formulaire de contact
 * 10. Gabarits génériques (articles, recherche, 404)
 * 11. Visibilité par appareil
 *
 * Points de rupture : mobile ≤ 767px, tablette 768–1024px, ordinateur ≥ 1025px.
 *
 * Les gabarits règlent chaque bloc par variables CSS dans l'attribut style
 * (--pad, --mar, --w, --dir, --gap…). Les variables sont remises à « initial »
 * sur chaque bloc pour ne jamais hériter de celles du parent.
 */

/* ==========================================================================
   1. Variables
   ========================================================================== */

:root {
	--mp-blue: #00aeef;
	--mp-red: #ff0000;
	--mp-red-hover: #ff2d00;
	--mp-black: #000000;
	--mp-white: #ffffff;
	--mp-grey: #9f9f9f;
	--mp-grey-light: #e9e9e9;
	--mp-input-bg: #f4f4f4;
	--mp-border: #d6d6d6;
	--mp-text: #334155;
	--mp-page-bg: #f0f5fa;

	--mp-font-inter: "Inter", sans-serif;
	--mp-font-roboto: "Roboto", sans-serif;
	--mp-font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

	--mp-glow-red: 0 0 10px rgba(255, 0, 0, .75);
	--mp-glow-blue: 0 0 10px rgba(0, 174, 239, .75);
	--mp-boxed: 1140px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--mp-page-bg);
	color: var(--mp-text);
	font-family: var(--mp-font-system);
	font-size: 16px;
	line-height: 1.65;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

/* Taille de base réduite sur petit écran, comme l'ancien thème. */
@media (max-width: 544px) {
	body {
		font-size: 14.592px;
	}
}

body.mp-menu-open {
	overflow: hidden;
}

img,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--mp-blue);
	text-decoration: none;
	transition: color .2s;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: #1e293b;
	font-weight: 600;
	line-height: 1.3;
}

h1 {
	line-height: 1.4;
}

p {
	margin: 0 0 1.6em;
}

button,
input,
textarea {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--mp-blue);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	word-wrap: normal !important;
}

.mp-skip-link {
	position: absolute;
	top: -100px;
	left: 10px;
	z-index: 1000;
	padding: 10px 20px;
	border-radius: 50px;
	background: var(--mp-black);
	color: var(--mp-white);
}

.mp-skip-link:focus {
	top: 10px;
}

.mp-main {
	display: block;
}

/* ==========================================================================
   3. Mise en page : conteneurs
   ========================================================================== */

.mp-con {
	/* Réinitialisation : rien n'est hérité du conteneur parent. */
	--dir: initial; --dir-m: initial;
	--w: initial; --w-m: initial;
	--max: initial;
	--gap: initial; --gap-m: initial;
	--jc: initial; --jc-m: initial;
	--ai: initial; --ai-m: initial;
	--wrap: initial;
	--pad: initial; --pad-m: initial;
	--mar: initial; --mar-m: initial;
	--minh: initial;
	--bg: initial; --bg-img: initial; --bg-pos: initial; --bg-size: initial; --bg-rep: initial;
	--ov: initial; --ov-op: initial; --ov-blend: initial;
	--bd: initial; --radius: initial; --shadow: initial; --z: initial;

	position: relative;
	display: flex;
	flex-direction: var(--dir, column);
	flex-wrap: var(--wrap, nowrap);
	justify-content: var(--jc, normal);
	align-items: var(--ai, normal);
	gap: var(--gap, 20px);
	width: var(--w, 100%);
	min-width: 0;
	min-height: var(--minh, auto);
	margin: var(--mar, 0);
	padding: var(--pad, 10px);
	border: var(--bd, 0);
	border-radius: var(--radius, 0);
	box-shadow: var(--shadow, none);
	z-index: var(--z, auto);
	background-color: var(--bg, transparent);
	background-image: var(--bg-img, none);
	background-position: var(--bg-pos, 0 0);
	background-size: var(--bg-size, auto);
	background-repeat: var(--bg-rep, repeat);
}

/* Conteneur « boxé » : le fond occupe toute la largeur, le contenu est centré. */
.mp-con--boxed {
	flex-direction: column;
	justify-content: normal;
	align-items: normal;
}

.mp-con__inner {
	display: flex;
	flex-direction: var(--dir, column);
	flex-wrap: var(--wrap, nowrap);
	justify-content: var(--jc, normal);
	align-items: var(--ai, normal);
	gap: var(--gap, 20px);
	width: 100%;
	max-width: min(100%, var(--max, var(--mp-boxed)));
	height: 100%;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

/* Colonnes à largeur fixe (ne se réduisent pas). */
.mp-con--fixed {
	flex-grow: 0;
	flex-shrink: 0;
}

.mp-con--grow {
	flex-grow: 1;
}

/* Calque de couleur sur image de fond. */
.mp-con--overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-color: var(--ov, #000);
	opacity: var(--ov-op, .5);
	mix-blend-mode: var(--ov-blend, normal);
	pointer-events: none;
}

.mp-con--overlay > * {
	position: relative;
}

@media (max-width: 767px) {
	.mp-con {
		flex-direction: var(--dir-m, var(--dir, column));
		flex-wrap: wrap;
		justify-content: var(--jc-m, var(--jc, normal));
		align-items: var(--ai-m, var(--ai, normal));
		gap: var(--gap-m, var(--gap, 20px));
		width: var(--w-m, 100%);
		margin: var(--mar-m, var(--mar, 0));
		padding: var(--pad-m, var(--pad, 10px));
	}

	.mp-con--boxed {
		flex-direction: column;
	}

	.mp-con__inner {
		flex-direction: var(--dir-m, var(--dir, column));
		flex-wrap: wrap;
		justify-content: var(--jc-m, var(--jc, normal));
		align-items: var(--ai-m, var(--ai, normal));
		gap: var(--gap-m, var(--gap, 20px));
	}
}

/* ==========================================================================
   4. Éléments
   ========================================================================== */

/* Enveloppe commune : marges internes/externes, largeur, alignement. */
.mp-w {
	--mar: initial; --mar-m: initial;
	--pad: initial; --pad-m: initial;
	--ww: initial; --ww-m: initial;
	--as: initial; --as-m: initial;
	--ta: initial; --ta-m: initial;
	--c: initial;
	--ff: initial; --fs: initial; --fs-m: initial; --fw: initial; --fst: initial; --tt: initial; --lh: initial; --lh-m: initial;

	width: var(--ww, auto);
	max-width: 100%;
	min-width: 0;
	margin: var(--mar, 0);
	padding: var(--pad, 0);
	align-self: var(--as, auto);
	text-align: var(--ta, inherit);
}

.mp-w--auto {
	width: auto;
}

@media (max-width: 767px) {
	.mp-w {
		width: var(--ww-m, var(--ww, auto));
		margin: var(--mar-m, var(--mar, 0));
		padding: var(--pad-m, var(--pad, 0));
		align-self: var(--as-m, var(--as, auto));
		text-align: var(--ta-m, var(--ta, inherit));
	}

	.mp-w--auto {
		width: auto;
	}
}

/* Titres : Inter 800 italique noir par défaut. */
.mp-heading {
	color: var(--c, var(--mp-black));
	font-family: var(--ff, var(--mp-font-inter));
	font-size: var(--fs, 25px);
	font-weight: var(--fw, 800);
	font-style: var(--fst, italic);
	text-transform: var(--tt, none);
	line-height: var(--lh, 1.3);
}

h1.mp-heading {
	line-height: var(--lh, 1.4);
}

/* Petit libellé (ex. « Voir nos services ») : posé dans une ligne de texte standard. */
span.mp-heading {
	display: block;
	line-height: var(--lh, 26.4px);
}

.mp-heading a {
	color: inherit;
}

@media (max-width: 767px) {
	.mp-heading {
		font-size: var(--fs-m, var(--fs, 25px));
	}
}

/* Textes riches : Inter 17px / 20px noir. */
.mp-text {
	color: var(--c, var(--mp-black));
	font-family: var(--ff, var(--mp-font-inter));
	font-size: var(--fs, 17px);
	font-weight: var(--fw, 400);
	font-style: var(--fst, normal);
	line-height: var(--lh, 20px);
}

.mp-text p {
	margin: 0 0 1.6em;
}

.mp-text ul,
.mp-text ol {
	margin: 1em 0;
	padding-left: 20px;
}

.mp-text li {
	margin: 0;
}

.mp-text li > p {
	margin: 0;
}

.mp-text a {
	color: var(--mp-blue);
}

.mp-text a:hover {
	text-decoration: underline;
}

/* Intertitres dans les textes : tailles et graisse d'origine (police du bloc). */
.mp-text h1,
.mp-text h2,
.mp-text h3,
.mp-text h4,
.mp-text h5,
.mp-text h6 {
	margin: 0 0 20px;
	color: #1e293b;
	font-family: inherit;
	font-weight: 600;
	font-style: normal;
}

.mp-text h1 { font-size: 36px; line-height: 1.4; }
.mp-text h2 { font-size: 30px; line-height: 1.3; }
.mp-text h3 { font-size: 24px; line-height: 1.3; }
.mp-text h4 { font-size: 20px; line-height: 1.2; }
.mp-text h5 { font-size: 18px; line-height: 1.2; }
.mp-text h6 { font-size: 16px; line-height: 1.25; }

.mp-text img {
	height: auto;
	border-radius: 15px;
}

@media (max-width: 767px) {
	.mp-text {
		line-height: var(--lh-m, var(--lh, 20px));
	}
}

/* Boutons : contour coloré arrondi, remplissage au survol. */
.mp-btn-wrap {
	line-height: 1;
}

.mp-btn {
	--btn: var(--mp-blue);
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid var(--btn);
	border-radius: 50px;
	background: transparent;
	color: var(--mp-black);
	font-family: var(--mp-font-roboto);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	transition: background-color .3s, color .3s, border-color .3s;
}

.mp-btn:hover,
.mp-btn:focus-visible {
	background-color: var(--btn);
	color: var(--mp-white);
}

.mp-btn--red {
	--btn: var(--mp-red);
}

.mp-btn--white {
	--btn: var(--mp-white);
	color: var(--mp-white);
}

.mp-btn--white:hover,
.mp-btn--white:focus-visible {
	color: var(--mp-black);
}

/* Images. */
.mp-image {
	--iw: initial; --iw-m: initial; --ih: initial; --ih-m: initial; --ir: initial; --ir-m: initial; --fit: initial;
	text-align: var(--ta, center);
}

.mp-image a {
	display: inline-block;
	max-width: 100%;
}

.mp-image img {
	display: inline-block;
	width: var(--iw, auto);
	max-width: 100%;
	height: var(--ih, auto);
	border-radius: var(--ir, 0);
	object-fit: var(--fit, fill);
}

@media (max-width: 767px) {
	.mp-image {
		text-align: var(--ta-m, var(--ta, center));
	}

	.mp-image img {
		width: var(--iw-m, var(--iw, auto));
		height: var(--ih-m, var(--ih, auto));
		border-radius: var(--ir-m, var(--ir, 0));
	}
}

/* Liste à puces graphiques (rouge / bleue). */
.mp-icon-list {
	--gap: initial; --isz: initial;
	display: flex;
	flex-direction: column;
	gap: var(--gap, 5px);
	margin: var(--mar, 0);
	padding: var(--pad, 0);
	list-style: none;
	color: var(--c, var(--mp-black));
	font-family: var(--ff, var(--mp-font-inter));
	font-size: var(--fs, 17px);
	font-weight: var(--fw, 400);
	line-height: 1.65;
}

.mp-icon-list li {
	display: flex;
	align-items: center;
}

.mp-icon-list__icon {
	flex: 0 0 auto;
	width: var(--isz, 8px);
	height: var(--isz, 8px);
	margin-right: calc(10px - var(--isz, 8px) + 5px);
}

/* Icône simple (flèche du bandeau d'accueil). */
.mp-icon {
	--isz: initial;
	padding-bottom: calc(var(--isz, 50px) * .28); /* descente de ligne, comme l'original */
	line-height: 1;
	text-align: center;
}

.mp-icon img {
	display: inline-block;
	width: var(--isz, 50px);
	height: var(--isz, 50px);
	vertical-align: baseline;
}

/* Séparateur fin de l'en-tête. */
.mp-divider {
	width: 100%;
	height: 0;
	margin: 0;
	padding: 2px 0;
	border: 0;
	background: linear-gradient(var(--mp-grey-light), var(--mp-grey-light)) center / 100% 1px no-repeat;
}

/* ==========================================================================
   5. Décors
   ========================================================================== */

/* Pastille lumineuse devant un titre. */
.mp-dot,
.mp-dot--span > span {
	position: relative;
}

.mp-dot::before,
.mp-dot--span > span::before {
	content: "";
	position: absolute;
	top: 10px;
	left: -25px;
	width: 15px;
	height: 15px;
	border-radius: 15px;
	background: var(--mp-red);
	box-shadow: var(--mp-glow-red);
}

.mp-dot--span::before {
	content: none;
}

.mp-dot--blue::before,
.mp-dot--blue.mp-dot--span > span::before {
	background: var(--mp-blue);
	box-shadow: var(--mp-glow-blue);
}

.mp-dot--sm::before {
	top: 5px;
	left: -20px;
	width: 10px;
	height: 10px;
}

/* Halo flou derrière les pictogrammes. */
.mp-glow {
	position: relative;
}

.mp-glow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: var(--mp-blue);
	opacity: .1;
	filter: blur(50px);
	transform: translate(-50%, -50%);
}

.mp-glow--red::before {
	background: var(--mp-red);
}

.mp-glow img {
	position: relative;
}

/* Bandeau « fond carte » en mode produit. */
.mp-blend {
	mix-blend-mode: multiply;
}

/* Barre dégradée animée bleu / rouge en haut de l'en-tête. */
.mp-gradient-bar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 4px;
	background: linear-gradient(to right, var(--mp-blue), var(--mp-red), var(--mp-blue));
	background-size: 300% 100%;
	animation: mp-gradient 10s linear infinite;
}

@keyframes mp-gradient {
	0% { background-position: 0% 0%; }
	50% { background-position: 100% 0%; }
	100% { background-position: 0% 0%; }
}

@media (prefers-reduced-motion: reduce) {
	.mp-gradient-bar::before {
		animation: none;
	}

	html {
		scroll-behavior: auto;
	}
}

/* ==========================================================================
   6. En-tête, navigation, recherche, menu mobile
   ========================================================================== */

.mp-header {
	position: relative;
	z-index: 10;
}

/* Navigation horizontale : éléments répartis, séparés par un carré gris. */
.mp-nav__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mp-nav--horizontal .mp-nav__list > li {
	display: flex;
	flex-grow: 1;
	align-items: center;
}

.mp-nav--horizontal .mp-nav__list > li:not(:last-child)::after {
	content: "";
	flex: 0 0 5px;
	width: 5px;
	height: 5px;
	background: #c4c4c4;
}

.mp-nav--horizontal .mp-nav__list a {
	display: flex;
	flex-grow: 1;
	justify-content: center;
	padding: 5px 0;
	color: var(--mp-black);
	font-family: var(--mp-font-roboto);
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	transition: transform .3s;
}

.mp-nav--horizontal .mp-nav__list a:hover,
.mp-nav--horizontal .mp-nav__list a:focus-visible {
	transform: scale(1.2);
}

.mp-nav .current-menu-item > a,
.mp-nav .current-menu-ancestor > a,
.mp-nav .current-page-ancestor > a {
	font-weight: 600;
}

/* Navigation verticale (menu mobile). */
.mp-nav--vertical .mp-nav__list {
	flex-direction: column;
	align-items: center;
}

.mp-nav--vertical .mp-nav__list a {
	position: relative;
	display: inline-block;
	padding: 13px 20px;
	color: var(--mp-black);
	font-family: var(--mp-font-inter);
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
}

.mp-nav--vertical .mp-nav__list a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: currentColor;
	opacity: 0;
	transition: opacity .3s;
}

.mp-nav--vertical .mp-nav__list a:hover {
	color: #505050;
}

.mp-nav--vertical .mp-nav__list a:hover::after,
.mp-nav--vertical .current-menu-item > a::after {
	opacity: 1;
}

.mp-nav--vertical .current-menu-item > a {
	color: var(--mp-blue);
	font-weight: 400;
}

/* Champ de recherche arrondi. */
.mp-search {
	display: flex;
	align-items: stretch;
	height: 40px;
	overflow: hidden;
	border-radius: 50px;
	background: var(--mp-input-bg);
}

.mp-search__input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0 13.33px;
	border: 0;
	background: transparent;
	color: var(--mp-black);
	font-family: var(--mp-font-roboto);
	font-size: 15px;
	line-height: 1;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
}

.mp-search__input::placeholder {
	color: #7a7a7a;
}

.mp-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.mp-search__submit {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mp-black);
	cursor: pointer;
}

.mp-search__submit svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.mp-search:focus-within {
	box-shadow: 0 0 0 1px var(--mp-blue);
}

/* Bouton carré du menu mobile. */
.mp-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 10px;
	border: 0;
	border-radius: 10px;
	background: var(--mp-grey-light);
	color: var(--mp-black);
	cursor: pointer;
}

.mp-menu-toggle svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.mp-icon--stacked {
	text-align: right;
}

/* Menu mobile plein écran. */
.mp-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 9999;
	overflow-y: auto;
	background: var(--mp-white);
	animation: mp-fade .25s ease-out;
}

.mp-mobile-menu[hidden] {
	display: none;
}

@keyframes mp-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Tablette : la barre mobile remplace l'en-tête ordinateur (logo limité en largeur). */
@media (min-width: 768px) and (max-width: 1024px) {
	.mp-mobilebar .mp-image img,
	.mp-mobile-menu .mp-image img {
		width: auto;
		max-height: 80px;
	}
}

@media (min-width: 1025px) {
	.mp-mobile-menu {
		display: none !important;
	}
}

/* ==========================================================================
   7. Pied de page
   ========================================================================== */

.mp-footer__label {
	--fs: 15px;
	--fw: 500;
	--fst: normal;
	--c: var(--mp-grey);
}

.mp-footer__value {
	--fst: normal;
	--c: var(--mp-white);
	margin: 0;
}

.mp-footer__value a {
	color: inherit;
}

.mp-footer__value a:hover {
	color: var(--mp-blue);
}

.mp-footer__bottom {
	padding: 15px 0 0;
	background: var(--mp-black);
	color: var(--mp-white);
	font-family: var(--mp-font-roboto);
}

.mp-footer__bottom-inner {
	display: flex;
	max-width: 1400px;
	margin: 0 auto;
}

.mp-footer__col {
	width: 50%;
	padding: 10px;
}

.mp-footer__col--right {
	text-align: right;
}

.mp-footer__bottom p {
	margin: 0;
}

/* Ligne de copyright (ordinateur) : interligne très serré et marge basse, comme l'original. */
.mp-footer__copy {
	margin-bottom: calc(1.6em + 20px) !important;
	padding-top: 10px;
	line-height: .1;
}

/* Copyright empilé (tablette et mobile). */
.mp-footer__copy-stack {
	padding-top: 10px;
	text-align: center;
	line-height: 1.6;
}

.mp-footer__copy-stack p {
	margin-bottom: 1.6em !important;
}

.mp-footer__copy a,
.mp-footer__copy-stack a {
	border-bottom: 1px solid var(--mp-white);
	color: var(--mp-white);
}

.mp-footer__copy a:hover,
.mp-footer__copy-stack a:hover {
	border-color: var(--mp-red-hover);
	color: var(--mp-red-hover);
}

.mp-footer__credit {
	line-height: 1.6;
}

.mp-footer__credit img {
	position: relative;
	top: -7px;
	width: 150px;
}

.mp-footer__credit a {
	color: var(--mp-white);
}

@media (max-width: 1024px) {
	.mp-footer__bottom-inner {
		flex-direction: column;
	}

	.mp-footer__col,
	.mp-footer__col--right {
		width: 100%;
		text-align: center;
	}
}

/* ==========================================================================
   8. Cartes et grilles, carrousel, visionneuse
   ========================================================================== */

.mp-grid {
	--cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: 15px;
}

.mp-grid--posts {
	gap: 20px;
}

@media (max-width: 1024px) {
	.mp-grid--realisations,
	.mp-grid--list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.mp-grid,
	.mp-grid--realisations,
	.mp-grid--list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Carte réalisation. */
.mp-card-real {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
}

.mp-card-real__title {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 10px 0;
	background: rgba(0, 0, 0, .549);
	color: var(--mp-white);
	font-family: var(--mp-font-inter);
	font-size: 20px;
	font-weight: 800;
	font-style: italic;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
	pointer-events: none;
}

/* Carrousel. */
.mp-carousel {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.mp-carousel__track {
	display: flex;
	height: 100%;
	transition: transform .5s ease;
}

.mp-carousel__slide {
	flex: 0 0 100%;
	height: 100%;
}

.mp-carousel__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mp-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	padding: 0;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, .52);
	cursor: pointer;
	transform: translateY(-50%);
}

.mp-carousel__arrow svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.mp-carousel__arrow:hover {
	color: var(--mp-white);
}

.mp-carousel__arrow--prev {
	left: 10px;
}

.mp-carousel__arrow--next {
	right: 10px;
}

/* Carte article : photo teintée bleue (multiplier) ou rouge (obscurcir). */
.mp-card-post {
	--bg-img: none;
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 112px;
	overflow: hidden;
	border-radius: 15px;
	background: var(--bg-img) center / cover no-repeat;
}

.mp-card-post::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--mp-blue);
	mix-blend-mode: multiply;
}

.mp-card-post--red {
	min-height: 300px;
}

.mp-card-post--red::before {
	background: var(--mp-red);
	mix-blend-mode: darken;
}

.mp-card-post__title {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 120px 15px;
	color: var(--mp-white);
	font-family: var(--mp-font-inter);
	font-size: 20px;
	font-weight: 600;
	font-style: italic;
	line-height: 1.3;
	text-align: center;
}

.mp-card-post--red .mp-card-post__title {
	position: absolute;
	top: 50%;
	width: 100%;
	padding: 0 15px;
	transform: translateY(-50%);
}

.mp-card-post__title a {
	color: inherit;
}

.mp-card-post__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Chargement infini des réalisations. */
.mp-load-more {
	display: flex;
	justify-content: center;
	min-height: 60px;
	padding-top: 20px;
}

.mp-load-more__spinner {
	width: 28px;
	height: 28px;
	border: 3px solid var(--mp-grey-light);
	border-top-color: var(--mp-blue);
	border-radius: 50%;
	opacity: 0;
}

.mp-load-more.is-loading .mp-load-more__spinner {
	opacity: 1;
	animation: mp-spin .8s linear infinite;
}

@keyframes mp-spin {
	to { transform: rotate(360deg); }
}

/* Visionneuse plein écran. */
.mp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .9);
	animation: mp-fade .2s ease-out;
}

.mp-lightbox[hidden] {
	display: none;
}

.mp-lightbox__img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	user-select: none;
}

.mp-lightbox__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 12px;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, .8);
	cursor: pointer;
}

.mp-lightbox__btn:hover {
	color: var(--mp-white);
}

.mp-lightbox__btn svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.mp-lightbox__close { top: 10px; right: 10px; }
.mp-lightbox__prev { top: 50%; left: 10px; transform: translateY(-50%); }
.mp-lightbox__next { top: 50%; right: 10px; transform: translateY(-50%); }

.mp-lightbox__count {
	position: absolute;
	top: 22px;
	left: 20px;
	color: rgba(255, 255, 255, .8);
	font-family: var(--mp-font-inter);
	font-size: 14px;
}

/* ==========================================================================
   9. Formulaire de contact
   ========================================================================== */

.mp-form {
	display: flex;
	flex-wrap: wrap;
	row-gap: 15px;
}

.mp-form__group {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.mp-form__label {
	padding-bottom: 5px;
	color: var(--mp-black);
	font-family: var(--mp-font-roboto);
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
}

.mp-form__req {
	margin-left: 3px;
	color: var(--mp-red);
}

.mp-form__field {
	width: 100%;
	min-height: 40px;
	padding: 5px 14px;
	border: 1px solid var(--mp-border);
	border-radius: 20px;
	background: transparent;
	color: var(--mp-black);
	font-family: var(--mp-font-roboto);
	font-size: 15px;
	line-height: 1.4;
	transition: border-color .2s;
	-webkit-appearance: none;
	appearance: none;
}

textarea.mp-form__field {
	padding: 10px 14px;
	resize: vertical;
}

.mp-form__field:focus {
	border-color: var(--mp-blue);
	outline: none;
}

.mp-form__submit {
	width: 100%;
	min-height: 40px;
	padding: 12px 24px;
	border: 0;
	border-radius: 50px;
	background: var(--mp-blue);
	color: var(--mp-white);
	font-family: var(--mp-font-roboto);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: filter .3s;
}

.mp-form__submit:hover {
	filter: brightness(.92);
}

.mp-form__submit[disabled] {
	opacity: .6;
	cursor: wait;
}

/* Badge reCAPTCHA affiché dans le formulaire (et non flottant). */
.mp-form__recaptcha:empty {
	display: none;
}

.mp-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mp-form__message {
	width: 100%;
	margin: 0;
	padding: 10px 15px;
	border-radius: 15px;
	font-family: var(--mp-font-roboto);
	font-size: 15px;
}

.mp-form__message--success {
	background: #e6f7fd;
	color: #046a91;
}

.mp-form__message--error {
	background: #ffe8e8;
	color: #b00000;
}

/* ==========================================================================
   10. Gabarits génériques
   ========================================================================== */

.mp-meta {
	margin: 0;
	color: var(--mp-grey);
	font-family: var(--mp-font-inter);
	font-size: 15px;
}

.mp-entry > :last-child {
	margin-bottom: 0;
}

.mp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mp-tags a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--mp-blue);
	border-radius: 50px;
	color: var(--mp-black);
	font-family: var(--mp-font-roboto);
	font-size: 14px;
	line-height: 1;
	transition: background-color .3s, color .3s;
}

.mp-tags a:hover {
	background: var(--mp-blue);
	color: var(--mp-white);
}

.mp-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
}

.mp-gallery__item {
	display: block;
	overflow: hidden;
	border-radius: 20px;
	aspect-ratio: 1 / 1;
}

.mp-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}

.mp-gallery__item:hover img {
	transform: scale(1.04);
}

@media (max-width: 767px) {
	.mp-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.mp-card-result {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	border-radius: 20px;
	background: var(--mp-white);
}

.mp-card-result__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.mp-card-result__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
	padding: 20px;
}

.mp-card-result__title {
	color: var(--mp-black);
	font-family: var(--mp-font-inter);
	font-size: 20px;
	font-weight: 800;
	font-style: italic;
}

.mp-card-result__title a {
	color: inherit;
}

.mp-card-result__excerpt {
	flex: 1;
	color: var(--mp-black);
	font-family: var(--mp-font-inter);
	font-size: 15px;
	line-height: 1.4;
}

.mp-pagination {
	margin-top: 30px;
	text-align: center;
}

.mp-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.mp-pagination .page-numbers {
	color: #707070;
	font-family: var(--mp-font-inter);
	font-size: 18px;
	font-weight: 700;
}

.mp-pagination .page-numbers.current {
	color: #045cb4;
}

.mp-pagination a.page-numbers:hover {
	color: var(--mp-blue);
}

.mp-empty__search {
	max-width: 500px;
}

/* ==========================================================================
   11. Visibilité par appareil
   ========================================================================== */

@media (min-width: 1025px) {
	.mp-hide-d { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.mp-hide-t { display: none !important; }
}

@media (max-width: 767px) {
	.mp-hide-m { display: none !important; }
}
