/*
 * E2IT - page « Territoire et engagements ». Prefixe te-.
 *
 * Proportions du dossier de maquette, valeurs ramenees aux jetons. Fil
 * d Ariane et surtitres repris des pages d expertise. Boutons du systeme
 * commun. Fonds sombres : photo et degrade, sans motif.
 */

.te-inner {
	max-width: var(--e2it-largeur-contenu, 1240px);
	margin: 0 auto;
	padding: 0 40px;
	box-sizing: border-box;
}

.te-mono {
	margin: 0;
	font: 500 11px/1.5 var(--e2it-police-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--e2it-glacier);
}

/* Ancres du sommaire : sous l en-tete fige. */
#partenariats,
#formation,
#presse {
	scroll-margin-top: 96px;
}

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

.te-hero__fond,
.te-formation__fond {
	position: absolute;
	inset: 0;
	z-index: 0;
}

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

.te-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, .9) 52%, rgba(11, 46, 94, .74) 100%);
}

.te-hero__inner {
	position: relative;
	z-index: 2;
	max-width: var(--e2it-largeur-contenu, 1240px);
	margin: 0 auto;
	padding: calc(88px + 64px) 40px 72px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 48px 64px;
	align-items: flex-end;
}

.te-hero__texte {
	flex: 1.4 1 480px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.te-hero .te-hero__titre:not(#e2it) {
	margin: 0;
	font-size: clamp(42px, 5vw, 66px);
	line-height: .98;
	letter-spacing: -.036em;
	color: var(--e2it-blanc);
	text-wrap: balance;
}

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

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

/* ---- Sommaire ---- */
.te-sommaire {
	flex: 1 1 340px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.te-sommaire ol {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(169, 196, 229, .3);
}

.te-sommaire a {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 48px;
	padding: 12px 4px;
	box-sizing: border-box;
	border-bottom: 1px solid rgba(169, 196, 229, .3);
	color: var(--e2it-blanc);
	text-decoration: none;
	transition: padding-left .24s var(--e2it-courbe), background-color .24s ease;
}

.te-sommaire a:hover,
.te-sommaire a:focus-visible {
	padding-left: 12px;
	background: rgba(169, 196, 229, .06);
	color: var(--e2it-blanc);
}

.te-sommaire__num {
	width: 22px;
	flex: none;
	font: 500 11px/1 var(--e2it-police-mono);
	color: var(--e2it-glacier);
}

.te-sommaire__titre {
	flex: 1;
	font-weight: 600;
	font-size: 16px;
}

.te-sommaire__fleche::before {
	content: "↓";
	color: var(--e2it-glacier);
}

/* ==================================================================
   Sections
   ================================================================== */
.te-section {
	padding: 88px 0;
}

.te-section .te-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.te-entete {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 680px;
}

.te-section .e2x-surtitre {
	margin: 0;
}

.te-h2:not(#e2it) {
	margin: 0;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.06;
	letter-spacing: -.03em;
	color: var(--e2it-marine);
	text-wrap: balance;
}

.te-entete__intro {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--e2it-texte-secondaire);
}

/* ---- 01 Partenariats ---- */
.te-partenariats {
	background: var(--e2it-fond-gris);
	border-bottom: 1px solid var(--e2it-bordure);
}

/* Disposition calculee par le theme pour ne jamais laisser de case
   orpheline : avec vedette (2 rangees), grille auto 3 / 2 / 1 ; sinon,
   nombre de colonnes impose (4 / 2 / 1 ou 3 / 1). Ne pas remplacer par des
   colonnes Elementor. */
.te-mosaique {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	grid-auto-rows: minmax(250px, auto);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.te-mosaique[data-colonnes="4"] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.te-mosaique[data-colonnes="3"] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.te-mosaique > li {
	display: flex;
	min-width: 0;
}

.te-mosaique__vedette {
	grid-row: span 2;
}

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

@media (hover: hover) {
	.te-club--lien:hover {
		border-color: var(--e2it-marine);
		box-shadow: 0 22px 48px rgba(7, 28, 62, .14);
		transform: translateY(-3px);
		color: var(--e2it-texte);
	}
}

.te-club--lien:focus-visible {
	outline: 2px solid var(--e2it-accent);
	outline-offset: 2px;
}

.te-club__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 128px;
	padding: 22px;
	box-sizing: border-box;
	border-bottom: 1px solid var(--e2it-bordure);
}

.te-club__cadre {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 80px;
	border-radius: 12px;
	background: var(--e2it-blanc);
	overflow: hidden;
}

/* Logo deja clair (reglage du partenaire) : cadre marine. */
.te-club__cadre--sombre {
	background: var(--e2it-marine);
	padding: 8px;
	box-sizing: border-box;
}

.te-club__cadre img:not(#e2it) {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.te-club__initiale {
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: 34px;
	color: var(--e2it-bleu-profond);
}

.te-club__corps {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px;
}

.te-club__type {
	font: 500 10px/1.4 var(--e2it-police-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--e2it-bleu-profond);
}

.te-club__nom {
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: 20px;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--e2it-marine);
}

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

