/* ==========================================================================
   No Squat 91 — feuille de styles du site
   --------------------------------------------------------------------------
   1. Jetons (couleurs, typographie, espacements) — à modifier ici en priorité
   2. Base et accessibilité
   3. Mise en page (conteneur, sections, grilles)
   4. Composants (boutons, cartes, listes, formulaire…)
   5. En-tête, navigation, pied de page
   6. Pages (accueil, solution, contact…)
   7. Contenu rédigé dans l'éditeur (.prose)
   8. Mouvement, impression
   Approche mobile d'abord : les règles de base visent les petits écrans,
   les media queries (min-width) enrichissent la mise en page.
   ========================================================================== */

/* 1. Jetons ---------------------------------------------------------------- */
@font-face {
	font-family: "Montserrat"; /* police du logo (OFL) */
	src: url("../fonts/montserrat-variable-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Open Sans"; /* police du slogan (OFL) */
	src: url("../fonts/open-sans-variable-latin.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Couleurs de marque — reprises du logo (voir brand/charte-graphique-no-squat.pdf) */
	--nuit: #172641;          /* bleu nuit du logo */
	--nuit-profond: #0F1B30;
	--acier-800: #22355A;
	--acier-600: #4A5670;
	--acier-500: #5D6880;
	--acier-400: #8D97AB;
	--acier-200: #D9DDE5;
	--acier-100: #EEF0F4;
	--fond: #F5F6F8;          /* gris clair froid, accordé à l'ombre du logo */
	--blanc: #FFFFFF;
	--rouge: #E84332;         /* rouge du logo : graphismes, filets, grands éléments */
	--rouge-fonce: #C42E1E;   /* boutons à texte blanc (5,6:1), liens et surtitres sur fond clair */
	--rouge-sombre: #A92617;  /* survol des boutons */
	--rouge-clair: #F0705F;   /* accents et liens sur fond sombre (5,2:1 sur bleu nuit) */
	--succes: #1F7A4D;
	--erreur: #B42318;

	/* Typographie */
	--police-titres: "Montserrat", "Arial", sans-serif;
	--police-texte: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--t-xs: 0.8125rem;
	--t-s: 0.9375rem;
	--t-m: 1.0625rem;
	--t-l: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
	--t-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
	--t-h2: clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem);
	--t-h1: clamp(2.1rem, 1.45rem + 3.1vw, 3.75rem);

	/* Espacements et formes */
	--gouttiere: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
	--rayon: 6px;
	--rayon-l: 10px;
	--trait: 1px solid var(--acier-200);
	--ombre: 0 1px 2px rgb(11 24 38 / 0.06), 0 12px 32px -12px rgb(11 24 38 / 0.18);
	/* Halo cuivré discret qui remplace l'ancien quadrillage des fonds sombres. */
	--halo: radial-gradient(120% 140% at 100% 0%, rgb(232 67 50 / 0.14), transparent 55%);
	--entete-h: 68px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 1rem); }
body {
	margin: 0;
	background: var(--fond);
	color: var(--nuit);
	font: 400 var(--t-m)/1.6 var(--police-texte);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
	font-family: var(--police-titres);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--rouge-fonce); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .entete-page :focus-visible, .section--nuit :focus-visible,
.bandeau :focus-visible, .pied :focus-visible, .barre-mobile :focus-visible { outline-color: var(--rouge-clair); }

.sr-only {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.evitement {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--rouge-fonce); color: var(--blanc); padding: 0.75rem 1rem; font-weight: 600; border-radius: var(--rayon);
}
.evitement:focus { top: 1rem; }

.icone { width: 1.25em; height: 1.25em; flex: none; }

/* 3. Mise en page ---------------------------------------------------------- */
.conteneur { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur--etroit { max-width: 820px; }

.section { padding-block: var(--section); }
.section--clair { background: var(--fond); }
.section--blanc { background: var(--blanc); }
.section--acier { background: var(--acier-100); }
.section--nuit { background: var(--halo), var(--nuit); color: var(--blanc); }

.section__tete { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.titre-phrase { font-size: clamp(1.375rem, 1.15rem + 1.1vw, 2rem); line-height: 1.2; }
.section__intro { color: var(--acier-600); font-size: var(--t-l); margin: 0; }
.section--nuit .section__intro { color: var(--acier-400); }

.surtitre {
	display: flex; align-items: center; gap: 0.75rem;
	font: 700 var(--t-xs)/1.2 var(--police-titres);
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--rouge-fonce); margin: 0 0 1rem;
}
.surtitre::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; flex: none; }
.hero .surtitre, .entete-page .surtitre, .section--nuit .surtitre { color: var(--rouge-clair); }

