/*
 * E2IT - fiche chantier. Prefixe fc-.
 *
 * Proportions du dossier de maquette, valeurs ramenees aux jetons. Chaque
 * bloc n existe que s il est rempli. Aucune case seule sur une ligne : bande
 * en paires, galerie et navigation en auto-fit.
 */

/* ==================================================================
   Heros
   ================================================================== */
.fc-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--e2it-marine);
	color: var(--e2it-blanc);
}

.fc-hero__fond {
	position: absolute;
	inset: 0;
	z-index: 0;
}

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

.fc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(100deg, rgba(7, 28, 62, .97) 0%, rgba(11, 46, 94, .92) 55%, rgba(11, 46, 94, .8) 100%);
}

.fc-hero__inner,
.fc-bande {
	position: relative;
	z-index: 2;
}

/* Sous l en-tete transparent (88 px). */
.fc-hero__inner {
	max-width: var(--e2it-largeur-contenu, 1240px);
	margin: 0 auto;
	padding: calc(88px + 56px) 40px 64px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 40px 56px;
	align-items: stretch;
}

.fc-hero__texte {
	flex: 1.3 1 480px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
}

/* Sans photo : le texte prend la largeur, lisible. */
.fc-hero__inner--seul .fc-hero__texte {
	max-width: 820px;
}

.fc-hero .fc-hero__titre:not(#e2it) {
	margin: 0;
	font-size: clamp(40px, 4.6vw, 62px);
	line-height: 1;
	letter-spacing: -.035em;
	color: var(--e2it-blanc);
	text-wrap: balance;
}

.fc-hero__titre em {
	font-style: italic;
	color: var(--e2it-glacier);
}

.fc-hero__accroche {
	margin: 0;
	max-width: 560px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--e2it-bleu-clair);
	text-wrap: pretty;
}

.fc-hero__photo {
	flex: 1 1 380px;
	min-width: 0;
	min-height: 340px;
	max-height: 440px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--e2it-bleu-profond);
	border: 1px solid rgba(169, 196, 229, .3);
	box-shadow: 0 30px 70px rgba(3, 12, 28, .45);
}

.fc-hero__photo img:not(#e2it) {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

.fc-etiquettes {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fc-etiquette {
	padding: 6px 12px;
	border: 1px solid rgba(169, 196, 229, .45);
	border-radius: var(--e2it-rayon-pilule);
	color: var(--e2it-blanc);
	font: 500 10px/1.2 var(--e2it-police-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
}

.fc-etiquette--plein {
	background: var(--e2it-blanc);
	border-color: var(--e2it-blanc);
	color: var(--e2it-marine);
}

/* ---- Bande : deux paires fixes -> 4 / 2 / 1 ---- */
.fc-bande {
	margin: 0;
	padding: 0 max(40px, calc((100% - 1160px) / 2));
	border-top: 1px solid rgba(169, 196, 229, .22);
	background: rgba(5, 21, 47, .55);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 392px), 1fr));
	column-gap: 32px;
}

.fc-bande__paire {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	column-gap: 32px;
}

.fc-bande__paire > div {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 0;
}

.fc-bande dt {
	font: 500 10px/1.4 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e2it-glacier);
}

.fc-bande dd {
	margin: 0;
	font-weight: 600;
	font-size: 15px;
}

/* ==================================================================
   Corps
   ================================================================== */
.fc-corps {
	max-width: var(--e2it-largeur-contenu, 1240px);
	margin: 0 auto;
	padding: 80px 40px 88px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 48px 56px;
	align-items: flex-start;
}

/* Fiche sans recit : la colonne seule, centree et plus large. */
.fc-corps--court {
	justify-content: center;
}

.fc-corps--court .fc-colonne {
	flex: 0 1 560px;
	position: static;
}

