/* ==========================================================================
   STRUCTEO - feuille de style du thème
   Identité : encre marine, bleu du logo, papier de plan. Angles droits, traits fins,
   repères d'axes (A, B, C / 1, 2) repris des plans de structure.
   ========================================================================== */

:root {
	--encre: #0b1524;
	--encre-2: #13223a;
	--encre-3: #1d2f4d;
	--papier: #f2efe9;
	--papier-2: #e8e3da;
	--quadrillage: rgba(29, 86, 201, .055);
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .08 0 0 0 0 .14 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--blanc: #ffffff;
	--gris: #586374;
	--gris-clair: #97a1ae;
	--trait: rgba(11, 21, 36, .12);
	--trait-fort: rgba(11, 21, 36, .3);
	--trait-clair: rgba(255, 255, 255, .18);
	--bleu: #1d56c9;
	--bleu-vif: #4f8bff;
	--bleu-pale: #e3eafa;
	--bleu-plan: #10284f;
	--rouge: #c2352b;
	--vert: #1f7a4d;

	--police: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--gouttiere: clamp(16px, 4.2vw, 64px);
	--max: 1360px;
	--max-large: 1600px;
	--section: clamp(80px, 10vw, 168px);
	--entete: 88px;

	--courbe: cubic-bezier(.19, .8, .2, 1);
	--courbe-douce: cubic-bezier(.4, 0, .2, 1);
	--duree: .9s;
}

/* --- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--blanc);
	color: var(--encre);
	font-family: var(--police);
	font-size: 17px;
	line-height: 1.6;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--bleu); color: var(--blanc); }
:focus-visible { outline: 2px solid var(--bleu-vif); outline-offset: 3px; }

.visuellement-cache {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.evitement {
	position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px;
	background: var(--blanc); color: var(--encre); font-weight: 600; transform: translateY(-160%);
	transition: transform .3s var(--courbe);
}
.evitement:focus { transform: none; }

.conteneur { width: 100%; max-width: calc(var(--max) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur-large { width: 100%; max-width: calc(var(--max-large) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur-texte { max-width: calc(780px + 2 * var(--gouttiere)); }

.section { padding-block: var(--section); position: relative; }
.section-sombre { background: var(--encre); color: var(--blanc); }
.section-papier { background-color: var(--papier); background-image: var(--grain); }

/* --- Typographie --------------------------------------------------------- */

.surtitre {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1.3;
	letter-spacing: .14em; text-transform: uppercase; color: var(--bleu);
}
.surtitre-clair, .section-sombre .surtitre, .titre-section-clair .surtitre { color: rgba(255, 255, 255, .78); }
.surtitre-num {
	display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px;
	border: 1px solid currentColor; border-radius: 999px; letter-spacing: 0; font-size: 11px;
}
.surtitre-num:empty { display: none; }

.titre-section-h2, .feuille-titre, .cta-titre, .entete-page-titre, .hero-titre, .bande-titre, .contact-titre {
	font-weight: 600; font-stretch: 112%; letter-spacing: -.022em; line-height: 1.02; text-wrap: balance;
}

