/*
Theme Name: Josse Peinture
Description: Site de Josse Peinture, peintre en bâtiment à Paimpol. Textes, photos, chantiers et avis se modifient depuis le menu « Mon entreprise » et les rubriques Réalisations, Prestations et Avis clients.
Author: ND Studio
Version: 1.0
Requires PHP: 8.0
Text Domain: josse-peinture
*/

/* ---------- Polices (licence SIL Open Font License) ---------- */

@font-face {
	font-family: "Big Shoulders Display";
	src: url("fonts/big-shoulders-display.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("fonts/instrument-sans.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("fonts/instrument-sans-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

/* ---------- Teintes : celles du dépôt de la rue de la Chesnaie ---------- */

:root {
	--blanc: #ffffff;
	--perle: #eff0ee;          /* enduit clair */
	--pierre: #d8d2c6;         /* encadrements en granit */
	--anthracite: #383e42;     /* bardage, RAL 7016 */
	--nuit: #272c2f;
	--gris: #5d6468;
	--orange: #e2581a;         /* rives du bâtiment */
	--orange-fonce: #b4440d;   /* liens sur fond clair */
	--titre: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--texte: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--arrondi: 18px;
	--largeur: 1240px;
	--gouttiere: clamp(1rem, 4vw, 2.5rem);
	--section: clamp(4rem, 8vw, 7rem);
	--rayon: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--blanc);
	color: var(--anthracite);
	font: 400 1.0625rem/1.6 var(--texte);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--orange-fonce); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }

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

h1, h2, h3 {
	font-family: var(--titre);
	font-weight: 800;
	line-height: .98;
	letter-spacing: .004em;
	margin: 0 0 .5em;
	color: inherit;
	text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
h3 { font-size: 1.6rem; line-height: 1.05; font-weight: 750; }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.passer {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--anthracite); color: #fff; padding: .7rem 1rem; border-radius: var(--rayon);
}
.passer:focus { top: 1rem; }

.conteneur { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.conteneur--texte { max-width: 760px; }

/* ---------- Boutons et liens ---------- */

.bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 3.25rem; padding: .75rem 1.5rem;
	border: 2px solid transparent; border-radius: var(--rayon);
	font: 700 1.1875rem/1.1 var(--texte);
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.bouton--orange { background: var(--orange); color: #fff; }
.bouton--orange:hover { background: #c94b10; }
.bouton--clair { background: #fff; color: var(--anthracite); }
.bouton--clair:hover { background: var(--perle); }
.bouton--contour { border-color: var(--anthracite); color: var(--anthracite); background: transparent; }
.bouton--contour:hover { background: var(--anthracite); color: #fff; }
.bouton--petit { min-height: 2.75rem; padding: .55rem 1.1rem; }

.lien-fleche {
	display: inline-flex; align-items: center; gap: .55rem;
	font-weight: 700; color: var(--anthracite); text-decoration: none;
	border-bottom: 3px solid var(--orange); padding-bottom: .15rem;
}
.lien-fleche::after {
	content: ""; width: .55em; height: .55em;
	border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor;
	transform: rotate(45deg); transition: transform .15s;
}
.lien-fleche:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- En-tête : la rive orange du dépôt souligne le bandeau ---------- */

.entete {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .97);
	border-bottom: 5px solid var(--orange);
	transition: box-shadow .2s;
}
.entete.est-defile { box-shadow: 0 6px 18px rgba(39, 44, 47, .12); }
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 0; } }
.entete__in { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }

.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--anthracite); margin-right: auto; }
.logo img { width: auto; height: 62px; }
.logo__nom { font: 800 1.75rem/1 var(--titre); letter-spacing: .01em; }
.logo__nom small { display: block; font: 500 .8125rem/1.3 var(--texte); letter-spacing: 0; color: var(--gris); margin-top: .2rem; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav ul a {
	color: var(--anthracite); text-decoration: none; font-weight: 600; font-size: 1.0625rem;
	padding: .4rem 0; border-bottom: 3px solid transparent;
}
.nav ul a:hover { border-bottom-color: var(--pierre); }
.nav ul a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav__actions { display: flex; align-items: center; gap: 1.1rem; }
.nav__tel { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--anthracite); text-decoration: none; white-space: nowrap; }
.nav__tel svg { color: var(--orange); }

.menu-bouton { display: none; }

@media (max-width: 1060px) {
	.menu-bouton {
		display: inline-flex; align-items: center; gap: .6rem;
		background: none; border: 2px solid var(--anthracite); border-radius: var(--rayon);
		padding: .55rem .85rem; font: 700 1rem var(--texte); color: var(--anthracite); cursor: pointer;
	}
	.menu-bouton__trait, .menu-bouton__trait::before, .menu-bouton__trait::after {
		display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
	}
	.menu-bouton__trait::before, .menu-bouton__trait::after { content: ""; position: absolute; left: 0; }
	.menu-bouton__trait::before { top: -6px; }
	.menu-bouton__trait::after { top: 6px; }
	.menu-bouton[aria-expanded="true"] .menu-bouton__trait { background: transparent; }
	.menu-bouton[aria-expanded="true"] .menu-bouton__trait::before { transform: translateY(6px) rotate(45deg); }
	.menu-bouton[aria-expanded="true"] .menu-bouton__trait::after { transform: translateY(-6px) rotate(-45deg); }

	.nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 5px solid var(--orange);
		padding: .5rem var(--gouttiere) 1.5rem;
		box-shadow: 0 14px 24px rgba(39, 44, 47, .14);
	}
	.nav.est-ouvert { display: flex; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--perle); font-size: 1.25rem; }
	.nav ul a[aria-current="page"] { border-bottom-color: var(--perle); color: var(--orange-fonce); }
	.nav__actions { flex-direction: column; align-items: stretch; margin-top: 1rem; }
	.nav__tel { justify-content: center; padding: .7rem; font-size: 1.15rem; }
}
@media (max-width: 520px) {
	.logo__nom small { display: none; }
	.logo__nom { font-size: 1.45rem; }
	.logo img { height: 50px; }
	.entete__in { min-height: 4.25rem; gap: .75rem; }
}

/* ---------- Accueil : la photo se peint d'un coup de rouleau ---------- */

