/* ==========================================================================
   MICRO EROSION - NOS PROJETS RÉALISÉS (CPT etude-de-cas)
   Maquette XD « MICRO-26-majsite-etudedecas-1-V1 » (révision du 24/11/2026)
   Valeurs de la maquette à 1920 px, réduites proportionnellement (clamp).
   Styles scopés sous body.edc (archive + fiches)
   ========================================================================== */

/* Polices Orbitron / Roboto : déclarées dans header.css (chargé partout). */

/* ---------- Variables ---------- */
.edc {
	--edc-black: #070c0e;
	--edc-navy: #0d1c2e;
	--edc-blue: #138cbc;
	--edc-blue-light: #3bc4fa;
	--edc-grey: #a7a7a7;
	--edc-grey-text: #7b7b7b;
	--edc-grey-box: #ebebeb;
	--edc-grey-band: #f2f2f2;
	--edc-white: #fff;
	--edc-font-title: "Orbitron", "advent", sans-serif;
	--edc-font-text: "Roboto", "Open Sans", Arial, sans-serif;
	--edc-gap: 16px;                                  /* gouttière entre les 2 demi-colonnes de 812 px */
	--edc-section: clamp(60px, 6.25vw, 120px);        /* espace vertical entre sections */
	--edc-inset: clamp(20px, 7.19vw, 138px);          /* retrait du texte dans une demi-colonne (138 px) */
	--edc-cut: 18px;                                  /* coin coupé (FAQ, boutons) */
	--edc-fs-text: clamp(16px, 1.042vw, 20px);        /* Roboto 20 / 30 */
	--edc-fs-small: clamp(15px, .9375vw, 18px);       /* Roboto 18 / 26-28 */
	--edc-fs-h2: clamp(26px, 1.875vw, 36px);          /* Orbitron Medium 36 / 45 */
	--edc-fs-h3: clamp(17px, 1.042vw, 20px);          /* Orbitron Medium 20 / 25 */
}

/* ---------- Base ---------- */
.edc-main {
	display: block;
	clear: both;
	width: 100%;
	overflow-x: clip;
	font-family: var(--edc-font-text);
	color: var(--edc-black);
	background: var(--edc-white);
}
.edc-main *,
.edc-main *::before,
.edc-main *::after { box-sizing: border-box; }
.edc-main img { display: block; max-width: 100%; height: auto; }
.edc-main figure { margin: 0; }
.edc-main p { margin: 0 0 1em; }
.edc-main p:last-child { margin-bottom: 0; }
.edc-main a:focus-visible,
.edc-main button:focus-visible { outline: 2px solid var(--edc-blue-light); outline-offset: 3px; }
.edc-main button { font: inherit; cursor: pointer; }

/* Grille XD : 1920 = 140 + 812 + 16 + 812 + 140 ; contenu étroit 278 → 1642 (1364 px) */
.edc-container {
	width: 100%;
	max-width: 1680px; /* 1640 + 2 x 20 */
	margin: 0 auto;
	padding: 0 20px;
}
.edc-container--narrow { max-width: 1404px; } /* 1364 + 2 x 20 */
.edc-container--faq { max-width: 1128px; }    /* 1088 + 2 x 20 */
.edc-container--video { max-width: 1168px; }

.edc-section { position: relative; padding: var(--edc-section) 0; }

.edc-wysiwyg { font-size: var(--edc-fs-text); line-height: 1.5; font-weight: 400; }
.edc-wysiwyg a { color: var(--edc-blue); text-decoration: underline; }
.edc-wysiwyg ul,
.edc-wysiwyg ol { padding-left: 1.2em; margin: 0 0 1em; }
.edc-wysiwyg li + li { margin-top: .5em; }
.edc-wysiwyg strong { font-weight: 700; }

/* Fond blanc « papier millimétré » (carreaux de 49 px) avec fondu vers le blanc */
.edc-grid-bg {
	background-color: var(--edc-white);
	background-image:
		linear-gradient(to bottom, rgba(255,255,255,0) 8%, #fff 92%),
		linear-gradient(rgba(167,167,167,.32) 1px, transparent 1px),
		linear-gradient(90deg, rgba(167,167,167,.32) 1px, transparent 1px);
	background-size: 100% 100%, 49px 49px, 49px 49px;
	background-position: 0 0, center top, center top;
}
.edc-grid-bg--both {
	background-image:
		linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, #fff 100%),
		linear-gradient(rgba(167,167,167,.32) 1px, transparent 1px),
		linear-gradient(90deg, rgba(167,167,167,.32) 1px, transparent 1px);
}

.edc-dark { background: var(--edc-black); color: var(--edc-white); }

/* ---------- Titres ---------- */
.edc-h1,
.edc-title {
	font-family: var(--edc-font-title);
	text-transform: none;
	color: inherit;
	margin: 0;
}
.edc-h1 {
	font-weight: 400;
	font-size: clamp(32px, 2.865vw, 55px);
	line-height: 1.255;
	letter-spacing: .05em;
}
.edc-title {
	font-weight: 500;
	font-size: var(--edc-fs-h2);
	line-height: 1.25;
	letter-spacing: .05em;
	margin-bottom: clamp(28px, 2.6vw, 50px);
}
.edc-title--center { text-align: center; }
.edc-title--light { color: var(--edc-white); }
/* Filet bleu de 122 px au-dessus du titre (introduction) */
.edc-title--line { padding-top: 18px; position: relative; }
.edc-title--line::before {
	content: ""; position: absolute; top: 0; left: 0;
	width: 122px; height: 1px; background: var(--edc-blue);
}
/* Filet bleu sous le titre (CTA) */
.edc-title--underline { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--edc-blue); }