.fc-contenu {
	flex: 2 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.fc-bloc {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.fc-surtitre:not(#e2it) {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	font: 500 11px/1.4 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e2it-texte-secondaire);
}

.fc-surtitre__filet {
	width: 28px;
	height: 2px;
	background: var(--e2it-accent);
}

.fc-h2:not(#e2it) {
	margin: 0;
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.1;
	letter-spacing: -.028em;
	color: var(--e2it-marine);
	text-wrap: balance;
}

.fc-texte {
	margin: 0;
	max-width: 680px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--e2it-texte-secondaire);
}

/* ---- Avant / Apres ---- */
.fc-avap {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	border: 1px solid var(--e2it-bordure);
	border-radius: 16px;
	overflow: hidden;
}

.fc-avap__avant,
.fc-avap__apres {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 26px 28px;
}

.fc-avap__avant {
	background: var(--e2it-fond-gris);
	color: var(--e2it-texte-secondaire);
}

.fc-avap__apres {
	background: var(--e2it-marine);
	color: var(--e2it-blanc);
}

.fc-avap span {
	font: 500 10px/1.4 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
}

.fc-avap__apres span {
	color: var(--e2it-glacier);
}

.fc-avap strong {
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: 26px;
	letter-spacing: -.02em;
}

.fc-avap__avant strong {
	color: var(--e2it-marine);
}

.fc-avap em {
	font: 400 12px/1.5 var(--e2it-police-mono);
	font-style: normal;
	letter-spacing: .06em;
}

.fc-avap__apres em {
	color: var(--e2it-bleu-clair);
}

.fc-avap__fleche {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	background: linear-gradient(to right, var(--e2it-fond-gris) 50%, var(--e2it-marine) 50%);
}

.fc-avap__fleche span {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--e2it-accent-fond, #1668C6);
	box-shadow: 0 0 0 6px var(--e2it-blanc);
}

.fc-avap__fleche span::before {
	content: "→";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--e2it-blanc);
	font: 600 18px/1 var(--e2it-police);
}

/* ---- Phases ---- */
.fc-phases {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fc-phases--simple {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fc-phase {
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 0 20px;
}

.fc-phase:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 21px;
	top: 50px;
	bottom: 6px;
	width: 2px;
	background: #C9D6E5;
}

.fc-phase__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--e2it-marine);
	color: var(--e2it-blanc);
	font: 500 12px/1 var(--e2it-police-mono);
}

.fc-phase__corps {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 8px 0 36px;
}

.fc-phase__titre:not(#e2it) {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: -.012em;
	color: var(--e2it-marine);
}

.fc-phase__titre span {
	font: 500 10px/1.4 var(--e2it-police-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--e2it-texte-secondaire);
}

.fc-etapes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fc-etapes li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 16px;
	border: 1px solid var(--e2it-bordure);
	border-radius: 10px;
	background: var(--e2it-blanc);
}

.fc-etapes__coche {
	flex: none;
	position: relative;
	width: 16px;
	height: 16px;
	margin-top: 3px;
}

.fc-etapes__coche::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid var(--e2it-accent-fond, #1668C6);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.fc-etapes__texte {
	flex: 1;
	font-size: 15px;
	line-height: 1.5;
	color: var(--e2it-texte);
}

.fc-etapes em {
	flex: none;
	padding: 5px 9px;
	border-radius: var(--e2it-rayon-pilule);
	background: #F0F3F7;
	color: var(--e2it-texte-secondaire);
	font: 500 9px/1.2 var(--e2it-police-mono);
	font-style: normal;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.fc-composants {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 22px;
	border: 1px solid var(--e2it-bordure);
	border-radius: 12px;
	background: var(--e2it-fond-gris);
}

.fc-composants p {
	margin: 0;
	font: 500 10px/1.4 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e2it-bleu-profond);
}

.fc-composants ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fc-composants li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid #C9D6E5;
	border-radius: var(--e2it-rayon-pilule);
	background: var(--e2it-blanc);
	font-size: 14px;
	color: var(--e2it-marine);
}

.fc-composants li span {
	font: 500 10px/1 var(--e2it-police-mono);
	color: var(--e2it-texte-secondaire);
}

/* ---- Galerie ---- */
.fc-galerie {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 12px;
}

.fc-galerie figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fc-galerie a {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
	background: var(--e2it-bleu-pale);
}

