/* =====================================================================
   Ajouts de la mise à jour 2026 (chargé après EetA.css)
   ===================================================================== */

/* ---------------------------------------------------------------------
   ACCUEIL EN TROIS ÉCRANS
   --------------------------------------------------------------------- */
/* Défilement par écran (scroll snapping) : uniquement sur les grands écrans,
   où chaque écran tient entièrement dans la fenêtre. Ailleurs : défilement classique. */
@media (min-width: 992px) and (min-height: 860px) {
	html:has(body.accueil-ecrans) { scroll-snap-type: y mandatory; }
	.accueil-ecrans .ecran { scroll-snap-align: start; }
	/* les écrans 2 et 3 se calent sous l'en-tête fixe (85 px) */
	.accueil-ecrans .ecran-2, .accueil-ecrans .ecran-3 { scroll-margin-top: 85px; }
	.accueil-ecrans #footer { scroll-snap-align: end; }
	/* « overflow: hidden » du gabarit capterait le calage : « clip » masque sans créer de zone de défilement */
	.accueil-ecrans #page-wraper .wrapper { overflow: clip; }
}

/* Écran 1 : photo de Serris sur toute la hauteur */
.accueil-ecrans #home-header {
	min-height: 100vh;
	background-image: url(../img/references/reference-serris-photo.jpg);
	background-position: center 65%;
	padding: 110px 25px 36px 25px;
	align-items: stretch;
}
.accueil-ecrans #home-header .ecran-1-contenu {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
}
.accueil-ecrans .ecran-1-haut { padding-top: 6vh; }
.accueil-ecrans #home-header .home-catch { margin-left: auto; margin-right: auto; }
.accueil-ecrans #home-header .titre-metiers {
	color: #fff;
	max-width: 420px;
	padding: 0 25px 6px 25px;
}
.accueil-ecrans .ecran-1-texte {
	max-width: 780px;
	margin: 14px auto 0 auto;
	color: #fff;
	font-size: 18px;
	line-height: 1.55;
	text-align: center;
}
.accueil-ecrans .metiers-ligne {
	list-style: none;
	margin: 30px 0 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 18px;
}
.accueil-ecrans .metier {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	color: #fff;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 13px;
	line-height: 16px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.accueil-ecrans .metier img { width: 64px; height: 64px; }

/* Écran 2 : compétences + carrousel */
@media (min-width: 992px) {
	.accueil-ecrans #prestations,
	.accueil-ecrans #prestations > .row { min-height: calc(100vh - 85px); }
}

/* Écran 3 : domaines, différences, confiance (sections resserrées) */
.accueil-ecrans .ecran-3 { min-height: calc(100vh - 85px); display: flex; flex-direction: column; }
.accueil-ecrans .ecran-3 > section { flex: 0 0 auto; }
.accueil-ecrans .ecran-3 #confiance { flex: 1 0 auto; padding-bottom: 20px; }
.accueil-ecrans #competences { padding: 34px 25px 26px 25px; }
.accueil-ecrans #competences .round-icons { width: 76px; padding: 18px 0 10px 0; }
.accueil-ecrans #competences .section-title { padding: 10px 25px; }
#competences .domaines-texte {
	max-width: 760px;
	margin: 18px auto 0 auto;
	color: var(--ea-text-dark);
	font-size: 17px;
	line-height: 1.55;
	text-align: center;
}

@media (max-width: 991px) {
	.accueil-ecrans .metiers-ligne { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
	.accueil-ecrans .ecran-3 { min-height: 0; }
}
@media (max-width: 520px) {
	.accueil-ecrans .metiers-ligne { grid-template-columns: repeat(2, 1fr); }
	.accueil-ecrans #home-header { min-height: 100vh !important; }
}

/* « Nos compétences » : liste numérotée */
#ea-content ol.missions {
	list-style: none;
	counter-reset: mission;
	padding-left: 32px;
	margin: 0;
}
#ea-content ol.missions li {
	counter-increment: mission;
	position: relative;
	padding: 0 0 25px 48px;
	font-size: 18px;
	font-weight: 500;
}
#ea-content ol.missions li::before {
	content: counter(mission);
	position: absolute;
	left: 0;
	top: -4px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ea-primary-lighter);
	color: var(--ea-text-light);
	font-family: 'Petrona', serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 34px;
	text-align: center;
}
#ea-content ol.missions li strong { font-weight: 800; }

