/*
Theme Name: Yann Home Concept
Theme URI: https://yannhc.fr
Author: Agence PTL
Author URI: https://agence-ptl.fr
Description: Thème sur-mesure de Yann Home Concept, menuiserie et agencement à Arc-sous-Cicon. Classique, sans constructeur de pages : une feuille, un script, le H1 rendu à la page. Le SEO, le consentement, les demandes de devis et la performance appartiennent aux plugins PTL.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: Propriétaire, usage réservé au client
Text Domain: yann-home-concept
*/

/* =========================================================================
   1. Jetons
   La palette est extraite du logo (monochrome #185460) et du site actuel
   (#20213E). Le bois est l'accent chaleur d'un métier du bois.

   Trois valeurs pour le même accent, et c'est voulu. --bois sert aux aplats
   et aux décors, où seule la règle des 3:1 s'applique. Le TEXTE prend
   --bois-clair sur fond clair et --bois-sombre sur fond pétrole : un accent
   de marque échoue presque toujours le 4.5:1 en petit texte, dans un sens
   comme dans l'autre (règle §6bis du playbook). Mesuré, pas supposé :
   #C07A3E sur blanc donne 3,45:1 et sur pétrole 2,46:1, deux échecs.
   ========================================================================= */

:root {
	--petrole: #1F5467; /* la couleur exacte du logo vectoriel du client */
	--petrole-fonce: #0F3640;
	--petrole-nuit: #0A262D;
	--encre: #20213E;
	--bois: #C07A3E;
	--bois-clair: #8A5420; /* le même, assombri : 6,2:1 sur blanc */
	--bois-sombre: #E8B583; /* le même, éclairci : 4,6:1 sur le pétrole */
	--creme: #F7F5F2;
	--creme-ombre: #ECE7E1;
	--blanc: #FFFFFF;
	--gris: #4A545C; /* 7,6:1 sur blanc : le gris doux n'est plus un gris pâle */
	--gris-clair: #DDE2E4;
	--gris-trait: #BFC8CC;

	--texte: var(--encre);
	--texte-doux: var(--gris);
	--fond: var(--blanc);
	--trait: var(--gris-clair);
	--trait-fort: var(--gris-trait);

	--titre: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
	--corps: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1240px;
	--etroit: 760px;
	--gout: clamp(20px, 4vw, 40px);
	--rayon: 4px;
	--rayon-sm: 3px;
	--ombre: 0 2px 4px rgba(16, 38, 45, .04), 0 12px 32px rgba(16, 38, 45, .08);
	--ombre-forte: 0 4px 8px rgba(16, 38, 45, .06), 0 24px 60px rgba(16, 38, 45, .14);
	--transition: .25s cubic-bezier(.22, .61, .36, 1);
	--hd: 76px;

	/* Rythme vertical : trois mesures, et rien d'autre. Une section, une tête
	   de section, une grille. Tout ce qui respire dans la page le fait avec
	   l'une des trois, sinon les blancs se contredisent d'un bloc à l'autre. */
	--s-sect: clamp(72px, 10vw, 136px);
	--s-tete: clamp(36px, 5vw, 64px);
	--s-grille: clamp(24px, 3.4vw, 48px);
}

/* =========================================================================
   2. Polices, auto-hébergées
   Une seule famille en deux chasses : Barlow Condensed pour les titres,
   Barlow pour le corps. Trois fichiers, 66 ko, sous licence OFL (voir
   assets/fonts/OFL.txt). Aucun appel à Google Fonts : Core Web Vitals et
   RGPD à la fois. `swap` pour que le texte s'affiche tout de suite.
   ========================================================================= */

@font-face {
	font-family: "Barlow Condensed";
	src: url("assets/fonts/barlow-condensed-latin-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Barlow";
	src: url("assets/fonts/barlow-latin-400.woff2") format("woff2");
	font-weight: 400 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Barlow";
	src: url("assets/fonts/barlow-latin-600.woff2") format("woff2");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}

/* =========================================================================
   3. Base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--corps);
	font-size: 17px;
	line-height: 1.6;
	color: var(--texte);
	background: var(--fond);
	-webkit-font-smoothing: antialiased;
	/* clip et non hidden : overflow-x:hidden sur body calcule overflow-y en auto
	   et casse tout position:sticky de la page (piege du design-kit PTL). */
	overflow-x: clip;
}

h1, h2, h3, h4 {
	font-family: var(--titre);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -.02em;
	color: var(--petrole);
	margin: 0 0 .5em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--petrole); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--bois-clair); }

img, svg, video { max-width: 100%; height: auto; display: block; }

strong, b { font-weight: 600; }

::selection { background: var(--petrole); color: var(--blanc); }

/* Un repère de focus visible partout, jamais retiré. */
:focus-visible {
	outline: 3px solid var(--bois-clair);
	outline-offset: 3px;
	border-radius: 3px;
}

/* Lecture d'écran seulement. */
.sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

.saut {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--petrole);
	color: var(--blanc);
	padding: 12px 20px;
	border-radius: 0 0 var(--rayon-sm) 0;
}
.saut:focus { left: 0; color: var(--blanc); }

.wrap { width: min(100% - 2 * var(--gout), var(--wrap)); margin-inline: auto; }
.wrap-etroit { width: min(100% - 2 * var(--gout), var(--etroit)); margin-inline: auto; }
.centre { text-align: center; }

/* =========================================================================
   4. Boutons et liens d'action
   Des rectangles aux angles à peine cassés, en capitales condensées : c'est
   l'écriture d'une étiquette d'atelier, pas la pilule de tous les sites.
   Contrastes vérifiés : blanc sur pétrole 8,1:1, pétrole sur blanc 8,1:1,
   bois-clair sur blanc 6,4:1. Aucun texte de bouton sous 4.5:1.
   ========================================================================= */

.btn {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	font-family: var(--titre);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: .9em 1.5em;
	border: 1.5px solid transparent;
	border-radius: var(--rayon-sm);
	text-decoration: none;
	cursor: pointer;
	transition: background var(--transition), color var(--transition), border-color var(--transition);
	min-height: 46px; /* cible tactile */
}
.btn-lg { font-size: 1.08rem; padding: 1em 1.8em; }
.btn .fl { transition: transform var(--transition); }
.btn:hover .fl { transform: translateX(3px); }

