/**
 * Elevation Cie — sections 6 à 14 de l'accueil.
 *
 * Styles propres aux patterns : accueil-profils, accueil-methode, accueil-qui,
 * accueil-realisations, accueil-ressources, accueil-faq, accueil-poitiers, accueil-cta.
 * À charger en front ET dans l'éditeur (add_editor_style), après theme.css.
 * Couleurs, tailles et espacements : uniquement les variables de theme.json (--wp--preset--*).
 * Toutes les classes sont préfixées « ec- » ; les icônes sont des masques CSS (aucune image à charger).
 */

/* --------------------------------------------------------------------------
   Icônes (SVG en masque, la couleur vient de background-color)
   -------------------------------------------------------------------------- */
:root {
	--ec-ico-fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8H13M9 4L13 8L9 12'/%3E%3C/svg%3E");
	--ec-ico-horloge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12L15 14'/%3E%3C/svg%3E");
	--ec-ico-valide: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5L9.5 17.5L19.5 7'/%3E%3C/svg%3E");
	--ec-ico-coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5L8.2 14L15.5 6.5'/%3E%3C/svg%3E");
	--ec-ico-repere: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21C12 21 5.5 15.4 5.5 10A6.5 6.5 0 0 1 18.5 10C18.5 15.4 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E");
	--ec-ico-personne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1' stroke-linecap='round'%3E%3Ccircle cx='24' cy='17' r='8'/%3E%3Cpath d='M8 42C8 33.2 15.2 27 24 27C32.8 27 40 33.2 40 42'/%3E%3C/svg%3E");
}

/* Profils */
.ec-profil-batiment {
	--ec-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3A1 1 0 0 0 14.7 7.7L16.3 9.3A1 1 0 0 0 17.7 9.3L21.2 5.8A6 6 0 0 1 13.3 13.7L6.4 20.6A2.1 2.1 0 0 1 3.4 17.6L10.3 10.7A6 6 0 0 1 18.2 2.8L14.7 6.3Z'/%3E%3C/svg%3E");
}
.ec-profil-industrie {
	--ec-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 2.5V5M12 19V21.5M2.5 12H5M19 12H21.5M5.3 5.3L7.1 7.1M16.9 16.9L18.7 18.7M5.3 18.7L7.1 16.9M16.9 7.1L18.7 5.3'/%3E%3C/svg%3E");
}
.ec-profil-negoce {
	--ec-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8L12 3L3 8V16L12 21L21 16V8Z'/%3E%3Cpath d='M3 8L12 13L21 8M12 13V21'/%3E%3C/svg%3E");
}
.ec-profil-commerce {
	--ec-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 9.5L5 4.5H19L20.5 9.5'/%3E%3Cpath d='M3.5 9.5A2.8 2.8 0 0 0 9.1 9.5A2.8 2.8 0 0 0 14.9 9.5A2.8 2.8 0 0 0 20.5 9.5'/%3E%3Cpath d='M5 12V20H19V12M10 20V15H14V20'/%3E%3C/svg%3E");
}
.ec-profil-cabinet {
	--ec-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5A1 1 0 0 1 10 4H14A1 1 0 0 1 15 5V7M3 12.5H21'/%3E%3C/svg%3E");
}
.ec-profil-services {
	--ec-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4H18A2 2 0 0 1 20 6V20A2 2 0 0 1 18 22H6A2 2 0 0 1 4 20V6A2 2 0 0 1 6 4H8'/%3E%3Cpath d='M9 14L11 16L15 12'/%3E%3C/svg%3E");
}

/* Couvertures d'articles */
.ec-couverture-prix {
	--ec-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.2V4.5A1 1 0 0 1 4.5 3.5H12.2L20.5 11.8A1 1 0 0 1 20.5 13.2L13.2 20.5A1 1 0 0 1 11.8 20.5L3.5 12.2Z'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E");
}
.ec-couverture-tableur {
	--ec-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4' width='17' height='16' rx='2'/%3E%3Cpath d='M3.5 9H20.5M3.5 14.5H20.5M9.5 4V20M15 4V20'/%3E%3C/svg%3E");
}
.ec-couverture-logiciel {
	--ec-icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2.5' width='14' height='19' rx='2'/%3E%3Crect x='8' y='5.5' width='8' height='4' rx='1'/%3E%3Cpath d='M8.5 13H9M12 13H12.5M15 13H15.5M8.5 16.5H9M12 16.5H12.5M15 16.5H15.5'/%3E%3C/svg%3E");
}

