/* Pages ACI et EI — même langage visuel que l'accueil (css/accueil.css) */
:root {
	--bleu: #185A88;
	--bleu-nuit: #0B2A42;
	--orange: #FF6B1A;      /* orange haute visibilité, celui des gilets de chantier */
	--encre: #10202E;
	--blanc: #FFFFFF;
	--papier: #F2F4F6;
	--gris: #5A6875;
	--marge: clamp(1.25rem, 4vw, 3.5rem);
	--large: 76rem;
	--ease: cubic-bezier(.22, .8, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--encre);
	background: var(--papier);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }

a { color: inherit; }

.conteneur {
	width: 100%;
	max-width: var(--large);
	margin: 0 auto;
	padding: 0 var(--marge);
}

/* ---------- Bandeau / navigation ---------- */
.bandeau {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.1rem var(--marge);
	color: var(--blanc);
	transition: background-color .4s ease, padding .4s ease, box-shadow .4s ease;
}

.bandeau.replie {
	background: var(--bleu-nuit);
	padding-block: .7rem;
	box-shadow: 0 8px 30px rgba(11, 42, 66, .25);
}

.marque {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-weight: 800;
	font-size: 1.05rem;
	font-stretch: 110%;
	letter-spacing: .01em;
	text-decoration: none;
	white-space: nowrap;
}

.marque::before {
	content: "";
	width: .9rem;
	height: .9rem;
	background: var(--orange);
	transition: transform .4s var(--ease);
}

.marque:hover::before { transform: rotate(90deg); }

.marque small {
	font-size: .8rem;
	font-weight: 600;
	opacity: .7;
	letter-spacing: .08em;
}

.menu {
	display: flex;
	align-items: center;
	gap: clamp(.75rem, 2vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu a {
	position: relative;
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	padding: .3rem 0;
}

.menu a:not(.bouton)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--orange);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s var(--ease);
}

.menu a:not(.bouton):hover::after,
.menu a.actif::after {
	transform: scaleX(1);
	transform-origin: left;
}

.menu .bouton { padding: .6rem 1.1rem; font-size: .95rem; }

.burger {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
	display: block;
	width: 1.6rem;
	height: 2.5px;
	margin: 0 auto;
	background: currentColor;
	transition: transform .35s var(--ease), background-color .2s;
}

.burger span { position: relative; }
.burger span::before,
.burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -8px; }
.burger span::after { top: 8px; }