.btn-plein { background: var(--petrole); color: var(--blanc); }
.btn-plein:hover { background: var(--petrole-fonce); color: var(--blanc); }

.btn-ligne { border-color: var(--petrole); color: var(--petrole); background: transparent; }
.btn-ligne:hover { background: var(--petrole); color: var(--blanc); }

.btn-clair { background: var(--blanc); color: var(--petrole); }
.btn-clair:hover { background: var(--creme); color: var(--petrole-fonce); }

.btn-ligne-clair { border-color: rgba(255, 255, 255, .6); color: var(--blanc); }
.btn-ligne-clair:hover { background: var(--blanc); color: var(--petrole); border-color: var(--blanc); }

.lien-fleche {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-family: var(--titre);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--bois-clair);
	text-decoration: none;
}
.lien-fleche:hover { color: var(--petrole); text-decoration: underline; }
.lien-fleche .fl { transition: transform var(--transition); }
.lien-fleche:hover .fl { transform: translateX(3px); }

.lien-nu {
	background: none; border: 0; padding: 0;
	font: inherit; color: inherit; cursor: pointer;
	text-decoration: underline;
}

.surtitre {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--titre);
	font-size: .84rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--bois-clair); /* et pas --bois : contraste sur fond clair */
	margin: 0 0 .9em;
}
.surtitre a { color: inherit; }
.surtitre .ico { width: 1.25em; height: 1.25em; }

.chapo {
	font-size: clamp(1.08rem, 1.6vw, 1.26rem);
	line-height: 1.55;
	color: var(--texte-doux);
	max-width: 58ch;
}

/* =========================================================================
   5. En-tête
   ========================================================================= */

.hd {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--blanc);
	border-bottom: 1px solid var(--trait);
}
.hd .barre {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 28px);
	min-height: var(--hd);
}

.marque {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--petrole);
	margin-right: auto;
	flex: none; /* sinon le menu comprime la marque et le nom passe à la ligne */
}
/* Le logo est un rectangle 2:1 (symbole + mot) : il se dimensionne par sa
   hauteur, la largeur suit. 60 px dans l'en-tête de 76 px, un peu moins sur
   téléphone pour laisser la place au bouton. */
.yhc-logo { width: auto; height: 60px; flex: none; }
.pied .yhc-logo { height: 54px; }
.marque-txt { display: flex; flex-direction: column; line-height: 1.12; }
.marque-txt b { font-family: var(--titre); font-size: 1.32rem; letter-spacing: .01em; white-space: nowrap; }
.marque-txt small { font-size: .74rem; color: var(--texte-doux); letter-spacing: .02em; white-space: nowrap; }

@media (max-width: 620px) {
	.yhc-logo { height: 46px; }
}

/* Surtout pas de `min-width:0` ici : les liens sont en `nowrap`, le
   conteneur se laisserait comprimer et les intitulés se chevaucheraient
   sans que la boîte, elle, déborde. Le menu garde sa largeur naturelle et
   c'est le point de rupture qui décide. */
.menu { display: none; gap: clamp(8px, 1.2vw, 20px); }
.menu a {
	font-family: var(--titre);
	font-size: 1.08rem;
	font-weight: 600;
	color: var(--encre);
	text-decoration: none;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}
.menu a:hover, .menu a[aria-current] { color: var(--petrole); border-bottom-color: var(--bois); }

.hd-tel {
	display: none;
	align-items: center;
	gap: .4em;
	font-weight: 600;
	color: var(--petrole);
	text-decoration: none;
	white-space: nowrap;
}
.hd-cta { display: none; }

.burger {
	width: 46px; height: 46px;
	display: grid; place-items: center;
	background: var(--petrole);
	border: 0; border-radius: var(--rayon-sm);
	cursor: pointer;
}
.burger i, .burger i::before, .burger i::after {
	display: block;
	width: 20px; height: 2px;
	background: var(--blanc);
	border-radius: 2px;
	transition: transform var(--transition), opacity var(--transition);
}
.burger i { position: relative; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; }
.burger i::before { top: -6px; }
.burger i::after { top: 6px; }
.burger[aria-expanded="true"] i { background: transparent; }
.burger[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }

/* Panneau mobile. Il est hors de .hd dans le balisage : un élément fixe
   placé dans un parent qui porte un backdrop-filter se positionne par
   rapport à ce parent et non à l'écran.
   La règle [hidden] est obligatoire : sans elle, le display:flex ci-dessous
   écrase le display:none de l'attribut et le panneau invisible couvre tout
   l'écran en bloquant les clics. Piège déjà payé ailleurs. */
.mnav {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 80px var(--gout) 40px;
	background: var(--petrole-nuit);
	overflow-y: auto;
}
.mnav[hidden] { display: none; }
.mnav a {
	font-family: var(--titre);
	font-size: clamp(1.6rem, 7vw, 2.2rem);
	color: var(--blanc);
	text-decoration: none;
	padding: .18em 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	opacity: 0;
	transform: translateY(12px);
	animation: mnav-entre .38s cubic-bezier(.22, .61, .36, 1) forwards;
	animation-delay: calc(var(--i, 0) * 40ms + 60ms);
}
.mnav a:hover { color: var(--bois-sombre); }
.mnav-cta { color: var(--bois-sombre) !important; border-bottom: 0 !important; }
.mnav-pied {
	margin-top: 22px;
	color: rgba(255, 255, 255, .72);
	font-size: .95rem;
	line-height: 1.7;
}
/* Le lien du pied du panneau est un lien comme les autres pour le sélecteur
   `.mnav a` : on lui retire la taille et le filet des grandes entrées. */
.mnav-pied a { font-size: 1.15rem; color: var(--blanc); padding: 0; border-bottom: 0; }
@keyframes mnav-entre { to { opacity: 1; transform: none; } }

body.menu-ouvert { overflow: hidden; }