.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(560px, 86vh, 860px);
	display: flex; align-items: flex-end;
	background: var(--anthracite); color: #fff;
}
.hero__photo, .hero__sous-couche { position: absolute; inset: 0; z-index: -2; }
.hero__photo img, .hero__sous-couche img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(39, 44, 47, .82) 0%, rgba(39, 44, 47, .55) 42%, rgba(39, 44, 47, 0) 75%),
		linear-gradient(0deg, rgba(39, 44, 47, .55) 0%, rgba(39, 44, 47, 0) 45%);
}
/* La sous-couche : la même photo, terne comme un mur pas encore peint. */
.hero__sous-couche { display: none; }
.hero__sous-couche img { filter: grayscale(1) contrast(.62) brightness(1.22) sepia(.12); }
.hero__rouleau { display: none; }

.js .hero__sous-couche { display: block; clip-path: inset(0 0 0 0); }
.js .hero.est-peint .hero__sous-couche { animation: sous-couche 1.9s cubic-bezier(.65, .05, .3, 1) .25s forwards; }
.js .hero__rouleau {
	display: block; position: absolute; z-index: -1; top: 50%; left: 0;
	width: clamp(64px, 7vw, 110px); transform: translate(-50%, -50%) rotate(-4deg);
	filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35));
	opacity: 0; pointer-events: none;
}
.js .hero.est-peint .hero__rouleau { animation: rouleau 1.9s cubic-bezier(.65, .05, .3, 1) .25s forwards; }
@keyframes sous-couche { to { clip-path: inset(0 0 0 100%); } }
@keyframes rouleau {
	0% { left: 0; opacity: 1; }
	88% { opacity: 1; }
	100% { left: 100%; opacity: 0; }
}