.menu-ouvert .burger span { background: transparent; }
.menu-ouvert .burger span::before { transform: translateY(8px) rotate(45deg); }
.menu-ouvert .burger span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.bouton {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	padding: 1rem 1.5rem;
	border: 0;
	background: var(--orange);
	color: var(--encre);
	font: inherit;
	font-weight: 800;
	font-size: 1.05rem;
	font-stretch: 105%;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.bouton svg {
	width: 1.1em;
	height: 1.1em;
	flex: none;
	transition: transform .3s ease;
}

.bouton:hover { background: var(--blanc); }
.bouton:hover svg { transform: translateX(4px); }

.bouton-creux {
	background: transparent;
	color: inherit;
	box-shadow: inset 0 0 0 2px currentColor;
}

.bouton-creux:hover { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 2px var(--blanc); }

.clair .bouton:hover,
.blanc .bouton:hover { background: var(--bleu-nuit); color: var(--blanc); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Héros ---------- */
.heros {
	--photo: none;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	padding: 7rem var(--marge) clamp(2rem, 6vh, 4rem);
	color: var(--blanc);
	background: var(--bleu-nuit);
	overflow: hidden;
	isolation: isolate;
	animation: lever 1s cubic-bezier(.7, 0, .2, 1) both;
}

.heros::before,
.heros::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}

/* Photo en bichromie bleue, comme les portes de l'accueil */
.heros::before {
	inset: -8% 0;
	background: var(--photo) center / cover no-repeat;
	filter: grayscale(1) contrast(1.1) brightness(1.2);
	transform: translateY(var(--parallaxe, 0px));
	animation: zoom 14s ease-out both;
}

.heros::after {
	background:
		linear-gradient(180deg, rgba(11, 42, 66, .85) 0%, rgba(11, 42, 66, 0) 30%, rgba(11, 42, 66, 0) 45%, rgba(11, 42, 66, .95) 100%),
		var(--bleu);
	mix-blend-mode: multiply;
	opacity: .9;
}

.heros > * { animation: monter .8s cubic-bezier(.2, .7, .2, 1) .7s both; }
.heros > :nth-child(2) { animation-delay: .8s; }
.heros > :nth-child(3) { animation-delay: .9s; }
.heros > :nth-child(4) { animation-delay: 1s; }

/* Le sigle se dessine en creux puis se remplit de gauche à droite */
.heros .sigle {
	display: block;
	width: max-content;
	font-size: clamp(7rem, 26vw, 24rem);
	font-weight: 900;
	font-stretch: 125%;
	line-height: .78;
	letter-spacing: -.04em;
	margin: 0 0 1.5rem -.05em;
	color: transparent;
	-webkit-text-stroke: 2px var(--blanc);
	background: linear-gradient(90deg, var(--blanc) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
	-webkit-background-clip: text;
	background-clip: text;
	animation: monter .8s cubic-bezier(.2, .7, .2, 1) .7s both, remplir 1.4s var(--ease) 1.6s forwards;
}

.heros h1 {
	max-width: 22ch;
	margin: 0 0 1.25rem;
	font-size: clamp(1.6rem, 3.4vw, 3rem);
	font-weight: 800;
	font-stretch: 110%;
	line-height: 1.05;
	letter-spacing: -.01em;
}

.heros-bas {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 2rem;
}

.heros-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.fse-logo {
	padding: .6rem .8rem;
	background: var(--blanc);
}

.fse-logo img { width: clamp(9rem, 16vw, 13rem); height: auto; }

.defiler {
	position: absolute;
	right: var(--marge);
	top: 38%;
	display: flex;
	align-items: center;
	gap: .75rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	text-decoration: none;
	writing-mode: vertical-rl;
}

.defiler::after {
	content: "";
	width: 2px;
	height: 4rem;
	background: linear-gradient(var(--orange) 50%, rgba(255, 255, 255, .3) 50%) 0 0 / 100% 200%;
	animation: couler 1.8s ease-in-out infinite;
}

.metiers {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

.metiers li {
	padding: .35rem .75rem;
	border: 1.5px solid rgba(255, 255, 255, .6);
	font-size: .9rem;
	font-weight: 500;
	backdrop-filter: blur(4px);
	background: rgba(11, 42, 66, .25);
}

/* ---------- Bande défilante ---------- */
.bande {
	overflow: hidden;
	background: var(--orange);
	color: var(--encre);
}

.bande-piste {
	display: flex;
	width: max-content;
	animation: glisser 32s linear infinite;
}

.bande-piste span {
	display: inline-flex;
	align-items: center;
	gap: 2.5rem;
	padding: .9rem 2.5rem .9rem 0;
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	font-weight: 900;
	font-stretch: 115%;
	text-transform: uppercase;
	white-space: nowrap;
}

.bande-piste span::after {
	content: "";
	width: .7rem;
	height: .7rem;
	background: var(--encre);
	transform: rotate(45deg);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 11vw, 9rem) 0; }

.sombre { background: var(--bleu-nuit); color: var(--blanc); }
.clair { background: var(--papier); }
.blanc { background: var(--blanc); }

.etiquette {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	margin: 0 0 1rem;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--orange);
}

.clair .etiquette, .blanc .etiquette { color: #C2410C; } /* orange foncé : lisible sur fond clair */

.etiquette::before {
	content: "";
	width: 2.5rem;
	height: 2px;
	background: currentColor;
}

.titre {
	max-width: 18ch;
	margin: 0 0 clamp(2rem, 5vw, 3.5rem);
	font-size: clamp(2.2rem, 5.5vw, 4.75rem);
	font-weight: 900;
	font-stretch: 112%;
	line-height: .95;
	letter-spacing: -.025em;
}

.titre em {
	font-style: normal;
	color: transparent;
	-webkit-text-stroke: 2px currentColor;
}

.clair .titre em, .blanc .titre em { -webkit-text-stroke-color: var(--bleu-nuit); }
.sombre .titre em { -webkit-text-stroke-color: var(--blanc); }

.chapo {
	max-width: 60ch;
	margin: 0 0 2.5rem;
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	line-height: 1.55;
	color: var(--gris);
}

.sombre .chapo { color: rgba(255, 255, 255, .85); }

/* ---------- Présentation ---------- */
.deux-col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 5vw, 4.5rem);
}