.fc-galerie img:not(#e2it) {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.fc-galerie a:hover img {
	transform: scale(1.03);
}

.fc-galerie figcaption {
	font-size: 13px;
	color: var(--e2it-texte-secondaire);
}

/* ---- Expertises mobilisees : cartes compactes, sur le modele de la page
   Nos expertises ---- */
.fc-expertises {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 16px;
}

.fc-expertises > li {
	display: flex;
	min-width: 0;
}

.fc-exp {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--e2it-bordure);
	border-radius: 14px;
	overflow: hidden;
	background: var(--e2it-blanc);
	color: var(--e2it-texte);
	text-decoration: none;
	transition: border-color .24s ease, box-shadow .3s ease, transform .3s var(--e2it-courbe);
}

a.fc-exp:hover,
a.fc-exp:focus-visible {
	border-color: var(--e2it-marine);
	box-shadow: 0 18px 40px rgba(7, 28, 62, .12);
	transform: translateY(-2px);
	color: var(--e2it-texte);
}

.fc-exp__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, var(--e2it-marine), var(--e2it-bleu-profond));
}

.fc-exp__media img:not(#e2it) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.fc-exp__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(7, 28, 62, .5), rgba(7, 28, 62, 0) 55%);
}

.fc-exp__num {
	position: absolute;
	z-index: 1;
	left: 14px;
	top: 14px;
	padding: 6px 9px;
	border-radius: 4px;
	background: var(--e2it-blanc);
	color: var(--e2it-marine);
	font: 500 10px/1 var(--e2it-police-mono);
	letter-spacing: .14em;
}

.fc-exp__corps {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 18px;
}

.fc-exp__nom {
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: 20px;
	line-height: 1.15;
	color: var(--e2it-marine);
}

.fc-exp__resume {
	font-size: 14px;
	line-height: 1.5;
	color: var(--e2it-texte-secondaire);
}

.fc-exp__lien {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--e2it-bordure);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	font-size: 14px;
	color: var(--e2it-marine);
}

.fc-exp__lien i::before {
	content: "→";
	display: inline-block;
	font-style: normal;
	transition: transform .3s var(--e2it-courbe);
}

a.fc-exp:hover .fc-exp__lien i::before {
	transform: translateX(5px);
}

/* ==================================================================
   Colonne
   ================================================================== */
.fc-colonne {
	flex: 1 1 320px;
	min-width: 0;
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fc-fiche {
	border: 1px solid var(--e2it-bordure);
	border-radius: 16px;
	overflow: hidden;
	background: var(--e2it-blanc);
	box-shadow: 0 24px 56px rgba(7, 28, 62, .1);
}

.fc-carte {
	position: relative;
	height: 240px;
	background: var(--e2it-fond-gris);
}

.fc-carte svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.fc-carte.est-indisponible {
	display: none;
}

.fc-carte__badge {
	position: absolute;
	z-index: 1;
	left: 14px;
	top: 14px;
	padding: 6px 10px;
	border: 1px solid var(--e2it-bordure);
	border-radius: var(--e2it-rayon-pilule);
	background: var(--e2it-blanc);
	color: var(--e2it-marine);
	font: 500 10px/1.2 var(--e2it-police-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
}

.fc-carte__badge:empty {
	display: none;
}

.fc-fiche__liste {
	margin: 0;
	padding: 8px 24px 6px;
}

.fc-fiche__liste > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #EEF1F5;
}

.fc-fiche__liste > div:last-child {
	border-bottom: 0;
}

.fc-fiche__liste dt {
	flex: none;
	font: 500 10px/1.6 var(--e2it-police-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--e2it-texte-secondaire);
}

.fc-fiche__liste dd {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	text-align: right;
	color: var(--e2it-texte);
}

.fc-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 26px 26px 24px;
	border-radius: 16px;
	background: var(--e2it-marine);
}

.fc-cta__sur {
	margin: 0;
	font: 500 10px/1.4 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e2it-glacier);
}

.fc-cta__titre {
	margin: 0;
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: 22px;
	line-height: 1.2;
	color: var(--e2it-blanc);
	text-wrap: balance;
}

