/* Les Contractants : maquette V3 (base V2, corrigée ; thème clair et sombre) */

/* Instrument Sans, police unique du site (titres et texte), graisses 400 à 700, hébergée dans le thème. */
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-var-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- Couleurs ---------- */
:root {
	color-scheme: light;
	/* Typographie : deux familles, une échelle. Changer de police = ces deux lignes (et les @font-face en tête de fichier). */
	--font-title: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fw-text: 400; --fw-strong: 600; --fw-title: 700; --fw-display: 700;
	/* Titres : 700 sur fond clair ou jaune, 600 sur fond sombre (du clair sur du sombre paraît plus gras à graisse égale). */
	/* Titres : hero de l'accueil, titre de page, de section, secondaire, de bloc. */
	--fs-hero: clamp(42px, 6vw, 84px);
	--fs-page: clamp(40px, 6vw, 68px);
	/* Titre long d'une réalisation, sur téléphone seulement. */
	--fs-page-long: clamp(26px, 7.5vw, 34px);
	--fs-section: clamp(30px, 4.2vw, 48px);
	--fs-sub: clamp(24px, 2.8vw, 32px);
	--fs-bloc: clamp(22px, 2vw, 24px);
	/* Texte : chapô, texte de lecture, texte, petit texte, étiquette en capitales. Rien sous 14 px hors étiquettes. */
	--fs-lead: clamp(18px, 1.6vw, 20px);
	--fs-read: 18px;
	--fs-text: 16px;
	--fs-small: 14px;
	--fs-label: 13px;
	--ls-label: 0.14em;
	/* Resserrement des titres : il dépend de la police. Réglé pour Instrument Sans. */
	--ls-page: -0.02em;
	--ls-section: -0.01em;
	--ls-bloc: 0em;
	/* Hauteur du header collé en haut (72 px + son filet) : les ancres s'arrêtent dessous. */
	--header-h: 73px;
	--bg: #F7F6F3;
	--surface: #FFFFFF;
	--surface-2: #ECE9E2;
	--ink: #1C1C1B;
	--ink-2: #3D3D3A;
	--ink-3: #5A5A57;
	--line: #E2DFD8;
	--line-strong: #8A877F;
	--accent: #F8C03E; /* jaune miel vif de l'interface, à mi-chemin du miel #F0C35A et du logo ; le logo garde #FFBC00 */
	--on-accent: #1C1C1B;
	--hover: #6B4E00;
	--focus: #1C1C1B;
	--error: #A3241B;
	--panel: #1C1C1B;
	--panel-card: #2A2A28;
	--panel-line: #45453F;
	--btn-ink-bg: #1C1C1B;
	--btn-ink-fg: #FFFFFF;
	/* Tuile ou bloc qui s'inverse au survol : fond, titre, texte. */
	--inv-bg: #1C1C1B; --inv-title: var(--accent); --inv-text: #E7E4DC;
	--logo-invert: 0;
}
:root[data-theme="dark"] {
	--fw-title: 600;
	color-scheme: dark;
	--bg: #242422;
	--surface: #363633;
	--surface-2: #2A2A28;
	--ink: #F2F0EA;
	--ink-2: #CFCCC4;
	--ink-3: #B3B0A8;
	--line: #3D3D39;
	--line-strong: #8A877F;
	--hover: var(--accent);
	--focus: var(--accent);
	--error: #FFB4AB;
	--panel: #1C1C1B;
	--panel-card: #2A2A28;
	--panel-line: #45453F;
	--btn-ink-bg: #F2F0EA;
	--btn-ink-fg: #242422;
	--inv-bg: var(--accent); --inv-title: #1C1C1B; --inv-text: #1C1C1B;
	--logo-invert: 1;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--fw-title: 600;
		color-scheme: dark;
		--bg: #242422;
		--surface: #363633;
		--surface-2: #2A2A28;
		--ink: #F2F0EA;
		--ink-2: #CFCCC4;
		--ink-3: #B3B0A8;
		--line: #3D3D39;
		--line-strong: #8A877F;
		--hover: var(--accent);
		--focus: var(--accent);
		--error: #FFB4AB;
		--panel: #1C1C1B;
		--panel-card: #2A2A28;
		--panel-line: #45453F;
		--btn-ink-bg: #F2F0EA;
		--btn-ink-fg: #242422;
		--inv-bg: var(--accent); --inv-title: #1C1C1B; --inv-text: #1C1C1B;
		--logo-invert: 1;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px)); }
/* Sous 600 px, la barre d'admin défile avec la page : seul le header reste collé. */
@media (max-width: 600px) { html { scroll-padding-top: var(--header-h); } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--fs-text); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 8px; font-weight: var(--fw-strong); }
.skip:focus { top: 12px; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }
.sec { padding-block: clamp(44px, 5.6vw, 72px); }
.sec--first { padding-top: clamp(28px, 3.6vw, 48px); }
/* Deux sections de même fond qui se suivent : un seul espace entre elles, pas deux. */
.sec:not(.sec--white, .sec--soft, .panel) + .sec:not(.sec--white, .sec--soft, .panel) { padding-top: 0; }
.sec--white { background: var(--surface); }
.sec--soft { background: var(--surface-2); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 24px); }
.split { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; justify-content: space-between; }