.bloc h3 {
	display: flex;
	align-items: baseline;
	gap: .75rem;
	margin: 0 0 1rem;
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	font-weight: 800;
	line-height: 1.15;
}

.bloc h3 span {
	font-size: .85rem;
	font-weight: 700;
	color: #C2410C;
}

.bloc p { margin: 0 0 1rem; color: var(--gris); }

.puces {
	margin: 0;
	padding: 0;
	list-style: none;
}

.puces li {
	position: relative;
	padding: .7rem 0 .7rem 1.75rem;
	border-top: 1px solid rgba(16, 32, 46, .12);
	font-weight: 600;
}

.puces li:last-child { border-bottom: 1px solid rgba(16, 32, 46, .12); }

.puces li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.2rem;
	width: .6rem;
	height: .6rem;
	background: var(--orange);
}

.sombre .puces li { border-color: rgba(255, 255, 255, .15); }

.chiffres {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: clamp(3rem, 7vw, 5rem) 0;
	border-top: 2px solid var(--encre);
	container-type: inline-size;
}

.chiffre { min-width: 0; padding: 1.5rem 1.5rem 0 0; }

.chiffre + .chiffre { padding-left: 1.5rem; border-left: 1px solid rgba(16, 32, 46, .15); }

.chiffre strong {
	display: block;
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-size: min(4rem, calc(5cqi - .6rem));   /* suit la largeur du bandeau : « Marchand » tient sur une ligne, même taille dans les 3 cases */
	font-weight: 900;
	font-stretch: 120%;
	line-height: 1;
	color: var(--bleu);
	white-space: nowrap;
}

.chiffre span { display: block; margin-top: .5rem; font-weight: 600; color: var(--gris); }

.video {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--bleu-nuit);
	box-shadow: 14px 14px 0 var(--orange);
}

.video iframe,
.video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.lien-fleche {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-weight: 800;
	text-decoration: none;
	border-bottom: 2px solid var(--orange);
	padding-bottom: .2rem;
}

.lien-fleche svg { width: 1em; height: 1em; transition: transform .3s ease; }
.lien-fleche:hover svg { transform: translate(3px, -3px); }

/* ---------- Valeurs ---------- */
.valeurs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.valeur {
	position: relative;
	padding: 2rem clamp(1.25rem, 2.5vw, 2.25rem) 2.5rem;
	border-top: 2px solid rgba(255, 255, 255, .2);
	transition: background-color .5s ease, color .5s ease;
	container-type: inline-size;
}

.valeur + .valeur { border-left: 1px solid rgba(255, 255, 255, .15); }

.valeur::before {
	content: "01";
	display: block;
	margin-bottom: 3rem;
	font-size: .9rem;
	font-weight: 800;
	color: var(--orange);
	transition: color .4s ease;
}

/* Le trait orange se trace quand la valeur entre à l'écran */
.valeur::after {
	content: "";
	position: absolute;
	inset: -2px 0 auto 0;
	height: 2px;
	background: var(--orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .9s var(--ease) calc(var(--delai, 0s) + .3s);
}

.valeur.vu::after { transform: scaleX(1); }

.valeur h3 {
	margin: 0 0 .75rem;
	font-size: clamp(1.6rem, 2.8vw, 2.4rem);
	font-size: min(2.4rem, 8.8cqi);   /* « Professionnalisme » tient dans sa colonne */
	font-weight: 900;
	font-stretch: 112%;
	line-height: 1;
}

.valeur p { margin: 0; color: rgba(255, 255, 255, .8); transition: color .4s ease; }

/* Numérotation écrite à la main : un compteur CSS serait remis à zéro par container-type */
.valeur:nth-child(2)::before { content: "02"; }
.valeur:nth-child(3)::before { content: "03"; }

.valeur:hover { background: var(--orange); color: var(--encre); }
.valeur:hover::before,
.valeur:hover p { color: var(--encre); }

/* ---------- Équipe ---------- */
.orga {
	margin: 0 0 2.5rem;
	padding: clamp(1rem, 3vw, 2.5rem);
	background: var(--blanc);
	border: 2px solid var(--encre);
	box-shadow: 14px 14px 0 var(--bleu);
	overflow-x: auto;
}

.orga img { width: 100%; min-width: 40rem; height: auto; margin: 0 auto; }

#equipe .chapo { max-width: none; } /* texte sur toute la largeur, aligné sur l'organigramme */

/* ---------- Métiers (cartes façon portes) ---------- */
.cartes {
	display: grid;
	grid-template-columns: repeat(var(--colonnes, 2), minmax(0, 1fr));
	gap: 1rem;
}

.carte {
	--photo: none;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(26rem, 42vw, 34rem);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 0;
	color: var(--blanc);
	background: var(--bleu-nuit);
	font: inherit;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
}

.carte-large { grid-column: 1 / -1; min-height: clamp(24rem, 36vw, 30rem); }

.carte::before,
.carte::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}