/* Réglages communs des masques */
.ec-lien-fleche a::after,
.ec-bouton-fleche .wp-block-button__link::after,
.ec-profil::after,
.ec-profil-compact > h3::before,
.ec-etape-label::before,
.ec-portrait::before,
.ec-couverture::after,
.ec-zone::before,
ul.ec-reassurances > li::before {
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* --------------------------------------------------------------------------
   Liens secondaires avec flèche (« Voir l'offre… », « Lire l'article », « Voir mes réalisations »)
   -------------------------------------------------------------------------- */
.ec-lien-fleche a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	font-weight: 500;
	text-decoration: none;
}

.ec-lien-fleche a:hover,
.ec-lien-fleche a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Couleur de l'anneau : theme.css (pétrole sur fond clair, pétrole lumineux sur fond sombre). */
.ec-lien-fleche a:focus-visible {
	border-radius: 4px;
}

.ec-bouton-fleche .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
}

.ec-lien-fleche a::after,
.ec-bouton-fleche .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask-image: var(--ec-ico-fleche);
	mask-image: var(--ec-ico-fleche);
	transition: transform 0.15s ease;
}

.ec-lien-fleche a:hover::after,
.ec-bouton-fleche .wp-block-button__link:hover::after {
	transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Cartes de même hauteur dans une rangée de colonnes (profils, réalisations, articles)
   -------------------------------------------------------------------------- */
.ec-cartes > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.ec-cartes > .wp-block-column > .wp-block-group {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.ec-cartes > .wp-block-column > .wp-block-group > .ec-lien-fleche:last-child {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--30);
}

/* --------------------------------------------------------------------------
   6. Pour qui (accueil-profils)
   -------------------------------------------------------------------------- */
.ec-profil {
	position: relative;
}

/* Pastille de l'icône, en haut à droite de la carte */
.ec-profil::before,
.ec-profil::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.ec-profil::before {
	top: var(--wp--preset--spacing--50);
	right: var(--wp--preset--spacing--50);
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background-color: var(--wp--preset--color--petrole-clair);
}

.ec-profil::after {
	top: calc(var(--wp--preset--spacing--50) + 11px);
	right: calc(var(--wp--preset--spacing--50) + 11px);
	width: 22px;
	height: 22px;
	background-color: var(--wp--preset--color--petrole);
	-webkit-mask-image: var(--ec-icone);
	mask-image: var(--ec-icone);
}

.ec-profil > .ec-profil-label {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding-right: 56px;
	font-size: 0.75rem;
	line-height: 1.35;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--texte-doux);
}

.ec-profil > .ec-profil-label + h3 {
	margin-block-start: var(--wp--preset--spacing--30);
}

.ec-profil > h3 + .ec-enjeu {
	margin-block-start: var(--wp--preset--spacing--30);
}

.ec-profil > p.ec-enjeu {
	padding: 0.625rem 0.875rem;
	border-radius: 10px;
	font-weight: 500;
	line-height: 1.45;
}

.ec-profil > .ec-enjeu + p {
	margin-block-start: var(--wp--preset--spacing--30);
}

/* Cartes compactes */
.ec-cartes > .wp-block-column > .ec-profil-compact {
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--bordure);
	border-radius: 16px;
}

.ec-profil-compact > h3 {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0;
}

.ec-profil-compact > h3::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background-color: var(--wp--preset--color--petrole);
	-webkit-mask-image: var(--ec-icone);
	mask-image: var(--ec-icone);
}

.ec-profil-compact > .ec-enjeu-compact {
	margin-block-start: 0.5rem;
	font-weight: 500;
	line-height: 1.45;
}