/* « Pourquoi nous sommes différents » */
#differents {
	background-color: var(--ea-fond-section-clair);
	padding: 24px 25px 30px 25px;
	position: relative;
}
#differents .section-title { max-width: 520px; padding: 10px 25px; }
#differents .valeur { padding: 18px 20px 0 20px; }
#differents .valeur h3 {
	font-family: 'Petrona', serif;
	font-weight: 700;
	text-transform: none;
	font-size: 21px;
	color: var(--ea-primary);
	margin-bottom: 10px;
}
#differents .valeur p {
	color: var(--ea-text-light);
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
}
.accueil-ecrans #confiance { padding-top: 14px; }
.accueil-ecrans #confiance .section-title2 { padding: 10px 25px; }

/* Logos partenaires (SVG) */
#confiance .carousel-cell img[src$=".svg"] { height: 80px; width: auto; }

/* ---------------------------------------------------------------------
   PIED DE PAGE COMPACT (hauteur de l'en-tête)
   --------------------------------------------------------------------- */
.footer { padding-top: 0; }
.footer .pied-compact {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 85px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.footer .pied-logo img { width: 52px; height: 52px; display: block; }
.footer p.pied-identite { margin: 0; padding: 0; font-size: 14px; line-height: 20px; }
.footer .pied-liens { margin-left: auto; display: flex; gap: 40px; }
.footer .pied-liens a.footer_menu { margin: 0; padding-bottom: 2px; }
@media (max-width: 560px) {
	.footer .pied-compact { flex-wrap: wrap; justify-content: center; text-align: center; gap: 10px 18px; padding-top: 14px; padding-bottom: 14px; }
	.footer .pied-liens { margin-left: 0; width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------------
   PAGE e&a ET LE BIM
   --------------------------------------------------------------------- */
#ea-content li.puce {
	padding-bottom: 25px;
	position: relative;
	font-size: 18px;
	font-weight: 500;
}
#ea-content li.puce::before {
	content: "";
	position: absolute;
	left: -30px;
	top: 7px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ea-primary-lighter);
}
#outils-bim { padding: 40px 25px 60px 25px; }
#outils-bim .outils-intro { max-width: 760px; margin: 0 auto 40px auto; text-align: center; font-size: 18px; color: var(--ea-text-light); }
#outils-bim .outil {
	display: block;
	background: #fff;
	color: var(--ea-text-light);
	text-decoration: none;
	height: 100%;
	filter: drop-shadow(0px 20px 35px rgba(48, 45, 55, 0.18));
	transition: transform .2s;
}
#outils-bim .outil:hover { transform: translateY(-4px); }
#outils-bim .outil img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; padding: 12px; }
#outils-bim .outil .outil-texte { padding: 10px 26px 28px 26px; }
#outils-bim .outil h3 { font-family: 'Petrona', serif; font-weight: 700; text-transform: none; font-size: 22px; color: var(--ea-primary); }
#outils-bim .outil p { margin: 0; font-size: 16px; }

/* ---------------------------------------------------------------------
   PAGE RÉFÉRENCES : vignettes
   --------------------------------------------------------------------- */
.references-item { background-color: #fff; }
.references-item .reference-image { overflow: hidden; }
.references-item .mention,
#fiche-reference .mention {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 501;
	background: var(--ea-primary-lighter);
	color: var(--ea-text-light);
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.2;
	padding: 6px 12px;
}
.references-item .caption {
	min-height: 84px;
	padding: 14px 16px;
	background: #fff;
	color: var(--ea-blue-grey);
	border-top: 3px solid var(--ea-primary-lighter);
}
.references-item .caption b { color: var(--ea-text-light); margin-bottom: 4px; }

/* ---------------------------------------------------------------------
   FICHE RÉFÉRENCE : tout sur un écran, photo entière, pied de page en bas
   --------------------------------------------------------------------- */
body.page-fiche .header { background-color: var(--ea-bg-main-menu); }
/* Pied de page toujours collé en bas de l'écran (toutes les pages) */
#page-wraper .wrapper { min-height: 100vh; display: flex; flex-direction: column; }
#page-wraper .wrapper > #ea-content { flex: 1 0 auto; }
#page-wraper .wrapper > * { flex-shrink: 0; }
/* La fiche (fil, photo, informations) est centrée en hauteur entre l'en-tête et le bandeau ;
   le bandeau de navigation reste en bas, juste au-dessus du pied de page. */