.carte::before {
	background: var(--photo) center / cover no-repeat;
	filter: grayscale(1) contrast(1.1) brightness(1.2);
	transform: scale(1.08);
	transition: filter .7s ease, transform 1.2s var(--ease);
}

.carte::after {
	background:
		linear-gradient(180deg, rgba(11, 42, 66, .55) 0%, rgba(11, 42, 66, 0) 30%, rgba(11, 42, 66, .2) 45%, rgba(11, 42, 66, .95) 100%),
		var(--bleu);
	mix-blend-mode: multiply;
	opacity: .9;
	transition: opacity .7s ease;
}

.carte-num {
	position: absolute;
	top: clamp(1.25rem, 2.5vw, 2rem);
	left: clamp(1.5rem, 3vw, 2.5rem);
	font-size: clamp(3.5rem, 7vw, 6rem);
	font-weight: 900;
	font-stretch: 125%;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, .85);
	transition: color .5s ease, -webkit-text-stroke-color .5s ease;
}

.carte h3 {
	margin: 0 0 .75rem;
	font-size: clamp(1.5rem, 2.6vw, 2.2rem);
	font-weight: 900;
	font-stretch: 110%;
	line-height: 1.05;
}

.carte p {
	max-width: 52ch;
	margin: 0 0 1.5rem;
	font-size: 1rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, .88);
}

.carte .bouton { align-self: flex-start; padding: .8rem 1.2rem; font-size: .95rem; }

.carte:hover::before,
.carte:focus-visible::before { filter: grayscale(0) contrast(1.05); transform: scale(1); }
.carte:hover::after,
.carte:focus-visible::after { opacity: .6; }
.carte:hover .carte-num,
.carte:focus-visible .carte-num { color: var(--orange); -webkit-text-stroke-color: var(--orange); }
.carte:hover .bouton,
.carte:focus-visible .bouton { background: var(--blanc); }
.carte:hover .bouton svg,
.carte:focus-visible .bouton svg { transform: rotate(90deg); }

.carte:focus-visible { outline: 4px solid var(--orange); outline-offset: -4px; }

.media-duo {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	margin-top: clamp(4rem, 9vw, 7rem);
}

.media-duo h3 {
	margin: 0 0 1rem;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 900;
	font-stretch: 110%;
	line-height: 1.05;
}

.media-duo p { color: var(--gris); }

/* Témoignage */
.temoignage {
	position: relative;
	margin: clamp(4rem, 9vw, 6rem) 0 0;   /* <figure> a des marges latérales par défaut */
	padding: clamp(1.5rem, 5vw, 3.5rem);
	background: var(--bleu-nuit);
	color: var(--blanc);
	overflow: hidden;
}

.temoignage::before {
	content: "\201C";
	position: absolute;
	top: -.12em;
	right: .1em;
	font-size: clamp(12rem, 25vw, 20rem);
	font-weight: 900;
	line-height: 1;
	color: var(--orange);
}

.temoignage .etiquette { color: var(--orange); }

.temoignage blockquote {
	position: relative;
	max-width: 26ch;
	margin: 0 0 1.75rem;
	font-size: clamp(1.4rem, 2.8vw, 2.2rem);
	font-weight: 800;
	font-stretch: 108%;
	line-height: 1.15;
}

.temoignage audio { position: relative; width: min(100%, 28rem); }

/* ---------- Dispositifs ---------- */
.dispositif {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
	padding: clamp(3rem, 6vw, 5rem) 0;
	border-top: 2px solid rgba(255, 255, 255, .2);
	container-type: inline-size;
}

.dispositif:first-of-type { padding-top: 0; border-top: 0; }

.dispositif-sigle {
	display: block;
	font-size: clamp(3.5rem, 9vw, 8rem);
	font-size: min(8rem, 9cqi);   /* « Mobilité » tient dans sa demi-colonne */
	font-weight: 900;
	font-stretch: 125%;
	line-height: .85;
	letter-spacing: -.03em;
	margin-bottom: 1.5rem;
	color: transparent;
	-webkit-text-stroke: 2px var(--blanc);
}