.ec-profil-compact > .ec-enjeu-compact + p {
	margin-block-start: 0.375rem;
	line-height: 1.55;
}

/* --------------------------------------------------------------------------
   7. La méthode (accueil-methode)
   -------------------------------------------------------------------------- */
.ec-etapes > .ec-etape {
	position: relative;
	display: flex;
	flex-direction: column;
}

.ec-etape > .ec-etape-num {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	margin: 0;
	border-radius: 999px;
	background-color: var(--wp--preset--color--petrole);
	color: var(--wp--preset--color--blanc);
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1;
}

/* Trait fin qui relie un numéro à l'étape suivante */
.ec-etape > .ec-etape-num::after {
	content: "";
	position: absolute;
	top: 24px;
	left: 60px;
	right: 0;
	height: 1px;
	background-color: var(--wp--preset--color--bordure);
}

.ec-etapes > .ec-etape:last-child > .ec-etape-num::after {
	display: none;
}

.ec-etape > .ec-etape-num + h3 {
	margin-block-start: var(--wp--preset--spacing--40);
}

.ec-etape > h3 + .ec-etape-texte {
	margin-block-start: 0.625rem;
}

.ec-etape > .ec-etape-texte {
	margin-block-end: 1.25rem;
}

.ec-etape > .ec-etape-infos {
	margin-block-start: auto;
	padding-top: 0.875rem;
	border-top: 1px solid var(--wp--preset--color--bordure);
}

.ec-etape-infos > .ec-etape-label {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.5;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--petrole);
}

.ec-etape-label::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask-image: var(--ec-ico-horloge);
	mask-image: var(--ec-ico-horloge);
}

.ec-etape-label-coche::before {
	-webkit-mask-image: var(--ec-ico-valide);
	mask-image: var(--ec-ico-valide);
}

.ec-etape-infos > .ec-etape-label + p {
	margin-block-start: 0.375rem;
	line-height: 1.5;
}

/* Sur ordinateur : grille à sous-grille pour aligner numéros, titres, textes et encadrés d'une étape à l'autre */
@media (min-width: 782px) {
	@supports (grid-template-rows: subgrid) {
		.wp-block-columns.ec-etapes {
			display: grid;
			grid-template-columns: repeat(4, minmax(0, 1fr));
			grid-template-rows: repeat(4, auto);
			row-gap: 0;
		}

		.wp-block-columns.ec-etapes > .ec-etape {
			display: grid;
			grid-row: span 4;
			grid-template-rows: subgrid;
			align-content: start;
		}

		.ec-etape > .ec-etape-infos {
			margin-block-start: 0;
		}
	}
}

@media (max-width: 781px) {
	.ec-etape > .ec-etape-num::after {
		display: none;
	}

	.ec-etape > .ec-etape-infos {
		margin-block-start: 0;
	}
}

/* --------------------------------------------------------------------------
   8. Qui est derrière (accueil-qui)
   -------------------------------------------------------------------------- */
.ec-qui-colonnes .ec-portrait {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 30rem;
	padding: var(--wp--preset--spacing--50);
	border: 1px dashed rgba(243, 244, 245, 0.28);
	border-radius: 20px;
	background-color: rgba(243, 244, 245, 0.04);
}

/* Silhouette au trait (emplacement du portrait) */
.ec-portrait::before {
	content: "";
	position: absolute;
	top: var(--wp--preset--spacing--50);
	left: var(--wp--preset--spacing--50);
	width: 96px;
	height: 96px;
	background-color: var(--wp--preset--color--petrole-clair);
	-webkit-mask-image: var(--ec-ico-personne);
	mask-image: var(--ec-ico-personne);
}

.ec-portrait > .ec-portrait-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	margin: 0;
	padding: 4px 10px;
	border: 1px dashed rgba(243, 244, 245, 0.45);
	border-radius: 999px;
	color: var(--wp--preset--color--sur-encre-doux);
	font-size: 0.75rem;
	line-height: 1.35;
}

.ec-portrait > .ec-portrait-nom {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 1.625rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--sur-encre);
}

.ec-portrait > .ec-portrait-nom + p {
	margin-block-start: 0.375rem;
}