/* Équerre bleue en haut à gauche du H1 */
.edc-corner { position: relative; padding: 22px 0 0 34px; }
.edc-corner::before {
	content: ""; position: absolute; top: 0; left: 0;
	width: 34px; height: 34px;
	border-top: 2px solid var(--edc-blue);
	border-left: 2px solid var(--edc-blue);
}

/* Équerre blanche à 40 px du coin des photos (30 px de côté) */
.edc-frame,
.edc-card__media { position: relative; overflow: hidden; }
.edc-brackets { position: absolute; inset: clamp(16px, 2.1vw, 40px); pointer-events: none; }
.edc-brackets::before,
.edc-brackets::after {
	content: ""; position: absolute; width: 30px; height: 30px;
	border: 0 solid rgba(255,255,255,.95);
}
.edc-brackets::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.edc-brackets::after { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

/* Grande équerre bleue décorative en haut à gauche d'une section (70 px) */
.edc-deco { position: absolute; pointer-events: none; width: 70px; height: 70px; border-top: 2px solid var(--edc-blue); border-left: 2px solid var(--edc-blue); }

/* ---------- Fil d'Ariane (niveaux parents uniquement : la page courante est le H1) ---------- */
.edc-breadcrumb ol {
	list-style: none; margin: 0 0 clamp(30px, 3.4vw, 64px); padding: 0;
	display: flex; flex-wrap: wrap; gap: 6px 18px;
	font-family: var(--edc-font-text); font-size: 14px; font-weight: 500;
	letter-spacing: .05em; text-transform: uppercase;
}
.edc-breadcrumb li::before { content: "\203A"; margin-right: 10px; color: var(--edc-grey); }
.edc-breadcrumb a { color: var(--edc-grey); text-decoration: none; }
.edc-breadcrumb a:hover { color: var(--edc-blue) !important; }
.edc-breadcrumb--light a,
.edc-breadcrumb--light li::before { color: var(--edc-grey); }
.edc-breadcrumb--light li:last-child a { color: var(--edc-white); }

/* ==========================================================================
   ARCHIVE (maquette « ETUDE-DE-CAS-listing »)
   ========================================================================== */
/* Quadrillage de 49 px (comme la maquette) sur le haut de page, fondu vers le blanc
   à la hauteur de la première rangée de projets (772 → 960 px à 1920). */
.edc-archive {
	background-color: #fff;
	background-image:
		linear-gradient(to bottom, rgba(255,255,255,0) 0, rgba(255,255,255,0) clamp(260px, 40.2vw, 772px), #fff clamp(380px, 50vw, 960px), #fff 100%),
		linear-gradient(rgba(7,12,14,.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(7,12,14,.055) 1px, transparent 1px);
	background-size: 100% 100%, 49px 49px, 49px 49px;
	background-position: 0 0, center top, center top;
}
.edc-archive__head.edc-grid-bg { background: none; }
.edc-archive__head { padding: clamp(40px, 4.3vw, 82px) 0 clamp(44px, 4.9vw, 94px); }
.edc-archive .edc-breadcrumb ol { margin-bottom: clamp(28px, 3.2vw, 62px); }
.edc-archive__list { padding: 0 0 var(--edc-section); }
.edc-archive .edc-h1 { font-size: clamp(36px, 3.65vw, 70px); line-height: 1.257; letter-spacing: .05em; }

/* Vignettes 674 x 450, colonne de droite décalée de 98 px (quinconce) */
.edc-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--edc-gap);
	row-gap: clamp(50px, 5.5vw, 105px);
	padding-bottom: clamp(40px, 5.1vw, 98px);
}
.edc-cards > .edc-card:nth-child(even) { transform: translateY(clamp(40px, 5.1vw, 98px)); }

.edc-card__link { display: block; color: inherit; text-decoration: none !important; }
.edc-card__media { aspect-ratio: 674 / 450; background: var(--edc-navy); }
.edc-card__img { width: 100%; height: 100%; object-fit: cover; }
.edc-card__media::after { /* survol (maquette) : halo bleu intérieur, box-shadow inset 0 0 99px #138cbc à 1920 px */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	box-shadow: inset 0 0 clamp(50px, 5.16vw, 99px) var(--edc-blue);
	opacity: 0; transition: opacity .4s ease;
}
/* Survol : équerres blanches (30 px, 2 px) à 20 px des coins haut-gauche / bas-droite */
.edc-card .edc-brackets { z-index: 1; opacity: 0; transition: opacity .4s ease, inset .4s ease; inset: 34px; }
.edc-card .edc-brackets::before { border-top-width: 2px; border-left-width: 2px; }
.edc-card .edc-brackets::after { border-right-width: 2px; border-bottom-width: 2px; }
.edc-card__body {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
	padding: clamp(18px, 1.35vw, 26px) clamp(20px, 2vw, 38px) 0 clamp(16px, 1.56vw, 30px);
}
.edc-card__title {
	font-family: var(--edc-font-title); font-weight: 500;
	font-size: clamp(17px, 1.25vw, 24px); line-height: 1.5;
	margin: 0; max-width: 425px; color: var(--edc-black);
	text-transform: none; letter-spacing: .03em;
	transition: color .3s ease;
}

/* Bouton flèche carré 53 px : bord dégradé bleu, fond blanc (plein au survol) */
.edc-arrow {
	flex: 0 0 auto; position: relative;
	width: clamp(40px, 2.76vw, 53px); height: clamp(40px, 2.76vw, 53px);
	margin-top: 6px;
	border: 1px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg, var(--edc-blue), var(--edc-blue-light)) border-box;
}
.edc-arrow::after {
	content: ""; position: absolute; top: 50%; left: 50%;
	width: 10px; height: 10px;
	border-top: 2px solid var(--edc-blue); border-right: 2px solid var(--edc-blue);
	transform: translate(-65%, -50%) rotate(45deg);
	transition: border-color .3s ease;
}