.prose { color: var(--encre); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; font-stretch: 108%; line-height: 1.15; margin-top: 2em; letter-spacing: -.01em; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.6em; }
.prose a { color: var(--bleu); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul { list-style: square; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose-grande { font-size: clamp(1.18rem, 1.55vw, 1.42rem); line-height: 1.55; letter-spacing: -.005em; }

.etiquette {
	display: inline-flex; align-items: center; padding: 6px 10px;
	font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
	background: var(--bleu-pale); color: var(--bleu);
}
.etiquette-clair { background: rgba(255, 255, 255, .14); color: var(--blanc); backdrop-filter: blur(6px); }
.etiquette-trait { background: transparent; color: var(--encre); border: 1px solid var(--trait-fort); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.liste-numerotee { counter-reset: n; }
.liste-numerotee li {
	counter-increment: n; display: grid; grid-template-columns: 52px 1fr; gap: 12px;
	padding: 18px 0; border-top: 1px solid var(--trait); line-height: 1.45;
}
.liste-numerotee li:last-child { border-bottom: 1px solid var(--trait); }
.liste-numerotee li::before {
	content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--bleu); padding-top: .3em;
}

/* --- Boutons et liens ---------------------------------------------------- */

.bouton {
	--fond: var(--encre); --texte: var(--blanc); --survol: var(--bleu);
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	min-height: 56px; padding: 0 26px;
	background: var(--fond); color: var(--texte);
	font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
	transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bouton:hover, .bouton:focus-visible { background: var(--survol); transform: translateY(-2px); box-shadow: 7px 10px 15px rgba(11, 21, 36, .27); }
.bouton:active { transform: none; box-shadow: none; }
.bouton .icone { flex: none; }
.bouton-clair { --fond: var(--blanc); --texte: var(--encre); --survol: var(--bleu); }
.bouton-clair:hover { color: var(--blanc); }
.bouton-petit { min-height: 44px; padding: 0 18px; font-size: 14px; }

.lien-fleche {
	display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px;
	font-weight: 600; font-size: 15px; position: relative;
	background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
	transition: background-size .6s var(--courbe), color .3s;
}
.lien-fleche .icone { transition: transform .5s var(--courbe); }
.lien-fleche:hover { color: var(--bleu); }
.lien-fleche:hover .icone { transform: translateX(5px); }
.lien-clair:hover, .section-sombre .lien-fleche:hover { color: var(--bleu-vif); }
.lien-souligne {
	font-weight: 600; font-size: 15px; padding-bottom: 4px;
	background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat,
		linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .4)) left bottom / 100% 1px no-repeat;
	transition: background-size .6s var(--courbe);
}
.lien-souligne:hover { background-size: 100% 1px, 100% 1px; background-position: left bottom, left bottom; }
.lien-clair { color: var(--blanc); }

/* --- En-tête -------------------------------------------------------------- */

.entete {
	position: fixed; inset: 0 0 auto; z-index: 70;
	color: var(--encre); background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid var(--trait);
	backdrop-filter: saturate(1.4) blur(14px);
	transition: background-color .45s var(--courbe-douce), color .45s var(--courbe-douce), border-color .45s, transform .55s var(--courbe);
}
.entete-barre {
	max-width: calc(var(--max-large) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere);
	height: var(--entete); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
	transition: height .45s var(--courbe);
}
.entete.est-defile .entete-barre { height: 70px; }
.entete.est-cache { transform: translateY(-100%); }

.entete:not(.est-defile):not(.panneau-ouvert), .menu-ouvert .entete { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.entete-sur-image:not(.menu-ouvert) .entete:not(.est-defile):not(.panneau-ouvert) { color: var(--blanc); }
.entete-sur-image:not(.menu-ouvert) .entete:not(.est-defile):not(.panneau-ouvert)::before {
	content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
	background: linear-gradient(rgba(11, 21, 36, .5), rgba(11, 21, 36, 0));
}

.marque { display: inline-flex; align-items: center; gap: 12px; }
.marque-picto, .marque-mot { display: grid; }
.marque-picto img, .marque-mot img { grid-area: 1 / 1; transition: opacity .4s; }
.marque-picto img { height: 36px; width: auto; }
.marque-mot img { height: 15px; width: auto; }
.marque .sur-sombre { opacity: 0; }
.entete-sur-image:not(.menu-ouvert) .entete:not(.est-defile):not(.panneau-ouvert) .sur-sombre { opacity: 1; }
.entete-sur-image:not(.menu-ouvert) .entete:not(.est-defile):not(.panneau-ouvert) .sur-clair { opacity: 0; }

.nav .menu { display: flex; justify-content: center; gap: clamp(20px, 2.6vw, 40px); }
.nav .menu > li > a {
	position: relative; display: inline-block; padding: 10px 0; font-size: 15px; font-weight: 500; letter-spacing: .005em;
}
.nav .menu > li > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: right; transition: transform .5s var(--courbe);
}
.nav .menu > li > a { transition: color .3s ease; }
.nav .menu > li > a:hover, .nav .menu > li.a-panneau:hover > a { color: var(--bleu); }
.entete-sur-image:not(.menu-ouvert) .entete:not(.est-defile):not(.panneau-ouvert) .nav .menu > li > a:hover { color: var(--bleu-vif); }
.nav .menu > li.current-menu-item > a::after, .nav .menu > li.current_page_item > a::after,
.nav .menu > li.current_page_parent > a::after { transform: scaleX(1); transition: none; }
.nav .menu > li.a-panneau > a { padding-right: 16px; }
.nav .menu > li.a-panneau > a::before {
	content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; margin-top: -5px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
	transition: transform .4s var(--courbe);
}
.nav .menu > li.a-panneau:hover > a::before { transform: rotate(225deg) translate(-2px, -2px); }

.entete-actions { display: flex; align-items: center; gap: 22px; }
.entete-tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.entete-tel .icone { width: 16px; height: 16px; }
.entete-sur-image:not(.menu-ouvert) .entete:not(.est-defile):not(.panneau-ouvert) .entete-bouton { --fond: var(--blanc); --texte: var(--encre); }
.entete-sur-image:not(.menu-ouvert) .entete:not(.est-defile):not(.panneau-ouvert) .entete-bouton:hover { color: var(--blanc); }

/* Panneau des expertises */
.panneau {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--blanc); color: var(--encre); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait);
	box-shadow: 0 30px 60px -30px rgba(11, 21, 36, .35);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .35s var(--courbe-douce), transform .5s var(--courbe), visibility 0s .35s;
}
.nav .a-panneau:hover .panneau, .nav .a-panneau:focus-within .panneau, .nav .a-panneau.est-ouvert .panneau {
	opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.panneau-grille {
	max-width: calc(var(--max-large) + 2 * var(--gouttiere)); margin-inline: auto; padding: 28px var(--gouttiere) 36px;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.panneau-lien { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
.panneau-image { order: -1; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 12px; background: var(--papier); }
.panneau-image img, .panneau-image .plan { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform 1s var(--courbe); }
.panneau-image .plan-sigle { font-size: 2rem; }
.panneau-num { font-family: var(--mono); font-size: 11px; color: var(--bleu); letter-spacing: .1em; }
.panneau-nom { font-size: 19px; font-weight: 600; font-stretch: 108%; line-height: 1.2; transition: color .3s; }
.panneau-lien:hover .panneau-nom { color: var(--bleu); }
.panneau-court { font-size: 14px; color: var(--gris); line-height: 1.45; }

/* Bouton du menu mobile */
.burger { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.burger-traits { position: relative; width: 26px; height: 12px; }
.burger-traits span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--courbe), top .5s var(--courbe); }
.burger-traits span:first-child { top: 0; }
.burger-traits span:last-child { top: 10px; }
.burger[aria-expanded="true"] .burger-traits span:first-child { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-traits span:last-child { top: 5px; transform: rotate(-45deg); }

.menu-mobile {
	position: fixed; inset: 0; z-index: 60; background-color: var(--papier); background-image: var(--grain); color: var(--encre);
	display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	padding: calc(var(--entete) + 24px) var(--gouttiere) 32px; overflow-y: auto;
	clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--courbe);
}
.menu-mobile.est-ouvert { clip-path: inset(0); }
.menu-mobile-liste { counter-reset: m; }
.menu-mobile-liste li { counter-increment: m; border-bottom: 1px solid var(--trait); }
.menu-mobile-liste a, .menu-mobile-contact {
	display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
	font-size: clamp(1.9rem, 8vw, 3rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1;
	opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .7s var(--courbe);
}
.menu-mobile-liste a::before { content: counter(m, decimal-leading-zero); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--bleu); }
.menu-mobile-liste a:hover, .menu-mobile-liste .current-menu-item > a { color: var(--bleu); }
.menu-mobile-contact { color: var(--bleu); }
.menu-mobile.est-ouvert .menu-mobile-liste a, .menu-mobile.est-ouvert .menu-mobile-contact { opacity: 1; transform: none; }
.menu-mobile.est-ouvert li:nth-child(2) a { transition-delay: .05s; }
.menu-mobile.est-ouvert li:nth-child(3) a { transition-delay: .1s; }
.menu-mobile.est-ouvert li:nth-child(4) a { transition-delay: .15s; }
.menu-mobile.est-ouvert li:nth-child(5) a { transition-delay: .2s; }
.menu-mobile.est-ouvert .menu-mobile-contact { transition-delay: .25s; }
.menu-mobile-pied { display: grid; gap: 14px; font-family: var(--mono); font-size: 14px; }
.menu-mobile-pied a { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.menu-mobile-pied small { color: var(--gris); margin-left: 6px; }
body.menu-ouvert { overflow: hidden; }

/* --- Trame d'axes (plans) ------------------------------------------------- */

.trame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: rgba(255, 255, 255, .26); }
.trame line { stroke: currentColor; stroke-width: 1; stroke-dasharray: 18 6 3 6; vector-effect: non-scaling-stroke; }
.trame circle { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.trame text { fill: currentColor; font-family: var(--mono); font-size: 20px; text-anchor: middle; }
.trame-axe { opacity: 0; transition: opacity 1.2s var(--courbe-douce) calc(.3s + var(--rang) * .12s); }
.trame-axe line { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform 2s var(--courbe) calc(.3s + var(--rang) * .12s); }
.trame-axe-h line { transform-origin: 0 50%; transform: scaleX(0); }
.est-pret .trame-axe, .est-visible .trame-axe, html:not(.js) .trame-axe { opacity: 1; }
.est-pret .trame-axe line, .est-visible .trame-axe line, html:not(.js) .trame-axe line { transform: none; }

/* --- Accueil : grande section d'ouverture ----------------------------------- */

.hero {
	position: relative; min-height: max(640px, 100svh); color: var(--blanc); background: var(--encre);
	display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero-medias, .hero-diapo { position: absolute; inset: 0; }
.hero-medias { z-index: -3; }
.hero-diapo { opacity: 0; transition: opacity 1.6s var(--courbe-douce); }
.hero-diapo.est-active { opacity: 1; }
.hero-diapo picture { display: contents; }
.hero-diapo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-diapo.est-active img { animation: rapprochement 9s var(--courbe-douce) both; }
@keyframes rapprochement { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero-voile {
	position: absolute; inset: 0; z-index: -2;
	background:
		linear-gradient(180deg, rgba(11, 21, 36, .62) 0%, rgba(11, 21, 36, .12) 28%, rgba(11, 21, 36, .3) 58%, rgba(11, 21, 36, .92) 100%),
		linear-gradient(90deg, rgba(11, 21, 36, .7) 0%, rgba(11, 21, 36, 0) 62%);
}
.trame-hero { z-index: -1; }
.hero-contenu {
	width: 100%; max-width: calc(var(--max-large) + 2 * var(--gouttiere)); margin-inline: auto;
	padding: calc(var(--entete) + 64px) var(--gouttiere) clamp(56px, 9vh, 104px);
	padding-right: calc(var(--gouttiere) + 400px);
}
.hero-surtitre { margin-bottom: 28px; }
.pastille { width: 8px; height: 8px; background: var(--bleu-vif); box-shadow: 0 0 0 5px rgba(79, 139, 255, .25); }
.hero-titre { font-size: clamp(2.5rem, 5.6vw, 5.9rem); max-width: 16ch; }
.hero-accroche { margin-top: 28px; max-width: 60ch; font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.6; color: rgba(255, 255, 255, .84); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; }



.cartouche {
	position: absolute; right: var(--gouttiere); bottom: clamp(56px, 9vh, 104px); width: 360px;
	border: 1px solid rgba(255, 255, 255, .32); background: rgba(11, 21, 36, .5); backdrop-filter: blur(12px);
	font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
}

.cartouche-ligne { display: grid; grid-template-columns: 84px 1fr; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.cartouche-ligne > * { padding: 11px 14px; }
.cartouche-cle { text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; color: rgba(255, 255, 255, .6); border-right: 1px solid rgba(255, 255, 255, .2); }
.cartouche-val { color: var(--blanc); min-height: 3.6em; display: flex; align-items: center; line-height: 1.4; }
.cartouche-ligne:not(.cartouche-vue) .cartouche-val { min-height: 0; }
.cartouche-barres { display: flex; gap: 6px; padding: 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.cartouche-barre { flex: 1; height: 24px; position: relative; }
.cartouche-barre::before, .cartouche-barre::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.cartouche-barre::before { background: rgba(255, 255, 255, .22); }
.cartouche-barre::after { background: var(--blanc); transform: scaleX(0); transform-origin: left; }
.cartouche-barre.est-vue::after { transform: scaleX(1); }
.cartouche-barre.est-active::after { animation: progression var(--duree-diapo, 7s) linear both; }
.hero.est-en-pause .cartouche-barre.est-active::after { animation-play-state: paused; }
@keyframes progression { from { transform: scaleX(0); } to { transform: scaleX(1); } }


/* --- Apparitions (grammaire relevée sur la référence) ------------------------------
   Montée : 30 px + fondu, 1 s, ease, 0,2 s puis décalage par élément (2 s pour les grands titres).
   Zoom : 0,8 -> 1 + fondu opaque à 60 %, 1 s, ease, 0,3 s ; pour les images et les chiffres. */

@keyframes structeo-monter { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: none; } }
@keyframes structeo-zoomer { from { opacity: 0; transform: scale(.8); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }

.titre-mots .mot, .titre-mots .mot > span { display: inline; }
.js [data-reveal], .js [data-mots] { opacity: 0; }
.js [data-reveal].est-visible, .js [data-mots].est-visible { animation: structeo-monter 1s ease calc(.2s + var(--delai, 0s) * 2) both; }
.js [data-mots].est-visible { animation-duration: 2s; }
.js [data-reveal="image"].est-visible, .js [data-reveal="zoom"].est-visible { animation-name: structeo-zoomer; animation-delay: calc(.3s + var(--delai, 0s) * 2); }

/* Première section : même montée, dès le chargement, éléments décalés de 0,2 s. */
.js .hero-surtitre, .js .hero-titre, .js .hero-accroche, .js .hero-actions, .js .cartouche { opacity: 0; }
.js .hero.est-pret :is(.hero-surtitre, .hero-titre, .hero-accroche, .hero-actions, .cartouche) { animation: structeo-monter 1s ease both; }
.js .hero.est-pret .hero-titre { animation-delay: .2s; }
.js .hero.est-pret .hero-accroche { animation-delay: .4s; }
.js .hero.est-pret .hero-actions { animation-delay: .6s; }
.js .hero.est-pret .cartouche { animation-delay: .8s; }

/* --- Accueil : feuille qui recouvre la photo -------------------------------- */

.feuille { position: relative; z-index: 2; margin-top: -72px; }
.feuille-cadre {
	position: relative; background: var(--blanc); padding-block: clamp(72px, 8vw, 128px) clamp(64px, 7vw, 112px);
	max-width: calc(var(--max-large) + 2 * var(--gouttiere)); margin-inline: auto;
}
.feuille-cadre::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--trait); pointer-events: none; }
.repere { position: absolute; width: 22px; height: 22px; border-color: var(--encre); border-style: solid; border-width: 0; }
.repere-hg { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.repere-hd { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.feuille-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.feuille-texte { padding-top: 12px; }
.feuille-titre { margin-top: 26px; font-size: clamp(2rem, 3.5vw, 3.3rem); max-width: 14ch; }
.feuille-chapo { margin-top: 30px; max-width: 46ch; font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.6; color: var(--gris); }
.feuille-texte .lien-fleche { margin-top: 36px; }
.feuille-photo { position: relative; margin-top: -24px; }
.feuille-photo-cadre { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--papier); }
.feuille-photo img { width: 100%; height: 100%; object-fit: cover; }
.feuille-photo figcaption { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--gris); letter-spacing: .02em; max-width: 44ch; }

/* --- Chiffres clés -------------------------------------------------------- */

.chiffres { display: grid; grid-template-columns: repeat(var(--nb, 4), minmax(0, 1fr)); max-width: calc(var(--nb, 4) * 340px); margin-top: clamp(56px, 6vw, 96px); }
.chiffre { position: relative; padding: 40px 28px 8px 0; border-top: 1px solid var(--trait-fort); }
.chiffre + .chiffre { padding-left: 28px; border-left: 1px solid var(--trait); }
.chiffre-axe {
	position: absolute; top: -15px; left: 0; width: 30px; height: 30px; display: grid; place-items: center;
	border: 1px solid var(--encre); border-radius: 50%; background: var(--blanc);
	font-family: var(--mono); font-size: 12px;
}
.chiffre + .chiffre .chiffre-axe { left: 28px; }
.chiffre-valeur {
	display: block; font-size: clamp(3.4rem, 6.4vw, 6.4rem); font-weight: 300; font-stretch: 118%;
	line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.chiffre-libelle { display: block; margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--gris); max-width: 26ch; }
.chiffres-page { margin-top: 0; }

/* --- Titres de section ----------------------------------------------------- */

.titre-section {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px;
	margin-bottom: clamp(48px, 6vw, 96px);
}
.titre-section .surtitre { grid-column: 1 / -1; }
.titre-section-h2 { font-size: clamp(1.9rem, 3.3vw, 3.1rem); max-width: 20ch; }
.titre-section .lien-fleche { white-space: nowrap; }
.titre-section-clair { color: var(--blanc); }

/* --- Accueil : expertises --------------------------------------------------- */

.expertises-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.expertises-liste { border-bottom: 1px solid var(--trait-fort); }
.exp-ligne { border-top: 1px solid var(--trait-fort); }
.exp-lien { display: grid; grid-template-columns: 64px minmax(0, 1fr) 48px; gap: 16px; align-items: start; padding: 30px 0; }
.exp-num { font-family: var(--mono); font-size: 13px; color: var(--gris); padding-top: .9em; transition: color .4s; }
.exp-corps { display: grid; gap: 8px; transition: transform .7s var(--courbe); }
.exp-nom { font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.08; transition: color .4s; }
.exp-court { color: var(--gris); font-size: 16px; }
.exp-fleche { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--trait-fort); border-radius: 50%; transition: background .4s, color .4s, border-color .4s, transform .6s var(--courbe); }
.exp-ligne.est-active .exp-num, .exp-ligne.est-active .exp-nom { color: var(--bleu); }
.exp-ligne.est-active .exp-corps { transform: translateX(10px); }
.exp-ligne.est-active .exp-fleche { background: var(--bleu); color: var(--blanc); border-color: var(--bleu); transform: rotate(45deg); }

.expertises-visuel { position: sticky; top: calc(var(--entete) + 32px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--papier); }
.exp-visuel { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--courbe-douce); }
.exp-visuel img, .exp-visuel .plan { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--courbe); }
.exp-visuel.est-active { opacity: 1; z-index: 1; }
.exp-visuel.est-active img, .exp-visuel.est-active .plan { transform: none; }

/* --- Accueil : volets des réalisations -------------------------------------- */

.realisations-accueil .titre-section { margin-bottom: clamp(40px, 5vw, 72px); }
.volets { display: flex; gap: 10px; height: clamp(460px, 66vh, 680px); }
.volet {
	position: relative; overflow: hidden; flex: 0 0 92px; background: var(--encre-2);
	transition: flex-basis 1s var(--courbe), flex-grow 1s var(--courbe);
}
.volet.est-actif { flex: 1 1 auto; }
.volet-media { position: absolute; inset: 0; }
.volet-media img, .volet-media .plan { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.45); transform: scale(1.12); transition: filter 1s var(--courbe-douce), transform 1.6s var(--courbe); }
.volet.est-actif .volet-media img, .volet.est-actif .volet-media .plan { filter: none; transform: none; }
.volet .volet-media .plan > * { opacity: 0; transition: opacity .5s; }
.volet.est-actif .volet-media .plan > * { opacity: 1; transition-delay: .4s; }
.volet::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(11, 21, 36, .1) 40%, rgba(11, 21, 36, .88) 100%);
	opacity: 0; transition: opacity .8s;
}
.volet.est-actif::after { opacity: 1; }
.volet-tranche {
	position: absolute; inset: 0; z-index: 2; width: 100%;
	display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 28px 0;
	color: var(--blanc); transition: opacity .5s;
}
.volet-tranche:hover .volet-num { background: var(--blanc); color: var(--encre); }
.volet.est-actif .volet-tranche { opacity: 0; pointer-events: none; }
.volet-num { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; font-family: var(--mono); font-size: 12px; transition: background .3s, color .3s; }
.volet-nom-vertical { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 15px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; max-height: 75%; overflow: hidden; text-overflow: ellipsis; }
.volet-infos {
	position: absolute; left: 0; bottom: 0; z-index: 3; padding: clamp(24px, 3vw, 48px); max-width: 640px; color: var(--blanc);
	display: grid; justify-items: start; gap: 14px;
	opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .8s var(--courbe);
	pointer-events: none;
}
.volet.est-actif .volet-infos { opacity: 1; transform: none; transition-delay: .35s; pointer-events: auto; }
.volet-titre { font-size: clamp(1.8rem, 3.2vw, 3rem); font-weight: 600; font-stretch: 110%; line-height: 1.05; letter-spacing: -.02em; }
.volet-meta { color: rgba(255, 255, 255, .8); font-size: 16px; }
.volet-infos .lien-fleche { margin-top: 6px; }
.volet-dessin { background: var(--papier); }
.volet.volet-dessin .volet-media .plan { filter: none; transform: none; }
.volet-dessin .plan-cartouche { display: none; }
.volet-dessin::after { background: linear-gradient(180deg, rgba(242, 239, 233, 0) 35%, rgba(242, 239, 233, .96) 100%); }
.volet-dessin .volet-tranche, .volet-dessin .volet-infos { color: var(--encre); }
.volet-dessin .volet-num { border-color: var(--trait-fort); }
.volet-dessin .volet-tranche:hover .volet-num { background: var(--encre); color: var(--blanc); }
.volet-dessin .volet-meta { color: var(--gris); }
.volet-dessin .etiquette-clair { background: var(--bleu-pale); color: var(--bleu); backdrop-filter: none; }
.volet-dessin .lien-clair { color: var(--encre); }