.ec-qui .ec-qui-sous-titre {
	font-weight: 500;
	line-height: 1.5;
}

.ec-qui .ec-qui-lien {
	margin-block-start: var(--wp--preset--spacing--40);
}

@media (max-width: 781px) {
	.ec-qui-colonnes .ec-portrait {
		min-height: 20rem;
	}
}

/* --------------------------------------------------------------------------
   9. Réalisations (accueil-realisations)
   -------------------------------------------------------------------------- */
.ec-entete-section > .ec-intro {
	flex: 1 1 28rem;
	max-width: 47.5rem;
}

.ec-entete-section > .wp-block-buttons {
	flex: none;
}

.ec-cartes > .wp-block-column > .ec-real-carte {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--bordure);
	border-radius: 16px;
	background-color: var(--wp--preset--color--blanc);
}

/* Pétrole (et non pétrole lumineux, 2,4:1 seulement sur crème) : contraste du focus ≥ 3:1. */
.ec-real-carte:has(h3 a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--petrole);
	outline-offset: 2px;
}

.ec-real-carte > .ec-real-visuel {
	position: relative;
	flex: none;
	height: 11rem;
	margin: 0;
	overflow: hidden;
	background-color: var(--wp--preset--color--bordure);
}

.ec-real-carte > .ec-real-visuel-demo {
	background-color: var(--wp--preset--color--encre);
}

/* Fenêtre de navigateur schématique */
.ec-real-visuel::before {
	content: "";
	position: absolute;
	inset: 1.5rem 1.75rem 0;
	border-radius: 10px 10px 0 0;
	background-color: var(--wp--preset--color--blanc);
	background-image:
		radial-gradient(circle, var(--wp--preset--color--bordure) 3px, transparent 3.5px),
		radial-gradient(circle, var(--wp--preset--color--bordure) 3px, transparent 3.5px),
		radial-gradient(circle, var(--wp--preset--color--bordure) 3px, transparent 3.5px);
	background-position: 12px 10px, 24px 10px, 36px 10px;
	background-size: 8px 8px;
	background-repeat: no-repeat;
}

/* Contenu schématique de la fenêtre */
.ec-real-visuel::after {
	content: "";
	position: absolute;
	inset: calc(1.5rem + 30px) calc(1.75rem + 14px) 0;
	background-repeat: no-repeat;
}

.ec-real-visuel-site::after {
	background-image:
		linear-gradient(var(--wp--preset--color--creme), var(--wp--preset--color--creme)),
		linear-gradient(var(--wp--preset--color--encre), var(--wp--preset--color--encre)),
		linear-gradient(var(--wp--preset--color--creme), var(--wp--preset--color--creme)),
		linear-gradient(var(--wp--preset--color--petrole-clair), var(--wp--preset--color--petrole-clair)),
		linear-gradient(var(--wp--preset--color--creme), var(--wp--preset--color--creme)),
		linear-gradient(var(--wp--preset--color--bordure), var(--wp--preset--color--bordure));
	background-position: 0 0, 50% 0, 100% 0, 0 62px, 50% 62px, 100% 62px;
	background-size: calc((100% - 16px) / 3) 54px;
}

.ec-real-visuel-seo::after {
	background-image:
		linear-gradient(var(--wp--preset--color--petrole), var(--wp--preset--color--petrole)),
		linear-gradient(var(--wp--preset--color--petrole), var(--wp--preset--color--petrole)),
		linear-gradient(var(--wp--preset--color--bordure), var(--wp--preset--color--bordure)),
		linear-gradient(var(--wp--preset--color--texte-doux), var(--wp--preset--color--texte-doux)),
		linear-gradient(var(--wp--preset--color--bordure), var(--wp--preset--color--bordure)),
		linear-gradient(var(--wp--preset--color--texte-doux), var(--wp--preset--color--texte-doux)),
		linear-gradient(var(--wp--preset--color--bordure), var(--wp--preset--color--bordure));
	background-position: 0 0, 13px 2px, 13px 16px, 13px 36px, 13px 50px, 13px 70px, 13px 84px;
	background-size: 3px 24px, 58% 8px, 82% 6px, 50% 8px, 76% 6px, 54% 8px, 80% 6px;
}