.edc-card__link:hover .edc-card__media::after,
.edc-card__link:focus-visible .edc-card__media::after { opacity: 1; }
.edc-card__link:hover .edc-brackets,
.edc-card__link:focus-visible .edc-brackets { opacity: 1; inset: 20px; }
.edc-card__link:hover .edc-card__title,
.edc-card__link:focus-visible .edc-card__title { color: var(--edc-blue); }
.edc-card__link:hover .edc-arrow,
.edc-card__link:focus-visible .edc-arrow { background: linear-gradient(135deg, var(--edc-blue), var(--edc-blue-light)) border-box; }
.edc-card__link:hover .edc-arrow::after,
.edc-card__link:focus-visible .edc-arrow::after { border-color: #fff; }

.edc-pagination { margin-top: 80px; text-align: center; font-family: var(--edc-font-title); }
.edc-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; margin: 0 3px; padding: 0 8px;
	border: 1px solid var(--edc-blue); color: var(--edc-blue); text-decoration: none;
}
.edc-pagination .page-numbers.current,
.edc-pagination a.page-numbers:hover { background: var(--edc-blue); color: #fff; }
.edc-empty { font-size: 18px; text-align: center; padding: 40px 0; }

/* Règle graduée décorative au-dessus du pied de page (maquette : traits noirs à 40 %,
   tous les 11,25 px ; moyens tous les 56,25 px ; grands tous les 112,5 px) */
.edc-main::after {
	content: ""; display: block; height: 25px;
	background-image:
		linear-gradient(90deg, rgba(7,12,14,.4) 1px, transparent 1px),
		linear-gradient(90deg, rgba(7,12,14,.4) 1px, transparent 1px),
		linear-gradient(90deg, rgba(7,12,14,.4) 1px, transparent 1px);
	background-size: 11.25px 6px, 56.25px 11px, 112.5px 16px;
	background-position: 2px 0, 2px 0, 2px 0;
	background-repeat: repeat-x;
}

/* ==========================================================================
   FICHE
   ========================================================================== */

/* ---------- Bandeau : fil d'Ariane, H1, surtitre sous le H1 ---------- */
.edc-hero {
	position: relative;
	display: flex; align-items: flex-start;
	min-height: clamp(420px, 30.5vw, 585px);
	padding: clamp(50px, 4.3vw, 82px) 0 clamp(60px, 5vw, 96px);
	background-color: var(--edc-black);
	background-size: cover; background-position: center;
	color: #fff;
	isolation: isolate;
}
.edc-hero::before { /* dégradé noir → 27 % de gauche à droite */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(7,12,14,1) 0%, rgba(7,12,14,.275) 100%);
}
.edc-hero .edc-container { padding-left: 32px; }
.edc-hero__title { max-width: 1090px; color: #fff; }
.edc-kicker {
	margin: clamp(28px, 2.9vw, 55px) 0 0 34px !important;
	font-family: var(--edc-font-text); font-size: clamp(13px, .833vw, 16px); font-weight: 500;
	letter-spacing: .15em; text-transform: uppercase;
	color: var(--edc-blue);
}

/* ---------- Texte seul ---------- */
/* Disposition « titre à gauche » (398 px) / texte à droite (812 px) : réservée à l'introduction */
.edc-texte__grid {
	display: grid;
	grid-template-columns: minmax(0, 398fr) minmax(0, 812fr);
	column-gap: clamp(40px, 8vw, 154px);
	row-gap: 30px;
	align-items: start;
}
.edc-texte .edc-title { margin-bottom: 0; }
/* Disposition « centrée » : titre centré (812 px), contenu sur 1088 px */
.edc-texte--centre .edc-texte__grid { display: block; max-width: 1088px; margin: 0 auto; }
.edc-texte--centre .edc-title { text-align: center; max-width: 812px; margin: 0 auto clamp(28px, 2.6vw, 50px); }

/* ---------- Texte + image (photo 812 x 690 collée au bord du conteneur) ---------- */
.edc-ti__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: var(--edc-gap);
	row-gap: 36px;
	align-items: center;
}
.edc-ti__text { padding-left: var(--edc-inset); max-width: calc(var(--edc-inset) + 536px); }
.edc-ti__media img { width: 100%; aspect-ratio: 812 / 690; object-fit: cover; }
.edc-ti--img-gauche .edc-ti__media { order: -1; }