.chapeau { font-size: var(--t-l); line-height: 1.55; color: var(--acier-600); max-width: 38rem; }
.hero .chapeau, .entete-page .chapeau, .section--nuit .chapeau { color: #C5CDD6; }

.duo { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.duo--seul > :first-child { max-width: 46rem; }
.boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

@media (min-width: 900px) {
	.duo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
	.duo--seul { grid-template-columns: 1fr; }
	.duo--haut { align-items: start; grid-template-columns: 1fr 1fr; }
	.section__tete--duo { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
	.section__tete--duo h2 { margin-bottom: 0; }
}

/* 4. Composants ------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
	min-height: 48px; padding: 0.7rem 1.35rem;
	font: 700 var(--t-s)/1.2 var(--police-titres); letter-spacing: 0.01em;
	text-decoration: none; text-align: center;
	border: 2px solid transparent; border-radius: var(--rayon);
	cursor: pointer; transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn--primaire { background: var(--rouge-fonce); color: var(--blanc); }
.btn--primaire:hover { background: var(--rouge-sombre); }
.btn--sombre { background: var(--nuit); color: var(--blanc); }
.btn--sombre:hover { background: var(--acier-800); }
.btn--contour { border-color: var(--nuit); background: transparent; }
.btn--contour:hover { background: var(--nuit); color: var(--blanc); }
.btn--clair { border-color: rgb(255 255 255 / 0.4); color: var(--blanc); background: transparent; }
.btn--clair:hover { border-color: var(--blanc); background: rgb(255 255 255 / 0.08); }
.btn--grand { min-height: 56px; padding-inline: 1.6rem; font-size: 1rem; }
.btn--petit { min-height: 44px; padding: 0.5rem 1rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.lien-fleche {
	display: inline-flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-block: 0.5rem;
	font: 700 var(--t-s)/1.3 var(--police-titres); text-decoration: none; color: var(--nuit);
	border-bottom: 2px solid var(--rouge);
}
.lien-fleche .icone { transition: transform 0.2s; }
.lien-fleche:hover .icone { transform: translateX(4px); }
.lien-bouton { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }

.coches { list-style: none; display: grid; gap: 0.7rem; margin: 0 0 1.5rem; }
.coches li { display: flex; gap: 0.7rem; align-items: flex-start; }
.coches .icone { color: var(--rouge-fonce); margin-top: 0.2em; stroke-width: 2.4; }
.section--nuit .coches .icone { color: var(--rouge-clair); }
.coches--grand { font-size: var(--t-l); gap: 1rem; margin-top: 1.5rem; }

.etiquette {
	position: absolute; left: 1rem; top: 1rem; z-index: 1;
	background: var(--rouge-fonce); color: var(--blanc);
	font: 700 0.75rem/1 var(--police-titres); letter-spacing: 0.1em; text-transform: uppercase;
	padding: 0.5rem 0.7rem; border-radius: 3px;
}

/* Images de contenu : angles adoucis et ombre portée, sans cadre. */
.cadre { position: relative; }
.cadre img { width: 100%; border-radius: 16px; background: var(--acier-200); box-shadow: 0 28px 60px -32px rgb(11 24 38 / 0.55); }

/* Planche de dessin technique */
/* Dessin technique posé directement sur le fond de la section, sans boîte. */
.planche { color: var(--nuit); padding: 0; }
.planche .dessin { max-width: 380px; }
.dessin { width: 100%; max-width: 360px; margin-inline: auto; }
.dessin__trait { stroke: currentColor; }
.dessin__cotes { stroke: var(--acier-400); }
.dessin__plein { fill: currentColor; }
.dessin__signal { fill: var(--rouge); }
.dessin__signal-trait { stroke: var(--rouge); }
.dessin__reperes circle { stroke: var(--acier-400); }
.dessin__reperes text { fill: currentColor; font: 700 11px var(--police-titres); }

/* Encart */
.encart { border-left: 2px solid var(--rouge); padding: 0.25rem 0 0.25rem clamp(1.25rem, 3vw, 2rem); }
.encart--clair { border-left-color: var(--rouge-fonce); }
.encart__titre { font-size: var(--t-h3); line-height: 1.2; }
.encart > :last-child, .encart .prose > :last-child { margin-bottom: 0; }

.vide { font-size: var(--t-l); color: var(--acier-600); }

/* Cartes solution */
.solutions__grille { display: grid; gap: 1.5rem; }
.solution-carte { display: flex; flex-direction: column; background: var(--blanc); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -36px rgb(11 24 38 / 0.5); }
.solution-carte__visuel { position: relative; background: var(--halo), var(--nuit); color: var(--blanc); aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.solution-carte__visuel > img { width: 100%; height: 100%; object-fit: cover; }
.solution-carte__visuel .dessin { height: 86%; width: auto; }
.solution-carte__corps { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(1.5rem, 3vw, 2.25rem); }
.solution-carte__titre { font-size: var(--t-h3); line-height: 1.2; }
.solution-carte__corps > p:not(.surtitre) { color: var(--acier-600); }
@media (min-width: 800px) {
	.solutions__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.solutions__grille--une { grid-template-columns: 1fr; }
	.solutions__grille--une .solution-carte { flex-direction: row; }
	.solutions__grille--une .solution-carte__visuel { flex: 0 0 38%; aspect-ratio: auto; min-height: 320px; }
}

/* Valeurs */
.valeurs__grille { list-style: none; display: grid; gap: 2.5rem 2.25rem; }
.valeur { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--acier-200); }
.valeur::before { content: ""; position: absolute; left: 0; top: -1px; width: 2.5rem; height: 2px; background: var(--rouge); }
.valeur__num { position: absolute; right: 1.25rem; top: 1.25rem; font: 700 var(--t-xs)/1 var(--police-titres); letter-spacing: 0.1em; color: var(--acier-500); }
.valeur__icone { width: 2.25rem; height: 2.25rem; color: var(--rouge-fonce); margin-bottom: 1.25rem; }
.valeur h3 { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.valeur p { margin: 0; color: var(--acier-600); font-size: var(--t-s); }
@media (min-width: 640px) { .valeurs__grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .valeurs__grille { grid-template-columns: repeat(4, 1fr); } }

/* Avis */
.avis__grille { list-style: none; display: grid; gap: 1.25rem; }
.avis__carte { background: var(--blanc); border-radius: 18px; padding: 1.75rem; box-shadow: 0 20px 50px -38px rgb(11 24 38 / 0.6); }
.avis__carte figure { margin: 0; display: flex; flex-direction: column; height: 100%; }
.avis__carte blockquote { margin: 0 0 1.5rem; font-size: var(--t-m); }
.avis__carte blockquote p { margin: 0; }
.avis__carte blockquote p::before { content: "« "; } .avis__carte blockquote p::after { content: " »"; }
.avis__carte figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: var(--t-s); }
.avis__carte figcaption span { color: var(--acier-600); }
@media (min-width: 700px) { .avis__grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .avis__grille { grid-template-columns: repeat(4, 1fr); } }

/* Bandeau d'appel à l'action */
.bandeau { background: var(--halo), var(--acier-800); color: var(--blanc); padding-block: clamp(2.5rem, 6vw, 4rem); }
.bandeau__in { display: grid; gap: 1.5rem; align-items: center; }
.bandeau__texte { font: 700 var(--t-h3)/1.25 var(--police-titres); margin: 0; max-width: 40rem; text-wrap: balance; }
.bandeau .boutons { margin: 0; }
@media (min-width: 960px) { .bandeau__in { grid-template-columns: 1fr auto; gap: 3rem; } }

/* Formulaire */
.formulaire { background: var(--blanc); border-radius: 18px; box-shadow: 0 24px 60px -40px rgb(11 24 38 / 0.55); padding: clamp(1.25rem, 3vw, 2.25rem); }
.formulaire__note { font-size: var(--t-s); color: var(--acier-600); }
.formulaire__grille { display: grid; gap: 1.1rem; margin-bottom: 1.5rem; }
.champ label { display: block; font-weight: 600; font-size: var(--t-s); margin-bottom: 0.4rem; }
.champ input:not([type="checkbox"]), .champ textarea {
	width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
	font: inherit; color: var(--nuit); background: var(--blanc);
	border: 1.5px solid var(--acier-500); border-radius: var(--rayon);
}
.champ textarea { resize: vertical; min-height: 9rem; }
.champ input:focus-visible, .champ textarea:focus-visible { outline-offset: 0; border-color: var(--nuit); }
.champ [aria-invalid="true"] { border-color: var(--erreur); border-width: 2px; }
.champ__erreur { margin: 0.35rem 0 0; font-size: var(--t-s); font-weight: 500; color: var(--erreur); }
.champ__erreur:empty { display: none; }
.champ--case { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; align-items: start; }
.champ--case input { width: 1.375rem; height: 1.375rem; margin: 0.15rem 0 0; accent-color: var(--nuit); }
.champ--case label { font-weight: 400; margin: 0; }
.champ--case .champ__erreur { grid-column: 2; }
.champ--piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__statut { padding: 1rem 1.15rem; margin-bottom: 1.25rem; border-radius: var(--rayon); font-weight: 600; border-left: 4px solid; }
.formulaire__statut.est-succes { background: #E8F4EE; border-color: var(--succes); color: #14553A; }
.formulaire__statut.est-erreur { background: #FCECEA; border-color: var(--erreur); color: #8A1C13; }
@media (min-width: 640px) {
	.formulaire__grille { grid-template-columns: 1fr 1fr; }
	.champ--large { grid-column: 1 / -1; }
}

/* Bandeau cookies */
.cookies {
	position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; max-width: 30rem;
	background: var(--blanc); color: var(--nuit); border: var(--trait); border-radius: var(--rayon-l); box-shadow: var(--ombre);
	padding: 1.25rem; font-size: var(--t-s);
}
.cookies[hidden] { display: none; }
.cookies p { margin-bottom: 1rem; }
.cookies__actions { display: flex; gap: 0.6rem; justify-content: flex-end; }

/* 5. En-tête, navigation, pied de page ------------------------------------- */
.surbarre { background: var(--nuit); color: #C5CDD6; font-size: var(--t-xs); }
.surbarre__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.surbarre__note { margin: 0; display: none; align-items: center; gap: 0.5rem; }
.pastille { width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); flex: none; }
.surbarre__liens { list-style: none; display: flex; gap: 1.25rem; margin-left: auto; }
.surbarre__liens a { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; padding-block: 0.6rem; }
.surbarre__liens a:hover { color: var(--blanc); }
.surbarre__liens li:nth-child(2) { display: none; }
@media (min-width: 720px) { .surbarre__note { display: flex; } .surbarre__liens li:nth-child(2) { display: block; } }

.entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: var(--trait); }
.entete__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--entete-h); }
.logo { display: inline-flex; flex: none; }
.logo__img { height: 44px; width: auto; }
.entete__actions { display: flex; align-items: center; gap: 0.75rem; }
.entete__cta { display: none; }

.burger { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1.5px solid var(--acier-200); border-radius: var(--rayon); cursor: pointer; }
.burger__traits, .burger__traits::before, .burger__traits::after { display: block; width: 20px; height: 2px; background: var(--nuit); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.burger__traits { position: relative; }
.burger__traits::before, .burger__traits::after { content: ""; position: absolute; left: 0; }
.burger__traits::before { top: -6px; } .burger__traits::after { top: 6px; }
.burger[aria-expanded="true"] .burger__traits { background: transparent; }
.burger[aria-expanded="true"] .burger__traits::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__traits::after { transform: translateY(-6px) rotate(-45deg); }

/* Navigation : panneau déroulant sur mobile */
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); border-bottom: var(--trait); box-shadow: var(--ombre); max-height: calc(100vh - var(--entete-h) - 40px); max-height: calc(100dvh - var(--entete-h)); overflow-y: auto; padding: 0.5rem var(--gouttiere) 1.5rem; }
.nav.est-ouverte { display: block; }
.menu, .sous-menu { list-style: none; }
.menu > li { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: var(--trait); }
.menu a { display: block; padding: 0.95rem 0; text-decoration: none; font: 700 1.0625rem/1.2 var(--police-titres); }
.menu a[aria-current="page"], .menu .est-ancetre > a, .menu .current_page_item > a { color: var(--rouge-fonce); }
.menu__bascule { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.menu__bascule .icone { transition: transform 0.2s; }
.menu__bascule[aria-expanded="true"] .icone { transform: rotate(180deg); }
.sous-menu { grid-column: 1 / -1; display: none; padding: 0 0 0.75rem 1rem; border-left: 2px solid var(--rouge); margin-bottom: 0.75rem; }
.menu__bascule[aria-expanded="true"] + .sous-menu { display: block; }
.sous-menu a { font-weight: 600; font-size: 1rem; padding: 0.7rem 0; }
.nav__actions { display: grid; gap: 0.75rem; margin-top: 1.25rem; }

@media (min-width: 1040px) {
	:root { --entete-h: 76px; }
	.logo__img { height: 52px; }
	.burger, .nav__actions { display: none; }
	.entete__cta { display: inline-flex; }
	.nav { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; overflow: visible; max-height: none; margin-left: auto; }
	.menu { display: flex; align-items: center; gap: 0.25rem; }
	.menu > li { position: relative; display: flex; border: 0; }
	.menu a { padding: 0.7rem 0.8rem; font-size: 0.9688rem; border-radius: var(--rayon); }
	.menu > li > a:hover { background: var(--acier-100); }
	.menu__bascule { width: 28px; height: 44px; margin-left: -0.5rem; }
	.sous-menu {
		position: absolute; left: 0; top: calc(100% + 0.5rem); min-width: 16rem; margin: 0; padding: 0.5rem;
		background: var(--blanc); border: var(--trait); border-top: 3px solid var(--rouge); border-radius: var(--rayon); box-shadow: var(--ombre);
	}
	.sous-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.75rem; height: 0.75rem; }
	.a-sous-menu:hover > .sous-menu { display: block; }
	.sous-menu a { padding: 0.7rem 0.8rem; }
	.sous-menu a:hover { background: var(--acier-100); }
}

.pied { background: var(--nuit); color: #C5CDD6; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: var(--t-s); }
.pied__grille { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.pied .logo__img { height: 54px; }
.pied__marque p { margin: 1.25rem 0; max-width: 26rem; }
.pied__titre { font: 700 var(--t-xs)/1.2 var(--police-titres); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blanc); margin-bottom: 1.1rem; }
.pied__liste { list-style: none; display: grid; gap: 0.15rem; }
.pied__liste a, .pied__adresse { display: inline-flex; align-items: flex-start; gap: 0.6rem; padding-block: 0.65rem; text-decoration: none; }
.pied__liste a:hover, .pied__legal a:hover, .pied__credit a:hover { color: var(--blanc); text-decoration: underline; }
.pied__liste .icone { margin-top: 0.15em; color: var(--rouge-clair); }
.pied__liste--contact { margin-bottom: 1.5rem; }
.reseaux { list-style: none; display: flex; gap: 0.6rem; }
.reseaux a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 0.2); border-radius: var(--rayon); color: var(--blanc); }
.reseaux a:hover { border-color: var(--rouge-clair); color: var(--rouge-clair); }
.pied__bas { display: flex; flex-direction: column; gap: 0.75rem; padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: var(--t-xs); }
.pied__bas p { margin: 0; }
.pied__credit { display: block; margin-top: 0.35rem; }
.pied__credit a { display: inline-block; padding-block: 0.6rem; color: var(--rouge-clair); text-decoration: underline; text-underline-offset: 0.2em; }
@media (min-width: 720px) { .pied__credit { display: inline; margin: 0 0 0 0.75rem; } .pied__credit a { padding-block: 0.5rem; } }
.pied__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.pied__legal a, .pied__legal button { display: inline-block; padding-block: 0.8rem; color: inherit; }
@media (min-width: 720px) {
	.pied__grille { grid-template-columns: 1.6fr 1fr 1fr; }
	.pied__grille > :last-child { grid-column: 1 / -1; }
	.pied__bas { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1040px) {
	.pied__grille { grid-template-columns: 1.7fr 0.8fr 0.9fr 1.3fr; gap: 3rem; }
	.pied__grille > :last-child { grid-column: auto; }
}

/* Barre d'action fixe sur mobile */
.barre-mobile { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--nuit); border-top: 1px solid rgb(255 255 255 / 0.15); padding-bottom: env(safe-area-inset-bottom); }
.barre-mobile a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px; color: var(--blanc); text-decoration: none; font: 700 var(--t-s)/1 var(--police-titres); }
.barre-mobile__appel { background: var(--rouge-fonce); color: var(--blanc) !important; }
body { padding-bottom: 56px; }
.cookies { bottom: calc(56px + 1rem); }
@media (min-width: 720px) { .barre-mobile { display: none; } body { padding-bottom: 0; } .cookies { bottom: 1rem; } }