.hero__in {
	position: relative; z-index: 1;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
	padding-block: 8rem clamp(3rem, 7vw, 5.5rem);
}
.hero__texte { max-width: 780px; }
.hero h1 { margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero__surtitre { margin: 0 0 .6rem; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.hero__intro { font-size: clamp(1.125rem, 1.6vw, 1.3rem); max-width: 34em; margin-bottom: 1.8rem; }
.hero__boutons { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__note {
	display: flex; align-items: center; gap: .8rem; flex-shrink: 0;
	background: #fff; color: var(--anthracite); text-decoration: none;
	padding: .9rem 1.2rem; border-radius: var(--rayon); border-top: 5px solid var(--orange);
}
.hero__note strong { font: 800 2.6rem/1 var(--titre); }
.hero__note > span { display: grid; font-size: .9375rem; line-height: 1.35; }
.etoiles { color: var(--orange); letter-spacing: .1em; font-size: 1.05rem; line-height: 1; }
.etoiles__vide { color: var(--pierre); }

@media (max-width: 760px) {
	.hero { min-height: 640px; }
	.hero::after { background: linear-gradient(0deg, rgba(39, 44, 47, .9) 0%, rgba(39, 44, 47, .6) 55%, rgba(39, 44, 47, .25) 100%); }
	.hero__in { flex-direction: column; align-items: flex-start; padding-top: 6rem; }
	.hero__note { padding: .6rem .9rem; }
	.hero__note strong { font-size: 2rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--serre { padding-top: 2rem; }
.section--perle { background: var(--perle); }
.section--sombre { background: var(--anthracite); color: #fff; }
.section--sombre a { color: #fff; }

.entete-section { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.entete-section p { font-size: 1.15rem; color: var(--gris); margin: 0; }
.section--sombre .entete-section p { color: #d3d7d9; }
.entete-section--lien { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.entete-section--lien h2 { margin-bottom: 0; }

/* Présentation */
.presentation__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.presentation__texte p { max-width: 36em; }
.presentation__texte .bouton { margin-top: .5rem; }
@media (max-width: 860px) { .presentation__in { grid-template-columns: 1fr; } }

/* Grande photo ronde entourée de pastilles, comme sur le site que le client aime */
.rond { position: relative; width: min(100%, 500px); margin-inline: auto; aspect-ratio: 1; }
.rond__photo { position: absolute; inset: 6%; border-radius: 50%; overflow: hidden; background: var(--pierre); box-shadow: 0 0 0 10px #fff, 0 0 0 12px var(--orange); }
.rond__photo img { width: 100%; height: 100%; object-fit: cover; }
.rond__pastille {
	position: absolute; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
	width: 26%; aspect-ratio: 1; background: #fff; box-shadow: 0 0 0 6px #fff, 0 10px 24px rgba(39, 44, 47, .18);
}
.rond__pastille img { width: 100%; height: 100%; object-fit: cover; }
.rond__pastille--logo { top: 0; left: 0; }
/* Le logo entier tient dans le rond : rien n'est coupé (pied, pot de peinture) */
.rond__pastille--logo img { width: 50%; height: auto; object-fit: contain; }
.rond__pastille--photo { top: 4%; right: 0; width: 23%; }
.rond__pastille--annee {
	bottom: 2%; left: 4%; width: 24%; background: var(--orange); color: #fff; text-align: center;
	font: 800 clamp(1.5rem, 3vw, 2.2rem)/.9 var(--titre); align-content: center;
}
.rond__pastille--annee small { display: block; font: 600 clamp(.8rem, 1.4vw, 1rem)/1.1 var(--texte); margin-bottom: .2em; }

.reperes {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
	margin: clamp(3rem, 6vw, 4.5rem) 0 0; border-top: 1px solid var(--pierre);
}
.reperes div { padding-top: 1.25rem; }
.reperes dt { font: 800 clamp(2.4rem, 4.5vw, 3.6rem)/1 var(--titre); color: var(--anthracite); }
.reperes dd { margin: .35rem 0 0; color: var(--gris); max-width: 18em; }
@media (max-width: 640px) { .reperes { grid-template-columns: 1fr; } }

/* Prestations */
.prestations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.prestation a { display: flex; flex-direction: column; height: 100%; background: #fff; color: inherit; text-decoration: none; }
.prestation__photo { overflow: hidden; aspect-ratio: 4 / 3; background: var(--pierre); }
.prestation__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prestation a:hover img { transform: scale(1.04); }
.prestation__texte { display: block; padding: 1.25rem 1.4rem 1.5rem; border-top: 5px solid var(--anthracite); flex: 1; transition: border-color .2s; }
.prestation a:hover .prestation__texte { border-top-color: var(--orange); }
.prestation__titre { display: block; font: 800 1.75rem/1.02 var(--titre); margin-bottom: .45rem; }
.prestation__resume { display: block; color: var(--gris); font-size: 1rem; }
@media (max-width: 960px) { .prestations { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .prestations { grid-template-columns: 1fr; } }

/* Comparateur avant / après */
.onglets { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.onglets button {
	font: 600 1rem var(--texte); padding: .6rem 1.1rem; cursor: pointer;
	background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .35); border-radius: 99px;
}
.onglets button:hover { border-color: #fff; }
.onglets button[aria-selected="true"] { background: var(--orange); border-color: var(--orange); }
.comparaison__legende { margin: 1rem 0 0; color: #d3d7d9; }

.comparateur { margin: 0; }
.comparateur__cadre {
	position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-height: 78vh; width: 100%;
	background: var(--nuit); user-select: none; touch-action: pan-y;
}
.comparateur__cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparateur__apres { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.comparateur__poignee {
	position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px;
	background: var(--orange); pointer-events: none;
}
.comparateur__poignee svg {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 54px; height: 54px; max-width: none; padding: 7px; border-radius: 50%;
	background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.comparateur__curseur {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
	opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.comparateur__curseur:focus-visible + * , .comparateur__cadre:focus-within .comparateur__poignee svg { outline: 3px solid #fff; outline-offset: 2px; }
.comparateur__etiquette {
	position: absolute; bottom: 1rem; padding: .3rem .7rem; border-radius: var(--rayon);
	background: rgba(39, 44, 47, .78); color: #fff; font-weight: 700; font-size: .9375rem; pointer-events: none;
}
.comparateur__etiquette--avant { left: 1rem; }
.comparateur__etiquette--apres { right: 1rem; background: var(--orange); }
.comparateur figcaption { margin-top: .75rem; color: var(--gris); }
@media (max-width: 600px) { .comparateur__cadre { aspect-ratio: 3 / 4; } }

/* Méthode : les étapes se suivent sur une même ligne, comme un passage de rouleau */
.etapes {
	list-style: none; margin: 0; padding: 0; counter-reset: etape;
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem;
	position: relative;
}
.etapes::before {
	content: ""; position: absolute; left: 0; right: 0; top: 1.6rem; height: 4px;
	background: linear-gradient(90deg, var(--orange) 0 20%, var(--pierre) 20%);
}
.etapes li { counter-increment: etape; position: relative; padding-top: 4.4rem; }
.etapes li::before {
	content: counter(etape); position: absolute; top: 0; left: 0;
	width: 3.4rem; height: 3.4rem; display: grid; place-items: center;
	background: var(--anthracite); color: #fff; border-radius: 50%;
	font: 800 1.7rem/1 var(--titre); box-shadow: 0 0 0 6px #fff;
}
.etapes li:first-child::before { background: var(--orange); }
.etapes h3 { font-size: 1.55rem; margin-bottom: .35rem; }
.etapes p { color: var(--gris); font-size: 1rem; margin: 0; }
@media (max-width: 960px) {
	.etapes { grid-template-columns: 1fr; gap: 0; }
	.etapes::before { left: 1.6rem; right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: var(--pierre); }
	.etapes li { padding: 0 0 2rem 5rem; min-height: 4.5rem; }
}

.engagements {
	list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--pierre); border: 1px solid var(--pierre);
}
.engagements li { background: #fff; padding: 1.5rem 1.6rem 1.5rem 4rem; position: relative; color: var(--gris); }
.engagements li::before {
	content: ""; position: absolute; left: 1.5rem; top: 1.7rem; width: 1.15rem; height: .6rem;
	border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg);
}
.engagements strong { display: block; color: var(--anthracite); font-size: 1.125rem; margin-bottom: .2rem; }
.section--sombre .engagements { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .15); }
.section--sombre .engagements li { background: var(--anthracite); color: #d3d7d9; }
.section--sombre .engagements strong { color: #fff; }
@media (max-width: 700px) { .engagements { grid-template-columns: 1fr; } }

/* Chantiers */
.chantiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.chantiers--accueil { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.chantiers--accueil .chantier--large { grid-row: span 2; }
.chantiers--accueil .chantier--large .chantier__photo { aspect-ratio: auto; height: 100%; min-height: 420px; }
.chantiers--accueil .chantier--large .chantier__lien { height: 100%; }
.chantier__lien { display: flex; flex-direction: column; position: relative; color: inherit; text-decoration: none; background: #fff; height: 100%; }
.chantier__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pierre); }
.chantier__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.chantier__lien:hover img { transform: scale(1.04); }
.chantier__texte { display: block; padding: 1rem 1.2rem 1.25rem; }
.chantier--large .chantier__texte { position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 1.6rem 1.5rem; color: #fff; background: linear-gradient(0deg, rgba(39, 44, 47, .9), rgba(39, 44, 47, 0)); }
.chantier__type { display: block; font-size: .875rem; font-weight: 700; color: var(--orange-fonce); margin-bottom: .2rem; }
.chantier--large .chantier__type { color: #ffb48a; }
.chantier__titre { display: block; font: 750 1.45rem/1.08 var(--titre); }
.chantier--large .chantier__titre { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.chantier__meta { display: block; margin-top: .3rem; font-size: .9375rem; color: var(--gris); }
.chantier--large .chantier__meta { color: #e6e8e9; }
@media (max-width: 960px) { .chantiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
	.chantiers--accueil { grid-template-columns: 1fr; }
	.chantiers--accueil .chantier--large .chantier__photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .chantiers { grid-template-columns: 1fr; } }

/* Avis */
.avis__note { margin: .6rem 0 0; color: var(--gris); }
.defile-boutons { display: flex; gap: .5rem; }
.defile-bouton {
	width: 3rem; height: 3rem; display: grid; place-items: center; cursor: pointer;
	background: #fff; color: var(--anthracite); border: 2px solid var(--anthracite); border-radius: 50%;
}
.defile-bouton:hover { background: var(--anthracite); color: #fff; }
.avis__liste {
	list-style: none; margin: 0; padding: 0 0 1rem;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 400px); gap: 1.25rem;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scroll-behavior: smooth;
}
.avis__liste--grille { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-auto-columns: auto; overflow: visible; }
.avis__carte {
	scroll-snap-align: start; background: var(--perle); padding: 1.6rem 1.6rem 1.4rem;
	border-top: 5px solid var(--orange); display: flex; flex-direction: column;
}
.avis__carte blockquote { margin: .9rem 0 1rem; font-size: 1.0625rem; flex: 1; }
.avis__carte blockquote p:last-child { margin-bottom: 0; }
.avis__auteur { margin: 0; font-weight: 700; }
.avis__auteur span { display: block; font-weight: 400; color: var(--gris); font-size: .9375rem; }
.avis__source { margin: 1rem 0 0; font-size: .9375rem; color: var(--gris); }
.avis.section--perle .avis__carte { background: #fff; }

/* Zone et plan */
.zone__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.communes { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.communes li { background: #fff; border: 1px solid var(--pierre); padding: .35rem .8rem; border-radius: 99px; font-size: .9375rem; cursor: default; transition: background-color .15s, color .15s; }
.communes li.est-survolee { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
@media (max-width: 860px) { .zone__in { grid-template-columns: 1fr; } }

/* Carte des communes : la mer, les communes voisines, celles où l'équipe intervient */
.carte { margin: 0; }
.zone-carte { width: 100%; height: auto; display: block; border: 1px solid var(--pierre); background: #cfdde3; }
.zone-carte__mer { fill: #cfdde3; }
.zone-carte__communes path { fill: #f7f7f5; stroke: #c8c3b8; stroke-width: .8; transition: fill .2s; }
.zone-carte__communes path.est-desservie { fill: #f6c7a8; stroke: #d98e60; }
.zone-carte__communes path.est-desservie:hover, .zone-carte__communes path.est-survolee { fill: var(--orange); }
.zone-carte__noms text { font: 600 11px var(--texte); fill: var(--anthracite); text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; pointer-events: none; }
.zone-carte__noms text.est-principale { font: 800 21px var(--titre); }
.zone-carte__depot circle { fill: var(--anthracite); }
.zone-carte__depot .zone-carte__halo { fill: var(--orange); opacity: .35; }
.carte__legende { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-top: .75rem; font-size: .9375rem; color: var(--gris); }
.carte__depot::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .45rem; border-radius: 50%; background: var(--anthracite); box-shadow: 0 0 0 4px rgba(226, 88, 26, .35); vertical-align: .05em; }

/* Bandeau devis */
.appel { position: relative; isolation: isolate; background: var(--anthracite); color: #fff; padding-block: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.appel__fond { position: absolute; inset: 0; z-index: -1; }
.appel__fond img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.3); }
.appel__in { max-width: 860px; text-align: center; }
.appel h2 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
.appel p { font-size: 1.2rem; color: #e6e8e9; margin-bottom: 2rem; }
.appel__boutons { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* Pied de page */
.pied { background: var(--nuit); color: #c9ced1; font-size: .9875rem; padding-bottom: 5rem; }
.pied a { color: #fff; }
.nuancier { display: flex; justify-content: center; gap: clamp(.35rem, 1.2vw, .7rem); }
.nuancier i { width: clamp(.7rem, 1.6vw, 1rem); aspect-ratio: 1; border-radius: 50%; background: var(--t); }
.pied__nuancier { padding: 2.5rem 0 0; }
.pied__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr .9fr; gap: 2.5rem; padding-block: 3rem 2.5rem; }
.pied__nom { font: 800 2rem/1 var(--titre); color: #fff; margin-bottom: .8rem; }
.pied__titre { font: 700 1.3rem/1 var(--titre); letter-spacing: .02em; color: #fff; margin-bottom: 1rem; }
.pied__tel { font: 800 1.6rem/1 var(--titre); text-decoration: none; }
.pied__reseaux a { font-weight: 600; }
.pied__liens { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pied__liens a { text-decoration: none; }
.pied__liens a:hover { text-decoration: underline; }
.horaires { margin: 0; display: grid; gap: .2rem; }
.horaires div { display: flex; justify-content: space-between; gap: 1rem; }
.horaires dt { font-weight: 600; color: #fff; }
.horaires dd { margin: 0; }
.horaires--clair dt { color: var(--anthracite); }
.horaires--clair div { padding: .35rem 0; border-bottom: 1px solid var(--perle); }
.pied__bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.5rem; font-size: .875rem; }
.pied__bas p { margin: 0; }
@media (max-width: 960px) { .pied__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied__in { grid-template-columns: 1fr; } }

.appel-mobile { display: none; }
@media (max-width: 760px) {
	.appel-mobile {
		display: inline-flex; align-items: center; gap: .5rem;
		position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
		background: var(--orange); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.125rem;
		padding: .85rem 1.25rem; border-radius: 99px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
	}
}

/* ---------- Pages intérieures ---------- */

.page-entete { background: var(--perle); padding-block: clamp(2.5rem, 6vw, 4.5rem); position: relative; isolation: isolate; }
.page-entete h1 { margin-bottom: .25em; }
.page-entete__intro { font-size: 1.2rem; max-width: 40em; color: var(--gris); margin: 0; }
.page-entete--photo { background: var(--anthracite); color: #fff; padding-block: clamp(5rem, 12vw, 9rem) clamp(2.5rem, 6vw, 4rem); }
.page-entete--photo .page-entete__intro { color: #e6e8e9; }
.page-entete__fond { position: absolute; inset: 0; z-index: -1; }
.page-entete__fond img { width: 100%; height: 100%; object-fit: cover; }
.page-entete--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(39, 44, 47, .88), rgba(39, 44, 47, .35)); }
.page-entete--photo .ariane, .page-entete--photo .ariane a { color: #e6e8e9; }

.ariane { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9375rem; color: var(--gris); margin-bottom: 1.25rem; }
.ariane a { color: var(--gris); }

.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.filtres a {
	text-decoration: none; color: var(--anthracite); font-weight: 600; font-size: .9375rem;
	padding: .5rem 1rem; border: 2px solid var(--anthracite); border-radius: 99px; background: #fff;
}
.filtres a:hover { background: var(--anthracite); color: #fff; }
.filtres a[aria-current="page"] { background: var(--orange); border-color: var(--orange); color: #fff; }

.etiquettes { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; }
.etiquettes li { background: #fff; padding: .35rem .8rem; border-radius: 99px; font-size: .9375rem; border: 1px solid var(--pierre); }
.etiquettes a { color: var(--anthracite); }

.metier { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--perle); }
.metier:last-child { border-bottom: 0; }
.metier--inverse .metier__photo { order: 2; }
.metier__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-top: 6px solid var(--orange); }
.metier h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.metier h2 a { color: inherit; text-decoration: none; }
@media (max-width: 760px) { .metier { grid-template-columns: 1fr; } .metier--inverse .metier__photo { order: 0; } }

.coches { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .45rem; }
.coches li { position: relative; padding-left: 1.8rem; }
.coches li::before {
	content: ""; position: absolute; left: .2rem; top: .45em; width: .8rem; height: .45rem;
	border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-45deg);
}

.fiche { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.fiche__cote { display: grid; gap: 1.25rem; position: sticky; top: 7rem; }
@media (max-width: 900px) { .fiche { grid-template-columns: 1fr; } .fiche__cote { position: static; } }

.encart { background: var(--perle); padding: 1.6rem; }
.encart h2 { font-size: 1.7rem; }
.encart--sombre { background: var(--anthracite); color: #fff; }
.encart--sombre a { color: #fff; }
.encart__tel { margin: .9rem 0 0; }

.texte-riche { max-width: 44em; }
.texte-riche h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-top: 1.6em; }
.texte-riche h2:first-child { margin-top: 0; }
.texte-riche h3 { margin-top: 1.4em; }
.texte-riche ul { padding-left: 1.2rem; }
.texte-riche li { margin-bottom: .35rem; }
.legal mark.a-completer { background: #ffe58a; padding: 0 .3em; }

.autres__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.autres__liste a { display: block; background: #fff; padding: .8rem 1.2rem; text-decoration: none; color: var(--anthracite); font-weight: 600; border-left: 4px solid var(--orange); }
.autres__liste a:hover { background: var(--anthracite); color: #fff; }

.chantier-une { margin: 0; }
.chantier-une img { width: 100%; max-height: 78vh; object-fit: cover; }
.chantier-texte { margin: clamp(2rem, 4vw, 3rem) 0; font-size: 1.125rem; }

/* Galerie et visionneuse */
.galerie { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.galerie a { display: block; overflow: hidden; background: var(--pierre); cursor: zoom-in; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.galerie a:hover img { transform: scale(1.04); }

.visionneuse { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.visionneuse::backdrop { background: rgba(20, 23, 25, .94); }
.visionneuse__in { width: 100%; height: 100%; display: grid; place-items: center; padding: 3.5rem 4.5rem; }
.visionneuse img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; }
.visionneuse button {
	position: absolute; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; cursor: pointer;
	background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 50%; font-size: 1.6rem;
}
.visionneuse button:hover { background: var(--orange); }
.visionneuse__fermer { top: 1rem; right: 1rem; }
.visionneuse__prec { left: 1rem; top: 50%; transform: translateY(-50%); }
.visionneuse__suiv { right: 1rem; top: 50%; transform: translateY(-50%); }
.visionneuse__compte { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9375rem; }
@media (max-width: 600px) { .visionneuse__in { padding: 4rem .5rem; } .visionneuse__prec, .visionneuse__suiv { top: auto; bottom: 1rem; transform: none; } }

/* Pagination */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pagination a, .pagination span { padding: .5rem .9rem; border: 2px solid var(--anthracite); color: var(--anthracite); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--anthracite); color: #fff; }

.boutons-ligne { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- Formulaire de devis ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__infos { display: grid; gap: 1.25rem; }
.contact__tel { font: 800 2.2rem/1 var(--titre); text-decoration: none; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

.devis p { margin: 0 0 1.25rem; }
.devis label, .devis legend { display: block; font-weight: 700; margin-bottom: .4rem; }
.devis input[type="text"], .devis input[type="tel"], .devis input[type="email"], .devis textarea {
	width: 100%; font: inherit; color: inherit; background: #fff;
	border: 2px solid #b9bfc2; border-radius: var(--rayon); padding: .75rem .9rem; min-height: 3.1rem;
}
.devis input:focus, .devis textarea:focus { border-color: var(--anthracite); outline: 3px solid rgba(226, 88, 26, .35); outline-offset: 0; }
.devis__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 600px) { .devis__ligne { grid-template-columns: 1fr; } }
.devis__choix { border: 0; margin: 0 0 1.25rem; padding: 0; }
.devis__choix label { display: inline-flex; font-weight: 500; margin: 0 .4rem .5rem 0; cursor: pointer; }
.devis__choix input { position: absolute; opacity: 0; }
.devis__choix span { padding: .5rem .95rem; border: 2px solid #b9bfc2; border-radius: 99px; background: #fff; }
.devis__choix input:checked + span { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.devis__choix input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.devis__accord label { display: flex; gap: .7rem; font-weight: 400; font-size: .9375rem; color: var(--gris); }
.devis__accord input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; flex-shrink: 0; accent-color: var(--orange); }
.devis__envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.devis__piege { position: absolute; left: -9999px; }
.devis__retour { padding: 1rem 1.2rem; font-weight: 600; border-left: 5px solid; }
.devis__retour--ok { background: #e7f4ea; border-color: #2e7d32; }
.devis__retour--erreur { background: #fdecea; border-color: #c62828; }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .hero__sous-couche, .js .hero__rouleau { display: none; }
}

/* ---------- Photos jointes à la demande de devis ---------- */

.devis__photos { margin: 0 0 1.25rem; position: relative; }
.devis__photos input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.devis__deposer {
	display: flex !important; align-items: center; gap: .9rem; cursor: pointer; font-weight: 400 !important; margin: 0 !important;
	padding: 1rem 1.2rem; border: 2px dashed #b9bfc2; border-radius: var(--rayon); background: #fff; color: var(--gris);
	transition: border-color .15s, background-color .15s;
}
.devis__deposer svg { flex-shrink: 0; color: var(--orange); }
.devis__deposer strong { color: var(--anthracite); }
.devis__deposer:hover, .devis__photos input:focus-visible + .devis__apercus, .devis__photos.est-survole .devis__deposer { border-color: var(--orange); background: #fff8f3; }
.devis__photos input:focus-visible ~ .devis__deposer, .devis__photos:focus-within .devis__deposer { outline: 3px solid rgba(226, 88, 26, .35); }
.devis__apercus { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.devis__apercus li { width: 84px; height: 84px; border-radius: var(--rayon); overflow: hidden; background: var(--pierre); font-size: .75rem; display: grid; place-items: center; text-align: center; padding: .2rem; }
.devis__apercus img { width: 100%; height: 100%; object-fit: cover; }
.devis__apercus .est-refusee { width: auto; height: auto; background: #fdecea; padding: .4rem .7rem; }

/* ---------- Questions fréquentes ---------- */

.faq__in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq__intro p { color: var(--gris); }
.faq__liste { border-top: 2px solid var(--anthracite); }
.faq__question { border-bottom: 1px solid var(--pierre); }
.faq__question summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 1.15rem 3rem 1.15rem 0; font-weight: 700; font-size: 1.125rem;
}
.faq__question summary::-webkit-details-marker { display: none; }
.faq__question summary::after {
	content: ""; position: absolute; right: .6rem; top: 50%; width: .7rem; height: .7rem; margin-top: -.5rem;
	border-right: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(45deg); transition: transform .2s;
}
.faq__question[open] summary::after { transform: rotate(-135deg); margin-top: -.15rem; }
.faq__question summary:hover { color: var(--orange-fonce); }
.faq__question p { margin: 0 0 1.25rem; max-width: 46em; color: var(--gris); }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } }

/* ---------- Mouvement ---------- */

/* Bandeau de photos qui défile, arrêté au survol */
.bandeau-photos { overflow: hidden; background: var(--anthracite); padding-block: 1rem; }
.bandeau-photos__piste { display: flex; width: max-content; animation: defile 70s linear infinite; }
.bandeau-photos:hover .bandeau-photos__piste, .bandeau-photos:focus-within .bandeau-photos__piste { animation-play-state: paused; }
.bandeau-photos__liste { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0 .5rem; }
.bandeau-photos a { position: relative; display: block; width: clamp(220px, 24vw, 340px); aspect-ratio: 4 / 3; overflow: hidden; background: var(--nuit); }
.bandeau-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bandeau-photos span {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem .9rem .75rem; color: #fff;
	font: 700 1.15rem/1.1 var(--titre); background: linear-gradient(0deg, rgba(39, 44, 47, .9), rgba(39, 44, 47, 0));
	opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.bandeau-photos a:hover img { transform: scale(1.05); }
.bandeau-photos a:hover span, .bandeau-photos a:focus-visible span { opacity: 1; transform: none; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Les étapes s'allument une à une quand on arrive dessus, comme un passage de rouleau */
.js .etapes::before { background: linear-gradient(90deg, var(--orange) 0 var(--avance, 0%), var(--pierre) var(--avance, 0%)); transition: --avance 1.2s; }
.js .etapes li::before { background: var(--anthracite); transition: background-color .3s, transform .3s; }
.js .etapes li.est-atteinte::before { background: var(--orange); transform: scale(1.08); }
@property --avance { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@media (max-width: 960px) {
	.js .etapes::before { background: linear-gradient(180deg, var(--orange) 0 var(--avance, 0%), var(--pierre) var(--avance, 0%)); }
}

/* La grande photo continue de vivre doucement une fois peinte */
.js .hero.est-peint .hero__photo img { animation: respire 16s ease-out 2.2s forwards; transform-origin: 60% 50%; }
@keyframes respire { to { transform: scale(1.07); } }

/* En-tête : se range quand on descend, revient dès qu'on remonte */
.entete { transition: box-shadow .2s, transform .3s ease; }
.entete.est-range { transform: translateY(-110%); }

@media (prefers-reduced-motion: reduce) {
	.bandeau-photos__piste { animation: none; width: auto; overflow-x: auto; }
	.bandeau-photos__liste[aria-hidden="true"] { display: none; }
	.entete.est-range { transform: none; }
}

/* ---------- Sur le terrain (page L'entreprise) ---------- */

.terrain__photos { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); grid-template-columns: repeat(4, 1fr); }
.terrain__photos figure { margin: 0; overflow: hidden; background: var(--pierre); }
.terrain__photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.terrain__photos--4 figure:nth-child(1), .terrain__photos--4 figure:nth-child(4) { margin-top: 2.5rem; }
.terrain__photos--4 figure:nth-child(1) { border-top: 6px solid var(--orange); }
@media (max-width: 860px) {
	.terrain__photos { grid-template-columns: repeat(2, 1fr); }
	.terrain__photos--4 figure:nth-child(n) { margin-top: 0; }
}

/* ---------- L'esprit du site que le client aime : courbes, arrondis ---------- */

/* Boutons en pilule */
.bouton, .nav .bouton { border-radius: 999px; padding-inline: 1.6rem; }
.bouton--sombre { background: var(--anthracite); color: #fff; }
.bouton--sombre:hover { background: var(--nuit); }

/* Le bas de la grande photo s'arrondit, comme sur le site de référence */
.hero__in { padding-bottom: clamp(4.5rem, 9vw, 7.5rem); }
.hero__courbe { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(34px, 6vw, 90px); z-index: 1; pointer-events: none; }
.hero__courbe path { fill: var(--blanc); }

/* Grand mot gris clair derrière certains titres */
.entete-section[data-fond] { position: relative; isolation: isolate; }
.entete-section[data-fond]::before {
	content: attr(data-fond) / "";
	position: absolute; z-index: -1; left: -.04em; top: -.62em; white-space: nowrap; pointer-events: none;
	font: 800 clamp(4.5rem, 12vw, 10rem)/1 var(--titre); letter-spacing: .01em; text-transform: uppercase;
	color: rgba(56, 62, 66, .07);
}
.section--perle .entete-section[data-fond]::before { color: rgba(56, 62, 66, .06); }
.hero__note { border-radius: 14px; }

/* Coins arrondis sur les photos et les cartes */
.prestation a, .chantier__lien, .avis__carte, .encart, .galerie a, .comparateur__cadre,
.metier__photo img, .chantier-une img, .bandeau-photos a, .terrain__photos figure, .zone-carte, .question { border-radius: var(--arrondi); overflow: hidden; }
.prestation__photo img, .chantier__photo img { border-radius: 0; }
.prestation a { box-shadow: 0 1px 0 rgba(39, 44, 47, .06); }
.metier__photo img { border-top: 0; }
.avis__carte { border-top: 0; box-shadow: inset 0 5px 0 var(--orange); }
.onglets button, .filtres a, .communes li, .etiquettes li { border-radius: 999px; }

/* Les étapes sur fond photo sombre, avec l'encart « Une question ? » */
.methode { position: relative; isolation: isolate; overflow: hidden; }
.methode__fond { position: absolute; inset: 0; z-index: -1; }
.methode__fond img { width: 100%; height: 100%; object-fit: cover; opacity: .14; filter: grayscale(1); }
.methode .etapes p { color: #d3d7d9; }
.methode .etapes li::before { box-shadow: 0 0 0 6px var(--anthracite); background: var(--nuit); }
.js .methode .etapes li::before { background: var(--nuit); }
.js .methode .etapes li.est-atteinte::before { background: var(--orange); }
.methode .etapes::before { background: rgba(255, 255, 255, .18); }
.js .methode .etapes::before { background: linear-gradient(90deg, var(--orange) 0 var(--avance, 0%), rgba(255, 255, 255, .18) var(--avance, 0%)); }
@media (max-width: 960px) {
	.js .methode .etapes::before { background: linear-gradient(180deg, var(--orange) 0 var(--avance, 0%), rgba(255, 255, 255, .18) var(--avance, 0%)); }
}
.methode .engagements { border-radius: var(--arrondi); overflow: hidden; }
.question {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
	margin-top: 2rem; padding: 1.4rem 1.6rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.question p { margin: 0; font-size: 1.125rem; }

/* Pied de page : le logo dans une pastille ronde */
.pied__logo { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #fff; margin-bottom: 1rem; overflow: hidden; }
.pied__logo img { width: 50%; height: auto; }

/* En-tête : lien Facebook */
.nav__facebook { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: var(--anthracite); }
.nav__facebook:hover { background: var(--perle); }
/* Bouton « Laisser un avis » (fiche Google), à côté de Facebook */
.nav__avis { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border: 2px solid var(--perle); border-radius: 999px; color: var(--anthracite); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.nav__avis svg { color: #f4b400; }
.nav__avis:hover { border-color: #f4b400; background: #fff8e1; }
/* Écran moyen : le bouton se réduit à l'étoile et au mot « Avis » pour que l'en-tête tienne sur une ligne */
@media (min-width: 1061px) and (max-width: 1360px) {
	.nav__avis { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border-width: 0; border-radius: 50%; }
	.nav__avis span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Écran moyen : le nom tient sur une ligne, sans le sous-titre */
@media (min-width: 1061px) and (max-width: 1240px) {
	.logo__nom small { display: none; }
}
.entete-section--lien .avis__note { margin-top: .9rem; }

/* ---------- Les couleurs du logo (demande du client : moins d'orange seul, plus de couleurs) ---------- */

:root {
	--c1: #e2581a; /* orange */
	--c2: #d81b60; /* framboise */
	--c3: #8e24aa; /* violet */
	--c4: #1e88e5; /* bleu */
	--c5: #43a047; /* vert */
	--c6: #00897b; /* turquoise */
	--etoile: #f9a825;
	--arc-en-ciel: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5));
}

/* Repères 1986, 2020, 2024 : dans l'ordre des couleurs du lettrage du dépôt (Peinture orange, Décoration bleu, Ravalement rose) */
.reperes div:nth-child(3n+1) dt { color: var(--c1); }
.reperes div:nth-child(3n+2) dt { color: #1b8fd2; }
.reperes div:nth-child(3n+3) dt { color: #d6247a; }

/* Prestations : chaque métier a sa couleur */
.prestation:nth-child(6n+1) { --teinte: var(--c1); }
.prestation:nth-child(6n+2) { --teinte: var(--c2); }
.prestation:nth-child(6n+3) { --teinte: var(--c3); }
.prestation:nth-child(6n+4) { --teinte: var(--c4); }
.prestation:nth-child(6n+5) { --teinte: var(--c5); }
.prestation:nth-child(6n+6) { --teinte: var(--c6); }
.prestation__texte, .prestation a:hover .prestation__texte { border-top-color: var(--teinte); }

/* Comment se passe un chantier : une couleur par étape, la ligne passe par toutes */
.etapes li:nth-child(1) { --teinte: var(--c1); }
.etapes li:nth-child(2) { --teinte: var(--c2); }
.etapes li:nth-child(3) { --teinte: var(--c3); }
.etapes li:nth-child(4) { --teinte: var(--c4); }
.etapes li:nth-child(5) { --teinte: var(--c5); }
.etapes li:nth-child(6) { --teinte: var(--c6); }
.js .etapes li.est-atteinte::before, .js .methode .etapes li.est-atteinte::before, .etapes li:first-child::before { background: var(--teinte); }
.js .methode .etapes li:not(.est-atteinte)::before { background: var(--nuit); }
.js .methode .etapes::before, .methode .etapes::before {
	background:
		linear-gradient(90deg, transparent var(--avance, 0%), rgba(255, 255, 255, .18) var(--avance, 0%)),
		var(--arc-en-ciel);
}
.etapes h3 { border-bottom: 3px solid var(--teinte); padding-bottom: .3rem; display: inline-block; }
@media (max-width: 960px) {
	.js .methode .etapes::before, .methode .etapes::before {
		background:
			linear-gradient(180deg, transparent var(--avance, 0%), rgba(255, 255, 255, .18) var(--avance, 0%)),
			linear-gradient(180deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5));
	}
}

/* Engagements : une coche de couleur différente pour chacun */
.engagements li:nth-child(4n+1)::before { border-color: var(--c1); }
.engagements li:nth-child(4n+2)::before { border-color: var(--c2); }
.engagements li:nth-child(4n+3)::before { border-color: var(--c4); }
.engagements li:nth-child(4n+4)::before { border-color: var(--c5); }
.section--sombre .engagements li:nth-child(4n+2)::before { border-color: #f06292; }
.section--sombre .engagements li:nth-child(4n+3)::before { border-color: #64b5f6; }
.section--sombre .engagements li:nth-child(4n+4)::before { border-color: #81c784; }
.question { border-image: linear-gradient(180deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5)) 1; border-width: 0 0 0 5px; border-style: solid; border-radius: 0 var(--arrondi) var(--arrondi) 0; }

/* Derniers chantiers : le bandeau de couleurs sous le titre */
.chantier__lien { box-shadow: inset 0 -4px 0 var(--teinte, transparent); }
.chantiers .chantier:nth-child(5n+1) { --teinte: var(--c4); }
.chantiers .chantier:nth-child(5n+2) { --teinte: var(--c2); }
.chantiers .chantier:nth-child(5n+3) { --teinte: var(--c5); }
.chantiers .chantier:nth-child(5n+4) { --teinte: var(--c3); }
.chantiers .chantier:nth-child(5n+5) { --teinte: var(--c1); }

/* Avis : étoiles dorées et une couleur par carte */
.etoiles { color: var(--etoile); }
.avis__carte:nth-child(5n+1) { box-shadow: inset 0 5px 0 var(--c1); }
.avis__carte:nth-child(5n+2) { box-shadow: inset 0 5px 0 var(--c2); }
.avis__carte:nth-child(5n+3) { box-shadow: inset 0 5px 0 var(--c3); }
.avis__carte:nth-child(5n+4) { box-shadow: inset 0 5px 0 var(--c4); }
.avis__carte:nth-child(5n+5) { box-shadow: inset 0 5px 0 var(--c5); }

/* Questions : la flèche change de couleur à chaque question */
.faq__liste { border-top: 0; border-image: var(--arc-en-ciel) 1; border-top-width: 4px; border-top-style: solid; }
.faq__question:nth-child(5n+1) summary::after { border-color: var(--c1); }
.faq__question:nth-child(5n+2) summary::after { border-color: var(--c2); }
.faq__question:nth-child(5n+3) summary::after { border-color: var(--c3); }
.faq__question:nth-child(5n+4) summary::after { border-color: var(--c4); }
.faq__question:nth-child(5n+5) summary::after { border-color: var(--c5); }

/* Bandeau devis et en-tête : le trait orange devient l'arc-en-ciel du logo */
.entete { border-bottom: 0; }
.entete::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: var(--arc-en-ciel); }
.appel { border-top: 6px solid transparent; border-image: var(--arc-en-ciel) 1; }

/* ---------- Sur téléphone : moins de défilement, des cartes qu'on fait glisser du doigt ---------- */

@media (max-width: 760px) {
	/* Prestations et chantiers liés : une rangée qu'on fait défiler, la carte suivante dépasse pour inviter à glisser */
	.prestations, .chantiers--defile {
		display: grid; grid-auto-flow: column; grid-auto-columns: 80%; grid-template-columns: none;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-inline: calc(-1 * var(--gouttiere)); padding: 0 var(--gouttiere) .75rem; scroll-padding-inline: var(--gouttiere);
	}
	.prestations::-webkit-scrollbar, .chantiers--defile::-webkit-scrollbar { display: none; }
	.prestation, .chantiers--defile .chantier { scroll-snap-align: start; }

	/* Galeries : deux photos par ligne */
	.galerie { grid-template-columns: repeat(2, 1fr); gap: .5rem; }

	/* Onglets des avant / après sur une ligne qui défile */
	.onglets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); }
	.onglets button { flex: 0 0 auto; white-space: nowrap; }

	/* Grand mot en fond : à la taille de l'écran */
	.entete-section[data-fond]::before { font-size: clamp(3rem, 15vw, 5rem); top: -.5em; }

	/* Liens du pied de page plus faciles à toucher */
	.pied__liens { gap: .1rem; }
	.pied__liens a { display: inline-block; padding: .35rem 0; }

	/* Communes : les premières, puis un bouton pour voir toutes les autres */
	.communes.est-replie li:nth-child(n+10) { display: none; }
}
.communes__tout { margin-top: .9rem; }

/* ---------- Menu : sur téléphone, un volet qui s'ouvre depuis la gauche ---------- */

.nav__tete, .nav__accueil, .nav__sous-titre, .nav .nav__rubriques, .entete__appel, .nav-voile { display: none; }

@media (max-width: 1060px) {
	.entete.est-range { transform: none; } /* l'en-tête et le bouton Menu restent toujours visibles */
	.entete__in { gap: .75rem; }
	.logo { margin-right: auto; }
	.menu-bouton { order: -1; }
	.entete__appel {
		display: grid; place-items: center; width: 2.9rem; height: 2.9rem; flex-shrink: 0;
		border-radius: 50%; background: var(--orange); color: #fff;
	}

	.nav-voile { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(39, 44, 47, .55); }
	.nav-voile[hidden] { display: none; }

	.nav, .nav.est-ouvert {
		display: flex; flex-direction: column; align-items: stretch; gap: 0;
		position: fixed; top: 0; bottom: 0; left: 0; right: auto; z-index: 100;
		width: min(86vw, 340px); padding: 0 1.4rem 1.5rem; overflow-y: auto;
		background: #fff; border-bottom: 0; box-shadow: 8px 0 30px rgba(0, 0, 0, .22);
		transform: translateX(-105%); visibility: hidden; transition: transform .28s ease, visibility 0s .28s;
	}
	.nav::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 5px; background: linear-gradient(180deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5)); }
	.nav.est-ouvert { transform: none; visibility: visible; transition: transform .28s ease; }
	body.menu-ouvert { overflow: hidden; }
	.admin-bar .nav, .admin-bar .nav-voile { top: 32px; } /* sous la barre noire quand Samuel est connecté */

	.nav__tete { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0 .75rem; border-bottom: 1px solid var(--perle); margin-bottom: .25rem; }
	.nav__titre { font: 800 1.6rem/1 var(--titre); }
	.nav__fermer { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--perle); color: var(--anthracite); font-size: 1.8rem; line-height: 1; cursor: pointer; }
	.nav__accueil { display: list-item; }
	.nav ul a { display: block; padding: .85rem 0; font-size: 1.2rem; font-weight: 700; border-bottom: 1px solid var(--perle); }
	.nav ul a[aria-current="page"] { color: var(--orange-fonce); border-bottom-color: var(--perle); }

	.nav__sous-titre { display: block; margin: 1.4rem 0 .3rem; font-size: .9375rem; font-weight: 700; color: var(--gris); }
	.nav .nav__rubriques { display: block; }
	.nav .nav__rubriques a { position: relative; padding: .6rem 0 .6rem 1.2rem; font-size: 1.05rem; font-weight: 500; border-bottom: 0; }
	.nav__rubriques a::before { content: ""; position: absolute; left: 0; top: 50%; width: .55rem; height: .55rem; margin-top: -.275rem; border-radius: 50%; background: var(--teinte, var(--orange)); }
	.nav__rubriques li:nth-child(5n+1) { --teinte: var(--c1); }
	.nav__rubriques li:nth-child(5n+2) { --teinte: var(--c2); }
	.nav__rubriques li:nth-child(5n+3) { --teinte: var(--c3); }
	.nav__rubriques li:nth-child(5n+4) { --teinte: var(--c4); }
	.nav__rubriques li:nth-child(5n+5) { --teinte: var(--c5); }

	.nav__actions { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--perle); }
	.nav__actions .nav__facebook { display: none; }
	.nav__avis { justify-content: center; padding: .7rem; font-size: 1.05rem; }
	.nav__tel { justify-content: center; padding: .7rem; border: 2px solid var(--anthracite); border-radius: 999px; font-size: 1.1rem; }
}
@media (max-width: 782px) {
	.admin-bar .nav, .admin-bar .nav-voile { top: 46px; }
}
@media (max-width: 1060px) and (prefers-reduced-motion: reduce) {
	.nav, .nav.est-ouvert { transition: none; }
}