/* ---------- Deux colonnes : texte | encadré gris (+ photo optionnelle) ---------- */
.edc-cols__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: var(--edc-gap);
	row-gap: 30px;
	align-items: stretch;
}
.edc-cols .edc-deco { display: none; }
.edc-cols__left { position: relative; padding: clamp(30px, 7.3vw, 141px) var(--edc-inset) clamp(40px, 7.3vw, 141px); }
/* Chevrons bleus (70 px) qui encadrent la colonne de gauche : haut-gauche et bas-droite, à 52 / 32 px des bords */
.edc-cols__left::before,
.edc-cols__left::after {
	content: ""; position: absolute; width: 70px; height: 70px; pointer-events: none;
	border: 0 solid var(--edc-blue);
}
.edc-cols__left::before { top: clamp(12px, 1.67vw, 32px); left: clamp(12px, 2.7vw, 52px); border-top-width: 2px; border-left-width: 2px; }
.edc-cols__left::after { bottom: clamp(12px, 1.67vw, 32px); right: clamp(12px, 2.7vw, 52px); border-bottom-width: 2px; border-right-width: 2px; }
.edc-cols--media .edc-cols__left::before { top: 0; }
.edc-cols__left > *,
.edc-cols__box > * { max-width: 536px; }
.edc-cols__box {
	background: var(--edc-grey-box);
	padding: clamp(40px, 7.3vw, 141px) var(--edc-inset);
	min-height: min(836px, 100%);
}
/* Variante « texte court + photo » : la photo chevauche le haut de l'encadré */
.edc-cols--media .edc-cols__right { padding-top: clamp(120px, 13.65vw, 262px); }
.edc-cols--media .edc-cols__box { padding-top: 0; }
.edc-cols--media .edc-cols__left { padding-top: clamp(30px, 5.7vw, 109px); }
.edc-cols__media {
	width: calc(100% + 2 * var(--edc-inset));
	max-width: none !important;
	margin: calc(-1 * clamp(120px, 13.65vw, 262px)) calc(-1 * var(--edc-inset)) clamp(40px, 4.5vw, 86px);
}
.edc-cols__media img { width: 100%; aspect-ratio: 812 / 552; object-fit: cover; }
.edc-cols .edc-title { margin-bottom: clamp(24px, 2.6vw, 50px); }

/* ---------- Chiffres clés ---------- */
.edc-chiffres { padding-top: clamp(50px, 4.85vw, 93px); }
.edc-chiffres .edc-title { max-width: 812px; margin-left: auto; margin-right: auto; }
.edc-chiffres__list {
	display: grid;
	column-gap: clamp(30px, 8vw, 154px); row-gap: 40px;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 260px));
	justify-content: center;
	margin: 0 auto;
}
.edc-cols-1 { --cols: 1; } .edc-cols-2 { --cols: 2; } .edc-cols-3 { --cols: 3; } .edc-cols-4 { --cols: 4; }
.edc-cols-4.edc-chiffres__list { column-gap: clamp(30px, 4vw, 80px); }
.edc-chiffres__item { text-align: center; }
.edc-chiffres__value {
	font-family: var(--edc-font-title); font-weight: 500;
	font-size: clamp(40px, 3.125vw, 60px); line-height: 1.27; letter-spacing: .05em;
	color: var(--edc-blue); margin: 0 0 clamp(14px, 1.5vw, 29px) !important;
	white-space: nowrap;
}
.edc-chiffres__text { font-size: var(--edc-fs-text); line-height: 1.5; margin: 0 auto !important; }
.edc-chiffres__more { max-width: 1088px; margin: clamp(50px, 5.2vw, 100px) auto 0; }
.edc-chiffres__more img { margin-left: auto; margin-right: auto; }
.edc-chiffres__more em { display: block; font-size: var(--edc-fs-small); color: var(--edc-grey-text); text-align: center; }

