/*
 * E2IT - fiche chantier.
 *
 * L ordre des blocs suit les questions du lecteur : qui, ou, quand, puis ce
 * qui etait demande, ce qui rendait l intervention difficile, ce qui a ete
 * fait, ce que cela donne.
 *
 * Le bandeau de reperes est horizontal, contrairement a l encadre lateral des
 * articles : une fiche est une reference, ses donnees factuelles sont
 * l essentiel et meritent la pleine largeur.
 */

/* Rythme du hero : 24 au-dessus du titre, 16 sous l etiquette, 24 sous le
   titre - la meme convention que les tetes de section et les articles. */
.e2it-fiche__entete .e2it-fil {
	margin-bottom: var(--e2it-espace-6);
}

.e2it-fiche__terrain {
	display: inline-block;
	margin: 0 0 var(--e2it-espace-4);
	padding: 6px 13px;
	border-radius: var(--e2it-rayon-pilule);
	background: rgba(169, 196, 229, .18);
	font-family: var(--e2it-police-mono);
	font-size: 11px;
	font-weight: var(--e2it-mono-graisse);
	letter-spacing: var(--e2it-mono-interlettrage);
	text-transform: uppercase;
	color: var(--e2it-glacier);
}

.e2it-fiche__titre {
	margin: 0;
	font-family: var(--e2it-police);
	font-size: 44px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--e2it-blanc);
	text-wrap: balance;
}

.e2it-fiche__meta {
	margin: var(--e2it-espace-6) 0 0;
	font-family: var(--e2it-police-mono);
	font-size: var(--e2it-mono-taille);
	font-weight: var(--e2it-mono-graisse);
	letter-spacing: var(--e2it-mono-interlettrage);
	text-transform: uppercase;
	color: var(--e2it-bleu-clair);
}

.e2it-fiche__entete--photo {
	position: relative;
	background: var(--e2it-marine);
	overflow: hidden;
}

.e2it-fiche__entete--photo .e2it-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.e2it-fiche__entete--photo .e2it-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(7px);
	transform: scale(1.08);
}

.e2it-fiche__entete--photo .e2it-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 70% at 50% 45%, rgba(7, 28, 62, .55), transparent 70%),
		linear-gradient(180deg, rgba(11, 46, 94, .74) 0%, rgba(7, 28, 62, .86) 55%, rgba(5, 21, 47, .94) 100%);
}

.e2it-fiche__entete--photo .e2it-hero__corps {
	position: relative;
	z-index: 2;
}

.e2it-fiche__photo {
	width: 100%;
	max-width: var(--e2it-largeur-contenu);
	margin: -24px auto 0;
	position: relative;
	z-index: 2;
	aspect-ratio: 16 / 9;
	max-height: 480px;
	overflow: hidden;
	border-radius: var(--e2it-rayon-carte);
}

.e2it-fiche__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Fond gris et non filets verticaux : cinq colonnes egales separees par des
   traits pleine hauteur, c est la mise en forme d un tableur. La separation
   se fait par l espace, et le bandeau se detache enfin du blanc de la page.

   Largeurs inegales : le maitre d ouvrage est la reference, l annee et le
   terrain sont du classement - 2022 n a pas besoin de 248 px. */
.e2it-fiche__reperes {
	width: 100%;
	max-width: var(--e2it-largeur-contenu);
	margin: var(--e2it-espace-12) auto 0;
	padding: var(--e2it-espace-6) var(--e2it-espace-8);
	display: grid;
	grid-template-columns: 2fr 1.4fr 1fr 1fr;
	gap: var(--e2it-espace-6);
	background: var(--e2it-fond-gris);
	border: 1px solid var(--e2it-bordure);
	border-radius: var(--e2it-rayon-carte);
}

/* Libelles alignes en haut, valeurs alignees en bas : la ligne de base
   reste commune quel que soit le nombre de lignes d une cellule. */
.e2it-fiche__reperes > div {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--e2it-espace-2);
}

.e2it-fiche__reperes dt {
	font-family: var(--e2it-police-mono);
	font-size: 10px;
	letter-spacing: var(--e2it-mono-interlettrage);
	text-transform: uppercase;
	color: var(--e2it-texte-tertiaire);
}

.e2it-fiche__reperes dd {
	margin: 5px 0 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--e2it-marine);
}