body.page-fiche #ea-content { display: flex; flex-direction: column; padding-top: 99px; }
#fiche-reference {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	padding-top: 0;
	padding-bottom: 6px;
	color: #000;
}
#fiche-reference .fiche-centre {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 14px 0;
}
#fiche-reference .fil { font-size: 14px; color: var(--ea-blue-grey); margin: 14px 0 0 0; }
#fiche-reference .fil a { color: var(--ea-primary); }
#fiche-reference .fiche-corps { align-items: stretch; }
#fiche-reference .fiche-visuel { align-self: flex-start; }
/* La photo occupe la hauteur disponible, sans déformation ni recadrage (--ratio = largeur / hauteur) */
#fiche-reference .photo-reference {
	position: relative;
	display: inline-block;
	width: min(100%, calc(clamp(300px, 100vh - 370px, 680px) * var(--ratio, 1)));
	filter: drop-shadow(0px 20px 35px rgba(48, 45, 55, 0.18));
}
#fiche-reference .photo-reference img { display: block; width: 100%; height: auto; }
/* À droite de la photo : en haut le titre et les informations, dessous la difficulté, centrée en hauteur dans la place restante */
#fiche-reference .fiche-infos { display: grid; grid-template-rows: auto 1fr; }
#fiche-reference .fiche-haut { align-self: start; }
#fiche-reference .fiche-bas { align-self: center; }
#fiche-reference h1.fiche-titre {
	font-family: 'Petrona', serif;
	font-weight: 700;
	text-transform: none;
	font-size: 36px;
	line-height: 1.1;
	color: var(--ea-text-light);
	margin: 0 0 2px 0;
}
#fiche-reference .fiche-client {
	color: var(--ea-primary);
	font-family: 'Petrona', serif;
	font-weight: 700;
	font-size: 19px;
	margin: 0 0 16px 0;
}
/* Informations sur une ligne, comme dans la plaquette */
#fiche-reference .fiche-cartouche {
	display: grid;
	grid-template-columns: 128px 1fr;
	gap: 8px 16px;
	margin: 0;
	padding: 14px 0;
	border-top: 2px solid var(--ea-text-light);
	border-bottom: 1px solid #CEE2E2;
	font-size: 17px;
	line-height: 23px;
	align-items: baseline;
}
#fiche-reference .fiche-cartouche dt {
	color: var(--ea-blue-grey);
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
#fiche-reference .fiche-cartouche dd { margin: 0; font-weight: 500; }
/* Principale difficulté : texte calé à gauche, un peu plus grand */
#fiche-reference p.fiche-difficulte {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ea-text-light);
	max-width: none;
}

/* Bandeau de navigation entre fiches */
.fiche-navigation {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	margin-top: 22px;
	padding: 12px 0;
	border-top: 2px solid var(--ea-text-light);
}
.fiche-navigation a {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--ea-text-light);
	font-family: 'Petrona', serif;
	font-weight: 700;
	font-size: 19px;
	line-height: 1.15;
}
.fiche-navigation a small {
	display: block;
	font-family: 'Raleway', sans-serif;
	font-weight: 500;
	font-size: 12px;
	color: var(--ea-blue-grey);
	text-transform: uppercase;
	letter-spacing: .04em;
}
.fiche-navigation .fleche {
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--ea-primary-lighter);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s;
}
.fiche-navigation .fleche svg { width: 20px; height: 20px; }
.fiche-navigation a:hover .fleche { background: var(--ea-primary); }
.fiche-navigation a:hover span:not(.fleche) { text-decoration: underline; text-decoration-color: var(--ea-primary-lighter); }
.fiche-navigation .suivante { justify-content: flex-end; text-align: right; }
.fiche-navigation .rang { font-size: 14px; color: var(--ea-blue-grey); }

@media (max-width: 991px) {
	#fiche-reference .fiche-infos { margin-top: 22px; grid-template-rows: auto auto; }
	#fiche-reference .fiche-bas { margin-top: 16px; }
	#fiche-reference .photo-reference img { max-height: none; }
}
@media (max-width: 560px) {
	.fiche-navigation { grid-template-columns: 1fr 1fr; }
	.fiche-navigation .rang { display: none; }
	.fiche-navigation a { font-size: 16px; gap: 10px; }
	.fiche-navigation .fleche { width: 38px; height: 38px; }
}

/* Écran 3 resserré pour tenir sur la hauteur d'un écran */
.accueil-ecrans #competences .section-title { max-width: 560px; }
.accueil-ecrans #confiance .section-title2 { max-width: 470px; padding: 10px 70px; white-space: nowrap; }
.accueil-ecrans #confiance .section-title2::before { top: -6px; }
.accueil-ecrans #confiance .section-title2::after { bottom: 6px; right: 0; }
.accueil-ecrans #competences .round-icons { width: 66px; padding: 14px 0 8px 0; }
.accueil-ecrans #competences .domaines-texte { max-width: 1000px; font-size: 16px; margin-top: 12px; }
.accueil-ecrans #differents .valeur p { font-size: 15px; }
.accueil-ecrans #confiance .carousel.sized-height-logos { height: 70px; margin-top: 22px; margin-bottom: 44px; }