/* --- Bandeau des normes et logiciels ---------------------------------------- */


/* --- Partenaires (grille numérotée, comme sur la référence) ------------------------ */

.partenaires {
	background-color: var(--blanc);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 28v8M28 32h8' stroke='%230b1524' stroke-opacity='.14' stroke-width='1'/%3E%3C/svg%3E");
	background-size: 64px 64px;
}
.partenaires-tete { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 112px); align-items: start; margin-bottom: clamp(40px, 5vw, 72px); }
.partenaires-titre { font-size: clamp(1.9rem, 3.3vw, 3.1rem); font-weight: 600; font-stretch: 112%; letter-spacing: -.022em; line-height: 1.02; }
.partenaires-texte { font-size: clamp(1.05rem, 1.4vw, 1.26rem); line-height: 1.65; font-weight: 500; max-width: 58ch; }
.partenaires-grille { display: grid; grid-template-columns: repeat(var(--nb, 4), minmax(0, 1fr)); border-top: 1px solid var(--trait); border-left: 1px solid var(--trait); }
.partenaire {
	position: relative; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; gap: 18px;
	min-height: 220px; padding: 44px 20px 26px; background: var(--blanc);
	border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); outline: 1px solid transparent; outline-offset: -1px;
	transition: outline-color .3s ease;
}
.partenaire:hover { outline-color: var(--bleu); }
.partenaire-num { position: absolute; top: 16px; right: 18px; font-size: 14px; color: var(--gris-clair); transition: color .3s ease; }
.partenaire:hover .partenaire-num { color: var(--encre); }
.partenaire-logo { display: grid; place-items: center; width: 100%; height: 90px; }
.partenaire-logo img { max-width: min(150px, 80%); max-height: 70px; width: auto; height: auto; object-fit: contain; }
.partenaire-sigle { font-size: clamp(.88rem, 1.5vw, 1.15rem); font-weight: 700; font-stretch: 118%; letter-spacing: -.01em; line-height: 1.05; text-align: center; color: var(--encre); max-width: 12ch; }
.partenaire-nom { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); text-align: center; }
@media (max-width: 960px) {
	.partenaires-tete { grid-template-columns: 1fr; }
	.partenaires-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
	.partenaire:last-child:nth-child(odd) { grid-column: 1 / -1; } /* nombre impair : pas de case vide */
	.partenaire { min-height: 190px; padding-inline: 12px; }
}