.e2it-fiche__situation {
	width: 100%;
	max-width: var(--e2it-largeur-contenu);
	margin: var(--e2it-espace-12) auto 0;
	padding: 0 var(--e2it-gouttiere);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: var(--e2it-espace-12);
	align-items: start;
}

.e2it-fiche__intitule {
	margin: 0 0 var(--e2it-espace-2);
	font-family: var(--e2it-police-mono);
	font-size: 11px;
	font-weight: var(--e2it-mono-graisse);
	letter-spacing: var(--e2it-mono-interlettrage);
	text-transform: uppercase;
	color: var(--e2it-bleu-crete);
}

.e2it-fiche__texte {
	margin: 0;
	max-width: 62ch;
	font-size: var(--e2it-lecture-taille);
	line-height: var(--e2it-lecture-interligne);
	color: var(--e2it-lecture-texte);
	text-wrap: pretty;
}

/* La contrainte distingue une reference d une liste de taches : elle est
   mise en evidence, pas noyee dans le recit. */
.e2it-fiche__contrainte {
	margin-top: var(--e2it-espace-8);
	padding: var(--e2it-espace-6);
	background: var(--e2it-fond-gris);
	border-left: 3px solid var(--e2it-accent);
	border-radius: 0 var(--e2it-rayon-carte) var(--e2it-rayon-carte) 0;
}

/* Panneau marine et non gris clair : sur fond clair, un plan aux terres
   bleu pale et au point minuscule ne se lisait pas, et n appartenait
   visuellement a rien - tout le reste de la page est marine ou blanc franc. */
.e2it-fiche__plan-zone {
	position: sticky;
	top: 120px;
	padding: var(--e2it-espace-4);
	background: var(--e2it-marine);
	border: 1px solid var(--e2it-bleu-profond);
	border-radius: var(--e2it-rayon-carte);
	text-align: center;
}

.e2it-fiche__plan {
	display: block;
	width: 100%;
	height: auto;
}

.e2it-fiche__dep {
	fill: var(--e2it-bleu-profond);
	stroke: var(--e2it-marine);
	stroke-width: 1;
}

/* Le marqueur est le seul element colore du panneau : il doit se voir en
   une fraction de seconde. */
.e2it-fiche__halo {
	fill: var(--e2it-glacier);
	opacity: .3;
}

.e2it-fiche__point {
	fill: var(--e2it-accent);
	stroke: var(--e2it-blanc);
	stroke-width: 2.5;
}

.e2it-fiche__lieu {
	margin: var(--e2it-espace-3) 0 0;
	font-family: var(--e2it-police-mono);
	font-size: 10px;
	letter-spacing: var(--e2it-mono-interlettrage);
	text-transform: uppercase;
	color: var(--e2it-glacier);
}

/* Le logo reste sur le marine du panneau : les logos clients d industriels
   sont fournis en blanc pour fonds sombres, et une pastille blanche les
   faisait disparaitre. Un logo sombre demanderait l inverse - ce sera une
   case a cocher par fiche le jour ou le cas se presente. */
.e2it-fiche__logo {
	display: block;
	margin-top: var(--e2it-espace-4);
	padding-top: var(--e2it-espace-4);
	border-top: 1px solid rgba(169, 196, 229, .22);
}

.e2it-fiche__logo img {
	display: block;
	max-width: 120px;
	max-height: 40px;
	width: auto;
	height: auto;
	margin-inline: auto;
	object-fit: contain;
}

/* Neuf lignes sur fond blanc ressemblent a un devis ; sur marine, elles
   deviennent un bloc technique assume. */
.e2it-fiche__travaux {
	width: 100%;
	max-width: var(--e2it-largeur-contenu);
	margin: var(--e2it-espace-12) auto 0;
	padding: var(--e2it-espace-8);
	background: var(--e2it-marine);
	border-radius: var(--e2it-rayon-carte);
}

.e2it-fiche__travaux .e2it-fiche__intitule {
	color: var(--e2it-glacier);
	margin-bottom: var(--e2it-espace-4);
}

.e2it-fiche__travaux ul {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: var(--e2it-espace-12);
}

.e2it-fiche__travaux li {
	position: relative;
	margin-bottom: var(--e2it-espace-3);
	padding-left: var(--e2it-espace-6);
	font-size: 16px;
	line-height: 1.55;
	color: var(--e2it-blanc);
	break-inside: avoid;
}

.e2it-fiche__travaux li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--e2it-bleu-crete);
}