/* =========================================================================
   6. (libre) Les cercles décoratifs du logo ont été retirés de tous les
   fonds : un motif répété sur chaque bloc sombre, c'est la signature d'un
   gabarit, pas d'un atelier.
   ========================================================================= */

/* =========================================================================
   7. Manchette d'accueil
   Le H1 de la page, posé comme une une de journal : grand, à gauche, sur
   papier crème, et le chapeau en regard. Pas de photo de banque à côté, pas
   de dégradé derrière : le mur de chantiers juste au-dessus a déjà montré
   le travail.
   ========================================================================= */

.banniere {
	position: relative;
	background: var(--creme);
	color: var(--texte);
	padding: var(--s-sect) 0 calc(var(--s-sect) * .75);
	border-bottom: 1px solid var(--trait);
}
.banniere-grille {
	display: grid;
	gap: clamp(24px, 4vw, 56px) var(--s-grille);
	align-items: end;
}
.banniere .surtitre { color: var(--bois-clair); }
.banniere h1 { color: var(--petrole); font-size: clamp(2.5rem, 6.2vw, 5rem); max-width: 13ch; margin: 0; }
.banniere .chapo { color: var(--texte); max-width: 44ch; }
.banniere-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 1em; }
.banniere-preuve { font-size: .95rem; color: var(--texte-doux); max-width: 44ch; }

/* =========================================================================
   8. Bande de services
   Les intitulés étaient en capitales sans accents dans le contenu
   (« FENETRES - PORTES - PERGOLA »). Ils sont écrits normalement et mis en
   capitales par le CSS : lisible par un moteur, correct à l'oral d'un
   lecteur d'écran, et le rendu ne change pas.
   ========================================================================= */

.bande { background: var(--blanc); border-bottom: 1px solid var(--trait); }
.bande-liste {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px clamp(20px, 3.4vw, 48px);
	list-style: none;
	margin: 0;
	padding: 15px 0;
	font-family: var(--titre);
	font-size: .92rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--texte-doux);
}
.bande-liste li { position: relative; }
.bande-liste li + li::before {
	content: "";
	position: absolute;
	left: clamp(-26px, -1.7vw, -12px);
	top: 50%;
	width: 4px; height: 4px;
	border-radius: 50%;
	background: var(--bois);
	transform: translateY(-50%);
}

/* =========================================================================
   9. Sections
   Une seule mesure de respiration (--s-sect) et des filets pour séparer, à
   la place de l'alternance blanc / crème / sombre de tous les thèmes. Le
   crème reste pour deux blocs, le sombre pour un seul.
   ========================================================================= */

.sect { padding: var(--s-sect) 0; position: relative; }
.sect-claire { background: var(--creme); }
.sect-sombre { background: var(--petrole-nuit); color: rgba(255, 255, 255, .9); }
.sect-sombre h2, .sect-sombre h3 { color: var(--blanc); }
.sect-sombre .chapo { color: rgba(255, 255, 255, .84); }
.sect-sombre .surtitre { color: var(--bois-sombre); }
/* Deux sections blanches qui se suivent : un filet entre elles. */
.sect:not(.sect-claire):not(.sect-sombre) + .sect:not(.sect-claire):not(.sect-sombre) { border-top: 1px solid var(--trait); }

/* Tête de section : le titre à gauche, le chapeau en regard à droite, et un
   filet sous l'ensemble. C'est une ligne de rédaction, pas une étiquette
   centrée. */
.sect-tete {
	display: grid;
	gap: 14px var(--s-grille);
	align-items: end;
	margin: 0 0 var(--s-tete);
	padding-bottom: clamp(22px, 3vw, 34px);
	border-bottom: 1px solid var(--trait-fort);
}
.sect-tete .surtitre { grid-column: 1 / -1; margin: 0; }
.sect-tete h2 { margin: 0; max-width: 16ch; }
.sect-tete .chapo, .sect-tete .sect-chapo { margin: 0; max-width: 46ch; font-size: 1.05rem; line-height: 1.6; color: var(--texte-doux); }
.sect-sombre .sect-tete { border-color: rgba(255, 255, 255, .18); }
.sect-sombre .sect-tete .sect-chapo { color: rgba(255, 255, 255, .8); }

.duo { display: grid; gap: var(--s-grille); align-items: start; position: relative; }
.duo h2 { max-width: 18ch; }

/* Fiche d'identité de l'atelier : une liste de définitions à filets, comme
   une fiche technique. Remplace les trois cartes à chiffres. */
.fiche { margin: 0; border-top: 1px solid var(--trait-fort); }
.fiche > div {
	display: grid;
	grid-template-columns: minmax(96px, .8fr) 2fr;
	gap: 6px 20px;
	padding: 15px 0;
	border-bottom: 1px solid var(--trait);
}
.fiche dt { margin: 0; font-family: var(--titre); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); padding-top: .35em; }
.fiche dd { margin: 0; color: var(--texte); }
.fiche dd b { font-family: var(--titre); font-weight: 600; font-size: 1.4rem; color: var(--petrole); margin-right: .3em; }

/* Les quatre raisons, numérotées et séparées par des filets. */
.atouts { list-style: none; margin: 1.6em 0 0; padding: 0; counter-reset: atout; border-top: 1px solid rgba(255, 255, 255, .18); }
/* Le numéro est posé en absolu et non dans une grille : le texte de la
   ligne est un nœud anonyme, qu'une grille rangerait dans la colonne du
   numéro, un mot par ligne. Vu à l'écran. */
.atouts li {
	counter-increment: atout;
	position: relative;
	padding: 18px 0 18px 3.2rem;
	border-bottom: 1px solid rgba(255, 255, 255, .18);
	color: rgba(255, 255, 255, .84);
}
.atouts li::before {
	content: counter(atout, decimal-leading-zero);
	position: absolute;
	left: 0; top: 18px;
	font-family: var(--titre);
	font-size: 1.05rem;
	letter-spacing: .08em;
	color: var(--bois-sombre);
	padding-top: .3em;
}
.atouts b { display: block; font-family: var(--titre); font-weight: 600; font-size: 1.35rem; line-height: 1.15; color: var(--blanc); margin-bottom: .25em; }