/* --- Réalisations de l'accueil figées : le défilement vertical parcourt les volets ------------
   La section est plus haute que l'écran ; son contenu reste collé en haut pendant qu'on fait défiler
   trois quarts d'écran par projet. Ordinateur seulement ; sur téléphone, l'accordéon d'origine. */
.realisations-accueil.est-figee { height: calc(100vh + var(--nb) * 75vh); height: calc(100svh + var(--nb) * 75svh); padding-block: 0; }
.est-figee .realisations-epingle {
	position: sticky; top: 0; height: 100vh; height: 100svh;
	display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 3vw, 44px);
	padding-block: clamp(32px, 5vh, 64px);
}
.est-figee .titre-section { margin-bottom: 0; }
.est-figee .conteneur-large { flex: 0 1 auto; min-height: 0; display: flex; width: 100%; }
.est-figee .volets { flex: 1; height: min(680px, calc(100vh - 360px)); height: min(680px, calc(100svh - 360px)); }
.est-figee .volet-media { transform: scale(1.08) translate3d(0, calc((.5 - var(--avance, .5)) * 5%), 0); }
@media (max-width: 1100px) {
	.est-figee .realisations-epingle { padding-block: calc(var(--entete) + 8px) 20px; justify-content: flex-start; }
}

/* --- Accueil : méthode ------------------------------------------------------- */

.etapes { position: relative; display: grid; grid-template-columns: repeat(var(--nb, 5), minmax(0, 1fr)); gap: 32px; }
.etapes::before, .etapes::after { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; }
.etapes::before { background: var(--trait-fort); }
.etapes::after { background: var(--bleu); height: 2px; top: 21.5px; transform: scaleX(var(--progression, 0)); transform-origin: left; }
.etape { position: relative; z-index: 1; padding-right: 8px; }
.etape-repere {
	position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--encre); background: var(--blanc); font-family: var(--mono); font-size: 14px;
	transition: background .5s, color .5s, border-color .5s;
}
.etape.est-atteinte .etape-repere { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
.etape-titre { margin-top: 28px; font-size: 1.28rem; font-weight: 600; font-stretch: 108%; line-height: 1.2; }

/* --- Actualités ------------------------------------------------------------- */

.actus-grille { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px clamp(32px, 4vw, 64px); }
.carte-actu-une { grid-row: span 2; }
.carte-actu-lien { display: grid; gap: 22px; height: 100%; align-content: start; }
.carte-actu:not(.carte-actu-une) .carte-actu-lien { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.carte-actu-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--encre); }
.carte-actu-une .carte-actu-media { aspect-ratio: 4 / 3; }
.carte-actu-media img, .carte-actu-media .plan { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform 1.2s var(--courbe); }
.carte-actu-media .plan-sigle { font-size: clamp(2rem, 4vw, 3.4rem); }
.carte-actu-texte { display: grid; gap: 10px; align-content: start; }
.carte-actu-date { font-family: var(--mono); font-size: 12px; color: var(--bleu); letter-spacing: .08em; text-transform: uppercase; }
.carte-actu-titre { font-size: 1.3rem; font-weight: 600; font-stretch: 106%; line-height: 1.25; transition: color .3s; }
.carte-actu-une .carte-actu-titre { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.carte-actu-lien:hover .carte-actu-titre { color: var(--bleu); }
.carte-actu-extrait { color: var(--gris); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actus-grille-page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.actus-grille-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actus-grille-page .carte-actu-une { grid-column: span 2; grid-row: span 2; }
.actus-grille-page .carte-actu:not(.carte-actu-une) .carte-actu-lien, .actus-grille-deux .carte-actu-lien { grid-template-columns: 1fr; }

/* --- Appel à contacter -------------------------------------------------------- */

.cta {
	position: relative; isolation: isolate; overflow: hidden; color: var(--encre);
	padding-block: var(--section) calc(var(--section) * 1.1); border-top: 1px solid var(--trait);
	background-color: var(--blanc);
	background-image: linear-gradient(var(--quadrillage) 1px, transparent 1px), linear-gradient(90deg, var(--quadrillage) 1px, transparent 1px);
	background-size: 120px 120px; background-position: -1px -1px;
}
.cta-dessin {
	position: absolute; z-index: -1; right: -3%; top: 8%; bottom: 8%; width: min(60%, 960px); display: flex; align-items: center; color: var(--encre); opacity: .62;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.cta-dessin .dessin { width: 100%; height: 100%; }
.cta-titre { margin-top: 24px; font-size: clamp(2.3rem, 4.6vw, 4.4rem); max-width: 13ch; }
.cta-bas { margin-top: clamp(36px, 4.5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.cta-tels { display: flex; flex-wrap: wrap; gap: 20px 44px; }
.cta-tels a { display: grid; gap: 2px; }
.cta-tel-num { font-family: var(--mono); font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: .02em; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .6s var(--courbe), color .3s; }
.cta-tels a:hover .cta-tel-num { background-size: 100% 1px; color: var(--bleu); }
.cta-tel-nom { font-size: 13px; color: var(--gris); }

/* --- Pied de page ------------------------------------------------------------- */

.pied { position: relative; overflow: hidden; background-color: var(--papier-2); background-image: var(--grain); color: var(--gris); padding-top: clamp(16px, 2vw, 32px); font-size: 15px; }
.pied-dessin { position: absolute; right: -4%; top: 40px; width: min(58%, 880px); color: var(--encre); opacity: .09; pointer-events: none; }
.pied .conteneur { position: relative; }
.pied-colonnes { display: grid; grid-template-columns: 1.2fr 1.25fr 1fr 1fr .9fr; gap: 40px; padding-block: clamp(48px, 6vw, 80px); }
.pied-titre { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bleu); margin-bottom: 18px; }
.pied-liste li + li, .pied-reseaux li + li { margin-top: 10px; }
.pied a { color: var(--encre); transition: color .3s; }
.pied a:hover { color: var(--bleu); }
.pied-liste small { color: var(--gris); margin-left: 6px; }
.pied address { color: var(--encre); }
.pied-horaires { margin-top: 14px; }
.pied-reseaux a { display: inline-flex; align-items: center; gap: 10px; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px 32px; margin-top: 24px; border-top: 1px solid var(--trait-fort); font-family: var(--mono); font-size: 12px; color: var(--gris); }
.pied-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* --- En-tête des pages intérieures -------------------------------------------- */

.entete-page {
	position: relative; isolation: isolate; overflow-x: clip; color: var(--encre);
	padding-block: calc(var(--entete) + clamp(48px, 7vw, 112px)) clamp(56px, 7vw, 104px);
	border-bottom: 1px solid var(--trait);
}
/* Papier de plan : grain et double quadrillage, sous les en-têtes et l'introduction du contact. */
.entete-page, .contact-hero {
	background-color: var(--papier);
	background-image: var(--grain),
		linear-gradient(var(--quadrillage) 1px, transparent 1px), linear-gradient(90deg, var(--quadrillage) 1px, transparent 1px),
		linear-gradient(rgba(29, 86, 201, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 86, 201, .03) 1px, transparent 1px);
	background-size: 180px 180px, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	background-position: 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}
.entete-page-dessin {
	position: absolute; z-index: -1; right: -2%; top: calc(var(--entete) + 8px); bottom: 24px; width: min(60%, 980px);
	display: flex; align-items: center; color: var(--encre); opacity: .58; pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.entete-page-dessin .dessin { width: 100%; height: 100%; }
.entete-photo .entete-page-dessin { right: auto; left: 30%; width: 44%; opacity: .4; }
.entete-page-grille { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 104px); align-items: end; }
.entete-dessin .entete-page-grille, .entete-bandeau .entete-page-grille { grid-template-columns: minmax(0, 1fr); }
.entete-page-texte { max-width: 880px; }
.ariane { margin-bottom: clamp(28px, 5vh, 56px); }
.ariane ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--gris); }
.ariane li { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ariane li + li::before { content: "/"; color: var(--gris-clair); }
.ariane a { transition: color .3s; }
.ariane a:hover { color: var(--bleu); }
.ariane [aria-current] { color: var(--encre); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entete-page-titre { margin-top: 22px; font-size: clamp(2.6rem, 5.4vw, 5.4rem); max-width: 16ch; }
.entete-page-chapo { margin-top: 26px; max-width: 56ch; font-size: clamp(1.05rem, 1.4vw, 1.26rem); line-height: 1.55; color: var(--gris); }
.entete-page-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; }
.entete-article .entete-page-titre { font-size: clamp(2.1rem, 4.2vw, 4rem); max-width: 22ch; }
.entete-page-photo { position: relative; z-index: 2; margin-bottom: calc(-1 * clamp(56px, 7vw, 104px) - 72px); }
.entete-page-photo::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--trait-fort); pointer-events: none; }
.entete-page-photo-cadre { position: relative; display: block; aspect-ratio: 5 / 6; overflow: hidden; background: var(--papier-2); box-shadow: 0 50px 90px -50px rgba(11, 21, 36, .45); }
.entete-page-photo-cadre img { width: 100%; height: 100%; object-fit: cover; }
.entete-bandeau { padding-bottom: 0; border-bottom: 0; }
.entete-page-bandeau { margin-top: clamp(48px, 6vw, 88px); }
.entete-page-bandeau-cadre { display: block; aspect-ratio: 21 / 9; overflow: hidden; background: var(--papier-2); }
.entete-page-bandeau-cadre img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--courbe); }
.entete-page-bandeau.est-visible .entete-page-bandeau-cadre img { transform: none; }