.e2it-fiche__resultat {
	width: 100%;
	max-width: var(--e2it-largeur-contenu);
	margin: var(--e2it-espace-12) auto 0;
	padding: 0 var(--e2it-gouttiere);
}

.e2it-fiche__resultat p:last-child {
	margin: 0;
	max-width: 58ch;
	padding-left: var(--e2it-espace-6);
	border-left: 3px solid var(--e2it-accent);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--e2it-marine);
	text-wrap: pretty;
}

/* Les renvois et les autres chantiers forment un meme propos - pour aller
   plus loin. Ils etaient separes de 64 px l un de l autre, autant que du
   resultat : rien ne marquait la fin de la fiche. On creuse devant le couple
   et on le resserre. */
.e2it-fiche__renvois {
	width: 100%;
	max-width: var(--e2it-largeur-contenu);
	margin: var(--e2it-espace-24) auto 0;
	padding: 0 var(--e2it-gouttiere) var(--e2it-section-padding);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--e2it-espace-4);
}

.e2it-fiche__renvoi {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--e2it-espace-6);
	background: var(--e2it-blanc);
	border: 1px solid var(--e2it-bordure);
	border-left: 3px solid var(--e2it-bleu-pale);
	border-radius: var(--e2it-rayon-carte);
	text-decoration: none;
	transition:
		transform var(--e2it-duree-rapide) var(--e2it-courbe),
		box-shadow var(--e2it-duree-rapide) var(--e2it-courbe),
		border-color var(--e2it-duree-rapide) var(--e2it-courbe);
}

.e2it-fiche__renvoi:hover {
	transform: translateY(-2px);
	box-shadow: var(--e2it-eleve);
	border-color: var(--e2it-bleu-crete);
	border-left-color: var(--e2it-accent);
}

.e2it-fiche__renvoi-surtitre {
	font-family: var(--e2it-police-mono);
	font-size: 11px;
	font-weight: var(--e2it-mono-graisse);
	letter-spacing: var(--e2it-mono-interlettrage);
	text-transform: uppercase;
	color: var(--e2it-bleu-crete);
}

.e2it-fiche__renvoi-titre {
	font-family: var(--e2it-police);
	font-size: var(--e2it-h4-taille);
	font-weight: var(--e2it-h4-graisse);
	line-height: var(--e2it-h4-interligne);
	color: var(--e2it-marine);
}

@media (max-width: 1024px) {
	.e2it-fiche__situation {
		grid-template-columns: 1fr;
		gap: var(--e2it-espace-8);
	}

	/* Le plan passe sous le recit : sur une colonne, il situe apres avoir
	   compris, pas avant. */
	.e2it-fiche__plan-zone {
		position: static;
		max-width: 320px;
		margin-inline: auto;
	}
}

@media (max-width: 767px) {
	.e2it-fiche__titre {
		font-size: 30px;
	}

	/* 96 et 32 sur ordinateur deviennent 48 et 24 : les memes rapports, a
	   l echelle d un ecran de 390 px. */
	.e2it-fiche__renvois {
		margin-top: var(--e2it-espace-12);
	}

	.e2it-fiche__autres {
		margin-top: var(--e2it-espace-3);
	}

	.e2it-fiche__travaux ul {
		columns: 1;
	}

	.e2it-fiche__travaux {
		padding: var(--e2it-espace-6);
		border-radius: 0;
	}

	.e2it-fiche__resultat p:last-child {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.e2it-fiche__renvoi { transition: none; }
	.e2it-fiche__renvoi:hover { transform: none; }
}
/* ==================================================================
   Carte de chantier

   Ni resume ni date : un terrain, un lieu, une annee, deux expertises.
   Les pastilles d expertise sont ce qu un responsable maintenance
   reconnait avant de lire le titre.

   L image occupe toute la carte sous un voile marine, langage du hero.
   Le degrade de fond tient lieu d image tant qu aucune photo n est posee,
   donc la carte reste presentable des aujourd hui.
   ================================================================== */

.e2it-chantier {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 300px;
	overflow: hidden;
	border-radius: var(--e2it-rayon-carte);
	background: linear-gradient(150deg, var(--e2it-bleu-profond), var(--e2it-marine));
	transition:
		transform var(--e2it-duree-rapide) var(--e2it-courbe),
		box-shadow var(--e2it-duree-rapide) var(--e2it-courbe);
}

.e2it-chantier:hover {
	transform: translateY(-2px);
	box-shadow: var(--e2it-eleve);
}

.e2it-chantier:focus-within {
	box-shadow: 0 0 0 3px var(--e2it-accent);
}

.e2it-chantier__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.e2it-chantier__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Voile dense en bas, leger en haut : le texte se pose sans effacer la
   photo, qui est la preuve. */
.e2it-chantier__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 46, 94, .15) 0%, rgba(7, 28, 62, .82) 62%, rgba(5, 21, 47, .95) 100%);
}