/* 6. Pages ----------------------------------------------------------------- */
.hero { position: relative; background: var(--halo), var(--nuit); color: var(--blanc); overflow: hidden; }
.hero__in { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 8vw, 6rem); align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .chapeau { margin-bottom: 0; }
.hero__visuel { color: var(--blanc); }
.hero__visuel .dessin { max-width: 300px; }
.hero__visuel img { width: 100%; border-radius: var(--rayon-l); }
@media (min-width: 960px) {
	.hero__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 4rem; }
	.hero__visuel .dessin { max-width: 380px; }
}

.entete-page { background: var(--halo), var(--nuit); color: var(--blanc); }
.entete-page__in { padding-block: clamp(2rem, 5vw, 3.75rem) clamp(2.5rem, 6vw, 4.5rem); max-width: 50rem; }
.entete-page h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); margin-bottom: 0.4em; }
.entete-page .chapeau { margin: 0; }

.fil { padding-top: 1.5rem; font-size: var(--t-xs); color: var(--acier-400); }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.fil li + li::before { content: "/"; margin-right: 0.6rem; color: var(--acier-500); }
.fil a { color: #C5CDD6; padding-block: 0.4rem; display: inline-block; }
.fil a:hover { color: var(--blanc); }

.caract { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--nuit); }
.caract__item { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.5rem; padding-block: 1.35rem; border-bottom: var(--trait); }
.caract__num { font: 700 var(--t-s)/1.6 var(--police-titres); color: var(--rouge-fonce); letter-spacing: 0.06em; }
.caract__item h3 { font-size: 1.1875rem; margin-bottom: 0.25rem; }
.caract__item p { margin: 0; color: var(--acier-600); }
@media (min-width: 860px) { .caract { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; } }