/* --- Dessins techniques ------------------------------------------------------------ */

.dessin { display: block; overflow: visible; }
.dessin path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.2; }
.dessin .d-fort { stroke-width: 2.1; }
.dessin .d-trait { stroke-width: 1.35; }
.dessin .d-fin { stroke-width: .9; opacity: .55; }
.dessin .d-axe { stroke-width: .8; opacity: .45; stroke-dasharray: 18 5 3 5; }
.dessin circle { fill: var(--papier); stroke: currentColor; stroke-width: 1; }
.dessin text { fill: currentColor; font-family: var(--mono); font-size: 15px; letter-spacing: .04em; }
.dessin .d-bulles text { text-anchor: middle; }
/* Petits formats : trait d'épaisseur constante quelle que soit l'échelle du dessin. */
.dessin:not(.dessin-anime) path, .dessin:not(.dessin-anime) circle { vector-effect: non-scaling-stroke; }
.dessin:not(.dessin-anime) path { stroke-width: 1; }
.dessin:not(.dessin-anime) .d-fort { stroke-width: 1.6; }
.dessin:not(.dessin-anime) .d-axe { stroke-dasharray: 10 4 2 4; }

/* Plans réels : image entière sur papier, apparition par balayage de gauche à droite. */
img.dessin-reel { width: 100%; height: 100%; object-fit: contain; opacity: .8; }
.js img.dessin-anime { clip-path: inset(0 100% 0 0); transition: clip-path 2s linear; }
.js .est-visible img.dessin-anime { clip-path: inset(0); }
img.image-plan { object-fit: contain !important; background-color: #f7f5f0; padding: 3%; }

/* Le dessin se trace quand son bloc apparaît : structure porteuse, puis détails, puis axes et repères. */
.js .dessin-anime :is(.d-fort, .d-trait, .d-fin) { stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset 2s linear; }
.js .dessin-anime .d-trait { transition-delay: .3s; }
.js .dessin-anime .d-fin { transition-delay: .6s; }
.js .dessin-anime :is(.d-axe, .d-bulles, .d-textes) { opacity: 0; transition: opacity 1.4s var(--courbe-douce); }
.js .est-visible .dessin-anime :is(.d-fort, .d-trait, .d-fin) { stroke-dashoffset: 0; }
.js .est-visible .dessin-anime .d-axe { opacity: .45; }
.js .est-visible .dessin-anime :is(.d-bulles, .d-textes) { opacity: 1; transition-delay: 1.6s; }

/* --- Blocs d'introduction ------------------------------------------------------- */

.intro-grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.intro-marge { position: sticky; top: calc(var(--entete) + 32px); }
.intro-marge .lien-fleche { margin-top: 24px; }
.intro-seule { max-width: 62ch; }

/* --- Réalisations : liste et cartes ---------------------------------------------- */

.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(40px, 5vw, 64px); padding-bottom: 24px; border-bottom: 1px solid var(--trait); }
.filtre { min-height: 44px; padding: 0 18px; border: 1px solid var(--trait-fort); font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.filtre sup { font-family: var(--mono); font-size: 10px; margin-left: 4px; color: var(--gris); }
.filtre:hover { border-color: var(--encre); }
.filtre.est-actif { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.filtre.est-actif sup { color: rgba(255, 255, 255, .7); }
.filtres-separateur { width: 1px; height: 28px; margin-inline: 8px; background: var(--trait-fort); }

.grille-projets { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 32px); }
.carte-projet { grid-column: span 4; }
.carte-grande { grid-column: span 8; }
.carte-moyenne { grid-column: span 6; }
.carte-haute { grid-column: span 4; }
.carte-haute .carte-projet-media { aspect-ratio: 4 / 5; }
.carte-projet[hidden] { display: none; }
.carte-projet-lien { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 18px; height: 100%; }
.carte-projet-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--encre); }
.carte-grande .carte-projet-media { aspect-ratio: 16 / 10; }
.carte-projet-media img, .carte-projet-media .plan { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform 1.4s var(--courbe), filter 1s; }
.carte-projet-num {
	position: absolute; top: 14px; left: 14px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center;
	border-radius: 50%; background: var(--blanc); color: var(--encre); font-family: var(--mono); font-size: 12px;
}
.carte-projet-infos { position: relative; z-index: 1; display: grid; justify-items: start; align-content: start; gap: 8px; }
.carte-projet-etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.carte-projet-ouvrir {
	position: absolute; top: 14px; right: 14px; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center;
	border-radius: 50%; background: var(--blanc); color: var(--encre);
	transition: background-color .3s ease, color .3s ease;
}
a.carte-projet-lien:hover .carte-projet-ouvrir, a.carte-projet-lien:focus-visible .carte-projet-ouvrir { background: var(--bleu); color: var(--blanc); }
@media (min-width: 961px) {
	.carte-grande .carte-projet-infos { margin: -112px 0 0 40px; padding: 28px 32px 8px; max-width: min(78%, 620px); background: var(--blanc); }
}
.carte-projet-titre { font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 600; font-stretch: 106%; line-height: 1.15; letter-spacing: -.01em; transition: color .3s; }
.carte-grande .carte-projet-titre { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
a.carte-projet-lien:hover .carte-projet-titre { color: var(--bleu); }
.carte-projet-meta { color: var(--gris); font-size: 15px; }
.carte-projet-voir { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 14px; font-weight: 600; }
.carte-projet-voir .icone { transition: transform .5s var(--courbe); }
.grille-projets-compacte .carte-projet { grid-column: span 6; }
.grille-projets-compacte .carte-projet:only-child { grid-column: span 8; }
.vide { color: var(--gris); }

/* --- Visuel de plan (contenu sans photo) ------------------------------------------ */

.plan {
	position: relative; display: block; width: 100%; height: 100%; min-height: 220px; overflow: hidden; color: var(--encre);
	background-color: var(--papier);
	background-image: var(--grain), linear-gradient(var(--quadrillage) 1px, transparent 1px), linear-gradient(90deg, var(--quadrillage) 1px, transparent 1px);
	background-size: 180px 180px, 24px 24px, 24px 24px;
}
.plan .dessin { position: absolute; left: 7%; top: 9%; width: 86%; height: 72%; opacity: .85; }
.plan-cartouche { position: absolute; left: 0; bottom: 0; display: grid; gap: 6px; max-width: 82%; padding: 14px 20px 16px; background: var(--blanc); border-top: 1px solid var(--trait-fort); border-right: 1px solid var(--trait-fort); }
.plan-sigle { font-size: clamp(1.5rem, 2.8vw, 2.6rem); font-weight: 300; font-stretch: 120%; letter-spacing: -.02em; line-height: 1; }
.plan-legende { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); max-width: 34ch; }
.plan-coin { position: absolute; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--gris); }
.plan-coin-hg { top: 14px; left: 16px; }
.carte-projet-media .plan-coin-hg { left: auto; right: 16px; }
.exp-visuel .plan-cartouche, .panneau-image .plan-cartouche { display: none; }
.panneau-image .plan .dessin { top: 6%; height: 88%; }

/* --- Fiche d'une réalisation ------------------------------------------------------- */

.projet-grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.fiche { position: sticky; top: calc(var(--entete) + 32px); border: 1px solid var(--trait-fort); }
.fiche-titre { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--encre); color: var(--blanc); font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.fiche-liste > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-top: 1px solid var(--trait); }
.fiche-liste > div:first-child { border-top: 0; }
.fiche-liste dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); padding-top: .3em; }
.fiche-liste dd { font-size: 15.5px; line-height: 1.45; }
.fiche-liste a { color: var(--bleu); text-decoration: underline; text-underline-offset: .2em; }
.projet-chiffre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--trait); }
.projet-chiffre strong { font-size: clamp(4.5rem, 10vw, 9rem); font-weight: 300; font-stretch: 120%; letter-spacing: -.05em; line-height: .85; color: var(--bleu); }
.projet-chiffre span { font-size: 1.15rem; color: var(--gris); max-width: 22ch; }
.perimetre { margin-top: 56px; }
.donnees { margin-top: 48px; }
.donnees-liste > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--trait); }
.donnees-liste > div:last-child { border-bottom: 1px solid var(--trait); }
.donnees-liste dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); padding-top: .3em; }
.donnees-liste dd { font-size: 16px; line-height: 1.45; }
@media (max-width: 640px) { .donnees-liste > div { grid-template-columns: 1fr; } }
.perimetre-titre { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bleu); margin-bottom: 18px; }

.galerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.galerie-element { position: relative; overflow: hidden; grid-column: span 6; aspect-ratio: 4 / 3; background: var(--encre); cursor: zoom-in; }
.galerie-element:nth-child(5n + 1) { grid-column: span 7; }
.galerie-element:nth-child(5n + 2) { grid-column: span 5; }
.galerie-element:nth-child(5n + 3), .galerie-element:nth-child(5n + 4), .galerie-element:nth-child(5n + 5) { grid-column: span 4; }
.galerie-element:nth-child(5n + 1):last-child { grid-column: span 12; aspect-ratio: 21 / 9; }
.galerie-element:nth-child(5n + 2):last-child { grid-column: span 5; }
.galerie-element:nth-child(5n + 3):nth-last-child(2), .galerie-element:nth-child(5n + 4):last-child { grid-column: span 6; }
.galerie-element img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--courbe); }
.galerie-loupe { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--blanc); color: var(--encre); transform: scale(.6); opacity: 0; transition: transform .5s var(--courbe), opacity .4s; }
.galerie-element:hover .galerie-loupe, .galerie-element:focus-visible .galerie-loupe { transform: none; opacity: 1; }