/* ---------- Carrousel (fond noir, slide centrale 812 x 590, latérales 614 x 480) ---------- */
.edc-carousel { padding: clamp(70px, 7vw, 134px) 0 clamp(60px, 5.2vw, 100px); }
.edc-carousel__wrap { position: relative; max-width: 1680px; margin: 0 auto; padding: 0 20px; }
/* Pas de classe .swiper : on évite les styles globaux du thème (inner.css) */
.edc-carousel__swiper { position: relative; z-index: 1; overflow: hidden; max-width: 1404px; margin: 0 auto; }
.edc-carousel__swiper .swiper-wrapper { align-items: flex-start; }
.edc-carousel__slide {
	flex-shrink: 0;
	width: min(812px, 60vw);
	height: auto;
	transition: transform .6s ease, opacity .6s ease;
	transform: scale(.81);
	opacity: 0;
	z-index: 0;
}
.edc-carousel__slide.swiper-slide-prev,
.edc-carousel__slide.swiper-slide-next { opacity: .6; z-index: 1; }
.edc-carousel__slide.swiper-slide-active { transform: scale(1); opacity: 1; z-index: 2; }
.edc-carousel__media { aspect-ratio: 812 / 590; overflow: hidden; background: var(--edc-navy); }
.edc-carousel__media img { width: 100%; height: 100%; object-fit: cover; }
.edc-carousel__caption {
	display: flex; align-items: center; gap: 12px;
	margin-top: 28px; font-size: clamp(14px, .833vw, 16px); line-height: 1.6; color: #f2f2f2;
	opacity: 0; transition: opacity .3s ease;
}
.edc-carousel__caption::before { content: ""; flex: 0 0 30px; height: 1px; background: var(--edc-blue); }
.edc-carousel__slide.swiper-slide-active .edc-carousel__caption { opacity: 1; }

/* Flèches : carré 53 px à bord dégradé bleu */
.edc-nav {
	position: absolute; top: calc(50% - 60px); z-index: 5;
	width: 53px; height: 53px; padding: 0;
	border: 1px solid transparent;
	background:
		linear-gradient(var(--edc-black), var(--edc-black)) padding-box,
		linear-gradient(135deg, var(--edc-blue-light), var(--edc-blue)) border-box;
	transition: filter .3s ease;
}
.edc-nav::after {
	content: ""; position: absolute; top: 50%; left: 50%;
	width: 10px; height: 10px;
	border-top: 2px solid var(--edc-blue); border-right: 2px solid var(--edc-blue);
}
.edc-nav--prev { left: max(20px, calc(50% - 820px)); }
.edc-nav--next { right: max(20px, calc(50% - 820px)); }
.edc-nav--prev::after { transform: translate(-35%, -50%) rotate(-135deg); }
.edc-nav--next::after { transform: translate(-65%, -50%) rotate(45deg); }
.edc-nav:hover { background: linear-gradient(135deg, var(--edc-blue-light), var(--edc-blue)) border-box; }
.edc-nav:hover::after { border-color: #fff; }
.edc-nav.swiper-button-disabled { opacity: .3; cursor: default; }

.edc-carousel__pagination { display: flex; justify-content: center; gap: 10px; margin-top: 46px; }
.edc-carousel__pagination .swiper-pagination-bullet {
	width: 10px; height: 10px; border-radius: 0; margin: 0 !important;
	background: transparent; border: 1px solid var(--edc-blue); opacity: 1;
}
.edc-carousel__pagination .swiper-pagination-bullet-active { background: var(--edc-blue); }

/* ---------- FAQ (1088 px, fond #f2f2f2, coin coupé) ---------- */
.edc-faq__item {
	background: var(--edc-grey-band);
	margin-bottom: 22px;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--edc-cut)), calc(100% - var(--edc-cut)) 100%, 0 100%);
}
.edc-faq__q { margin: 0; font-size: inherit; }
.edc-faq__q button {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	width: 100%; padding: clamp(22px, 1.6vw, 31px) clamp(22px, 2.6vw, 50px); border: 0; background: transparent; text-align: left;
	font-family: var(--edc-font-title); font-weight: 500; font-size: clamp(17px, 1.25vw, 24px);
	line-height: 1.25; letter-spacing: .05em; color: var(--edc-blue);
}
.edc-faq__icon { position: relative; flex: 0 0 auto; width: 19px; height: 19px; }
.edc-faq__icon::before,
.edc-faq__icon::after {
	content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px;
	background: var(--edc-blue); transition: transform .3s ease;
}
.edc-faq__icon::after { transform: rotate(90deg); }
.edc-faq__item.is-open .edc-faq__icon::after { transform: rotate(0deg); }
.edc-faq__a { padding: 0 clamp(22px, 2.6vw, 50px) clamp(24px, 2.1vw, 40px); margin-top: -6px; }
.edc-faq__a[hidden] { display: none; }