.zone .cadre img { aspect-ratio: 16 / 10; object-fit: cover; }

.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.coordonnees { list-style: none; display: grid; gap: 0; margin-top: 2rem; border-top: 2px solid var(--nuit); }
.coordonnees li { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1.15rem; border-bottom: var(--trait); }
.coordonnees .icone { width: 1.5rem; height: 1.5rem; color: var(--rouge-fonce); margin-top: 0.2rem; }
.coordonnees__label { display: block; font: 700 var(--t-xs)/1.2 var(--police-titres); letter-spacing: 0.12em; text-transform: uppercase; color: var(--acier-600); margin-bottom: 0.3rem; }
.coordonnees a { font: 700 1.25rem/1.3 var(--police-titres); text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; }
.contact__form h2 { font-size: var(--t-h3); line-height: 1.2; }
@media (min-width: 940px) { .contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }

.realisations { list-style: none; display: grid; gap: 1.5rem; }
.realisation { background: var(--blanc); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px -38px rgb(11 24 38 / 0.6); }
.realisation__visuel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.realisation__corps { padding: 1.5rem; }
.realisation__corps h2 { font-size: var(--t-h3); }
.realisation__corps p:last-child { margin: 0; color: var(--acier-600); }
@media (min-width: 640px) { .realisations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .realisations { grid-template-columns: repeat(3, 1fr); } }