.portrait { position: relative; }
.portrait img { border-radius: var(--rayon); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.portrait-legende {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, .18);
	display: flex; flex-direction: column;
	font-size: .95rem;
	color: rgba(255, 255, 255, .78);
}
.portrait-legende b { font-family: var(--titre); font-size: 1.3rem; color: var(--blanc); }

/* =========================================================================
   10. Cartes et mosaïque
   Pas de boîte : un filet au-dessus, l'image, le texte. La grille fait la
   carte, pas la bordure arrondie.
   ========================================================================= */

.grille-cartes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--s-grille) clamp(20px, 2.6vw, 36px);
}
.grille-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.carte { border-top: 1px solid var(--trait-fort); }
.carte-lien { display: flex; flex-direction: column; height: 100%; padding-top: 18px; text-decoration: none; color: inherit; }
.carte-img { aspect-ratio: 3 / 2; background: var(--creme-ombre); overflow: hidden; border-radius: var(--rayon); }
.carte-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.carte:hover .carte-img img { transform: scale(1.03); }
.carte-corps { padding: 18px 0 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.carte-corps h2, .carte-corps h3 { margin: 0; font-size: 1.42rem; }
.carte-lien:hover h3, .carte-lien:hover h2 { color: var(--bois-clair); }
.carte-corps p { color: var(--texte-doux); font-size: 1rem; margin: 0; }
.carte-corps .lien-fleche { margin-top: auto; padding-top: 8px; }
.carte-meta { font-family: var(--titre); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); margin: 0; display: flex; gap: .5em; flex-wrap: wrap; }
.carte-meta .sep, .article-meta .sep, .fil .sep { color: var(--bois); }

.mosaique {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: var(--s-tete);
}
.mosaique figure { margin: 0; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3; background: var(--creme-ombre); }
.mosaique img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) {
	.mosaique { grid-template-columns: repeat(4, 1fr); }
	/* La première photo en double format : une planche, pas un damier. */
	.mosaique figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* =========================================================================
   11. Zones d'intervention
   ========================================================================= */

.grille-zones, .grille-pastilles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 10px;
}
.pastille {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 16px 18px;
	background: var(--blanc);
	border: 1px solid var(--trait-fort);
	border-radius: var(--rayon-sm);
	text-decoration: none;
	color: var(--texte);
	transition: border-color var(--transition), color var(--transition);
}
.pastille:hover { border-color: var(--petrole); color: var(--petrole); }
.pastille b { font-family: var(--titre); font-size: 1.15rem; color: var(--petrole); }
.pastille span { font-size: .9rem; color: var(--texte-doux); }

/* Les communes en colonnes à filets, le code postal au bout d'une ligne de
   points : une liste de tarifs d'atelier, pas des pilules. */
.liste-communes {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 0 var(--s-grille);
	border-top: 1px solid var(--trait-fort);
}
.liste-communes li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--trait);
	font-family: var(--titre);
	font-size: 1.15rem;
	color: var(--petrole);
}
.liste-communes li::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--trait-fort); }
.liste-communes small { order: 2; font-family: var(--corps); font-size: .9rem; font-weight: 400; color: var(--texte-doux); }

/* =========================================================================
   12. Pages de contenu
   ========================================================================= */

.fil { background: var(--creme); border-bottom: 1px solid var(--creme-ombre); font-size: .9rem; }
.fil .wrap { padding: 10px 0; display: flex; flex-wrap: wrap; gap: .5em; align-items: center; }
.fil a { color: var(--texte-doux); text-decoration: none; }
.fil a:hover { color: var(--petrole); text-decoration: underline; }
.fil [aria-current] { color: var(--petrole); font-weight: 600; }