/* ---------- Cartes (bandeau gris 650 px, cartes blanches 398 x 500 en quinconce) ---------- */
.edc-cartes { padding-top: 0; padding-bottom: clamp(30px, 3.1vw, 60px); }
.edc-cartes__band {
	background: var(--edc-grey-band);
	padding: clamp(60px, 5.6vw, 107px) 0 clamp(200px, 14.6vw, 280px);
	margin-bottom: calc(-1 * clamp(150px, 11.3vw, 220px));
}
.edc-cartes .edc-title { max-width: 812px; margin-left: auto; margin-right: auto; }
.edc-intro { max-width: 812px; margin: -10px auto 0 !important; text-align: center; font-size: var(--edc-fs-text); line-height: 1.5; }
.edc-cartes__list {
	position: relative;
	display: grid; gap: 30px clamp(20px, 4.4vw, 85px);
	grid-template-columns: repeat(3, minmax(0, 398px));
	justify-content: center;
	padding-bottom: 50px;
}
.edc-cartes--4 .edc-cartes__list { grid-template-columns: repeat(4, minmax(0, 398px)); gap: 30px var(--edc-gap); }
.edc-cartes--2 .edc-cartes__list { grid-template-columns: repeat(2, minmax(0, 398px)); }
.edc-cartes__list > .edc-carte:nth-child(even) { transform: translateY(50px); }

.edc-carte {
	position: relative;
	background: #fff;
	min-height: clamp(380px, 26vw, 500px);
	padding: clamp(28px, 1.9vw, 37px) clamp(26px, 2.6vw, 50px) clamp(40px, 3.1vw, 60px);
}
.edc-carte::before { /* équerre bleue haut-gauche (120 px) */
	content: ""; position: absolute; top: 0; left: 0;
	width: 120px; height: 120px;
	border-top: 2px solid var(--edc-blue); border-left: 2px solid var(--edc-blue);
}
.edc-carte__icon { width: 54px; height: 54px; margin: 0 0 clamp(30px, 3.75vw, 72px) -19px; }
.edc-carte__icon img { width: 100%; height: 100%; object-fit: contain; }
/* Sans pictogramme : le texte remonte (il démarre sous l'équerre) et la carte s'adapte à son contenu */
.edc-carte--no-icon { min-height: 0; padding-top: clamp(44px, 3.6vw, 70px); }
.edc-carte__title {
	font-family: var(--edc-font-title); font-weight: 500;
	font-size: var(--edc-fs-h3); line-height: 1.25; letter-spacing: .05em;
	margin: 0 0 clamp(18px, 1.6vw, 30px); text-transform: none; color: var(--edc-black);
}
.edc-carte__text { font-size: var(--edc-fs-small); line-height: 1.45; }