.liste-articles { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--nuit); }
.liste-articles li { padding-block: 1.75rem; border-bottom: var(--trait); }
.liste-articles h2 { font-size: var(--t-h3); }
.liste-articles h2 a { text-decoration: none; }
.liste-articles h2 a:hover { text-decoration: underline; }
.article__une { margin-bottom: 2.5rem; }
.pagination, .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: 0.75rem; border: var(--trait); border-radius: var(--rayon); text-decoration: none; background: var(--blanc); }
.page-numbers.current { background: var(--nuit); color: var(--blanc); }

/* Photos de fond : hero de l'accueil et bandeaux des pages.
   Le dégradé part du bleu nuit (côté texte) et s'éclaircit vers le sujet de la photo. */
.hero__fond, .entete-page__fond { position: absolute; inset: 0; overflow: hidden; }
.hero__fond img, .entete-page__fond img { width: 100%; height: 100%; object-fit: cover; }
.hero__fond::after, .entete-page__fond::after { content: ""; position: absolute; inset: 0; }

.hero--photo { background: var(--nuit); }
.hero--photo .hero__in { position: relative; display: block; padding-block: 0 clamp(2.5rem, 7vw, 4rem); }
.hero--photo .hero__texte { position: relative; }
/* Mobile : la photo occupe le haut du bloc, le texte vient dessous — le sujet n'est jamais masqué. */
.hero--photo .hero__fond { position: relative; height: 62vw; max-height: 380px; margin-bottom: -3.5rem; }
.hero--photo .hero__fond img { object-position: 50% 40%; }
.hero--photo .hero__fond::after { background: linear-gradient(180deg, rgb(11 24 38 / 0.25) 0%, rgb(11 24 38 / 0.1) 45%, var(--nuit) 100%); }
@media (min-width: 900px) {
	.hero--photo { min-height: clamp(540px, 76vh, 760px); display: flex; align-items: center; }
	.hero--photo .hero__fond { position: absolute; height: auto; max-height: none; margin: 0; }
	.hero--photo .hero__fond img { object-position: 70% 45%; }
	.hero--photo .hero__fond::after { background:
		linear-gradient(90deg, rgb(11 24 38 / 0.96) 0%, rgb(11 24 38 / 0.93) 38%, rgb(11 24 38 / 0.74) 56%, rgb(11 24 38 / 0.18) 84%, rgb(11 24 38 / 0.05) 100%),
		linear-gradient(0deg, rgb(11 24 38 / 0.55) 0%, transparent 30%); }
	.hero--photo .hero__in { padding-block: clamp(4rem, 9vw, 6.5rem); width: 100%; }
	.hero--photo .hero__texte { max-width: 37rem; }
}