h1, h2, h3, .num { font-family: var(--font-title); }
/* Lignes équilibrées : un titre ne laisse jamais un mot seul sur sa dernière ligne. */
h1, h2, h3 { text-wrap: balance; }
h1 { font-weight: var(--fw-display); font-size: var(--fs-page); line-height: 1; letter-spacing: var(--ls-page); }
h2 { font-weight: var(--fw-title); font-size: var(--fs-section); line-height: 1.05; letter-spacing: var(--ls-section); }
h3 { font-weight: var(--fw-title); font-size: var(--fs-bloc); line-height: 1.2; }
/* Un rôle = une taille. La balise (h2, h3…) dit la structure, la classe dit l'allure quand elles diffèrent. */
.t-section { font-size: var(--fs-section); line-height: 1.05; letter-spacing: var(--ls-section); }
.t-sub { font-size: var(--fs-sub); line-height: 1.1; letter-spacing: var(--ls-section); }
.t-bloc { font-size: var(--fs-bloc); line-height: 1.2; letter-spacing: var(--ls-bloc); }
.t-small { font-size: var(--fs-small); }
strong, b { font-weight: var(--fw-strong); }
.kicker { font-family: var(--font-text); font-size: var(--fs-label); font-weight: var(--fw-strong); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-3); }
/* Sur-titre de section (Conception, Réalisation, Notre méthode, Le mot du président) : la taille et la graisse de l'étiquette
   « Notre engagement » des encarts jaunes. Celui du hero reste un .kicker simple. */
.kicker--strong { font-size: var(--fs-text); font-weight: var(--fw-display); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); }
/* Chapô d'un en-tête de page, à côté ou sous le titre : un cran au-dessus, pour tenir face au h1. */
.lead--page { font-size: var(--fs-bloc); line-height: 1.4; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); color: var(--ink-3); }
.mark { background: linear-gradient(transparent 62%, var(--accent) 62%); padding: 0 4px; }
:root[data-theme="dark"] .mark { background: none; color: var(--accent); padding: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark { background: none; color: var(--accent); padding: 0; } }