.te-club__pied {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--e2it-bordure);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	color: var(--e2it-marine);
}

.te-club__pied > span:first-child {
	font: 500 10px/1.4 var(--e2it-police-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
}

.te-club__fleche::before {
	content: "↗";
	display: inline-block;
	transition: transform .24s var(--e2it-courbe);
}

.te-club--lien:hover .te-club__fleche::before {
	transform: translate(2px, -2px);
}

/* Carte vedette */
.te-club--vedette {
	background: var(--e2it-marine);
	border-color: var(--e2it-marine);
	color: var(--e2it-blanc);
}

.te-club--vedette .te-club__logo {
	flex: 1;
	height: auto;
	min-height: 240px;
	background: rgba(255, 255, 255, .04);
	border-bottom-color: rgba(169, 196, 229, .24);
}

.te-club--vedette .te-club__cadre {
	width: 220px;
	height: 150px;
}

.te-club--vedette .te-club__type {
	color: var(--e2it-glacier);
}

.te-club--vedette .te-club__nom {
	font-size: 28px;
	color: var(--e2it-blanc);
}

.te-club--vedette .te-club__texte {
	font-size: 16px;
	color: var(--e2it-bleu-clair);
}

.te-club--vedette .te-club__pied {
	border-top-color: rgba(169, 196, 229, .3);
	color: var(--e2it-blanc);
}

/* Encart « proposer un partenariat » */
.te-proposer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 20px;
	flex-wrap: wrap;
	padding: 22px 26px;
	border: 1.5px dashed #C9D6E5;
	border-radius: 14px;
	background: var(--e2it-blanc);
}

.te-proposer p {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--e2it-texte);
}

.te-proposer p span {
	color: var(--e2it-texte-secondaire);
}

/* ---- 02 Formation ---- */
.te-formation::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(100deg, rgba(7, 28, 62, .96) 0%, rgba(11, 46, 94, .9) 55%, rgba(11, 46, 94, .8) 100%);
}

.te-formation .te-inner {
	gap: 48px;
}

.te-formation .te-h2:not(#e2it) {
	color: var(--e2it-blanc);
}

.te-formation .e2x-surtitre {
	color: var(--e2it-glacier);
}

.te-formation__haut {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 64px;
	align-items: flex-end;
}