.visionneuse { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(8, 15, 27, .96); color: var(--blanc); padding: 64px 72px; opacity: 0; transition: opacity .4s; }
.visionneuse.est-ouverte { opacity: 1; }
.visionneuse img { max-width: 100%; max-height: calc(100vh - 128px); width: auto; height: auto; object-fit: contain; }
.visionneuse button { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--trait-clair); transition: background .3s; }
.visionneuse button:hover { background: rgba(255, 255, 255, .12); }
.visionneuse-fermer { top: 16px; right: 16px; }
.visionneuse-prec { left: 16px; top: 50%; margin-top: -26px; }
.visionneuse-suiv { right: 16px; top: 50%; margin-top: -26px; }
.visionneuse-compte { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }

.suivant { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: clamp(320px, 48vh, 540px); background-color: var(--papier); background-image: var(--grain); color: var(--encre); border-top: 1px solid var(--trait); }
.suivant-media { position: relative; order: 2; overflow: hidden; min-height: 280px; }
.suivant-media img, .suivant-media .plan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--courbe); }
.suivant:hover .suivant-media img, .suivant:hover .suivant-media .plan { transform: none; }
.suivant-contenu { display: grid; justify-items: start; align-content: center; gap: 18px; padding-block: clamp(40px, 5vw, 80px); }
.suivant-titre { font-size: clamp(2rem, 4.2vw, 3.8rem); font-weight: 600; font-stretch: 112%; letter-spacing: -.025em; line-height: 1; max-width: 14ch; transition: color .3s; }
.suivant:hover .suivant-titre { color: var(--bleu); }
.suivant-fleche { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid var(--trait-fort); border-radius: 50%; transition: background .4s, color .4s, border-color .4s, transform .6s var(--courbe); }
.suivant-fleche .icone { width: 26px; height: 26px; }
.suivant:hover .suivant-fleche { background: var(--encre); border-color: var(--encre); color: var(--blanc); transform: translateX(10px); }

/* --- Expertises : liste en bandes et page détaillée --------------------------------- */

.bande { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 104px); align-items: center; padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--trait); }
.bande:first-child { border-top: 0; padding-top: 0; }
.bande-inverse .bande-media { order: 2; }
.bande-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--encre); }
.bande-media img, .bande-media .plan { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--courbe); }
.bande-titre { margin-top: 20px; font-size: clamp(1.9rem, 3.2vw, 3rem); }
.bande-titre a { transition: color .3s; }
.bande-titre a:hover { color: var(--bleu); }
.bande-chapo { margin-top: 18px; font-size: 1.15rem; color: var(--gris); max-width: 42ch; }
.bande-liste { margin-top: 24px; display: grid; gap: 10px; }
.bande-liste li { display: flex; gap: 14px; align-items: baseline; font-size: 15.5px; }
.bande-liste li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--bleu); transform: translateY(-2px); }
.bande-texte .lien-fleche { margin-top: 32px; }

.prestations-grille { display: grid; grid-template-columns: repeat(var(--colonnes, 2), minmax(0, 1fr)); gap: clamp(40px, 5vw, 88px); }
.prestations-titre { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; font-stretch: 108%; line-height: 1.15; }
.prestations-titre span { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--bleu); }

.autres-expertises { border-top: 1px solid var(--trait); padding-block: 48px 64px; }
.autres-expertises ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 20px; }
.autres-expertises a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--trait-fort); transition: color .3s; }
.autres-expertises a:hover { color: var(--bleu); }
.autres-num { font-family: var(--mono); font-size: 12px; color: var(--gris); }
.autres-nom { font-size: 1.25rem; font-weight: 600; font-stretch: 106%; }
.autres-expertises .icone { transition: transform .5s var(--courbe); }
.autres-expertises a:hover .icone { transform: rotate(45deg); }

/* --- Le BET ------------------------------------------------------------------------ */

.equipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 40px); margin-top: clamp(48px, 5vw, 80px); }
.membre-nom { align-self: end; }
.membre-role { align-self: start; }
.membre { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-content: center; column-gap: 18px; row-gap: 4px; padding-top: 22px; border-top: 1px solid var(--trait-fort); }
.membre-visuel {
	position: relative; display: grid; place-items: center; width: 72px; aspect-ratio: 1; overflow: hidden; grid-row: span 2;
	background-color: var(--papier);
	background-image: linear-gradient(var(--trait) 1px, transparent 1px), linear-gradient(90deg, var(--trait) 1px, transparent 1px);
	background-size: 12px 12px;
}
.membre-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.membre-repere { font-size: 1.5rem; font-weight: 300; font-stretch: 125%; letter-spacing: -.04em; color: var(--encre); transition: color .5s, transform 1s var(--courbe); }
.membre:hover .membre-repere { color: var(--bleu); transform: scale(1.04); }
.membre-axe { display: none; }
.membre-nom { font-size: 1.2rem; font-weight: 600; font-stretch: 106%; line-height: 1.2; }
.membre-role { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }

.implantations-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--trait-fort); }
.implantation { padding: 40px 32px 16px 0; }
.implantation + .implantation { padding-left: 32px; border-left: 1px solid var(--trait); }
.implantation-echelle { font-family: var(--mono); font-size: 12px; color: var(--bleu); }
.implantation-nom { margin-top: 26px; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 500; font-stretch: 114%; letter-spacing: -.02em; line-height: 1.05; }
.implantation-texte { margin-top: 16px; color: var(--gris); font-size: 16px; max-width: 36ch; }

/* --- Méthode ------------------------------------------------------------------------- */

.parcours { position: relative; }
.parcours::before { content: ""; position: absolute; left: calc(clamp(104px, 14vw, 192px) / 2); top: 0; bottom: 0; width: 1px; background: var(--trait-fort); }
.parcours-etape { position: relative; display: grid; grid-template-columns: clamp(104px, 14vw, 192px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(36px, 5vw, 64px); }
.parcours-etape:first-child { padding-top: 0; }
.parcours-num {
	position: relative; z-index: 1; justify-self: center; align-self: start;
	font-size: clamp(3rem, 6.5vw, 6rem); font-weight: 300; font-stretch: 122%; letter-spacing: -.04em; line-height: .9;
	background: var(--blanc); padding-block: 10px; color: transparent; -webkit-text-stroke: 1px var(--encre);
	transition: color 1s var(--courbe-douce), -webkit-text-stroke-color 1s;
}
.parcours-etape.est-visible .parcours-num { color: var(--bleu); -webkit-text-stroke-color: var(--bleu); transition-delay: .3s; }
.parcours-corps { padding-top: 10px; border-top: 1px solid var(--trait); }
.parcours-etape:first-child .parcours-corps { border-top: 0; }
.parcours-titre { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 600; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.08; padding-top: 14px; }
.parcours-texte { margin-top: 18px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--gris); max-width: 58ch; }

/* --- Contact -------------------------------------------------------------------------- */

.contact-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: calc(var(--entete) + clamp(40px, 6vw, 96px)) clamp(64px, 8vw, 128px); }
.contact-hero-dessin {
	position: absolute; z-index: -1; left: -6%; bottom: -4%; width: min(56%, 820px); color: var(--encre); opacity: .16; pointer-events: none;
	-webkit-mask-image: linear-gradient(0deg, #000 40%, transparent 100%); mask-image: linear-gradient(0deg, #000 40%, transparent 100%);
}
.contact-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact-intro { position: sticky; top: calc(var(--entete) + 32px); }
.contact-titre { margin-top: 22px; font-size: clamp(2.6rem, 5vw, 5rem); max-width: 11ch; }
.contact-chapo { margin-top: 24px; max-width: 42ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--gris); }
.contact-direct { margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--trait-fort); }
.contact-ligne { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 6px 16px; padding: 20px 0; border-bottom: 1px solid var(--trait); }
.contact-ligne dt { display: flex; align-items: center; gap: 10px; padding-top: .45em; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.contact-ligne dt .icone { width: 16px; height: 16px; color: var(--bleu); flex: none; }
.contact-ligne dd { grid-column: 2; }
.contact-ligne dd span { margin-left: 10px; font-size: 14px; color: var(--gris); }
.contact-ligne address { line-height: 1.55; }
.contact-grand { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; font-stretch: 108%; letter-spacing: -.01em; transition: color .3s; }
.contact-grand:hover { color: var(--bleu); }
.contact-itineraire { margin-top: 14px; font-size: 14px; }

.contact-panneau {
	position: relative; background: var(--blanc); border: 1px solid var(--trait-fort);
	padding: 0 clamp(20px, 3vw, 44px) clamp(24px, 3vw, 44px); box-shadow: 0 60px 100px -60px rgba(11, 21, 36, .42);
}
.contact-panneau::before, .contact-panneau::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--encre); pointer-events: none; }
.contact-panneau::before { top: -8px; left: -8px; border-top-width: 2px; border-left-width: 2px; }
.contact-panneau::after { right: -8px; bottom: -8px; border-right-width: 2px; border-bottom-width: 2px; }
.contact-panneau-tete {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	margin-inline: calc(-1 * clamp(20px, 3vw, 44px)); padding: 14px clamp(20px, 3vw, 44px);
	border-bottom: 1px solid var(--trait-fort); font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris);
}
.contact-panneau-tete { color: var(--bleu); }

