/* ==========================================================================
   Éléments de section réutilisés sur plusieurs pages :
   surtitre, titre de section, image de fond, timeline compacte, chiffres clés.
   ========================================================================== */

/* Surtitre (petites capitales espacées) */
.kicker {
	display: block;
	color: var(--c-muted-light);
	font-family: var(--f-title);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 4px;
	text-transform: uppercase;
}

.kicker--green {
	color: var(--c-green);
}

.kicker--strong {
	font-weight: 600;
}

/* Titre de section */
.section-title {
	margin: 8px 0 0;
	color: var(--c-ink);
	font-family: var(--f-title);
	font-weight: 700;
	font-size: clamp(30px, 4vw, 52px);
	line-height: 1;
	text-transform: uppercase;
}

.section-head {
	margin-bottom: 44px;
}

/* Image de fond d'une section, couvrant toute la surface (équivalent de background: cover) */
.section-bg-wrap {
	position: relative;
	isolation: isolate;
}

.section-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Timeline compacte : année à gauche avec filet, texte à droite */
.timeline-compact {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.timeline-compact__item {
	display: grid;
	grid-template-columns: 64px 1fr;
	align-items: start;
	gap: 20px;
}

.timeline-compact__year {
	padding-right: 16px;
	border-right: 2px solid #d9e3da;
	color: var(--c-green);
	font-family: var(--f-title);
	font-weight: 700;
	font-size: 22px;
	text-align: right;
}

.timeline-compact__text {
	color: var(--c-text-soft);
	font-size: 15.5px;
	line-height: 1.65;
	text-wrap: pretty;
}

/* Chiffres clés en grand */
.key-figures {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-bottom: 24px;
}

.key-figures__item {
	flex: 1;
	min-width: 120px;
	padding: 18px 20px;
}

.key-figures__value {
	display: block;
	color: var(--c-green);
	font-family: var(--f-title);
	font-weight: 700;
	font-size: 99px;
	line-height: 1;
}

.key-figures__label {
	display: block;
	margin-top: 8px;
	color: var(--c-label);
	font-size: 22px;
	letter-spacing: .5px;
}

@media (max-width: 860px) {
	.key-figures {
		flex-direction: column;
		gap: 4px;
	}

	.key-figures__value {
		font-size: 56px;
	}
}

/* ==========================================================================
   Bannière photo des pages intérieures
   ========================================================================== */

.page-hero {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 56vh;
	overflow: hidden;
	background: #0e2015;
}

.page-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.page-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 20, 12, .4) 0%, rgba(10, 20, 12, .25) 45%, rgba(10, 20, 12, .78) 100%);
}

.page-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: 172px;
	padding-bottom: 56px;
}

.page-hero__parent {
	display: block;
	margin-bottom: 12px;
	color: var(--c-white);
	font-family: var(--f-title);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 4px;
	text-transform: uppercase;
}

.page-hero__parent:hover {
	color: var(--c-green-light);
}

.page-hero__title {
	max-width: 22ch;
	margin: 0;
	color: var(--c-white);
	font-family: var(--f-title);
	font-weight: 700;
	font-size: clamp(32px, 4.4vw, 58px);
	line-height: 1.05;
	text-transform: uppercase;
}

.page-hero__title .accent {
	color: var(--c-green-light);
}

.page-hero__text {
	max-width: 44ch;
	margin: 20px 0 0;
	color: #e3e7ea;
	font-family: var(--f-text);
	font-size: 17px;
	line-height: 1.6;
}

/* ==========================================================================
   Introduction en collage : texte et petite photo à gauche, grande image à droite
   ========================================================================== */

.intro-collage {
	position: relative;
	padding-top: 110px;
	padding-bottom: 130px;
}

.intro-collage__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: end;
	gap: 60px;
}

.intro-collage__text {
	padding-top: 10px;
}

.intro-collage__kicker {
	margin-bottom: 10px;
}

.intro-collage__title {
	margin: 0 0 28px;
	color: var(--c-ink);
	font-family: var(--f-title);
	font-weight: 600;
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1.15;
	text-transform: uppercase;
}