/* ==================================================================
   Navigation : les cartes de l index des realisations (fiche.css)
   ================================================================== */
.fc-suite {
	padding: 72px 0 80px;
	border-top: 1px solid var(--e2it-bordure);
	background: var(--e2it-fond-gris);
}

.fc-suite__inner {
	max-width: var(--e2it-largeur-contenu, 1240px);
	margin: 0 auto;
	padding: 0 40px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.fc-suite__entete {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fc-suite__grille {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 20px;
}

.fc-suite__grille > li {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.fc-suite__grille > li > .e2it-chantier {
	flex: 1;
}

.fc-suite__sens {
	margin: 0;
	font: 500 10px/1.4 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e2it-texte-secondaire);
}

.fc-suite__sens--suiv {
	text-align: right;
}

.fc-suite .fc-suite__toutes {
	align-self: center;
}

.fc-hero a:focus-visible,
.fc-corps a:focus-visible,
.fc-suite a:focus-visible {
	outline: 2px solid var(--e2it-accent);
	outline-offset: 2px;
}

/* ==================================================================
   Tablette et mobile
   ================================================================== */
@media (max-width: 1023px) {
	.fc-colonne {
		position: static;
	}
}

@media (max-width: 767px) {
	.fc-hero__inner,
	.fc-corps {
		padding-left: 20px;
		padding-right: 20px;
	}

	.fc-hero__inner {
		padding-top: calc(92px + 32px);
		padding-bottom: 40px;
		gap: 28px;
	}

	.fc-hero__accroche {
		font-size: 16px;
	}

	.fc-hero__photo {
		min-height: 240px;
	}

	.fc-bande,
	.fc-suite__inner {
		padding-left: 20px;
		padding-right: 20px;
	}

	.fc-suite {
		padding: 56px 0;
	}

	.fc-suite__sens--suiv {
		text-align: left;
	}

	.fc-corps {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.fc-phase {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 0 14px;
	}

	.fc-phase__num {
		width: 36px;
		height: 36px;
	}

	.fc-phase:not(:last-child)::before {
		left: 17px;
		top: 42px;
	}

	/* Avant / apres empiles : la fleche pointe vers le bas. */
	.fc-avap__fleche {
		position: relative;
		flex-basis: 100%;
		height: 0;
		padding: 0;
		z-index: 1;
	}

	.fc-avap__fleche span {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%) rotate(90deg);
	}

	.fc-cta .e2it-bouton {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fc-galerie img,
	.fc-exp,
	.fc-exp__lien i::before {
		transition: none;
	}

	a.fc-exp:hover {
		transform: none;
	}
}

/* ==================================================================
   En-tetes de bloc harmonises : numero en pastille marine, libelle
   mono, grand titre condense. Un filet separe les blocs.
   ================================================================== */
.fc-contenu {
	gap: 0;
}

.fc-contenu > .fc-bloc {
	padding: 56px 0;
	border-top: 1px solid var(--e2it-bordure);
}

.fc-contenu > .fc-bloc:first-child {
	padding-top: 0;
	border-top: 0;
}

.fc-contenu > .fc-bloc:last-child {
	padding-bottom: 0;
}

.fc-entete {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font: inherit;
}

.fc-surtitre--bloc:not(#e2it) {
	gap: 12px;
	color: var(--e2it-bleu-profond);
}

.fc-surtitre__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 24px;
	padding: 0 8px;
	box-sizing: border-box;
	border-radius: var(--e2it-rayon-pilule);
	background: var(--e2it-marine);
	color: var(--e2it-blanc);
	font: 500 10px/1 var(--e2it-police-mono);
	letter-spacing: .08em;
}

.fc-surtitre__libelle {
	font: 500 11px/1.4 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
}

.fc-entete .fc-h2:not(#e2it) {
	max-width: 680px;
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.06;
	letter-spacing: -.024em;
	color: var(--e2it-marine);
}

@media (max-width: 767px) {
	.fc-contenu > .fc-bloc {
		padding: 40px 0;
	}
}