.e2it-chantier__terrain,
.e2it-chantier__annee {
	position: absolute;
	top: var(--e2it-espace-4);
	z-index: 2;
	font-family: var(--e2it-police-mono);
	font-size: 10px;
	font-weight: var(--e2it-mono-graisse);
	letter-spacing: var(--e2it-mono-interlettrage);
	text-transform: uppercase;
	color: var(--e2it-glacier);
}

.e2it-chantier__terrain {
	left: var(--e2it-espace-4);
	padding: 5px 11px;
	border-radius: var(--e2it-rayon-pilule);
	background: rgba(169, 196, 229, .2);
}

.e2it-chantier__annee {
	right: var(--e2it-espace-4);
}

.e2it-chantier__corps {
	position: relative;
	z-index: 2;
	padding: var(--e2it-espace-6);
}

.e2it-chantier__lieu {
	margin: 0 0 var(--e2it-espace-2);
	font-family: var(--e2it-police-mono);
	font-size: 10px;
	letter-spacing: var(--e2it-mono-interlettrage);
	text-transform: uppercase;
	color: var(--e2it-glacier);
}

.e2it-chantier__titre {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--e2it-blanc);
	text-wrap: balance;
}

/* Le lien du titre couvre la carte : une seule cible, toute la surface. */
.e2it-chantier__titre a {
	color: inherit;
	text-decoration: none;
}

.e2it-chantier__titre a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.e2it-chantier__expertises {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: var(--e2it-espace-3) 0 0;
}

.e2it-chantier__expertises span {
	padding: 4px 9px;
	border-radius: var(--e2it-rayon-pilule);
	background: rgba(255, 255, 255, .12);
	font-family: var(--e2it-police-mono);
	font-size: 9px;
	letter-spacing: var(--e2it-mono-interlettrage);
	text-transform: uppercase;
	color: var(--e2it-bleu-clair);
}

.e2it-chantier__lien {
	display: flex;
	align-items: center;
	gap: var(--e2it-espace-2);
	margin: var(--e2it-espace-4) 0 0;
	font-size: var(--e2it-lien-taille);
	font-weight: var(--e2it-lien-graisse);
	color: var(--e2it-glacier);
}

.e2it-chantier:hover .e2it-chantier__lien {
	color: var(--e2it-blanc);
}

/* Grille de chantiers, partagee par la fin de fiche et le futur index. */
.e2it-chantiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--e2it-espace-4);
}

@media (max-width: 767px) {
	.e2it-chantier {
		min-height: 260px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.e2it-chantier { transition: none; }
	.e2it-chantier:hover { transform: none; }
}

.e2it-fiche__autres {
	width: 100%;
	max-width: var(--e2it-largeur-contenu);
	margin: var(--e2it-espace-4) auto 0;
	padding: 0 var(--e2it-gouttiere) var(--e2it-section-padding);
}


/* Expertises en pastilles : reunies par des virgules, elles debordaient sur
   trois lignes la ou les autres cellules en tiennent une. */
.e2it-fiche__pastilles {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 2px;
}

.e2it-fiche__pastilles span {
	padding: 4px 9px;
	border-radius: var(--e2it-rayon-pilule);
	background: var(--e2it-bleu-pale);
	font-family: var(--e2it-police-mono);
	font-size: 9px;
	font-weight: var(--e2it-mono-graisse);
	letter-spacing: var(--e2it-mono-interlettrage);
	text-transform: uppercase;
	color: var(--e2it-bleu-profond);
}

/* Bloc unique des expertises mobilisees : un surtitre, plusieurs liens. */
.e2it-fiche__renvoi--expertises {
	cursor: default;
}

.e2it-fiche__expertises-liens {
	display: flex;
	flex-wrap: wrap;
	gap: var(--e2it-espace-2) var(--e2it-espace-6);
	margin-top: 2px;
}

.e2it-fiche__expertises-liens a {
	font-family: var(--e2it-police);
	font-size: var(--e2it-h4-taille);
	font-weight: var(--e2it-h4-graisse);
	color: var(--e2it-marine);
	text-decoration: none;
	border-bottom: 1px solid var(--e2it-bleu-pale);
	transition: border-color var(--e2it-duree-rapide) var(--e2it-courbe);
}

.e2it-fiche__expertises-liens a:hover {
	border-color: var(--e2it-accent);
}

/* Carte sans photo : le motif d arete de la charte evite le grand aplat
   sombre et vide. */
.e2it-chantier__media:not(:has(img))::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(30deg, rgba(169, 196, 229, .1) 0 2px, transparent 2px 22px);
}