/* Planning schématique : libellés de lignes à gauche, créneaux à droite */
.ec-real-visuel-demo::before {
	background-image: none;
}

.ec-real-visuel-demo::after {
	inset: calc(1.5rem + 26px) calc(1.75rem + 14px) 0;
	background-image:
		linear-gradient(var(--wp--preset--color--bordure), var(--wp--preset--color--bordure)),
		linear-gradient(var(--wp--preset--color--bordure), var(--wp--preset--color--bordure)),
		linear-gradient(var(--wp--preset--color--bordure), var(--wp--preset--color--bordure)),
		linear-gradient(var(--wp--preset--color--bordure), var(--wp--preset--color--bordure)),
		linear-gradient(var(--wp--preset--color--petrole), var(--wp--preset--color--petrole)),
		linear-gradient(var(--wp--preset--color--petrole-clair), var(--wp--preset--color--petrole-clair)),
		linear-gradient(var(--wp--preset--color--petrole), var(--wp--preset--color--petrole)),
		linear-gradient(var(--wp--preset--color--petrole-clair), var(--wp--preset--color--petrole-clair)),
		linear-gradient(var(--wp--preset--color--creme), var(--wp--preset--color--creme));
	background-position: 0 6px, 0 30px, 0 54px, 0 78px, 48px 0, 100% 0, 100% 24px, 48px 48px, 100% 72px;
	background-size: 36px 6px, 36px 6px, 36px 6px, 36px 6px, 34% 18px, 30% 18px, 56% 18px, 50% 18px, 44% 18px;
}

.ec-real-visuel > .ec-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	line-height: 1.35;
	font-weight: 500;
}

.ec-real-visuel > .ec-badge-valider {
	border: 1px dashed var(--wp--preset--color--texte-doux);
	background-color: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--texte);
}

.ec-real-visuel > .ec-badge-demo {
	background-color: var(--wp--preset--color--petrole-clair);
	color: var(--wp--preset--color--petrole);
}

.ec-real-carte > .ec-real-corps {
	flex: 1 1 auto;
	margin-block-start: 0;
	padding: 1.75rem;
}

.ec-real-corps > h3 {
	margin-block-start: 1rem;
}

.ec-real-corps > h3 a {
	color: inherit;
	text-decoration: none;
}

/* Carte entière cliquable : le lien du titre couvre la carte */
.ec-real-corps > h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.ec-real-carte:hover .ec-real-corps > h3 a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ec-real-corps > h3 + p {
	margin-block-start: 0.875rem;
}

.ec-real-corps > p + p {
	margin-block-start: 0.625rem;
}

.ec-real-corps strong {
	font-weight: 500;
	color: var(--wp--preset--color--texte);
}

/* Étiquettes (réalisations) */
ul.ec-etiquettes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.ec-etiquettes > li {
	margin: 0;
	padding: 5px 10px;
	border-radius: 999px;
	background-color: var(--wp--preset--color--petrole-clair);
	color: var(--wp--preset--color--petrole);
	font-size: 0.75rem;
	line-height: 1.35;
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. Ressources (accueil-ressources)
   -------------------------------------------------------------------------- */
.ec-article > .ec-couverture {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 16 / 9;
	margin: 0;
	padding: 0.875rem 1rem;
	border-radius: 16px;
	background-color: var(--wp--preset--color--creme);
}

.ec-article > .ec-couverture-tableur {
	background-color: var(--wp--preset--color--petrole-clair);
}

.ec-couverture::before,
.ec-couverture::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.ec-couverture::before {
	width: 88px;
	height: 88px;
	border-radius: 999px;
	background-color: var(--wp--preset--color--blanc);
}

.ec-couverture::after {
	width: 36px;
	height: 36px;
	background-color: var(--wp--preset--color--petrole);
	-webkit-mask-image: var(--ec-icone);
	mask-image: var(--ec-icone);
}

.ec-couverture > .ec-couverture-note {
	position: relative;
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--wp--preset--color--texte-doux);
}