.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-top: 30px; position: relative; }
.champ { display: grid; gap: 8px; align-content: start; }
.champ-large, .champ-choix, .formulaire-pied { grid-column: 1 / -1; }
.champ label, .champ legend { font-size: 14px; font-weight: 600; letter-spacing: .01em; transition: color .3s; }
.champ:focus-within > label { color: var(--bleu); }
.facultatif { font-weight: 400; color: var(--gris); }
.champ-aide { font-size: 14px; color: var(--gris); }
.champ input, .champ textarea {
	width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--trait-fort); border-radius: 0; background: transparent;
	font: inherit; font-size: 17px; color: var(--encre); transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.champ textarea { resize: vertical; min-height: 140px; border: 1px solid var(--trait-fort); padding: 14px 16px; background: #fcfbf9; }
.champ input:hover, .champ textarea:hover { border-color: var(--encre); }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 1px 0 0 var(--bleu); }
.champ textarea:focus { box-shadow: inset 0 0 0 1px var(--bleu); background: var(--blanc); }
.champ-choix { border: 0; padding: 0; margin: 0; min-width: 0; }
.champ-choix legend { margin-bottom: 12px; padding: 0; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-option { position: relative; }
.choix-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choix-option span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--trait-fort); font-size: 15px; transition: background .3s, color .3s, border-color .3s; }
.choix-option input:hover + span { border-color: var(--encre); }
.choix-option input:checked + span { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.choix-option input:focus-visible + span { outline: 2px solid var(--bleu-vif); outline-offset: 2px; }
.champ-erreur { display: none; font-size: 14px; color: var(--rouge); }
.champ [aria-invalid="true"] { border-color: var(--rouge); }
.champ-choix:has([aria-invalid="true"]) .choix-option span { border-color: var(--rouge); }
.champ:has([aria-invalid="true"]) .champ-erreur { display: block; animation: apparition-message .4s var(--courbe) both; }
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 6px; }
.formulaire-note { font-size: 13.5px; color: var(--gris); }
.bouton.est-en-cours { pointer-events: none; }
.bouton.est-en-cours::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blanc); transform-origin: left; animation: chargement 1.1s var(--courbe-douce) infinite; }
@keyframes chargement { from { transform: scaleX(0); opacity: 1; } to { transform: scaleX(1); opacity: .2; } }
.message { position: relative; margin-top: 24px; padding: 16px 20px; border-left: 3px solid; font-weight: 500; line-height: 1.5; animation: apparition-message .6s var(--courbe) both; }
.message:focus { outline: none; }
.message-succes { border-color: var(--vert); background: #e8f4ee; color: #12492e; padding-left: 52px; }
.message-succes::before { content: ""; position: absolute; left: 20px; top: 21px; width: 14px; height: 8px; border-left: 2px solid; border-bottom: 2px solid; transform: rotate(-45deg); }
.message-erreur { border-color: var(--rouge); background: #fbecea; color: #7c1d16; }
@keyframes apparition-message { from { opacity: 0; transform: translateY(8px); } }

.contact-carte-section { padding-block: clamp(56px, 7vw, 112px); }
.carte {
	position: relative; width: 100%; aspect-ratio: 21 / 8; min-height: 380px; overflow: hidden; border: 1px solid var(--trait-fort);
	background-color: var(--papier);
	background-image: var(--grain), linear-gradient(var(--quadrillage) 1px, transparent 1px), linear-gradient(90deg, var(--quadrillage) 1px, transparent 1px);
	background-size: 180px 180px, 24px 24px, 24px 24px;
}
.carte-fond { position: absolute; inset: 4% 3%; color: var(--encre); opacity: .45; }
.carte-fond .dessin { width: 100%; height: 100%; }
.carte-legende { position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); display: grid; gap: 16px; max-width: calc(100% - 32px); padding: 22px 26px; background: var(--blanc); border: 1px solid var(--trait-fort); box-shadow: 0 30px 60px -40px rgba(11, 21, 36, .4); }
.carte-titre { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.carte-titre .icone { width: 16px; height: 16px; color: var(--bleu); }
.carte-adresse { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; font-stretch: 106%; line-height: 1.35; }
.carte-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.carte-note { font-family: var(--mono); font-size: 11px; color: var(--gris); }
.carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carte.est-chargee .carte-legende, .carte.est-chargee .carte-fond { display: none; }

/* --- Pagination ---------------------------------------------------------------------- */

.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--trait-fort); font-family: var(--mono); font-size: 13px; }
.pagination .page-numbers.current { background: var(--encre); color: var(--blanc); border-color: var(--encre); }

/* --- Transitions entre pages --------------------------------------------------------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s var(--courbe-douce) both sortie-page; }
::view-transition-new(root) { animation: .55s var(--courbe) both entree-page; }
@keyframes sortie-page { to { opacity: 0; transform: translateY(-12px); } }
@keyframes entree-page { from { opacity: 0; transform: translateY(18px); } }

/* --- Écrans moyens ------------------------------------------------------------------- */

@media (max-width: 1240px) {
	.entete-tel { display: none; }
	.hero-contenu { padding-right: calc(var(--gouttiere) + 340px); }
	.cartouche { width: 310px; }
}

@media (max-width: 1100px) {
	:root { --entete: 72px; }
	.nav, .entete-bouton { display: none; }
	.burger { display: inline-flex; }
	.hero-contenu { padding-right: var(--gouttiere); padding-bottom: 140px; }
	.cartouche { left: var(--gouttiere); right: var(--gouttiere); bottom: 28px; width: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: none; backdrop-filter: none; border: 0; border-top: 1px solid rgba(255, 255, 255, .3); }
	.cartouche-ligne { border: 0; }
	.cartouche-ligne:not(.cartouche-vue), .cartouche-cle { display: none; }
	.cartouche-vue { grid-template-columns: 1fr; }
	.cartouche-val { min-height: 0; padding-left: 0; }
	.cartouche-barres { width: 140px; border: 0; padding: 0; }
	.chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
	.chiffre:nth-child(3) { padding-left: 0; border-left: 0; }
	.chiffre:nth-child(3) .chiffre-axe { left: 0; }
	.etapes { grid-template-columns: 1fr; gap: 0; }
	.etapes::before, .etapes::after { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
	.etapes::after { width: 2px; left: 21.5px; transform: scaleY(var(--progression, 0)); transform-origin: top; }
	.etape { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 24px; padding-bottom: 36px; }
	.etape-repere { grid-row: span 2; }
	.etape-titre { margin-top: 8px; }
	.pied-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact-grille { grid-template-columns: 1fr; }
	.contact-intro { position: static; }
	.implantations-liste { grid-template-columns: 1fr; }
	.implantation, .implantation + .implantation { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--trait); }
}

/* --- Tablettes et téléphones ------------------------------------------------------- */

@media (max-width: 960px) {
	body { font-size: 16px; }
	.feuille { margin-top: -40px; }
	.feuille-grille, .expertises-grille, .intro-grille, .projet-grille, .contact-grille, .bande { grid-template-columns: 1fr; }
	.feuille-photo { margin-top: 0; max-width: 520px; }
	.expertises-visuel { display: none; }
	.exp-ligne.est-active .exp-corps { transform: none; }
	.intro-marge, .fiche, .contact-coordonnees { position: static; }
	.titre-section { grid-template-columns: 1fr; }
	.titre-section .lien-fleche { justify-self: start; }
	.volets { flex-direction: column; height: auto; gap: 8px; }
	.volet { flex: none; height: 84px; transition: height .9s var(--courbe); }
	.volet.est-actif { flex: none; height: min(480px, 72vh); }
	.volet-tranche { flex-direction: row; justify-content: flex-start; gap: 18px; padding: 0 20px; }
	.volet-nom-vertical { writing-mode: horizontal-tb; transform: none; font-size: 17px; max-width: calc(100% - 80px); }
	.carte-projet, .carte-grande, .carte-moyenne, .carte-haute, .grille-projets-compacte .carte-projet, .grille-projets-compacte .carte-projet:only-child { grid-column: span 12; }
	.actus-grille, .actus-grille-page, .actus-grille-deux { grid-template-columns: 1fr; }
	.actus-grille-page .carte-actu-une { grid-column: auto; }
	.carte-actu-une { grid-row: auto; }
	.prestations-grille { grid-template-columns: 1fr; }
	.autres-expertises ul { grid-template-columns: 1fr; }
	.equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bande-inverse .bande-media { order: 0; }
	.galerie-element, .galerie-element:nth-child(n), .galerie-element:nth-child(n):last-child { grid-column: span 12; aspect-ratio: 4 / 3; }
	.entete-page-grille { grid-template-columns: 1fr; }
	.entete-page-dessin, .entete-photo .entete-page-dessin { left: auto; right: -12%; top: auto; bottom: 0; width: 110%; height: 64%; opacity: .26; }
	.entete-page-photo { margin-bottom: 0; max-width: 520px; }
	.entete-page-bandeau-cadre { aspect-ratio: 16 / 10; }
	.cta-dessin { top: 40%; bottom: 0; right: -20%; width: 130%; opacity: .22; }
	.suivant { grid-template-columns: 1fr; }
	.suivant-media { order: 0; aspect-ratio: 16 / 10; min-height: 0; }
	.carte { aspect-ratio: auto; min-height: 440px; }
	.pied-dessin { width: 120%; right: -30%; }
	.panneau { display: none; }
}