/* Le maitre d ouvrage est la reference de la fiche : il se lit avant les
   trois autres reperes. */
.e2it-fiche__reperes > div:first-child dd {
	font-size: 19px;
	line-height: 1.25;
}

@media (max-width: 1024px) {
	.e2it-fiche__reperes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--e2it-espace-6) var(--e2it-espace-8);
	}
}

@media (max-width: 479px) {
	.e2it-fiche__reperes {
		grid-template-columns: 1fr;
	}
}

/* Separateurs entre repères : un filet court, pose au milieu de l ecart et
   retrait de quelques pixels en haut et en bas. Un trait pleine hauteur
   redonnerait au bandeau son allure de tableur - c est la longueur du trait
   qui fait la difference, pas sa presence. */
.e2it-fiche__reperes > div + div {
	position: relative;
}

.e2it-fiche__reperes > div + div::before {
	content: "";
	position: absolute;
	left: calc(var(--e2it-espace-6) / -2);
	top: 4px;
	bottom: 4px;
	width: 1px;
	background: var(--e2it-bordure);
}

/* En deux colonnes, le filet tomberait au bord gauche de la seconde rangee :
   il ne subsiste qu entre les colonnes d une meme rangee. */
@media (max-width: 1024px) {
	.e2it-fiche__reperes > div + div::before {
		content: none;
	}

	.e2it-fiche__reperes > div:nth-child(even)::before {
		content: "";
		position: absolute;
		left: calc(var(--e2it-espace-8) / -2);
		top: 4px;
		bottom: 4px;
		width: 1px;
		background: var(--e2it-bordure);
	}
}

@media (max-width: 479px) {
	.e2it-fiche__reperes > div::before {
		content: none;
	}
}

/* Le titre sortait en #0F1114, le noir d interface : il n avait jamais recu
   la couleur des titres de section. */
.e2it-fiche__autres h2 {
	color: var(--e2it-marine);
}

/* ------------------------------------------------------------------
   Carte de chantier : toute la surface est cliquable

   Le lien du titre s etend en ::after sur la carte entiere. Il prenait
   auparavant pour reference le corps de la carte, qui etait positionne :
   seule la moitie basse repondait au clic.

   La carte isole donc son propre plan (isolation), l image passe en
   plan -1 (au-dessus du fond de la carte, sous le contenu) et le corps
   redevient non positionne. La reference du lien etendu est alors la
   carte elle-meme.
   ------------------------------------------------------------------ */
.e2it-chantier {
	isolation: isolate;
}

.e2it-chantier .e2it-chantier__media {
	z-index: -1;
}

.e2it-chantier .e2it-chantier__corps {
	position: static;
	z-index: auto;
}

/* Etiquette de terrain et annee sous le lien : elles restent lisibles,
   sans intercepter le clic. */
.e2it-chantier .e2it-chantier__terrain,
.e2it-chantier .e2it-chantier__annee {
	z-index: 1;
}

.e2it-chantier .e2it-chantier__titre a::after {
	z-index: 3;
}
/* ==================================================================
   Carte de chantier : survol et focus

   La regle generale du theme « a:hover { color: marine } » passait le
   titre en marine sur fond marine : il disparaissait. Le titre reste
   desormais blanc, et l animation repond a trois questions :
   quelle carte (montee, ombre), est-ce cliquable (soulignement qui se
   dessine), ou vais-je (fleche qui avance). La photo se revele : le
   voile s eclaircit en haut et reste dense sous le texte.
   Au doigt : pas d animation de survol. Mouvement reduit : ni zoom ni
   montee, seulement le soulignement et les couleurs.
   ================================================================== */