.dispositif h3 {
	margin: 0 0 1rem;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	font-weight: 800;
	line-height: 1.15;
}

.dispositif p { color: rgba(255, 255, 255, .82); }

.dispositif .puces { margin: 1.5rem 0 2rem; }

.photos-duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

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

.photos-duo img:nth-child(2) { margin-top: 3rem; }

.fiche {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	margin: 0 0 2rem;
	background: rgba(255, 255, 255, .2);
	border: 1px solid rgba(255, 255, 255, .2);
}

.fiche div { padding: 1.25rem; background: var(--bleu-nuit); }

.fiche dt {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--orange);
}

.fiche dd { margin: .3rem 0 0; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }

.fiche .grand { grid-column: 1 / -1; background: var(--orange); color: var(--encre); }
.fiche .grand dt { color: var(--encre); }
.fiche .grand dd {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 900;
	font-stretch: 120%;
	line-height: 1;
}

/* ---------- Partenaires : défilement continu ---------- */
.partenaires {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partenaires-piste {
	display: flex;
	width: max-content;
	padding: .5rem 0;
	animation: glisser 40s linear infinite;
}

.partenaires:hover .partenaires-piste,
.partenaires:focus-within .partenaires-piste { animation-play-state: paused; }

.partenaires a {
	flex: none;
	display: grid;
	place-items: center;
	width: clamp(10rem, 18vw, 14rem);
	aspect-ratio: 3 / 2;
	margin-right: 1rem;
	padding: 1.25rem;
	background: var(--blanc);
	border: 2px solid transparent;
	transition: border-color .3s ease, transform .3s var(--ease);
}

.partenaires a:hover { border-color: var(--orange); transform: translateY(-4px); }

.partenaires img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .8;
	transition: filter .4s ease, opacity .4s ease;
}

.partenaires a:hover img { filter: none; opacity: 1; }

.affiche {
	max-width: 52rem;
	margin: 0 auto;
	box-shadow: 14px 14px 0 var(--orange);
}

.affiche img { width: 100%; height: auto; }

/* ---------- Contact ---------- */
.contact-grille {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5rem);
}

.formulaire {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.champ { display: flex; flex-direction: column; gap: .4rem; }
.champ-large { grid-column: 1 / -1; }

.champ label {
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .7);
}

.champ input,
.champ textarea {
	width: 100%;
	padding: .9rem 0;
	border: 0;
	border-bottom: 2px solid rgba(255, 255, 255, .35);
	border-radius: 0;
	background: transparent;
	color: var(--blanc);
	font: inherit;
	transition: border-color .3s ease;
}

.champ textarea { min-height: 8rem; resize: vertical; }

.champ input:focus,
.champ textarea:focus { outline: none; border-bottom-color: var(--orange); }

.champ input::placeholder,
.champ textarea::placeholder { color: rgba(255, 255, 255, .4); }

.consentement {
	grid-column: 1 / -1;
	display: flex;
	gap: .75rem;
	align-items: flex-start;
	font-size: .9rem;
	color: rgba(255, 255, 255, .75);
}

.consentement input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: none; accent-color: var(--orange); }

.formulaire .bouton { grid-column: 1 / -1; justify-self: start; margin-top: .5rem; }

.hp { position: absolute; left: -9999px; }

.coordonnees { font-style: normal; }

.coordonnees dl { margin: 0 0 2rem; }

.coordonnees dt {
	margin-top: 1.5rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--orange);
}

.coordonnees dt:first-child { margin-top: 0; }

.coordonnees dd {
	margin: .35rem 0 0;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.coordonnees dd a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color .3s; }
.coordonnees dd a:hover { border-color: var(--orange); }

.coordonnees .tel { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; font-stretch: 112%; }

.reseaux { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }

.reseaux a {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 2px solid rgba(255, 255, 255, .4);
	font-size: 1.2rem;
	text-decoration: none;
	transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.reseaux a:hover { background: var(--orange); border-color: var(--orange); color: var(--encre); }

/* ---------- Pied de page ---------- */
.pied {
	padding: 2rem 0;
	background: var(--encre);
	color: rgba(255, 255, 255, .7);
	font-size: .9rem;
}

.pied .conteneur {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.pied a { text-decoration: none; font-weight: 700; color: var(--blanc); }
.pied a:hover { color: var(--orange); }

/* ---------- Galeries (fenêtres photo) ---------- */
.galerie {
	width: min(68rem, calc(100% - 2rem));
	max-height: calc(100% - 2rem);
	padding: 0;
	border: 0;
	background: var(--bleu-nuit);
	color: var(--blanc);
}

.galerie::backdrop { background: rgba(11, 42, 66, .85); backdrop-filter: blur(6px); }

.galerie[open] { animation: monter .5s var(--ease) both; }

.galerie-tete {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
	background: var(--bleu-nuit);
	border-bottom: 2px solid var(--orange);
}

.galerie-tete h2 {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 900;
	font-stretch: 112%;
	line-height: 1;
}

.fermer {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	flex: none;
	border: 0;
	background: var(--orange);
	color: var(--encre);
	cursor: pointer;
	transition: transform .3s var(--ease), background-color .3s;
}

.fermer:hover { background: var(--blanc); transform: rotate(90deg); }
.fermer svg { width: 1.2rem; height: 1.2rem; }

.galerie-corps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.galerie-corps h3 {
	grid-column: 1 / -1;
	margin: .5rem 0 0;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--orange);
}

.galerie-corps img { width: 100%; height: 100%; max-height: 32rem; object-fit: cover; }

/* ---------- Apparitions au défilement (activées par js/pole.js) ---------- */
.js [data-apparait] {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
	transition-delay: var(--delai, 0s);
}

.js [data-apparait="volet"] {
	opacity: 1;
	transform: none;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1);
	transition-delay: var(--delai, 0s);
}

.js [data-apparait].vu { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ---------- Animations ---------- */
@keyframes lever {
	from { clip-path: inset(100% 0 0 0); }
	to   { clip-path: inset(0 0 0 0); }
}

@keyframes monter {
	from { opacity: 0; transform: translateY(40px); }
	to   { opacity: 1; transform: none; }
}

@keyframes zoom {
	from { scale: 1.15; }
	to   { scale: 1; }
}

@keyframes remplir {
	to { background-position: 0 0; }
}

@keyframes glisser {
	to { transform: translateX(-50%); }
}

@keyframes couler {
	from { background-position: 0 100%; }
	to   { background-position: 0 -100%; }
}

/* ---------- Tablette ---------- */
@media (max-width: 960px) {
	.cartes { --colonnes: 1 !important; }
	.valeurs { grid-template-columns: minmax(0, 1fr); }
	.valeur + .valeur { border-left: 0; }
	.valeur::before { margin-bottom: 1.25rem; }
	.media-duo,
	.dispositif,
	.contact-grille { grid-template-columns: 1fr; }
	.dispositif-sigle { font-size: min(8rem, 18cqi); }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
	.burger { display: block; position: relative; z-index: 2; }

	.menu {
		position: fixed;
		inset: 0;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 1.25rem;
		padding: 6rem var(--marge) 3rem;
		background: var(--bleu-nuit);
		clip-path: inset(0 0 100% 0);
		visibility: hidden;
		transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s .6s;
	}

	.menu-ouvert .menu {
		clip-path: inset(0 0 0 0);
		visibility: visible;
		transition: clip-path .6s cubic-bezier(.7, 0, .2, 1);
	}

	.menu a { font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 900; font-stretch: 112%; }
	.menu .bouton { margin-top: 1rem; padding: 1rem 1.5rem; font-size: 1.2rem; }

	.defiler { display: none; }

	.deux-col,
	.formulaire { grid-template-columns: 1fr; }

	.chiffres { grid-template-columns: 1fr; }
	.chiffre strong { font-size: clamp(2.5rem, 12vw, 4rem); }
	.chiffre,
	.chiffre + .chiffre { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid rgba(16, 32, 46, .15); }

	.galerie-corps { grid-template-columns: 1fr; }
}

/* ---------- Petits téléphones : les mots longs (« Professionnalisme », « Conditionnement ») tiennent ---------- */
@media (max-width: 480px) {
	.carte h3 { font-size: clamp(1.25rem, 6.5vw, 1.5rem); }
	.titre,
	.valeur h3,
	.carte h3,
	.dispositif h3,
	.media-duo h3 { overflow-wrap: break-word; hyphens: auto; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
	.heros .sigle { background-position: 0 0; }
	.js [data-apparait] { opacity: 1; transform: none; clip-path: none; }
}