.page-tete { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-tete-img { background: var(--creme); padding-bottom: clamp(36px, 6vw, 72px); }
.page-tete-grille { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.page-tete-visuel img { border-radius: var(--rayon); width: 100%; }

.contenu { padding-bottom: clamp(36px, 6vw, 64px); max-width: var(--etroit); }
.page-expertise .contenu, .page-zone .contenu { max-width: var(--etroit); }
.contenu > * { max-width: 100%; }
.contenu h2 { margin-top: 1.8em; }
.contenu h3 { margin-top: 1.4em; }
.contenu ul, .contenu ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.contenu li { margin-bottom: .5em; }
.contenu img { border-radius: var(--rayon-sm); margin: 1.4em 0; }
.contenu blockquote {
	margin: 1.8em 0;
	padding: 6px 0 6px 22px;
	border-left: 3px solid var(--bois);
	font-family: var(--titre);
	font-size: 1.5rem;
	line-height: 1.25;
	color: var(--petrole);
}
.contenu figure { margin: 1.6em 0; }
.contenu figcaption { font-size: .88rem; color: var(--texte-doux); margin-top: .5em; }

.tableau { overflow-x: auto; margin: 1.6em 0; }
.tableau table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
.tableau th, .tableau td { padding: 10px 14px; border-bottom: 1px solid var(--trait); text-align: left; }
.tableau th { background: var(--creme); font-family: var(--titre); font-size: 1.05rem; color: var(--petrole); }

.article-visuel { margin-bottom: clamp(24px, 4vw, 40px); }
.article-visuel img { border-radius: var(--rayon); width: 100%; }
.article-meta { font-size: .95rem; color: var(--texte-doux); display: flex; flex-wrap: wrap; gap: .5em; }

.signature {
	margin: clamp(32px, 5vw, 56px) 0;
	padding: 24px 26px;
	background: var(--creme);
	border-left: 3px solid var(--bois);
}
.signature b { font-family: var(--titre); font-size: 1.35rem; color: var(--petrole); display: block; }
.signature span { font-size: .92rem; color: var(--texte-doux); display: block; margin-bottom: .8em; }
.signature p { font-size: .97rem; }

.alerte-admin {
	background: #FFF4E0;
	border: 1px solid var(--bois);
	border-radius: var(--rayon-sm);
	padding: 14px 18px;
	color: #6B3F12;
	font-size: .95rem;
}

.vide { text-align: center; padding: clamp(32px, 6vw, 72px) 0; }

.pagination { margin: clamp(32px, 5vw, 56px) 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination a, .pagination span {
	min-width: 44px; min-height: 44px;
	display: grid; place-items: center;
	padding: 0 14px;
	border: 1px solid var(--trait);
	border-radius: var(--rayon-sm);
	text-decoration: none;
	font-weight: 600;
}
.pagination .current { background: var(--petrole); color: var(--blanc); border-color: var(--petrole); }

.recherche { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 1.4em 0; }
.recherche input {
	flex: 1 1 240px;
	padding: 12px 16px;
	border: 1px solid var(--trait);
	border-radius: 999px;
	font: inherit;
	min-height: 44px;
}

/* =========================================================================
   13. FAQ
   ========================================================================= */

.sect-faq { background: var(--creme); }
.faq { display: grid; gap: 0; border-bottom: 1px solid var(--trait-fort); }
.faq details { border-top: 1px solid var(--trait-fort); }
.faq summary {
	cursor: pointer;
	padding: 18px 44px 18px 0;
	font-family: var(--titre);
	font-size: 1.2rem;
	color: var(--petrole);
	position: relative;
	list-style: none;
	min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "";
	position: absolute;
	right: 6px; top: 50%;
	width: 9px; height: 9px;
	border-right: 2px solid var(--bois);
	border-bottom: 2px solid var(--bois);
	transform: translateY(-70%) rotate(45deg);
	transition: transform var(--transition);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-rep { padding: 0 0 20px; color: var(--texte-doux); max-width: 62ch; }

/* =========================================================================
   14. Formulaire
   ========================================================================= */

.form { display: grid; gap: 12px; }
.form-intro { font-size: .92rem; color: var(--texte-doux); margin: 0; }
.form-ligne { display: grid; gap: 12px; }
.champ { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.champ label { font-size: .92rem; font-weight: 600; }
.champ input, .champ select, .champ textarea {
	font: inherit;
	padding: 11px 14px;
	border: 1px solid var(--trait);
	border-radius: var(--rayon-sm);
	background: var(--blanc);
	color: var(--texte);
	min-height: 44px;
	width: 100%;
}
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--petrole); }
.champ-case { flex-direction: row; align-items: flex-start; gap: 10px; }
.champ-case input { width: 20px; height: 20px; min-height: 20px; flex: none; margin-top: 2px; accent-color: var(--petrole); }
.champ-case label { font-weight: 400; font-size: .92rem; }
.req { color: var(--bois-clair); }
.form-envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 0; }
.form-obli { font-size: .84rem; color: var(--texte-doux); }
.form-reponse { margin: 0; font-weight: 600; }
.form-reponse:empty { display: none; }
.form-reponse.ok { color: #15603C; }
.form-reponse.ko { color: #A32020; }
.form-noscript { font-size: .92rem; color: var(--texte-doux); }
.champ.erreur input, .champ.erreur textarea { border-color: #A32020; }

/* Pot de miel : hors écran, mais lisible par un robot qui ignore le CSS. */
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.appel-form .form { background: rgba(255, 255, 255, .06); padding: 22px; border-radius: var(--rayon); }
.appel-form .champ label, .appel-form .form-intro, .appel-form .form-obli { color: rgba(255, 255, 255, .86); }
.appel-form .champ input, .appel-form .champ select, .appel-form .champ textarea { background: var(--blanc); border-color: transparent; }
.appel-form .form-reponse.ok { color: #9BF0C4; }
.appel-form .form-reponse.ko { color: #FFC4C4; }

/* =========================================================================
   15. Contact
   ========================================================================= */

.contact-grille { display: grid; gap: clamp(28px, 4vw, 52px); padding-bottom: clamp(40px, 6vw, 80px); }
.bloc-coord, .bloc-carte { margin-top: 28px; }
.bloc-coord h2, .bloc-carte h2 { font-size: 1.4rem; margin-top: 1.4em; }
.bloc-coord h2:first-child { margin-top: 0; }
.bloc-coord address { font-style: normal; margin-bottom: 1em; }
.contact-liens { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-form { background: var(--creme); padding: clamp(22px, 3vw, 34px); border-radius: var(--rayon); align-self: start; }
.contact-form h2 { margin-top: 0; }

/* =========================================================================
   16. Appel final
   ========================================================================= */

.appel {
	position: relative;
	background: var(--petrole);
	color: var(--blanc);
	padding: var(--s-sect) 0;
}
.appel-grille { position: relative; display: grid; gap: var(--s-grille); align-items: start; }
.appel h2 { color: var(--blanc); max-width: 16ch; }
.appel p { color: rgba(255, 255, 255, .88); max-width: 46ch; }
.appel-coord { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 .8em; }
.appel-horaires { font-size: .92rem; color: rgba(255, 255, 255, .72) !important; }

/* =========================================================================
   17. Pied de page
   ========================================================================= */

.pied { background: var(--petrole-nuit); color: rgba(255, 255, 255, .78); padding: clamp(40px, 6vw, 72px) 0 24px; font-size: .95rem; }
.pied a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied .marque { display: inline-block; margin-bottom: 14px; }
.pied-accroche { color: rgba(255, 255, 255, .7); margin-bottom: 1em; }
.pied address { font-style: normal; line-height: 1.8; }
.pied-grille { display: grid; gap: clamp(26px, 4vw, 44px); }
.pied-titre { display: block; font-family: var(--titre); font-size: 1.15rem; color: var(--blanc); margin-bottom: .6em; letter-spacing: .02em; }
.pied-menu { display: flex; flex-direction: column; gap: 7px; }
.pied-zone { margin-bottom: .8em; }
.pied-horaires { margin-top: 1.2em; }
.pied .lien-fleche { color: var(--bois-sombre); }
.pied-bas {
	margin-top: clamp(28px, 4vw, 44px);
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	align-items: center;
	font-size: .88rem;
}
.pied-legal { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.ptl-sig { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ptl-sig .dot { width: 7px; height: 7px; border-radius: 50%; background: #16DDBE; box-shadow: 0 0 10px #16DDBE; }
.ptl-sig .nom {
	background: linear-gradient(90deg, #16DDBE, #8FE9DB, #16DDBE);
	background-size: 200% auto;
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	animation: ptl-brille 6s linear infinite;
	font-weight: 600;
}
.ptl-sig .etoile { width: 13px; height: 13px; color: #16DDBE; opacity: 0; transition: opacity var(--transition), transform var(--transition); }
.ptl-sig:hover .etoile { opacity: 1; transform: rotate(90deg) scale(1.1); }
.ptl-sig:hover .nom { text-decoration: underline; }
@keyframes ptl-brille { to { background-position: 200% center; } }

/* =========================================================================
   18. Révélation au défilement
   Du contenu n'est masqué que si JavaScript peut le révéler (classe .js
   posée dans <head>). Sans script, tout est visible d'emblée.
   ========================================================================= */

.js [data-anim] { opacity: 0; transform: translateY(18px); }
.js [data-anim].vu { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }

/* =========================================================================
   19. Points de rupture
   ========================================================================= */

@media (min-width: 620px) {
	.form-ligne { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
	.banniere-grille { grid-template-columns: 1.25fr .75fr; }
	.sect-tete { grid-template-columns: 1.15fr .85fr; }
	.sect-tete .chapo, .sect-tete .sect-chapo { padding-bottom: .3em; }
	.duo { grid-template-columns: 1.1fr .9fr; }
	.duo-inverse { grid-template-columns: .8fr 1.2fr; }
	.duo-inverse > :first-child { order: 2; }
	.page-tete-grille { grid-template-columns: 1.1fr .9fr; }
	.appel-grille { grid-template-columns: 1fr 1fr; }
	.contact-grille { grid-template-columns: 1fr 1fr; }
	.pied-grille { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* Le menu complet n'apparaît qu'à partir de 1140 px : mesuré, sept entrées
   plus le bouton tiennent à partir de là. En dessous, le panneau mobile fait
   le travail, et il le fait mieux qu'un menu tassé. */
@media (min-width: 1140px) {
	.menu { display: flex; }
	.burger { display: none; }
	.hd-cta { display: inline-flex; }
	.mnav { display: none !important; }
}

/* Le numéro en clair demande 120 px de plus : il n'apparaît que quand ils
   existent. Il reste joignable partout ailleurs (panneau mobile, pied de
   page, appel final). */
@media (min-width: 1300px) {
	.hd-tel { display: inline-flex; }
}

/* =========================================================================
   20. Impression et préférences
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.js [data-anim] { opacity: 1; transform: none; }
	.mnav a { opacity: 1; transform: none; }
}

@media print {
	.hd, .mnav, .appel, .pied, .saut, .fil { display: none !important; }
	body { font-size: 12pt; color: #000; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* =========================================================================
   22. Bande défilante
   Du kit PTL, on ne garde que ceci. Le curseur personnalisé, le reflet qui
   balaie les boutons, le grain et le titre qui se pose mot à mot ont été
   retirés : vus côte à côte, ils signent « site généré » plus sûrement
   qu'ils ne signent l'agence. La bande reste parce qu'elle dit le métier.
   ========================================================================= */

.bande { overflow: hidden; }
.bande-cadre { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.bande-piste { flex-wrap: nowrap; width: max-content; justify-content: flex-start; animation: bande-file 58s linear infinite; }
.bande-piste li { white-space: nowrap; }
.bande-piste:hover { animation-play-state: paused; }
@keyframes bande-file { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
	.bande-piste { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
}

/* =========================================================================
   21. Scène d'introduction : le mur de chantiers

   Pattern « scrollytelling épinglé » du design-kit PTL (DESIGN-2026 §3) :
   un conteneur haut, une scène épinglée dedans, et la progression du
   défilement pilote le récit.

   Ici le récit, c'est le catalogue de l'atelier. À droite, trois colonnes
   de photos de chantiers défilent en sens contraires, EN PLEINE COULEUR :
   aucun voile dessus, ce sont elles l'argument. À gauche, un aplat franc
   porte les savoir-faire qui se succèdent, numérotés. Le dernier écran est
   l'appel au devis. La première version noyait tout le mur sous une nappe
   sombre pour faire lire le texte par-dessus ; on sépare les deux à la
   place, et chacun garde son contraste.

   Règles du kit tenues ici : contenu jamais masqué (la scène est une
   section ordinaire, le H1 est juste en dessous, dans le flux), aucun titre
   de niveau dans l'intro, mur décoratif et aria-hidden puisque la même
   galerie est plus bas avec ses alternatives textuelles, lien « Passer
   l'intro » visible dès la première seconde, boucle rAF démarrée et stoppée
   par IntersectionObserver, et tout déplié en liste statique si le visiteur
   demande moins d'animations.
   ========================================================================= */

.scn { position: relative; height: 460vh; background: var(--petrole-nuit); color: #EAF2F4; }

.scn-scene {
	/* L'en-tête est collé en haut : la scène se cale dessous et prend
	   exactement le reste de l'écran, sinon le bas est rogné. */
	position: sticky;
	top: var(--hd);
	height: calc(100vh - var(--hd));
	height: calc(100svh - var(--hd));
	display: grid;
	align-items: center;
	overflow: hidden;
}

/* ---------- Le mur ---------- */

.scn-mur { position: absolute; top: -6%; bottom: -6%; left: 42%; right: -1%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; pointer-events: none; }
.mur-col { position: relative; }
/* Deux transformations imbriquées, jamais sur le même élément : le
   défilement est porté par la piste (JS), la dérive lente par l'intérieur
   (CSS). C'est le piège « scale + translate » du kit, version translate. */
.mur-piste { display: block; will-change: transform; }
.mur-derive { display: block; animation: mur-respire 19s ease-in-out infinite alternate; }
.mur-col:nth-child(2) .mur-derive { animation-duration: 23s; animation-delay: -6s; }
.mur-col:nth-child(3) .mur-derive { animation-duration: 27s; animation-delay: -11s; }
.mur-col:nth-child(4) .mur-derive { animation-duration: 21s; animation-delay: -3s; }
@keyframes mur-respire { from { transform: translateY(-14px); } to { transform: translateY(14px); } }

/* Décalage de départ par colonne : sans ça les colonnes sont alignées au
   pixel près et le mur ressemble à un tableur. */
.mur-col:nth-child(1) .mur-piste { margin-top: -9%; }
.mur-col:nth-child(3) .mur-piste { margin-top: -16%; }
.mur-col:nth-child(4) .mur-piste { margin-top: -5%; }

.mur-tuile { display: block; margin: 0 0 12px; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 3 / 4; background: #123C46; }
.mur-tuile img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* La jonction : l'aplat de gauche fond dans le mur sur quelques
   pourcents, et un léger assombrissement en haut et en bas de l'écran
   tient les tuiles qui sortent du cadre. Rien sur les photos elles-mêmes. */
.scn-voile { position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, var(--petrole-nuit) 0%, var(--petrole-nuit) 42%, rgba(10, 38, 45, 0) 50%),
		linear-gradient(180deg, rgba(10, 38, 45, .45) 0%, transparent 16%, transparent 84%, rgba(10, 38, 45, .55) 100%); }

/* ---------- Le premier plan ---------- */

.scn-avant { position: relative; z-index: 2; }
.scn-sur { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-family: var(--titre); font-size: .84rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bois-sombre); }

.scn-actes { display: grid; max-width: min(520px, 36vw); min-height: 300px; align-content: center; }
.scn-acte { grid-area: 1 / 1; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.scn-acte.on { opacity: 1; transform: none; pointer-events: auto; }
/* Un lien invisible reste atteignable au clavier : on le retire du parcours
   tant que son acte n'est pas à l'écran. */
.scn-acte:not(.on) a { visibility: hidden; }

.scn-acte .scn-no { margin: 0 0 10px; font-family: var(--titre); font-weight: 600; font-size: .95rem; letter-spacing: .12em; color: var(--bois-sombre); }
.scn-acte .scn-no span { color: rgba(234, 242, 244, .5); margin-left: 4px; }
.scn-acte .scn-h { font-family: var(--titre); font-weight: 600; font-size: clamp(32px, 4.4vw, 64px); line-height: .98; letter-spacing: -.02em; margin: 0 0 18px; color: #FFF; text-wrap: balance; }
.scn-acte p { max-width: 42ch; color: rgba(234, 242, 244, .82); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; margin: 0 0 18px; }
.scn-acte .scn-lien { display: inline-flex; align-items: center; gap: 8px; font-family: var(--titre); font-size: 1.05rem; letter-spacing: .04em; color: var(--bois-sombre); font-weight: 600; text-decoration: none; }
.scn-acte .scn-lien:hover { color: #FFF; text-decoration: underline; }
.scn-acte .scn-lien svg { transition: transform var(--transition); }
.scn-acte .scn-lien:hover svg { transform: translateX(3px); }

.scn-acte--fin .scn-h { color: var(--bois-sombre); }
.scn-acte--fin .btn { margin-top: 4px; }

/* ---------- Passer l'intro, et jauge de progression ---------- */

.scn-passer { margin: 36px 0 0; }
.scn-passer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: rgba(234, 242, 244, .72); font-size: .95rem; text-decoration: underline; text-underline-offset: .22em; }
.scn-passer a:hover, .scn-passer a:focus-visible { color: #FFF; }
.scn-passer svg { transition: transform var(--transition); }
.scn-passer a:hover svg { transform: translateY(2px); }

.scn-jauge { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .14); z-index: 3; }
.scn-jauge b { display: block; height: 100%; width: 0; background: var(--bois-sombre); }

/* ---------- Points de rupture ---------- */

@media (max-width: 1100px) {
	.scn-mur { left: 46%; grid-template-columns: repeat(2, 1fr); }
	.mur-col:nth-child(3) { display: none; }
	.scn-voile { background:
		linear-gradient(90deg, var(--petrole-nuit) 0%, var(--petrole-nuit) 46%, rgba(10, 38, 45, 0) 54%),
		linear-gradient(180deg, rgba(10, 38, 45, .45) 0%, transparent 16%, transparent 84%, rgba(10, 38, 45, .55) 100%); }
	.scn-actes { max-width: min(460px, 40vw); }
}

@media (max-width: 760px) {
	.scn { height: 400vh; }
	/* Sur un téléphone, le mur prend le haut de l'écran et le texte le bas,
	   sur son aplat : la séparation passe à l'horizontale. */
	.scn-mur { top: -4%; left: -2%; right: -2%; bottom: 46%; grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.mur-col:nth-child(3) { display: block; }
	.mur-tuile { margin-bottom: 8px; }
	/* L'aplat commence plus haut que le bas du mur : le surtitre, posé
	   au-dessus des actes, doit tomber sur l'aplat et pas sur une photo. */
	.scn-voile { background: linear-gradient(180deg, rgba(10, 38, 45, 0) 0%, rgba(10, 38, 45, 0) 34%, var(--petrole-nuit) 48%); }
	.scn-avant { align-self: end; padding-bottom: 24px; }
	.scn-actes { max-width: none; min-height: 190px; }
	.scn-acte .scn-h { font-size: clamp(28px, 8.5vw, 40px); }
	.scn-acte p { font-size: 15px; }
	.scn-sur { margin-bottom: 12px; font-size: .78rem; }
	.scn-passer { margin-top: 18px; }
}

/* Moins d'animations : le mur s'arrête, et les savoir-faire se déplient en
   liste lisible. Rien ne disparaît. */
@media (prefers-reduced-motion: reduce) {
	.scn { height: auto; }
	.scn-scene { position: static; height: auto; padding: 48px 0 56px; }
	.scn-mur, .scn-jauge { display: none; }
	.scn-voile { display: none; }
	.scn-actes { display: block; max-width: 44rem; min-height: 0; }
	.scn-acte { position: static; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 30px; }
	.scn-acte:not(.on) a { visibility: visible; }
	.scn-acte .scn-h { font-size: clamp(24px, 4vw, 34px); }
	.mur-derive { animation: none; }
}

/* =========================================================================
   23. Titres, sous-titres et icônes

   Un site d'artisan ne doit pas se lire comme un gabarit. Les têtes de
   section sont à gauche, le chapeau en regard (§9). Chaque intitulé porte
   son icône, dessinée pour ce site : même grille de 24, même épaisseur de
   trait, mêmes extrémités arrondies. C'est ce qui fait reconnaître un jeu
   d'icônes plutôt qu'une collection. Aucun emoji, aucune police d'icônes :
   le trait prend la couleur du texte qui le porte (playbook §6bis).
   ========================================================================= */

.ico { flex: none; }

/* L'accent de bois dans les titres : un mot, pas un dégradé. */
h1 em, h2 em { font-style: normal; color: var(--bois-clair); }
.sect-sombre h2 em, .appel h2 em { color: var(--bois-sombre); }

/* Titres de cartes : l'icône du savoir-faire devant l'intitulé. */
.carte-corps h3 { display: flex; align-items: center; gap: 10px; }
.carte-corps h3 .ico { width: 1.05em; height: 1.05em; color: var(--bois-clair); }

/* Titre de page d'expertise : la même icône, en plus grand, posée devant. */
.titre-icone { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); }
.titre-icone .ico { color: var(--bois-clair); }

/* =========================================================================
   24. La liste des métiers
   Huit savoir-faire en lignes à filets, numérotés, et à droite une seule
   photo qui change avec la ligne survolée. C'est la table des matières d'un
   catalogue d'atelier, à la place de huit cartes identiques.
   Sur un téléphone, la photo revient en vignette dans chaque ligne.
   ========================================================================= */

.metiers { display: grid; gap: var(--s-grille); align-items: start; }
.metiers-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait-fort); }
.metier { border-bottom: 1px solid var(--trait-fort); }
.metier a {
	display: grid;
	grid-template-columns: 2.6rem 1fr auto;
	grid-template-areas: "no nom fl" "no txt fl";
	gap: 5px 16px;
	align-items: center;
	padding: 20px 0;
	text-decoration: none;
	color: inherit;
}
.metier-no { grid-area: no; align-self: start; padding-top: .4em; font-family: var(--titre); font-size: .95rem; letter-spacing: .1em; color: var(--texte-doux); }
.metier-nom { grid-area: nom; display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 600; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.08; letter-spacing: -.01em; color: var(--petrole); transition: color var(--transition); }
.metier-nom .ico { width: 1em; height: 1em; color: var(--bois-clair); }
.metier-txt { grid-area: txt; color: var(--texte-doux); font-size: 1rem; max-width: 54ch; }
.metier-fl { grid-area: fl; color: var(--bois-clair); transition: transform var(--transition); }
.metier-vign { grid-area: vign; display: none; }
.metier a:hover .metier-nom, .metier a:focus-visible .metier-nom, .metier.on .metier-nom { color: var(--bois-clair); }
.metier a:hover .metier-fl, .metier.on .metier-fl { transform: translateX(4px); }

.metiers-visuel { display: none; }

@media (min-width: 900px) {
	.metiers { grid-template-columns: 1fr minmax(300px, 420px); }
	.metiers-visuel {
		display: block;
		position: sticky;
		top: calc(var(--hd) + 24px);
		margin: 0;
		aspect-ratio: 4 / 5;
		border-radius: var(--rayon);
		overflow: hidden;
		background: var(--creme-ombre);
	}
	.metiers-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
	.metiers-visuel img.on { opacity: 1; }
}

@media (max-width: 899px) {
	.metier a { grid-template-columns: 76px 1fr auto; grid-template-areas: "vign nom fl" "vign txt fl"; }
	.metier-no { display: none; }
	.metier-vign { display: block; aspect-ratio: 1; border-radius: var(--rayon); overflow: hidden; background: var(--creme-ombre); align-self: start; }
	.metier-vign img { width: 100%; height: 100%; object-fit: cover; }
}

@media (max-width: 620px) {
	.titre-icone .ico { display: none; }
}

/* Le surtitre de l'intro porte la même icône que le reste du site. */
.scn-sur .ico { width: 1.3em; height: 1.3em; }


/* =========================================================================
   25. La galerie des réalisations
   Des colonnes, pas une grille recadrée : chaque photo garde son format,
   portrait ou paysage, comme sur une planche de tirages. L'agrandissement
   est un <dialog> natif : clavier, Échap et focus gérés par le navigateur.
   ========================================================================= */

.contenu-large { max-width: none; }
.galerie-compte { color: var(--texte-doux); font-size: .95rem; margin: 0 0 clamp(18px, 2.4vw, 28px); }

.galerie { columns: 3; column-gap: 12px; }
.galerie-item { break-inside: avoid; margin: 0 0 12px; }
.galerie-item a { display: block; border-radius: var(--rayon); overflow: hidden; background: var(--creme-ombre); }
.galerie-item img { width: 100%; height: auto; display: block; margin: 0; border-radius: 0; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.galerie-item a:hover img { transform: scale(1.025); }
.galerie-item figcaption { font-size: .86rem; color: var(--texte-doux); margin: 8px 2px 0; line-height: 1.4; }
.contenu .galerie figure { margin: 0 0 12px; }
@media (max-width: 1000px) { .galerie { columns: 2; } }
@media (max-width: 560px) { .galerie { columns: 1; } }

.agrandir { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--blanc); }
.agrandir::backdrop { background: rgba(10, 38, 45, .96); }
.agrandir figure { margin: 0; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; padding: 56px clamp(16px, 8vw, 96px) 24px; box-sizing: border-box; }
.agrandir img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: var(--rayon); }
.agrandir figcaption { margin-top: 12px; font-size: .95rem; color: rgba(255, 255, 255, .8); text-align: center; }
.agrandir-fermer, .agrandir-nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--rayon-sm); background: rgba(10, 38, 45, .6); color: var(--blanc); cursor: pointer; }
.agrandir-fermer:hover, .agrandir-nav:hover { background: var(--blanc); color: var(--petrole-nuit); }
.agrandir-fermer { top: 14px; right: 14px; }
.agrandir-nav { top: 50%; transform: translateY(-50%); }
.agrandir-prec { left: 14px; }
.agrandir-prec svg { transform: rotate(180deg); }
.agrandir-suiv { right: 14px; }