.intro-collage__lead {
	max-width: 56ch;
	margin: 0 0 24px;
	color: var(--c-ink);
	font-family: var(--f-text);
	font-weight: 600;
	font-size: 17.5px;
	line-height: 1.8;
}

.intro-collage__body p {
	max-width: 56ch;
	margin: 0 0 24px;
	color: var(--c-muted);
	font-family: var(--f-text);
	font-size: 17.5px;
	line-height: 1.85;
}

.intro-collage__body p:last-child {
	margin-bottom: 40px;
}

/* Petite photo avec liseré vert en bas */
.intro-collage__photo {
	position: relative;
	max-width: 56ch;
	margin-top: 60px;
	overflow: hidden;
	border-radius: 16px;
}

.intro-collage__photo img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
}

.intro-collage__photo::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	background: var(--g-green-line);
}

/* Grande image composée : déborde vers la droite */
.intro-collage__composite {
	position: relative;
	align-self: center;
	justify-self: end;
	width: 165%;
	max-width: none;
	margin-right: -14%;
}

.intro-collage__composite img {
	width: 100%;
	height: auto;
}

@media (max-width: 900px) {
	.intro-collage:not(.intro-collage--contact) {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.intro-collage__grid {
		grid-template-columns: 1fr;
	}

	.intro-collage__composite {
		justify-self: stretch;
		width: 100%;
		max-width: 100%;
		margin: 0;
	}
}

/* --------------------------------------------------------------------------
   Introduction « duo » (sans petite photo) : deux colonnes égales, texte centré,
   grande image à droite. Variante « grille » : la grille des engagements suit.
   -------------------------------------------------------------------------- */
.intro-collage--duo {
	padding-bottom: 100px;
}

.intro-collage--duo .intro-collage__grid {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
	gap: 100px;
}

.intro-collage--duo .intro-collage__text {
	align-self: center;
	padding-top: 0;
}

.intro-collage--duo .intro-collage__title {
	margin-bottom: 32px;
}

.intro-collage--duo .intro-collage__body p:last-child {
	margin-bottom: 0;
}

.intro-collage--duo .intro-collage__composite {
	width: 130%;
}

@media (max-width: 900px) {
	.intro-collage--duo .intro-collage__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.intro-collage--duo .intro-collage__composite {
		justify-self: end;
		width: 130%;
		max-width: none;
		margin-right: -14%;
	}
}

/* Mobile : la grande image composée vient juste après le titre, agrandie (ses bords
   sont transparents, elle peut déborder un peu) ; la petite photo termine la section. */
@media (max-width: 900px) {
	.intro-collage .intro-collage__grid:has(.intro-collage__composite) {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.intro-collage__grid:has(.intro-collage__composite) .intro-collage__text {
		display: contents;
	}

	.intro-collage__grid:has(.intro-collage__composite) .intro-collage__composite {
		order: 1;
		align-self: center;
		width: 130%;
		max-width: none;
		margin: -8px 0 20px;
		/* Les photos occupent 15,9 % à gauche et 8,4 % à droite de motif : décalage de la
		   moitié de l'écart pour centrer les photos à l'écran */
		translate: -3.75% 0;
	}

	.intro-collage__grid:has(.intro-collage__composite) .intro-collage__lead,
	.intro-collage__grid:has(.intro-collage__composite) .intro-collage__body {
		order: 2;
	}

	.intro-collage__grid:has(.intro-collage__composite) .intro-collage__photo {
		order: 3;
		margin-top: 40px;
	}

	/* Texte et petite photo sur toute la largeur, comme les sections suivantes */
	.intro-collage .intro-collage__grid .intro-collage__lead,
	.intro-collage .intro-collage__grid .intro-collage__body p,
	.intro-collage .intro-collage__grid .intro-collage__photo {
		max-width: none;
	}
}

/* Suivie de la grille des engagements (Environnement) */
.intro-collage--grille {
	padding-bottom: 72px;
}

.intro-collage--grille .intro-collage__lead,
.intro-collage--grille .intro-collage__body p {
	max-width: 60ch;
}

/* ==========================================================================
   Citation en image qui suit la souris (citation-tilt.js pose --rx, --ry, --tx, --ty
   et la classe is-on). Variante --large : page Entreprise.
   ========================================================================== */
.citation-tilt {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: min(520px, 46vw);
	perspective: 1100px;
}

.citation-tilt__image {
	position: relative;
	display: block;
	flex-shrink: 0; /* garde sa largeur même si elle déborde de la colonne, comme dans la maquette */
	width: min(675px, 59vw);
	max-width: none;
	height: auto;
	transform: translate(0, 0) rotateX(0) rotateY(0) scale(1);
	transform-style: preserve-3d;
	filter: drop-shadow(0 30px 55px rgba(30, 60, 35, .28));
	transition: transform .75s cubic-bezier(.34, 1.4, .64, 1), filter .6s ease-in-out;
}

.citation-tilt.is-on .citation-tilt__image {
	transform: translate(var(--rx, 0px), calc(var(--ry, 0px) - 14px)) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) scale(1.02);
	filter: drop-shadow(0 46px 60px rgba(30, 60, 35, .4));
	transition: transform .4s cubic-bezier(.25, .8, .35, 1), filter .6s ease-in-out;
}

.citation-tilt--large {
	min-height: min(598px, 52.9vw);
}

.citation-tilt--large .citation-tilt__image {
	width: min(690px, 59.8vw);
}

@media (max-width: 860px) {
	.citation-tilt {
		min-height: min(420px, 88vw);
	}

	/* Toute la largeur disponible entre les marges, sans déborder (ni pousser le texte voisin) */
	.citation-tilt__image {
		width: min(560px, 100%);
	}

	/* Page Entreprise : même largeur que les autres citations sur mobile, sans hauteur réservée
	   (l'inclinaison à la souris n'existe pas au doigt) */
	.citation-tilt--large {
		min-height: 0;
	}

	/* Toute la largeur de l'écran : l'hexagone a des coins transparents, son texte reste
	   loin des bords (centrée dans la page, la colonne étant symétrique) */
	.citation-tilt--large .citation-tilt__image {
		width: min(560px, 100vw);
	}
}

/* ==========================================================================
   Sections alternées : photo d'un côté, texte de l'autre
   ========================================================================== */

.alt-section {
	padding: 86px 0;
	background: var(--c-white);
}

.alt-section--reverse {
	background: #f6f7f5;
}

.alt-section__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 0;
	max-width: var(--container);
	margin: 0 auto;
}