.entete-page--photo { position: relative; overflow: hidden; }
.entete-page--photo .conteneur { position: relative; }
.entete-page--photo .entete-page__fond img { object-position: 60% 45%; }
.cadrage-haut img { object-position: 60% 15% !important; }
.cadrage-bas img { object-position: 60% 85% !important; }
/* Mobile : voile vertical plus léger, la photo reste visible sur toute la largeur. */
.entete-page--photo .entete-page__fond::after { background: linear-gradient(180deg, rgb(11 24 38 / 0.5) 0%, rgb(11 24 38 / 0.62) 55%, rgb(11 24 38 / 0.86) 100%); }
.entete-page--photo h1, .entete-page--photo .chapeau, .hero--photo h1 { text-shadow: 0 2px 18px rgb(11 24 38 / 0.45); }
.entete-page--photo .entete-page__in { padding-top: 2.75rem; padding-bottom: clamp(3.75rem, 9vw, 5.5rem); }
@media (min-width: 900px) {
	.entete-page--photo .entete-page__fond::after { background: linear-gradient(0deg, rgb(11 24 38 / 0.55) 0%, transparent 40%), linear-gradient(90deg, rgb(11 24 38 / 0.96) 0%, rgb(11 24 38 / 0.88) 36%, rgb(11 24 38 / 0.5) 62%, rgb(11 24 38 / 0.12) 100%); }
	.entete-page--photo .entete-page__in { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6.5rem); }
}