/* ---------- Texte à gauche (398 px) + liste à droite (812 px) ---------- */
.edc-liste__grid {
	display: grid;
	grid-template-columns: minmax(0, 398fr) minmax(0, 812fr);
	column-gap: clamp(40px, 8vw, 154px);
	row-gap: 40px;
	align-items: start;
}
.edc-liste__intro .edc-title { margin-bottom: clamp(30px, 3.5vw, 67px); }
.edc-liste__items { list-style: none; margin: 0; padding: 0; }
.edc-liste__item {
	display: grid; grid-template-columns: 118px minmax(0, 1fr);
	padding: clamp(26px, 1.9vw, 36px) 0 clamp(30px, 2.4vw, 46px) 20px;
	border-bottom: 1px solid var(--edc-grey);
}
.edc-liste__item:first-child { padding-top: 0; }
.edc-liste__num {
	font-family: var(--edc-font-title); font-weight: 500; font-size: 16px; letter-spacing: .05em;
	color: var(--edc-blue); padding-top: 3px;
}
.edc-liste__title {
	font-family: var(--edc-font-title); font-weight: 500;
	font-size: var(--edc-fs-h3); line-height: 1.25; letter-spacing: .05em;
	margin: 0 0 16px; text-transform: none; color: var(--edc-black);
}
.edc-liste__text { font-size: var(--edc-fs-small); line-height: 1.55; color: var(--edc-grey-text); max-width: 620px; }
.edc-liste__items--plain .edc-liste__item { grid-template-columns: minmax(0, 1fr); }
.edc-liste__media { margin: 28px 0 4px; max-width: 620px; }
.edc-liste__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Vidéo (fond noir, lecteur 1088 x 590) ---------- */
.edc-video { padding: clamp(70px, 6.2vw, 119px) 0 clamp(80px, 7.6vw, 146px); }
.edc-corners-out { position: relative; padding: 0 40px; }
.edc-corners-out::before,
.edc-corners-out::after {
	content: ""; position: absolute; width: 70px; height: 70px; pointer-events: none;
	border: 0 solid var(--edc-blue);
}
.edc-corners-out::before { top: -40px; left: 0; border-top-width: 2px; border-left-width: 2px; }
.edc-corners-out::after { bottom: -40px; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.edc-video__player { position: relative; aspect-ratio: 1088 / 590; background: var(--edc-navy); overflow: hidden; }
.edc-video__player img,
.edc-video__player iframe,
.edc-video__player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.edc-video__player::after {
	content: ""; position: absolute; inset: 0; background: rgba(7,12,14,.4); pointer-events: none;
	transition: opacity .3s ease;
}
.edc-video__player.is-playing::after { opacity: 0; }
.edc-video__play {
	position: absolute; inset: 0; z-index: 2;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
	background: transparent; border: 0; color: #fff;
}
.edc-video__play-icon { /* rond 53 px à bord dégradé bleu */
	position: relative; width: 53px; height: 53px; border-radius: 50%;
	border: 1px solid transparent;
	background:
		linear-gradient(var(--edc-black), var(--edc-black)) padding-box,
		linear-gradient(135deg, var(--edc-blue-light), var(--edc-blue)) border-box;
	transition: transform .3s ease;
}
.edc-video__play-icon::after {
	content: ""; position: absolute; top: 50%; left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid; border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
}
.edc-video__play-label { font-size: var(--edc-fs-text); }
.edc-video__play:hover .edc-video__play-icon { transform: scale(1.08); }

/* ---------- Galerie mosaïque ([398][536][398] puis [812][534]) ---------- */
.edc-galerie__grid {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	gap: 16px;
}
.edc-galerie__item { position: relative; display: block; overflow: hidden; height: clamp(220px, 26vw, 500px); }
.edc-galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.edc-galerie__item:hover img { transform: scale(1.05); }
@media (min-width: 768px) {
	.edc-galerie__item:nth-child(5n+1),
	.edc-galerie__item:nth-child(5n+3) { grid-column: span 3; }
	.edc-galerie__item:nth-child(5n+2) { grid-column: span 4; }
	.edc-galerie__item:nth-child(5n+4) { grid-column: span 6; }
	.edc-galerie__item:nth-child(5n+5) { grid-column: span 4; }
	.edc-galerie__item:last-child:nth-child(5n+1) { grid-column: span 10; }
	.edc-galerie__item:last-child:nth-child(5n+2) { grid-column: span 7; }
	.edc-galerie__item:last-child:nth-child(5n+4) { grid-column: span 10; }
}

/* ---------- CTA (encadré 1640 x 500, dégradé noir → bleu) ---------- */
.edc-cta__box {
	display: flex; align-items: center; justify-content: space-between; gap: 40px 60px; flex-wrap: wrap;
	min-height: clamp(300px, 26vw, 500px);
	padding: clamp(46px, 5vw, 96px) var(--edc-inset);
	background: linear-gradient(135deg, var(--edc-black) 0%, var(--edc-black) 20%, var(--edc-blue) 100%);
	color: #fff;
}
.edc-cta__text { flex: 1 1 520px; max-width: 674px; }
.edc-cta__text .edc-title { display: block; }
.edc-cta__text p:not(.edc-title) { font-size: var(--edc-fs-text); line-height: 1.4; max-width: 620px; margin: 0; }
.edc-btn {
	display: inline-block;
	padding: 24px 54px 24px 40px;
	background: #fff; color: var(--edc-blue) !important;
	font-family: var(--edc-font-text); font-weight: 700; font-size: clamp(16px, 1.042vw, 20px);
	letter-spacing: .02em; text-decoration: none !important;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
	transition: background-color .3s ease, color .3s ease;
}
.edc-btn:hover { background: var(--edc-blue-light); color: var(--edc-black) !important; }

/* ---------- Enchaînements : pas de double marge entre deux sections blanches ---------- */
.edc-texte + .edc-ti,
.edc-ti + .edc-ti,
.edc-cols + .edc-ti,
.edc-ti + .edc-cols { padding-top: 0; }
.edc-galerie + .edc-cta { padding-top: 40px; }
.edc-cartes + .edc-section:not(.edc-dark):not(.edc-grid-bg) { padding-top: calc(var(--edc-section) * .6); }

/* ==========================================================================
   TABLEAUX HTML (note SEO : vrais tableaux, défilement horizontal sur mobile)
   ========================================================================== */
.edc-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 1.6em;
}
.edc-table-wrap:focus-visible { outline: 2px solid var(--edc-blue-light); outline-offset: 2px; }
.edc-wysiwyg table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--edc-fs-small);
	line-height: 1.45;
	background: #fff;
}
.edc-wysiwyg table:has(tr > :nth-child(3)) { min-width: 620px; }
.edc-wysiwyg caption { caption-side: top; text-align: left; padding: 0 0 10px; font-weight: 700; }
.edc-wysiwyg th,
.edc-wysiwyg td {
	padding: 14px 20px;
	border-bottom: 1px solid #e1e5e8;
	text-align: left;
	vertical-align: top;
}
.edc-wysiwyg thead th {
	background: var(--edc-black);
	color: #fff;
	font-family: var(--edc-font-title); font-size: clamp(13px, .833vw, 16px); font-weight: 500;
	letter-spacing: .05em;
	border-bottom: 0;
}
.edc-wysiwyg tbody th { font-weight: 700; color: var(--edc-blue); width: 34%; }
.edc-wysiwyg tbody tr:nth-child(even) { background: #f6f8f9; }
.edc-wysiwyg img { margin: 1.4em 0 .6em; }
.edc-wysiwyg figure { margin: 1.4em 0; }

/* Titres rendus en simple libellé (<p>) : même apparence qu'un titre */
.edc-main .edc-title--p { margin-top: 0; }
.edc-main .edc-texte .edc-title--p { margin-bottom: 0; }
.edc-texte--centre .edc-title--p { margin-bottom: clamp(28px, 2.6vw, 50px) !important; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
	.edc-cartes--4 .edc-cartes__list { grid-template-columns: repeat(2, minmax(0, 398px)); }
	.edc-cartes--4 .edc-cartes__list > .edc-carte:nth-child(even) { transform: translateY(30px); }
}

@media (max-width: 991px) {
	.edc-texte__grid,
	.edc-ti__grid,
	.edc-cols__grid,
	.edc-liste__grid { grid-template-columns: minmax(0, 1fr); }
	.edc-ti__text { padding: 0; max-width: none; }
	.edc-ti__media,
	.edc-ti--img-gauche .edc-ti__media { order: -1; }
	.edc-cols__left { padding: 0; }
	.edc-cols__left::before,
	.edc-cols__left::after { display: none; }
	.edc-cols__box { padding: 40px 30px; min-height: 0; }
	.edc-cols--media .edc-cols__right { padding-top: 90px; }
	.edc-cols--media .edc-cols__box { padding-top: 0; }
	.edc-cols__media { width: calc(100% + 60px); margin: -90px -30px 34px; }
	.edc-cols .edc-deco { display: none; }
	.edc-cols__left > *,
	.edc-cols__box > * { max-width: none; }
	.edc-cartes__list,
	.edc-cartes--2 .edc-cartes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.edc-cartes__list > .edc-carte:nth-child(even) { transform: translateY(30px); }
	.edc-chiffres__list { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 260px)); }
}