/* Sections sombres (dans les deux thèmes) et bandeau jaune : elles redéfinissent les couleurs de base */
.panel, .hero { --fw-title: 600; --bg: var(--panel); --surface: var(--panel-card); --ink: #FFFFFF; --ink-2: #CFCCC4; --ink-3: #CFCCC4; --line: var(--panel-line); --hover: var(--accent); --focus: var(--accent); --btn-ink-bg: #FFFFFF; --btn-ink-fg: #1C1C1B; --inv-bg: var(--accent); --inv-title: #1C1C1B; --inv-text: #1C1C1B; background: var(--bg); color: var(--ink); }
.panel .kicker--accent, .panel .num--accent { color: var(--accent); }
/* Sur-titre accentué : jaune sur tout fond sombre, mode sombre compris ; gris sur fond clair (jamais de texte jaune sur fond clair). */
:root[data-theme="dark"] .kicker--accent { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker--accent { color: var(--accent); } }
.band { --fw-title: 700; --ink: #1C1C1B; --focus: #1C1C1B; --btn-ink-bg: #1C1C1B; --btn-ink-fg: #FFFFFF; background: var(--accent); color: var(--ink); }
.band .wrap { padding-block: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 28px 32px; justify-content: space-between; align-items: center; }
.band h2 { line-height: 1; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font-weight: var(--fw-strong); cursor: pointer; text-align: center; transition: background-color .15s, color .15s, border-color .15s; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
/* Survol inversé, comme le bouton à contour : fond foncé, texte et liseré au jaune du logo (10,1:1). Jamais de texte blanc sur jaune (1,7:1). */
.btn--accent:hover { background: #1C1C1B; color: #FFBC00; border-color: #FFBC00; }
/* Bouton plein : au survol il devient le bouton à contour, et le bouton à contour devient plein (les deux s'échangent). */
.btn--ink { background: var(--btn-ink-bg); color: var(--btn-ink-fg); border-color: var(--btn-ink-bg); }
.btn--ink:hover { background: transparent; color: var(--btn-ink-bg); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--lg { font-size: var(--fs-text); padding: 16px 30px; }
.center { text-align: center; }
/* Liseré de 2 px, nombre entier : à 1,5 px, Chrome arrondit à 1 px (trait trop pâle) et Safari dessine un trait flou,
   inégal autour du cercle, avec l'icône décalée d'un demi-pixel. */
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--line-strong); background: transparent; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- En-tête ---------- */
/* Connecté à WordPress, la barre d'admin (fixe, 32 ou 46 px) occupe le haut de l'écran : l'en-tête se cale dessous au lieu de glisser derrière.
   Sous 601 px, WordPress laisse sa barre défiler avec la page : l'en-tête revient tout en haut. */
.header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .header { top: 0; } }
.header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { flex: none; color: #2D2D2D; }
.logo-svg { display: block; height: clamp(28px, 9vw, 52px); width: auto; }
@media (min-width: 1024px) and (max-width: 1100px) { .logo-svg { height: 44px; } }
:root[data-theme="dark"] .logo { color: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { color: #FFFFFF; } }
.header nav { margin-left: auto; }
.nav { display: flex; margin: 0; align-items: center; gap: 8px; font-size: var(--fs-text); font-weight: var(--fw-text); }
.nav > li { position: relative; }
.nav a:not(.btn), .nav .sub-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-weight: inherit; }
.nav a:not(.btn):hover, .nav .sub-toggle:hover { color: var(--hover); }
.nav [aria-current="page"], .nav .is-parent { font-weight: var(--fw-strong); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .sub-toggle svg { width: 12px; height: 12px; transition: transform .15s; }
.nav .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Sous-menu « Expertises » : une carte qui suit le thème, titre et phrase d'accroche, flèche au survol. */
.sub { display: none; }
.sub-toggle[aria-expanded="true"] + .sub { display: block; }
.sub-title { display: block; font-family: var(--font-title); font-weight: var(--fw-title); font-size: var(--fs-read); line-height: 1.2; }
.sub-desc { display: block; font-size: var(--fs-small); font-weight: var(--fw-text); margin-top: 3px; }
@media (min-width: 1024px) {
	.sub { position: absolute; top: calc(100% + 14px); left: -16px; z-index: 30; width: max-content; max-width: 480px; padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 48px rgba(28, 28, 27, .16); }
	.sub li + li { margin-top: 4px; }
	.nav .sub a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; width: 100%; min-height: 0; padding: 14px 18px; border-radius: 14px; color: var(--ink); text-decoration: none; }
	.nav .sub a:hover, .nav .sub a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
	:root[data-theme="dark"] .nav .sub a:hover, :root[data-theme="dark"] .nav .sub a[aria-current="page"] { background: var(--bg); }
	@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav .sub a:hover, :root:not([data-theme="light"]) .nav .sub a[aria-current="page"] { background: var(--bg); } }
	.sub-desc { color: var(--ink-3); }
	.sub-arrow { opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .15s; }
	.sub a:hover .sub-arrow, .sub a:focus-visible .sub-arrow, .sub a[aria-current="page"] .sub-arrow { opacity: 1; transform: none; }
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }
.theme-toggle .i-sun, :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
	:root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
}
@media (max-width: 1023px) {
	.burger { display: inline-grid; }
	.header nav { margin-left: 0; }
	.header-actions { margin-left: auto; }
	.header-actions .btn { display: none; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(20px, 4vw, 32px) 20px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: var(--fs-read); max-height: calc(100vh - 72px); overflow: auto; }
	.nav.is-open { display: flex; }
	.nav a:not(.btn), .nav .sub-toggle { width: 100%; min-height: 52px; padding: 0; justify-content: space-between; }
	.sub { padding: 0 0 10px; }
	.nav .sub a { display: block; min-height: 0; padding: 10px 0 10px 16px; border-left: 2px solid var(--line); border-radius: 0; text-decoration: none; }
	.nav .sub a:hover, .nav .sub a[aria-current="page"] { border-left-color: var(--accent); color: var(--ink); }
	.sub-arrow { display: none; }
	.sub-title { font-size: var(--fs-read); }
	.sub-desc { color: var(--ink-3); }
	.nav .nav-cta { display: flex; margin-top: 12px; }
	.nav .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (min-width: 1024px) { .nav .nav-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; height: min(760px, calc(100svh - 72px)); min-height: 560px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 28, 27, 0) 20%, rgba(28, 28, 27, .78) 100%), rgba(28, 28, 27, .30); }
.hero-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding-bottom: clamp(32px, 5vw, 56px); }
/* La colonne de texte ne doit pas dépendre de la légende de la photo, qui change à chaque photo : sinon le titre
   change de nombre de lignes d'une photo à l'autre. Sous 1 024 px, les commandes passent sous le texte ; au-dessus,
   elles sont posées en bas à droite, hors du flux. */
.hero-body .wrap { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-text { max-width: 900px; --gap: 22px; }
.hero h1 { font-size: var(--fs-hero); line-height: .98; max-width: 11.5em; text-wrap: balance; }
.hero h1 span { color: var(--accent); }
.hero .kicker { color: #E9E5DD; }
.hero .lead { color: #F1EEE8; max-width: 560px; }
.hero-ctrl { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); }
.hero-ctrl .icon-btn { border-color: rgba(255, 255, 255, .7); color: #FFFFFF; background: rgba(28, 28, 27, .35); }
.hero-ctrl .icon-btn:hover { border-color: #FFFFFF; }
.hero-caption { min-width: 0; }
/* Sous 1 024 px, la rangée prend toute la largeur : compteur et boutons calés à droite, la légende prend ce qui reste
   (deux lignes au plus, moins haut que les boutons). Les boutons ne bougent plus quand la légende change. */
@media (max-width: 1023px) {
	.hero-ctrl { align-self: stretch; }
	.hero-caption { flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
}
@media (min-width: 1024px) {
	.hero-ctrl { position: absolute; right: clamp(20px, 4vw, 32px); bottom: 0; max-width: 45%; }
	.hero-caption { text-align: right; }
}
.hero-count { white-space: nowrap; }
.hero-pause .i-play, .hero-pause.is-paused .i-pause { display: none; }
.hero-pause.is-paused .i-play { display: block; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; font-size: var(--fs-small); font-weight: var(--fw-strong); }
a.chip { min-height: 32px; display: inline-flex; align-items: center; }
a.chip:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.hero .chip { border-color: rgba(255, 255, 255, .7); }

/* ---------- Blocs ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 24px; }
.stats .num { font-weight: var(--fw-display); font-size: var(--fs-section); line-height: 1; letter-spacing: var(--ls-bloc); }
.stats p + p { margin-top: 8px; color: var(--ink-2); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr)); }
.card { background: var(--surface); border-radius: 20px; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.sec--white .card { background: var(--bg); }
.card .num { font-weight: var(--fw-display); font-size: var(--fs-sub); line-height: 1; color: var(--ink-3); }
.panel .card .num { color: var(--accent); }
/* Trois piliers de l'accueil : trois photos pleine hauteur, le texte posé dessus. Sur téléphone et sans script, tout le texte
   est visible. Avec le script, à partir de 1 024 px, un seul panneau est ouvert (survol, focus ou clic) : il s'élargit et
   montre son texte, les deux autres ne gardent que leur titre. Les transitions n'existent qu'une fois le bloc prêt (.is-ready). */
.pillars { display: flex; flex-direction: column; gap: 12px; }
.pillar { position: relative; isolation: isolate; min-height: 460px; overflow: hidden; border-radius: 24px; color: #FFFFFF; --focus: var(--accent); }
/* Cadrage par photo : --zoom agrandit l'image en gardant son bas en place (le sujet remonte au-dessus du texte), --pos choisit la partie montrée. */
.pillar > img { position: absolute; inset: auto 0 0 0; z-index: -2; width: 100%; height: calc(100% * var(--zoom, 1)); object-fit: cover; object-position: var(--pos, 50% 50%); background: var(--surface-2); }
.pillar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28, 28, 27, 0) 20%, rgba(28, 28, 27, .9) 100%); }
.pillar-plus { display: none; }
.pillar-in { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2.4vw, 32px); }
.pillar h3 { font-size: var(--fs-sub); font-weight: var(--fw-display); letter-spacing: var(--ls-section); }
.pillar h3 button { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; cursor: pointer; }
.pillar-items { display: grid; gap: 8px; margin-top: 16px; color: #F1EEE8; }
.pillar-pledge { display: flex; align-items: center; min-height: 76px; margin-top: 22px; padding: 14px 22px; border-radius: 16px; background: var(--accent); color: #1C1C1B; font-size: var(--fs-read); font-weight: var(--fw-display); line-height: 1.3; text-wrap: balance; }
/* Sous 1 024 px (panneaux empilés, tout le texte visible) : le voile sombre suit le bloc de texte, pas la hauteur du
   panneau ; il part en fondu 96 px au-dessus du titre. Liste resserrée, légère ombre portée sur le texte blanc. */
@media (max-width: 1023px) {
	.pillar-in { padding-top: 96px; background: linear-gradient(180deg, rgba(28, 28, 27, 0) 0, rgba(28, 28, 27, .82) 96px, rgba(28, 28, 27, .9) 100%); text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
	.pillar-items { gap: 4px; line-height: 1.35; }
	.pillar-pledge { text-shadow: none; }
}
@media (min-width: 1024px) {
	.pillars { flex-direction: row; height: clamp(480px, 44vw, 600px); }
	.pillar { flex: 1 1 0; min-width: 0; min-height: 0; }
	.pillars.is-enhanced .pillar { cursor: pointer; }
	.pillars.is-enhanced .pillar.is-open { flex-grow: 3.4; cursor: default; }
	.pillars.is-enhanced .pillar::after { background: linear-gradient(180deg, rgba(28, 28, 27, .30) 0%, rgba(28, 28, 27, .82) 100%); }
	.pillars.is-enhanced .pillar.is-open::after { background: linear-gradient(180deg, rgba(28, 28, 27, 0) 28%, rgba(28, 28, 27, .88) 100%); }
	.pillars.is-enhanced .pillar-plus { display: block; position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); }
	.pillars.is-enhanced .pillar-plus::before, .pillars.is-enhanced .pillar-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: #FFFFFF; }
	.pillars.is-enhanced .pillar-plus::after { transform: rotate(90deg); }
	.pillars.is-enhanced .pillar.is-open .pillar-plus { opacity: 0; }
	.pillars.is-enhanced .pillar h3 { font-size: var(--fs-bloc); }
	.pillars.is-enhanced .pillar.is-open h3 { font-size: var(--fs-section); }
	.pillars.is-enhanced .pillar.is-open h3 button { cursor: default; }
	.pillars.is-enhanced .pillar-more { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
	.pillars.is-enhanced .pillar.is-open .pillar-more { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
	.pillars.is-enhanced .pillar-more-in { overflow: hidden; min-width: min(620px, 48vw); }
	.pillars.is-enhanced .pillar-items { grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 40px; font-size: var(--fs-read); }
	.pillars.is-enhanced .pillar-pledge { width: min(560px, 100%); }
	.pillars.is-ready .pillar { transition: flex-grow .55s cubic-bezier(.2, .7, .2, 1); }
	.pillars.is-ready .pillar-plus { transition: opacity .3s; }
	.pillars.is-ready .pillar h3 { transition: font-size .3s; }
	.pillars.is-ready .pillar-more { transition: grid-template-rows .5s cubic-bezier(.2, .7, .2, 1), opacity .25s, visibility 0s .5s; }
	.pillars.is-ready .pillar.is-open .pillar-more { transition-delay: 0s, .22s, 0s; }
}
.pledge { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; font-size: var(--fs-text); flex: 0 1 380px; }
.pledge strong { display: block; margin-bottom: 4px; }
.panel .pledge strong { color: var(--accent); }
/* Engagement d'une section d'Expertises : un aplat miel posé au pied du texte, la promesse en grand. */
.split > .pledge { flex: 0 1 400px; align-self: flex-end; border: 0; border-radius: 20px; padding: clamp(22px, 2.4vw, 30px); background: var(--accent); color: #1C1C1B; font-family: var(--font-title); font-weight: var(--fw-title); font-size: var(--fs-bloc); line-height: 1.2; letter-spacing: var(--ls-bloc); text-wrap: balance; }
.split > .pledge strong, .panel .split > .pledge strong { margin-bottom: 10px; font-family: var(--font-text); font-size: var(--fs-text); font-weight: var(--fw-display); letter-spacing: var(--ls-label); text-transform: uppercase; color: #1C1C1B; }
.fig { display: flex; flex-direction: column; gap: 10px; }
.fig img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; border-radius: 16px; background: var(--surface-2); }
/* Image à fond blanc (un plan) : un liseré en dessine le contour sur une section blanche. */
.fig--line img { border: 2px solid var(--line); }
.fig figcaption { font-size: var(--fs-small); color: var(--ink-3); }
/* Titre d'une rangée de chantiers : pastille jaune « lecture » pour ceux en cours, coche pour ceux livrés. */
.state { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-text); font-size: var(--fs-text); font-weight: var(--fw-display); letter-spacing: var(--ls-label); text-transform: uppercase; }
.state::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent) center / 26px 26px no-repeat; }
.state--live::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath fill='%231C1C1B' d='M10.5 8v10l8-5z'/%3E%3C/svg%3E"); }
.state--done::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath fill='none' stroke='%231C1C1B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M8 13.5l3.5 3.5L18 9.5'/%3E%3C/svg%3E"); }
/* Mur de logos : noirs sur transparent, inversés en sombre. Chaque logo occupe une part de sa case proportionnelle à --w (150 = case pleine). */
.logos { --cols: 3; --gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 22px; width: 100%; max-width: 1216px; }
.logos li { flex: 0 0 calc(100% / var(--cols)); display: flex; justify-content: center; }
.logos img { width: calc(var(--w) / 150 * (100% - var(--gap))); max-width: calc(var(--w) * 1px); height: auto; opacity: .85; filter: invert(var(--logo-invert)); }
@media (min-width: 560px) { .logos { --cols: 4; --gap: 32px; row-gap: 32px; } }
@media (min-width: 900px) { .logos { --cols: 6; } }
@media (min-width: 1200px) { .logos { --cols: 8; --gap: 28px; row-gap: 36px; } }
/* Sur téléphone et tablette (moins de 900 px), le mur de logos devient un bandeau qui défile sur toute la largeur de l'écran ;
   le titre passe alors à gauche, avec le bouton pause à droite, comme le bandeau des chantiers. */
.logos-band { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.logos-head { width: 100%; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; }
.logos-head h2 { text-align: center; }
.logos-band .marquee-pause { display: none; }
.logos-view { width: 100%; display: flex; justify-content: center; }
@media (min-width: 900px) { .logos .is-clone { display: none; } }
@media (max-width: 899px) {
	.logos-band { align-self: stretch; width: auto; margin-inline: calc(-1 * clamp(20px, 4vw, 32px)); gap: 20px; }
	.logos-head { justify-content: space-between; padding-inline: clamp(20px, 4vw, 32px); }
	.logos-head h2 { text-align: left; }
	.logos-view { display: block; overflow-x: auto; padding-inline: 20px; padding-block: 6px; }
	.logos-band .logos { flex-wrap: nowrap; justify-content: flex-start; width: max-content; max-width: none; gap: 44px; row-gap: 0; }
	.logos-band .logos li { flex: none; }
	.logos-band .logos img { width: calc(var(--w) * .82px); max-width: none; }
	.logos-band.is-running .logos-view { overflow: hidden; padding-inline: 0; }
	.logos-band.is-running .logos { padding-right: 44px; animation: defile var(--dur, 120s) linear infinite; }
	.logos-band.is-paused .logos { animation-play-state: paused; }
	.logos-band.is-running .marquee-pause { display: inline-grid; }
}
.stats--lined > div { border-top: 1px solid var(--line); padding-top: 20px; }
.box { border-radius: 24px; padding: clamp(24px, 4vw, 48px); }
.box:not(.panel) { background: var(--surface); }
.box--sm { padding: clamp(22px, 3vw, 32px); }

/* Qui sommes-nous : photo du président à gauche, texte à droite, sans passage à la ligne avant le téléphone. */
.president { display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: 40px 48px; align-items: start; }
.president-points { display: grid; gap: 24px 28px; }
@media (min-width: 1180px) { .president-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) {
	.president { grid-template-columns: minmax(0, 1fr); }
	.president .fig { max-width: 260px; }
}

/* Expertises : les trois offres en tuiles pleines, sur la grille des photos (mêmes colonnes, mêmes arrondis).
   Au survol, la tuile s'inverse comme les boutons : foncée à titre jaune en clair, jaune sur fond sombre. */
.offer { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.offer li { display: flex; flex-direction: column; gap: 28px; min-height: 230px; padding: clamp(22px, 2.2vw, 30px); border-radius: 16px; background: var(--surface); transition: background-color .3s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.sec--white .offer li { background: var(--bg); }
.offer li::before { content: ""; width: 44px; height: 8px; border-radius: 999px; background: var(--accent); transition: width .3s cubic-bezier(.2, .7, .2, 1), background-color .3s; }
.offer h3 { font-size: var(--fs-sub); line-height: 1.1; letter-spacing: var(--ls-section); text-wrap: balance; transition: color .3s; }
.offer p { margin-top: auto; font-size: var(--fs-text); color: var(--ink-2); transition: color .3s; }
@media (hover: hover) {
	.offer li:hover { background: var(--inv-bg); transform: translateY(-4px); }
	.offer li:hover::before { width: 88px; background: var(--inv-title); }
	.offer li:hover h3 { color: var(--inv-title); }
	.offer li:hover p { color: var(--inv-text); }
}
@media (max-width: 640px) {
	.offer li { min-height: 0; gap: 18px; }
	.offer p { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .offer li, .offer li::before, .offer h3, .offer p { transition: none; } .offer li:hover { transform: none; } }
/* Cartes RSE de Qui sommes-nous : les mêmes tuiles, en plus compact. Titres en 24 px, chacun sur une ligne :
   « Équipes & chantiers » demande 206 px, d'où quatre colonnes seulement à partir de 1 280 px (229 px utiles),
   deux en dessous, jamais trois (la quatrième resterait seule). Le texte suit le titre, la tuile suit son contenu. */
.offer--4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .offer--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .offer--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.offer--4 li { min-height: 0; gap: 14px; }
.offer--4 li::before { margin-bottom: 10px; }
.offer--4 h3 { font-size: var(--fs-bloc); letter-spacing: var(--ls-bloc); }
.offer--4 p { margin-top: 0; }
.panel .person + .person { border-top: 1px solid var(--line); padding-top: 22px; }
.panel .person a[href^="mailto"] { color: var(--accent); }

/* Bandeau défilant des chantiers en cours. Sans JavaScript ou si les animations sont réduites : rangée à faire défiler à la main. */
.marquee { padding-block: 28px; overflow: hidden; }
.marquee-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; min-height: 44px; }
/* Quand le bandeau défile, la pastille du titre est le bouton pause / lecture : jamais deux triangles « lecture » sur la
   ligne. Pastille de 26 px comme celle du titre, zone tactile de 44 px ; au survol elle s'inverse, comme les boutons.
   Sans défilement, le bouton est caché et le titre garde sa pastille. */
.state-btn { position: relative; flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #1C1C1B; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.state-btn::after { content: ""; position: absolute; inset: -9px; }
.state-btn svg { width: 14px; height: 14px; }
@media (hover: hover) { .state-btn:hover { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); } }
.marquee.is-running .state::before { display: none; }
.marquee-view { overflow-x: auto; padding-inline: clamp(20px, 4vw, 32px); padding-bottom: 8px; }
.marquee-track { display: flex; gap: 16px; width: max-content; }
/* Vignettes des chantiers : 360 × 250 px (300 × 190 jusqu'au 27/11/2026), jamais plus de 80 % de la largeur d'un téléphone. */
.marquee-track { --mq-w: min(360px, 80vw); }
.marquee-track li { flex: none; width: var(--mq-w); display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-small); }
.marquee-track img { width: var(--mq-w); aspect-ratio: 36 / 25; object-fit: cover; border-radius: 12px; background: var(--surface); }
.marquee-track strong { font-weight: var(--fw-strong); }
.marquee-track span { color: var(--ink-2); }
.marquee:not(.is-running) .marquee-pause { display: none; }
.marquee.is-running .marquee-view { overflow: hidden; padding-inline: 0; padding-bottom: 0; }
.marquee.is-running .marquee-track { padding-right: 16px; animation: defile var(--dur, 45s) linear infinite; }
.marquee.is-running .marquee-view:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }
/* Prise en main au doigt. Tant que le bandeau défile, la page garde son défilement vertical et le script reçoit les
   glissements horizontaux ; une fois pris en main (.is-manual), plus d'animation : la rangée défile comme une liste
   ordinaire, sans barre visible. Ces règles viennent après celles du défilement, qu'elles remplacent. */
.marquee.is-running .marquee-view, .logos-band.is-running .logos-view { touch-action: pan-y; }
.marquee.is-manual .marquee-view, .logos-band.is-manual .logos-view { overflow-x: auto; touch-action: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.marquee.is-manual .marquee-view::-webkit-scrollbar, .logos-band.is-manual .logos-view::-webkit-scrollbar { display: none; }
.marquee.is-manual .marquee-track, .logos-band.is-manual .logos { animation: none; }
.pause-btn .i-play, .pause-btn.is-paused .i-pause { display: none; }
.pause-btn.is-paused .i-play { display: block; }
/* Équipe : une grille de vignettes en hauteur (3:4). Le titre et son texte sont une tuile blanche de la grille
   (le blanc du bloc du président ; le jaune en aplat a été jugé trop violent, il ne reste que le trait en tête),
   large de deux vignettes : 2 colonnes sur téléphone, 4 sur tablette, 6 sur ordinateur (dix personnes y font
   toujours des rangées pleines). Les <li> sont posés dans la grille de .team (display: contents sur la liste). */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.team-list { display: contents; }
.team li { min-width: 0; }
.team-intro { grid-column: span 2; display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 30px); border-radius: 16px; background: var(--surface); }
.team-intro::before { content: ""; width: 44px; height: 8px; margin-bottom: 26px; border-radius: 999px; background: var(--accent); }
.team-intro h2 { font-size: var(--fs-sub); line-height: 1.08; letter-spacing: var(--ls-section); }
.team-intro p { margin-top: auto; padding-top: 20px; font-size: var(--fs-text); line-height: 1.5; color: var(--ink-2); }
@media (min-width: 640px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; } }
@media (min-width: 1200px) { .team { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 32px; } }
.team img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: var(--surface-2); }
/* Portraits en noir et blanc quoi qu'on envoie : la série est en noir et blanc, une photo en couleur ajoutée
   depuis l'admin s'y fond quand même. */
.team img, .person img { filter: grayscale(1); }
.team-name { margin-top: 10px; font-weight: var(--fw-strong); font-size: var(--fs-small); line-height: 1.3; }
.team-role { margin-top: 3px; font-size: var(--fs-small); line-height: 1.35; color: var(--ink-2); }
.team-xp { margin-top: 3px; font-size: var(--fs-small); line-height: 1.35; color: var(--ink-3); }
/* Aperçu de l'équipe sur l'accueil : une carte, le texte à gauche, les dix visages à droite. */
.quote { font-family: var(--font-title); font-weight: var(--fw-title); font-size: var(--fs-sub); line-height: 1.15; letter-spacing: var(--ls-section); }

/* ---------- Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); font-size: var(--fs-small); font-weight: var(--fw-strong); }
.filters a:hover { background: var(--surface-2); }
.filters a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.works { display: grid; gap: 36px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.work, .work > a { display: flex; flex-direction: column; gap: 14px; }
.work[hidden] { display: none; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--surface-2); transition: transform .3s ease; }
.work-media { overflow: hidden; border-radius: 16px; }
.work-media picture, .work-media img { display: block; }
/* Images de la médiathèque : la balise <picture> ne doit rien changer à la mise en page, et une image absente garde sa place. */
.fig picture, .fig > a, .team picture, .marquee-track picture, .person picture { display: block; }
.ph { display: block; background: var(--surface-2); }
.fig .ph { width: 100%; aspect-ratio: var(--ar, 4 / 3); border-radius: 16px; }
.team .ph { width: 100%; aspect-ratio: 3 / 4; border-radius: 16px; }
.marquee-track .ph { width: var(--mq-w); aspect-ratio: 36 / 25; border-radius: 12px; background: var(--surface); }
.person .ph { width: 84px; height: 84px; border-radius: 50%; flex: none; }
.work:hover img { transform: scale(1.03); }
/* Photo cliquable d'une figure (chantiers livrés) : le même zoom. */
.fig > a { overflow: hidden; border-radius: 16px; }
.fig > a img { transition: transform .3s ease; }
.fig > a:hover img { transform: scale(1.03); }
.work-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.work-name { font-weight: var(--fw-strong); font-size: var(--fs-read); }
.work:hover .work-name { color: var(--hover); }
.work-sector { font-size: var(--fs-small); color: var(--ink-3); margin-top: 2px; }
.work-surface { font-family: var(--font-title); font-weight: var(--fw-title); white-space: nowrap; }

/* Page d'une réalisation */
/* Page d'une réalisation : la photo principale est la vedette. Elle porte le titre et les infos, et un clic ouvre la galerie. */
.sec--star { padding-block: clamp(14px, 2.4vw, 26px) 0; }
.star { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 5; border-radius: 24px; background: var(--surface-2); color: #FFFFFF; --focus: var(--accent); }
.star picture, .star picture img { display: block; width: 100%; height: 100%; }
.star picture img { object-fit: cover; transition: transform .6s ease; }
.star:hover picture img { transform: scale(1.02); }
.star-open { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; border-radius: inherit; background: none; cursor: zoom-in; }
.star-open:focus-visible { outline: 3px solid var(--focus); outline-offset: -7px; }
/* Le dégradé est attaché au bloc de texte : le contraste tient même sur une photo blanche. */
.star-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; pointer-events: none; padding: 72px 20px 20px; background: linear-gradient(180deg, rgba(20, 20, 19, 0), rgba(20, 20, 19, .74) 42%, rgba(20, 20, 19, .9)); }
.star h1 { font-size: var(--fs-page); line-height: 1; }
.star-facts { display: flex; flex-wrap: wrap; margin-top: 12px; font-size: var(--fs-small); font-weight: var(--fw-strong); }
.star-facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.star-facts div { display: flex; }
/* Lien vers le site de l'architecte : au-dessus de la photo cliquable, souligné de jaune. */
.star-facts a { pointer-events: auto; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.star-facts a:hover { color: var(--accent); }
.star-facts div + div::before { content: "·"; margin-inline: 8px; color: #CFCCC4; }
.star-cta { position: absolute; top: 14px; right: 14px; z-index: 2; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: #1C1C1B; font-size: var(--fs-small); font-weight: var(--fw-strong); white-space: nowrap; }
.star-cta svg { width: 16px; height: 16px; }
@media (max-width: 639px) {
	.sec--star .filters a { min-height: 38px; padding: 0 14px; }
	/* Titre long (« Marque Ville – Résidence Nom ») : deux ou trois lignes au lieu de quatre. */
	.star h1.is-long { font-size: var(--fs-page-long); line-height: 1.05; }
}
@media (min-width: 640px) {
	.star { aspect-ratio: 16 / 9; max-height: max(440px, calc(100svh - 176px)); }
	.star { --pad-x: clamp(24px, 3.4vw, 44px); --pad-b: clamp(22px, 2.8vw, 36px); }
	.star-body { padding: 120px calc(var(--pad-x) + 250px) var(--pad-b) var(--pad-x); }
	.star-facts { gap: 10px 32px; margin-top: 20px; font-size: inherit; font-weight: inherit; }
	.star-facts dt { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: var(--fs-label); font-weight: var(--fw-strong); letter-spacing: var(--ls-label); text-transform: uppercase; color: #CFCCC4; }
	.star-facts dd { margin-top: 3px; font-family: var(--font-title); font-weight: var(--fw-title); font-size: var(--fs-read); }
	.star-facts div { display: block; }
	.star-facts div + div::before { content: none; }
	.star-cta { top: auto; right: var(--pad-x); bottom: var(--pad-b); min-height: 48px; padding: 0 22px; gap: 10px; }
	.star-cta svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .star picture img { transition: none; } .star:hover picture img { transform: none; } }
.prose { max-width: 720px; font-size: var(--fs-read); color: var(--ink-2); display: flex; flex-direction: column; gap: 16px; }
/* Page écrite dans l'éditeur (mentions légales) : des titres de texte, pas des titres de section. */
.prose h2 { margin-top: 20px; font-size: var(--fs-bloc); line-height: 1.2; color: var(--ink); }
.prose h3 { margin-top: 8px; font-size: var(--fs-lead); color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--hover); }
.prose ul, .prose ol { padding-left: 22px; list-style: revert; }
.gal { display: flex; flex-wrap: wrap; gap: 12px; }
.gal::after { content: ""; flex-grow: 999; }
.gal button { --h: 300px; flex: var(--ar) 1 calc(var(--ar) * var(--h)); aspect-ratio: var(--ar); padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); min-width: 0; }
.gal picture { display: block; width: 100%; height: 100%; }
.gal img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gal button:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .gal button { --h: 150px; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; }
.pager a:last-child { text-align: right; }
.pager span { font-size: var(--fs-small); color: var(--ink-3); }
.pager strong { font-family: var(--font-title); font-size: var(--fs-bloc); font-weight: var(--fw-title); }
.pager a:hover strong { color: var(--hover); }

/* Page bloquée derrière la visionneuse : sa barre de défilement ne vient plus se coller aux boutons. */
.lb-open { overflow: hidden; }
.lightbox { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: rgba(14, 14, 13, .97); color: #FFFFFF; --focus: var(--accent); }
.lightbox::backdrop { background: rgba(14, 14, 13, .97); }
.lightbox-in { height: 100%; display: grid; grid-template-rows: auto 1fr; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; font-size: var(--fs-small); }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 20px 20px; }
/* La photo est placée en absolu dans la zone d'affichage : ses limites se calculent alors sur cette zone, quel que soit
   son format. Sans cela, une photo en hauteur débordait de l'écran, la visionneuse défilait et sa barre de défilement
   déplaçait le bouton de fermeture. */
.lightbox-stage img { position: absolute; inset: 0 20px 20px; margin: auto; max-width: calc(100% - 40px); max-height: calc(100% - 20px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
/* Liseré blanc presque plein : à 60 %, il virait au gris terne sur le fond noir et paraissait fin. */
.lightbox .icon-btn { border-color: rgba(255, 255, 255, .9); color: #FFFFFF; background: rgba(14, 14, 13, .6); width: 48px; height: 48px; }
.lightbox:focus-visible { outline: none; }
.lightbox .icon-btn:hover { border-color: #FFFFFF; }
.lightbox .prev, .lightbox .next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--surface); border-radius: 24px; padding: clamp(22px, 4vw, 40px); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); font-weight: var(--fw-strong); }
/* Le libellé prend la place libre : dans une rangée, les cadres sont alignés en bas même si un libellé passe sur deux lignes. */
.field > span:first-child { flex: 1 0 auto; }
.field input, .field select, .field textarea { min-height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 14px; background: var(--bg); font-size: var(--fs-text); font-weight: var(--fw-text); width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field .hint { font-weight: var(--fw-text); color: var(--ink-3); }
.field .hint--below { display: block; }
.req { color: var(--error); }
.err { color: var(--error); font-weight: var(--fw-strong); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: var(--fw-strong); margin-bottom: 12px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); font-size: var(--fs-small); font-weight: var(--fw-strong); }
.pills input:checked + span { background: var(--ink); color: var(--bg); }
.pills input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.drop { display: flex; align-items: center; gap: 14px; border: 2px dashed var(--line-strong); border-radius: 14px; padding: 16px 18px; }
.drop svg { flex: none; width: 22px; height: 22px; }
.drop input { min-height: 44px; border: 0; padding: 10px 0; background: none; font-size: var(--fs-small); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); }
.check input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--ink); }
.notice { border-radius: 14px; padding: 16px 18px; border: 2px solid var(--ink); font-weight: var(--fw-strong); }
.form-alert { border-color: var(--error); display: flex; flex-direction: column; gap: 8px; }
.form-alert ul { margin: 0; padding-left: 20px; list-style: disc; font-weight: var(--fw-text); }
.form-alert a { text-decoration: underline; text-underline-offset: 3px; }
.form-done:focus, .form-alert:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Champ piège : invisible, hors du parcours au clavier, ignoré des lecteurs d'écran ; seul un robot le remplit. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }
.person { display: flex; gap: 16px; align-items: center; }
.person img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex: none; background: var(--surface-2); }
.person a { display: block; text-decoration: underline; text-underline-offset: 3px; padding: 3px 0; }
.person a:hover { color: var(--hover); }

/* ---------- Pied de page ---------- */
.footer { --fw-title: 600; --bg: #1C1C1B; --ink: #FFFFFF; --hover: var(--accent); --focus: var(--accent); background: #1C1C1B; color: #CFCCC4; font-size: var(--fs-small); }
:root[data-theme="dark"] .footer { border-top: 1px solid #3D3D39; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer { border-top: 1px solid #3D3D39; } }
.footer .wrap { padding-block: 48px 32px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
/* À partir de 900 px : chaque colonne à la largeur de son contenu, l'espace libre réparti à parts égales. */
@media (min-width: 900px) { .footer > .wrap { grid-template-columns: repeat(3, auto); justify-content: space-between; } }
.footer .logo-svg { color: #FFFFFF; height: auto; width: 276px; max-width: 100%; }
.footer a { display: inline-flex; align-items: center; min-height: 32px; transition: color .15s, background-color .15s, border-color .15s, transform .15s; }
.footer a:hover { color: var(--accent); }
/* Survol franc : les liens texte passent en jaune et glissent de 4 px. */
.footer nav a:hover, .footer p a:hover, .footer-links a:hover { transform: translateX(4px); }
a[href^="tel:"] { white-space: nowrap; }
/* Téléphone du siège sous l'adresse : zone tactile de 32 px sans écarter sa ligne des autres. */
.footer p a { margin-block: -5px; }
.footer h2 { font: var(--fw-strong) var(--fs-label)/1.4 var(--font-text); letter-spacing: var(--ls-label); text-transform: uppercase; color: #FFFFFF; margin-bottom: 10px; }
.footer .social { display: flex; gap: 10px; margin-top: 14px; }
.footer .social a { width: 44px; height: 44px; justify-content: center; border: 2px solid #6B6962; border-radius: 50%; color: #FFFFFF; }
.footer .social a:hover { border-color: var(--accent); background: var(--accent); color: #1C1C1B; }
.footer .social svg { width: 20px; height: 20px; }
.footer-legal { border-top: 1px solid #34342F; }
.footer-legal .wrap { padding-block: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.footer a:hover { transform: none; }
}