.alt-section--reverse .alt-section__media {
	order: 2;
}

.alt-section__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 16px;
}

.alt-section__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.alt-section__media::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	background: var(--g-green-line);
}

.alt-section__text {
	padding: 64px clamp(24px, 6vw, 90px);
}

.alt-section__label {
	display: block;
	margin-bottom: 10px;
	color: #7c868e;
	font-family: var(--f-title);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.alt-section__bar {
	display: block;
	width: 44px;
	height: 2px;
	margin-bottom: 22px;
	background: var(--c-green);
}

.alt-section__title {
	margin: 0 0 22px;
	color: var(--c-ink);
	font-family: var(--f-title);
	font-weight: 700;
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.2;
	text-transform: uppercase;
}

.alt-section__lead {
	margin: 0 0 16px;
	color: var(--c-ink);
	font-family: var(--f-text);
	font-weight: 600;
	font-size: 16.5px;
	line-height: 1.75;
}

.alt-section__body p {
	margin: 0;
	color: var(--c-text-soft);
	font-family: var(--f-text);
	font-size: 16px;
	line-height: 1.8;
}

/* Plusieurs paragraphes : 14 px entre eux */
.alt-section__body p + p {
	margin-top: 14px;
}

/* Variante Environnement : 14 px après chaque paragraphe, y compris le dernier */
.alt-section--spaced .alt-section__body p {
	margin: 0 0 14px;
}

@media (max-width: 900px) {
	.alt-section__row {
		grid-template-columns: 1fr;
	}

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

	.alt-section__media,
	.alt-section--reverse .alt-section__media {
		order: -1;
	}

	/* Texte aligné sur les bords de la photo */
	.alt-section__text {
		padding: 40px 0 0;
	}
}

/* ==========================================================================
   Vidéo de présentation (image de couverture et bouton de lecture)
   ========================================================================== */

.video-presentation {
	position: relative;
	width: 100%;
	margin-bottom: 86px;
	padding: 86px 0;
	overflow: hidden;
	background: var(--c-white);
}

.video-presentation__pattern {
	position: absolute;
	inset: 0;
	background: url('../img/motif-hexagones.svg') repeat;
	opacity: .05;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .9) 25%, rgba(0, 0, 0, .4) 50%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0) 100%);
	mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .9) 25%, rgba(0, 0, 0, .4) 50%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0) 100%);
}