.te-formation__haut > div {
	flex: 1 1 480px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Phrase mise en avant : citation seulement avec sa signature. */
.te-phrase {
	flex: 1 1 380px;
	min-width: 0;
	margin: 0;
	padding-left: 24px;
	border-left: 2px solid var(--e2it-accent);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.te-phrase p,
.te-phrase > span {
	margin: 0;
	font-style: italic;
	font-weight: 600;
	font-size: 22px;
	line-height: 1.35;
	letter-spacing: -.012em;
	color: var(--e2it-blanc);
	text-wrap: pretty;
}

.te-phrase footer {
	font: 500 11px/1.4 var(--e2it-police-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--e2it-glacier);
}

/* Trois cartes : 3 colonnes, puis 1 seule - jamais 2 + 1. */
.te-ecoles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.te-ecoles > li {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border-radius: 16px;
	background: rgba(7, 28, 62, .62);
	border: 1px solid rgba(169, 196, 229, .3);
}

.te-ecoles .te-mono {
	font-size: 10px;
}

.te-ecoles strong {
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: 23px;
	line-height: 1.15;
}

.te-ecoles__texte {
	font-size: 15px;
	line-height: 1.55;
	color: var(--e2it-bleu-clair);
}

.te-formation__cta {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 15px;
	color: var(--e2it-bleu-clair);
}

/* ---- 03 Presse ---- */
.te-presse {
	background: var(--e2it-blanc);
}

.te-articles {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: stretch;
}

.te-articles__pile {
	flex: 1 1 360px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.te-article {
	flex: 1;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--e2it-bordure);
	border-radius: 16px;
	overflow: hidden;
	color: var(--e2it-texte);
	text-decoration: none;
	transition: border-color .24s ease, box-shadow .3s ease;
}

@media (hover: hover) {
	a.te-article:hover {
		border-color: var(--e2it-marine);
		box-shadow: 0 22px 48px rgba(7, 28, 62, .12);
		color: var(--e2it-texte);
	}
}

a.te-article:focus-visible {
	outline: 2px solid var(--e2it-accent);
	outline-offset: 2px;
}

.te-article--vedette {
	flex: 1.25 1 460px;
	min-width: 0;
}

/* Sans photo parue : le logo du media en grand, sur fond bleu pale. */
.te-article__visuel {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 7;
	padding: 28px;
	box-sizing: border-box;
	background: var(--e2it-bleu-pale);
}

.te-article__visuel img:not(#e2it) {
	max-width: 60%;
	max-height: 70%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.te-article__corps {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 26px 28px;
}

.te-article__media img:not(#e2it) {
	display: block;
	height: 28px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	object-position: left;
}

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

.te-article__titre {
	font-family: var(--e2it-police);
	font-weight: 620;
	font-stretch: 88%;
	font-size: 21px;
	line-height: 1.18;
	letter-spacing: -.012em;
	color: var(--e2it-marine);
}

.te-article--vedette .te-article__titre {
	font-size: 28px;
	line-height: 1.12;
	text-wrap: balance;
}

.te-article__resume {
	font-size: 14px;
	line-height: 1.55;
	color: var(--e2it-texte-secondaire);
}

.te-article--vedette .te-article__resume {
	font-size: 15px;
	line-height: 1.6;
}

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

.te-article__poids {
	font: 500 10px/1.4 var(--e2it-police-mono);
	letter-spacing: .1em;
	color: var(--e2it-texte-secondaire);
}

/* ==================================================================
   Tablette et mobile
   ================================================================== */
@media (max-width: 1023px) {
	.te-ecoles {
		grid-template-columns: minmax(0, 1fr);
	}

	.te-mosaique[data-colonnes] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Trois colonnes ne se partagent pas en deux : une seule. */
	.te-mosaique[data-colonnes="3"] {
		grid-template-columns: minmax(0, 1fr);
	}
}

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

	.te-hero__inner {
		padding-top: calc(92px + 32px);
		padding-bottom: 48px;
		gap: 32px;
	}

	.te-hero__intro {
		font-size: 16px;
	}

	.te-section {
		padding: 56px 0;
	}

	.te-mosaique[data-colonnes] {
		grid-template-columns: minmax(0, 1fr);
	}

	.te-mosaique__vedette {
		grid-row: auto;
	}

	.te-club--vedette .te-club__logo {
		min-height: 180px;
	}

	.te-phrase p,
	.te-phrase > span {
		font-size: 19px;
	}

	.te-proposer .e2it-bouton,
	.te-formation__cta .e2it-bouton {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.te-club,
	.te-article,
	.te-sommaire a,
	.te-club__fleche::before {
		transition: none;
	}

	.te-club--lien:hover {
		transform: none;
	}
}