/* Titre : toujours blanc, quel que soit l etat du lien. */
.e2it-chantier .e2it-chantier__titre a:not(#e2it),
.e2it-chantier .e2it-chantier__titre a:not(#e2it):hover,
.e2it-chantier .e2it-chantier__titre a:not(#e2it):focus,
.e2it-chantier .e2it-chantier__titre a:not(#e2it):visited {
	color: var(--e2it-blanc);
}

/* Soulignement glacier, dessine de gauche a droite. */
.e2it-chantier .e2it-chantier__titre a {
	padding-bottom: 2px;
	background-image: linear-gradient(var(--e2it-glacier), var(--e2it-glacier));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 2px;
	transition: background-size .25s var(--e2it-courbe);
}

/* Le contour de focus est porte par la carte entiere. */
.e2it-chantier .e2it-chantier__titre a:focus-visible {
	outline: none;
}

/* Voile en deux couches : la teinte du haut s efface au survol, le
   degrade du bas reste pour le contraste du texte. */
.e2it-chantier .e2it-chantier__media:not(#e2it)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(11, 46, 94, .3);
	transition: opacity .4s ease;
}

.e2it-chantier .e2it-chantier__media::after {
	z-index: 1;
	background: linear-gradient(180deg, rgba(7, 28, 62, 0) 25%, rgba(7, 28, 62, .78) 60%, rgba(5, 21, 47, .95) 100%);
}

.e2it-chantier .e2it-chantier__media img {
	transition: transform .6s var(--e2it-courbe);
}

/* Fleche de « Voir le chantier ». */
.e2it-chantier .e2it-chantier__lien span {
	display: inline-block;
	transition: transform .3s var(--e2it-courbe);
}

.e2it-chantier .e2it-chantier__lien {
	transition: color .25s ease;
}

.e2it-chantier:not(#e2it) {
	transition: transform .32s var(--e2it-courbe), box-shadow .32s var(--e2it-courbe);
}

/* Etats actifs : survol a la souris, et focus au clavier. */
@media (hover: hover) and (pointer: fine) {
	.e2it-chantier:not(#e2it):hover {
		transform: translateY(-4px);
		box-shadow: 0 24px 50px rgba(7, 28, 62, .3);
	}

	.e2it-chantier:hover .e2it-chantier__titre a {
		background-size: 100% 2px;
	}

	.e2it-chantier:hover .e2it-chantier__media img {
		transform: scale(1.04);
	}

	.e2it-chantier:hover .e2it-chantier__media::before {
		opacity: 0;
	}

	.e2it-chantier:hover .e2it-chantier__lien {
		color: var(--e2it-blanc);
	}

	.e2it-chantier:hover .e2it-chantier__lien span {
		transform: translateX(6px);
	}
}

.e2it-chantier:not(#e2it):focus-within {
	transform: translateY(-4px);
	box-shadow: 0 0 0 3px var(--e2it-accent), 0 24px 50px rgba(7, 28, 62, .3);
}

.e2it-chantier:focus-within .e2it-chantier__titre a {
	background-size: 100% 2px;
}

.e2it-chantier:focus-within .e2it-chantier__media::before {
	opacity: 0;
}

.e2it-chantier:focus-within .e2it-chantier__lien {
	color: var(--e2it-blanc);
}

.e2it-chantier:focus-within .e2it-chantier__lien span {
	transform: translateX(6px);
}

/* Au doigt : pas d etat de survol « colle » apres un toucher. */
@media (hover: none) {
	.e2it-chantier:not(#e2it):hover {
		transform: none;
	}
}

/* Carte sans photo : degrade marine uni, sans motif. La teinte du haut
   s efface au survol : le fond s eclaircit, la carte repond. */
.e2it-chantier:not(#e2it) {
	background: linear-gradient(150deg, var(--e2it-bleu-profond), var(--e2it-marine));
}

@media (prefers-reduced-motion: reduce) {
	.e2it-chantier:not(#e2it),
	.e2it-chantier .e2it-chantier__media img,
	.e2it-chantier .e2it-chantier__lien span {
		transition: none;
	}

	.e2it-chantier:not(#e2it):hover,
	.e2it-chantier:not(#e2it):focus-within {
		transform: none;
	}

	.e2it-chantier:hover .e2it-chantier__media img,
	.e2it-chantier:hover .e2it-chantier__lien span,
	.e2it-chantier:focus-within .e2it-chantier__lien span {
		transform: none;
	}
}