.video-presentation__inner {
	position: relative;
}

/* Titre et court texte au-dessus de la vidéo */
.video-presentation__head {
	max-width: 760px;
	margin: 0 auto 44px;
	text-align: center;
}

.video-presentation__title {
	margin: 0;
}

.video-presentation__text {
	margin: 18px 0 0;
	color: var(--c-muted);
	font-family: var(--f-text);
	font-size: 17px;
	line-height: 1.75;
}

.video-presentation__frame {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 16px;
	background: #0e2015;
	box-shadow: 0 26px 24px -14px rgba(20, 40, 25, .35);
}

.video-presentation__frame::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	background: var(--g-green-line);
	pointer-events: none;
}

.video-presentation__video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.video-presentation__cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	background: #0e2015;
	cursor: pointer;
}

.video-presentation__frame.is-playing .video-presentation__cover {
	display: none;
}

.video-presentation__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.video-presentation__shade {
	position: absolute;
	inset: 0;
	background: rgba(10, 20, 12, .25);
}

.video-presentation__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: clamp(72px, 7vw, 104px);
	height: clamp(72px, 7vw, 104px);
	border-radius: 50%;
	background: var(--c-green);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	color: var(--c-white);
	transform: translate(-50%, -50%);
	transition: transform .3s ease-in-out;
}

.video-presentation__play svg {
	width: 34%;
	height: 34%;
	margin-left: 6%;
}

.video-presentation__cover:hover .video-presentation__play,
.video-presentation__cover:focus-visible .video-presentation__play {
	transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 900px) {
	.video-presentation {
		margin-bottom: 0;
		padding: 16px 0 0;
	}

	.video-presentation__head {
		margin-bottom: 32px;
	}
}

/* ==========================================================================
   Grille des engagements (Environnement) : cartes séparées par un filet de 1 px.
   Grille de 60 colonnes : une carte occupe 12 (5 par ligne), 15 (4), 20 (3), 30 (2) ou 60.
   ========================================================================== */
.engagements__grid {
	display: grid;
	grid-template-columns: repeat(60, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	border: 1px solid #dfe3df;
	border-radius: 16px;
	background: #dfe3df;
}

.engagement {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: clamp(28px, 2.6vw, 40px) clamp(22px, 2vw, 32px) clamp(32px, 3vw, 44px);
	background: #f6f7f5;
	transition: background .35s ease-in-out;
}

.engagement:hover {
	background: var(--c-white);
}

.engagement--span-12 { grid-column: span 12; }
.engagement--span-15 { grid-column: span 15; }
.engagement--span-20 { grid-column: span 20; }
.engagement--span-30 { grid-column: span 30; }
.engagement--span-60 { grid-column: span 60; }

.engagement__icon {
	display: block;
	color: var(--c-green);
	line-height: 0;
}

.engagement__title {
	margin: 0;
	color: var(--c-ink);
	font-family: var(--f-title);
	font-weight: 500;
	font-size: clamp(17px, 1.25vw, 20px);
	line-height: 1.3;
	text-transform: uppercase;
	text-wrap: pretty;
}

.engagement__text {
	margin: -10px 0 0;
	color: var(--c-muted);
	font-family: var(--f-text);
	font-size: 15.5px;
	line-height: 1.65;
	text-wrap: pretty;
}

@media (max-width: 1100px) {
	.engagements__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.engagements__grid > .engagement {
		grid-column: auto;
	}
}

@media (max-width: 600px) {
	.engagements__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --------------------------------------------------------------------------
   Mobile et tablette : espaces verticaux resserrés (en fin de fichier pour primer)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.alt-section {
		padding: 40px 0;
	}
}