.ec-couverture-tableur > .ec-couverture-note {
	color: var(--wp--preset--color--petrole);
}

.ec-article > .ec-etiquette {
	width: fit-content;
	margin-block-start: 1.25rem;
	padding: 5px 10px;
	border-radius: 999px;
	background-color: var(--wp--preset--color--petrole-clair);
	color: var(--wp--preset--color--petrole);
	font-size: 0.75rem;
	line-height: 1.35;
	font-weight: 500;
}

.ec-article > .ec-etiquette + h3 {
	margin-block-start: 0.75rem;
}

.ec-article > h3 + p {
	margin-block-start: 0.625rem;
}

/* --------------------------------------------------------------------------
   12. FAQ (accueil-faq)
   -------------------------------------------------------------------------- */
.wp-block-group.ec-faq-liste.is-style-carte {
	padding-block: 0.5rem;
	padding-inline: var(--wp--preset--spacing--50);
}

/* Pas de filet sous la dernière question : theme.css (.is-style-carte > …:last-child). */
.ec-faq-liste > .wp-block-details {
	margin-block: 0;
}

@media (max-width: 781px) {
	.wp-block-group.ec-faq-liste.is-style-carte {
		padding-inline: var(--wp--preset--spacing--40);
	}
}

/* --------------------------------------------------------------------------
   13. Depuis Poitiers (accueil-poitiers)
   -------------------------------------------------------------------------- */
.ec-poitiers .ec-zone {
	position: relative;
	margin-block-start: var(--wp--preset--spacing--40);
	padding: 1rem 1.25rem 1rem 3.25rem;
	border-radius: 12px;
	background-color: var(--wp--preset--color--creme);
}

.ec-zone::before {
	content: "";
	position: absolute;
	top: 1.125rem;
	left: 1.25rem;
	width: 20px;
	height: 20px;
	background-color: var(--wp--preset--color--petrole);
	-webkit-mask-image: var(--ec-ico-repere);
	mask-image: var(--ec-ico-repere);
}

.ec-zone > .ec-zone-label {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.5;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--texte-doux);
}

.ec-zone > .ec-zone-label + p {
	margin-block-start: 0.25rem;
	line-height: 1.55;
}

.ec-poitiers .ec-carte-vienne {
	padding: var(--wp--preset--spacing--50);
	border-radius: 20px;
	background-color: var(--wp--preset--color--creme);
}

.ec-carte-vienne svg.ec-vienne {
	display: block;
	width: 100%;
	max-width: 26rem;
	height: auto;
	margin-inline: auto;
}

.ec-carte-vienne svg.ec-vienne text {
	font-family: var(--wp--preset--font-family--inter);
}

/* --------------------------------------------------------------------------
   14. CTA final (accueil-cta)
   -------------------------------------------------------------------------- */
/* Couleur des liens et du surtitre sur fond pétrole foncé : contextes sombres de theme.css. */
ul.ec-reassurances {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1.75rem;
	margin-block-start: var(--wp--preset--spacing--50);
	padding: 0;
	list-style: none;
}

ul.ec-reassurances > li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--s);
	line-height: 1.6;
}

ul.ec-reassurances > li::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background-color: var(--wp--preset--color--petrole-lumineux);
	-webkit-mask-image: var(--ec-ico-coche);
	mask-image: var(--ec-ico-coche);
}

.ec-bouton-clair .wp-block-button__link:hover,
.ec-bouton-clair .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--petrole-clair) !important;
	color: var(--wp--preset--color--petrole-fonce) !important;
}

.ec-cta .ec-cta-note {
	margin-block-start: var(--wp--preset--spacing--40);
}

/* Lien e-mail : couleur claire garantie, quel que soit l'ordre de chargement des styles globaux. */
.ec-cta .ec-cta-note a {
	color: var(--wp--preset--color--sur-encre);
}

.ec-cta .ec-cta-note a:hover {
	color: var(--wp--preset--color--blanc);
}

/* Mouvements réduits : règle globale de theme.css (section 10). */