@media (max-width: 640px) {
	:root { --entete: 64px; }
	.marque-picto img { height: 30px; }
	.marque-mot img { height: 13px; }
	.burger-libelle { display: none; }
	.hero { min-height: max(600px, 100svh); }
	.hero-contenu { padding-bottom: 124px; }
	.hero-titre { font-size: clamp(2.1rem, 10vw, 3rem); }
	.hero-actions { gap: 18px 28px; }
	.hero-actions .bouton { width: 100%; }
	.trame circle, .trame text { display: none; }
	.carte-haute .carte-projet-media { aspect-ratio: 4 / 3; }
	.cartouche-barres { width: 144px; }
	.chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
	.chiffre, .chiffre + .chiffre { padding-left: 0; border-left: 0; }
	.chiffre + .chiffre .chiffre-axe { left: 0; }
	.chiffre-valeur { font-size: clamp(3rem, 15vw, 4.2rem); }
	.exp-lien { grid-template-columns: 36px minmax(0, 1fr) 40px; padding: 24px 0; gap: 12px; }
	.exp-fleche { width: 40px; height: 40px; }
	.carte-actu:not(.carte-actu-une) .carte-actu-lien { grid-template-columns: 1fr; }
	.formulaire { grid-template-columns: 1fr; }
	.equipe { grid-template-columns: 1fr; }
	.pied-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; font-size: 14px; }
	.contact-ligne { grid-template-columns: 1fr; padding: 18px 0; }
	.contact-ligne dd { grid-column: auto; }
	.formulaire-pied .bouton { width: 100%; }
	.carte-legende { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
	.fiche-liste > div { grid-template-columns: 84px minmax(0, 1fr); }
	.parcours::before { left: 34px; }
	.parcours-etape { grid-template-columns: 68px minmax(0, 1fr); gap: 18px; }
	.visionneuse { padding: 64px 12px; }
	.visionneuse-prec, .visionneuse-suiv { top: auto; bottom: 12px; margin-top: 0; }
	.cta-bas .bouton { width: 100%; }
}

/* --- Mouvement réduit ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.js [data-reveal], .js [data-mots], .js .hero :is(.hero-surtitre, .hero-titre, .hero-accroche, .hero-actions, .cartouche) { opacity: 1; transform: none; animation: none !important; }
	.js img.dessin-anime { clip-path: none; }
	.haut-de-page { transition: none; }
}

/* --- Sélecteur de langue ------------------------------------------------------------ */

.langues { display: flex; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.langues li + li::before { content: "/"; margin: 0 6px; opacity: .4; }
.langues a { display: inline-grid; place-items: center; min-width: 28px; min-height: 44px; opacity: .55; transition: opacity .3s; }
.langues a:hover, .langues a[aria-current] { opacity: 1; }
.langues a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.langues-mobile { font-size: 14px; }
@media (max-width: 1100px) { .langues-entete { display: none; } }

/* Le premier repère d'axe tomberait sous le surtitre de la première section. */
.trame-hero .trame-axe:first-child circle, .trame-hero .trame-axe:first-child text { display: none; }

/* --- Défilement, en-tête, haut de page -------------------------------------------------- */

/* Défilement lissé (Lenis) : le navigateur ne doit pas lisser une seconde fois. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Sur ordinateur, l'en-tête reste en haut de la page et part avec elle, comme sur la référence.
   Sur tablette et téléphone, il reste à portée de pouce (masqué en descendant, rappelé en remontant). */
@media (min-width: 1101px) {
	.entete { position: absolute; transform: none !important; }
	.entete.est-defile .entete-barre { height: var(--entete); }
	.entete.est-defile:not(.panneau-ouvert) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
	.entete-sur-image .entete.est-defile:not(.panneau-ouvert) { color: var(--blanc); }
	.entete-sur-image .entete.est-defile:not(.panneau-ouvert) .sur-sombre { opacity: 1; }
	.entete-sur-image .entete.est-defile:not(.panneau-ouvert) .sur-clair { opacity: 0; }
	.entete-sur-image .entete.est-defile:not(.panneau-ouvert) .entete-bouton { --fond: var(--blanc); --texte: var(--encre); }
}

.haut-de-page {
	position: fixed; right: 24px; bottom: 24px; z-index: 65; width: 52px; height: 52px; display: grid; place-items: center;
	border-radius: 50%; background: var(--bleu); color: var(--blanc); box-shadow: 0 10px 24px -10px rgba(11, 21, 36, .5);
	transform: translateX(calc(100% + 40px)); transition: transform .3s ease, background-color .3s ease;
}
.haut-de-page.est-visible { transform: none; }
.haut-de-page:hover, .haut-de-page:focus-visible { background: var(--encre); }
.menu-ouvert .haut-de-page { transform: translateX(calc(100% + 40px)); }
@media (max-width: 640px) { .haut-de-page { right: 16px; bottom: 16px; width: 46px; height: 46px; } }

.contenu:focus { outline: none; }

/* --- Appel à contacter sur la photo de l'immeuble du bureau ------------------------------
   Ordinateur : bandeau bleu, texte à gauche ; la photo de l'immeuble occupe la moitié droite en pleine hauteur
   et défile un peu moins vite. Téléphone et tablette : la photo passe en tête du bloc, cadrée sur l'immeuble entier.
   Le repère est dans un calque de même géométrie que la photo : --x et --y sont en % de la photo, il reste donc
   sur la façade quelle que soit la taille d'écran. */
.cta-photo { padding: clamp(40px, 5vw, 80px) var(--gouttiere); background: var(--blanc); border-top: 0; color: var(--blanc); }
.cta-photo .cta-contenu {
	position: relative; isolation: isolate; overflow: hidden; max-width: var(--max-large);
	min-height: clamp(420px, 40vw, 600px); display: flex; flex-direction: column; justify-content: center;
	padding: clamp(40px, 5vw, 80px) clamp(24px, 5vw, 80px); background: var(--bleu);
}
.cta-photo .cta-contenu > .surtitre, .cta-photo .cta-titre, .cta-photo .cta-bas { position: relative; z-index: 1; max-width: 54%; }
.cta-photo-media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 0; overflow: hidden; container-type: size; }
.cta-photo-image { position: absolute; inset: -14% 0; pointer-events: none; }
.cta-photo-cadre {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: max(100cqw, 100cqh * 1.3 * var(--ratio-photo, .75)); aspect-ratio: var(--ratio-photo, .75);
}
.cta-photo-cadre img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cta-photo-fondu {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, var(--bleu) 0%, rgba(29, 86, 201, .55) 12%, rgba(29, 86, 201, 0) 34%);
}
.cta-photo-calque .cta-repere { pointer-events: auto; }
.cta-photo .surtitre { color: rgba(255, 255, 255, .82); }
.cta-photo .cta-titre { color: var(--blanc); }
.cta-photo .cta-tel-nom { color: rgba(255, 255, 255, .72); }
.cta-photo .cta-tels a:hover .cta-tel-num { color: var(--blanc); }
.cta-photo .bouton-clair { --survol: var(--encre); }
.cta-repere {
	position: absolute; left: var(--x); top: var(--y); z-index: 2; margin: 0;
	display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translate(-50%, -9px);
}
.cta-repere-point { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blanc); box-shadow: 0 0 0 4px rgba(29, 86, 201, .95), 0 6px 16px rgba(11, 21, 36, .45); }
.cta-repere-point::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--blanc); animation: repere-onde 2.4s ease-out infinite; }
@keyframes repere-onde { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.cta-repere-etiquette {
	display: grid; gap: 3px; padding: 10px 14px; background: var(--blanc); color: var(--encre); text-align: center;
	box-shadow: 0 14px 30px -12px rgba(11, 21, 36, .55); line-height: 1.25; width: max-content; max-width: min(300px, 84cqw);
}
.cta-repere-etiquette strong { font-size: 15px; font-weight: 600; }
.cta-repere-etiquette span { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--gris); }
.cta-itineraire { color: var(--blanc); font-size: 14px; }
.cta-itineraire .icone { width: 16px; height: 16px; }
.cta-credit { position: absolute; right: 16px; bottom: 12px; z-index: 1; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
@media (max-width: 960px) {
	/* La photo devient une image en tête du bloc : carrée sur téléphone, plus large sur tablette. */
	.cta-photo .cta-contenu { --ratio: 1; container-type: inline-size; min-height: 0; justify-content: flex-start; padding-top: 0; }
	.cta-photo .cta-contenu > .surtitre, .cta-photo .cta-titre, .cta-photo .cta-bas { max-width: none; }
	.cta-photo-media {
		position: relative; top: auto; right: auto; bottom: auto; flex: none;
		width: calc(100% + 2 * clamp(24px, 5vw, 80px)); margin: 0 calc(-1 * clamp(24px, 5vw, 80px)) 32px;
		aspect-ratio: var(--ratio);
	}
	.cta-photo-image { inset: 0; transform: none !important; }
	.cta-photo-fondu { background: linear-gradient(180deg, rgba(29, 86, 201, 0) 66%, rgba(29, 86, 201, .55) 90%, var(--bleu) 100%); }
	.cta-credit { bottom: auto; top: calc(100cqw / var(--ratio) - 26px); }
}
@media (min-width: 600px) and (max-width: 960px) {
	.cta-photo .cta-contenu { --ratio: 1.3; }
}