/* 7. Contenu rédigé dans l'éditeur ----------------------------------------- */
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose li { max-width: 68ch; }
.prose a { color: var(--rouge-fonce); font-weight: 500; }
.section--nuit .prose a { color: var(--rouge-clair); }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--rouge-fonce); font-weight: 700; }
.prose--intro { font-size: var(--t-l); margin-bottom: 2.5rem; }
.prose--page h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.875rem); margin-top: 2.25em; padding-top: 1.25rem; border-top: var(--trait); }
.prose--page h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose--page h3 { margin-top: 1.75em; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: var(--t-s); }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.75rem; border-bottom: var(--trait); vertical-align: top; }
.prose th { font-family: var(--police-titres); }
.prose blockquote { margin: 0 0 1.5rem; padding-left: 1.25rem; border-left: 4px solid var(--rouge); font-size: var(--t-l); }
.prose img { border-radius: var(--rayon); }
.prose .alignwide { max-width: none; }
.prose figcaption { font-size: var(--t-xs); color: var(--acier-600); margin-top: 0.5rem; }
.wp-block-button__link { background: var(--rouge-fonce); color: var(--blanc); border-radius: var(--rayon); font: 700 var(--t-s)/1.2 var(--police-titres); padding: 0.9rem 1.35rem; }