.accueil-ecrans #differents .valeur { padding-top: 8px; }
.accueil-ecrans #differents .valeur h3 { font-size: 19px; margin-bottom: 6px; }
.accueil-ecrans #differents .section-title::after,
.accueil-ecrans #competences .section-title::after { margin-top: 6px; }
.accueil-ecrans #competences .round-icons { width: 58px; padding: 10px 0 6px 0; }

/* Page e&a et le BIM : texte à gauche, carrousel Ocquerre à droite */
#bim-detail .bim-carrousel { align-items: center; padding: 50px 50px 50px 20px; }
#bim-detail .bim-carrousel .col { max-width: 660px; margin: auto; }
#bim-detail .bim-carrousel h5 { margin-bottom: 18px; }
#bim-detail .bim-carrousel .carousel { background: #fff; overflow: hidden; }
@media (max-width: 991px) { #bim-detail .bim-carrousel { padding: 0 25px 60px 25px; } }
#bim-detail .bim-carrousel .carousel-cell { width: 100%; }
/* Écrans peu hauts (portables 768 px) : photo un peu réduite pour tout garder sur un écran */
@media (min-width: 992px) and (max-height: 800px) {
	#fiche-reference .fil { margin-top: 8px; }
	#fiche-reference h1.fiche-titre { font-size: 30px; }
	#fiche-reference .fiche-client { font-size: 17px; margin-bottom: 10px; }
	#fiche-reference .fiche-cartouche { gap: 4px 14px; padding: 10px 0; font-size: 15.5px; line-height: 21px; }
	#fiche-reference p.fiche-difficulte { font-size: 15.5px; line-height: 1.5; margin-top: 12px; }
	.fiche-navigation { margin-top: 14px; padding: 8px 0; }
}

/* Page Références : 3 colonnes sur toute la largeur (3 × 30,66 % + 2 gouttières de 4 % = 100 %).
   La grille n'a pas de marge intérieure, sinon vignettes et gouttières ne se calculent pas sur la même largeur. */
.references-grid { padding-left: 0; padding-right: 0; }
.references-item { width: 30.66%; }
@media screen and (min-width:768px) and (max-width:1024px) { .references-item { width: 48%; } }
@media screen and (max-width:768px) { .references-item { width: 100%; } }
/* espaces vides répartis à parts égales au-dessus et au-dessous de la fiche */
#fiche-reference .fiche-navigation { margin-top: 0; }

/* Accueil, écran 1 : crédit de la photo, vertical, lu de bas en haut */
.accueil-ecrans #home-header { position: relative; }
.accueil-ecrans .credit-photo {
	position: absolute;
	right: 54px;
	bottom: 26px;
	z-index: 3;
	margin: 0;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	color: rgba(255, 255, 255, .85);
	font-family: 'Raleway', sans-serif;
	font-size: 12px;
	letter-spacing: .06em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
	max-width: none;
}

/* Accueil, écran 3 : trois tiers égaux (grands écrans) */
@media (min-width: 992px) and (min-height: 860px) {
	.accueil-ecrans .ecran-3 {
		height: calc(100vh - 85px);
		min-height: 0;
		display: grid;
		grid-template-rows: repeat(3, 1fr);
	}
	.accueil-ecrans .ecran-3 > section {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 0 25px;
		min-height: 0;
		overflow: hidden;
	}
	.accueil-ecrans .ecran-3 #confiance { padding-bottom: 0; }
	.accueil-ecrans .ecran-3 > section > * { width: 100%; align-self: center; }
	.accueil-ecrans #competences .section-title,
	.accueil-ecrans #differents .section-title { padding: 0 25px 4px 25px; }
	.accueil-ecrans #competences .row:has(.round-icons) > div {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 12px;
	}
	.accueil-ecrans #competences .round-icons { width: 46px; padding: 0; }
	.accueil-ecrans #competences .domaines-texte { margin-top: 26px; }
	/* titres remontés : plus d'air entre la frise décorative et le contenu */
	.accueil-ecrans #competences .section-title,
	.accueil-ecrans #differents .section-title { margin-bottom: 20px; }
	.accueil-ecrans #confiance .carousel.sized-height-logos { margin-top: 10px; margin-bottom: 30px; }
}