@media (max-width: 767px) {
	.edc-archive__head { padding: 40px 0 50px; }
	.edc-cards { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding-bottom: 0; }
	.edc-cards > .edc-card:nth-child(even) { transform: none; }
	.edc-card__body { padding: 20px 0 0; }
	.edc-hero { min-height: 340px; }
	.edc-hero .edc-container { padding-left: 20px; }
	.edc-corner { padding: 16px 0 0 22px; }
	.edc-corner::before { width: 22px; height: 22px; }
	.edc-kicker { margin-left: 22px !important; }
	.edc-chiffres__list,
	.edc-cartes__list,
	.edc-cartes--4 .edc-cartes__list,
	.edc-cartes--2 .edc-cartes__list { grid-template-columns: minmax(0, 1fr); }
	.edc-chiffres__list { justify-items: center; }
	.edc-cartes__list > .edc-carte:nth-child(even),
	.edc-cartes--4 .edc-cartes__list > .edc-carte:nth-child(even) { transform: none; }
	.edc-carte { min-height: 0; }
	.edc-carousel__slide { width: 84vw; transform: none; opacity: .4; }
	.edc-carousel__slide.swiper-slide-active { opacity: 1; }
	.edc-nav { top: auto; bottom: -10px; width: 44px; height: 44px; }
	.edc-faq__item { margin-bottom: 14px; }
	.edc-liste__item { grid-template-columns: 50px minmax(0, 1fr); padding-left: 0; }
	.edc-liste__items--plain .edc-liste__item { grid-template-columns: minmax(0, 1fr); }
	.edc-corners-out { padding: 0 16px; }
	.edc-corners-out::before { top: -20px; width: 40px; height: 40px; }
	.edc-corners-out::after { bottom: -20px; width: 40px; height: 40px; }
	.edc-galerie__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.edc-galerie__item { grid-column: span 1; height: 42vw; }
	.edc-galerie__item:nth-child(3n+1) { grid-column: span 2; height: 56vw; }
	.edc-cta__box { padding: 46px 26px; }
	.edc-btn { padding: 18px 44px 18px 28px; }
	.edc-wysiwyg th,
	.edc-wysiwyg td { padding: 10px 12px; font-size: 14px; }
	.edc-wysiwyg tbody th { width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
	.edc-main *,
	.edc-main *::before,
	.edc-main *::after { transition: none !important; animation: none !important; }
}