/* 8. Mouvement, impression ------------------------------------------------- */
/* Apparition au défilement (classes posées par le script du thème sur les blocs hors écran). */
.a-reveler { opacity: 0; transform: translateY(18px); }
.a-reveler.est-visible { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.valeurs__grille .a-reveler:nth-child(2), .avis__grille .a-reveler:nth-child(2), .solutions__grille .a-reveler:nth-child(2) { transition-delay: 0.08s; }
.valeurs__grille .a-reveler:nth-child(3), .avis__grille .a-reveler:nth-child(3) { transition-delay: 0.16s; }
.valeurs__grille .a-reveler:nth-child(4), .avis__grille .a-reveler:nth-child(4) { transition-delay: 0.24s; }

/* Ouverture : entrée du texte en cascade et léger recul de la photo, une seule fois. */
@keyframes nsq-monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nsq-recul { from { transform: scale(1.06); } to { transform: none; } }
@keyframes nsq-trait { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__texte > *, .entete-page__in > * { animation: nsq-monte 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__texte > :nth-child(2), .entete-page__in > :nth-child(2) { animation-delay: 0.07s; }
.hero__texte > :nth-child(3), .entete-page__in > :nth-child(3) { animation-delay: 0.14s; }
.hero__texte > :nth-child(4) { animation-delay: 0.21s; }
.hero__fond img, .entete-page__fond img { animation: nsq-recul 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .surtitre::before, .entete-page .surtitre::before { transform-origin: left; animation: nsq-trait 0.7s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Micro-interactions : elles signalent ce qui est cliquable. */
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--primaire { box-shadow: 0 1px 0 rgb(11 24 38 / 0.12); }
.btn--primaire:hover { box-shadow: 0 10px 24px -10px rgb(196 46 30 / 0.55); }
.btn .icone { transition: transform 0.2s; }
.btn:hover .icone { transform: scale(1.08); }
.solution-carte, .avis__carte, .realisation, .valeur { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.solution-carte:hover, .realisation:hover { transform: translateY(-4px); box-shadow: 0 32px 70px -34px rgb(11 24 38 / 0.6); }
.solution-carte__visuel > img, .realisation__visuel img, .cadre img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.solution-carte:hover .solution-carte__visuel > img, .realisation:hover img { transform: scale(1.03); }
.valeur__icone { transition: transform 0.25s ease; }
.valeur:hover .valeur__icone { transform: translateY(-3px); }
.menu > li > a { position: relative; }
@media (min-width: 1040px) {
	.menu > li > a::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.35rem; height: 2px; background: var(--rouge); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
	.menu > li > a:hover::after, .menu > li > a[aria-current="page"]::after, .menu > .est-ancetre > a::after { transform: scaleX(1); }
	.menu > li > a:hover { background: none; }
}
.entete { transition: box-shadow 0.25s ease; }
.entete.est-colle { box-shadow: 0 6px 24px -14px rgb(11 24 38 / 0.45); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
	.a-reveler { opacity: 1; transform: none; }
	.hero__texte > *, .entete-page__in > *, .hero__fond img, .entete-page__fond img, .hero .surtitre::before, .entete-page .surtitre::before { animation: none; }
	.btn:hover, .solution-carte:hover, .realisation:hover, .valeur:hover .valeur__icone, .solution-carte:hover .solution-carte__visuel > img, .realisation:hover img { transform: none; }
}

@media print {
	.surbarre, .entete, .bandeau, .pied, .barre-mobile, .cookies, .boutons, .burger { display: none !important; }
	body { background: #fff; padding: 0; }
	.hero, .entete-page, .section--nuit { background: #fff !important; color: #000 !important; }
	.hero .chapeau, .entete-page .chapeau { color: #333 !important; }
	.section { padding-block: 1.5rem; }
	.a-reveler { opacity: 1; transform: none; }
}
