/*
Theme Name:   P&V Conseil
Theme URI:    https://amo-pvconseil.fr
Author:       P&V Conseil
Description:  Thème sur mesure du site de P&V Conseil, assistance à maîtrise d'ouvrage (AMO) et conseil en rénovation.
Version:      0.11.0
Requires at least: 6.5
Requires PHP: 8.1
License:      Propriétaire, tous droits réservés
Text Domain:  pv-conseil
*/

/* ==========================================================================
   1. Police Montserrat, hébergée sur le site (aucun appel à Google)
   Un seul fichier « variable » contient toutes les graisses, de Light à Black.
   ========================================================================== */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Charte graphique : couleurs et réglages communs
   ========================================================================== */
:root {
	--pv-bleu: #1B2942;        /* Bleu nuit : titres, texte, en-tête, pied de page */
	--pv-orange: #D9531E;      /* Orange terracotta : titres, boutons, soulignements, icônes (jamais pour du petit texte) */
	--pv-orange-texte: #B8441A; /* Orange foncé : petits textes orange (contraste 5,4:1 sur blanc) */
	--pv-gris: #5A5D60;        /* Gris ardoise : sous-titres, mentions */
	--pv-blanc: #FFFFFF;       /* Fond */
	--pv-fond-doux: #F5F6F8;   /* Fond légèrement teinté pour alterner les sections */

	--pv-police: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--pv-largeur: 1200px;      /* Largeur maximale du contenu */
	--pv-marge: 1.25rem;       /* Marge sur les côtés (mobile) */
	--pv-rayon: 6px;           /* Arrondi des boutons et des cartes */
}

/* ==========================================================================
   3. Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--pv-blanc);
	color: var(--pv-bleu);
	font-family: var(--pv-police);
	font-size: 1.0625rem;      /* 17 px */
	font-weight: 400;
	line-height: 1.65;
}

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

p {
	margin: 0 0 1.1em;
}

a {
	color: var(--pv-bleu);
	text-decoration-color: var(--pv-orange);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--pv-orange-texte);
}

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

/* ==========================================================================
   4. Titres
   Un seul H1 par page ; les tailles s'adaptent à la largeur de l'écran.
   ========================================================================== */
h1,
h2,
h3,
h4 {
	margin: 0 0 0.6em;
	color: var(--pv-bleu);
	line-height: 1.2;
}

h1 {
	font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
	font-weight: 900;
	letter-spacing: -0.01em;
}

h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
	font-weight: 700;
}

/* Ligne dynamique de la charte : trait orange légèrement ascendant sous les H2 */
h2::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 3px;
	margin-top: 0.45em;
	background: var(--pv-orange);
	transform: rotate(-3deg);
	transform-origin: left center;
}

/* Titre qui est aussi un lien : pas de soulignement, le trait orange suffit */
h1 a,
h2 a,
h3 a {
	color: inherit;
	text-decoration: none;
}

h1 a:hover,
h2 a:hover,
h3 a:hover {
	color: var(--pv-orange-texte);
}

h3 {
	font-size: 1.3rem;
	font-weight: 700;
}

h4 {
	font-size: 1.1rem;
	font-weight: 700;
}

/* Accroche au-dessus d'un titre : « AMO - CONSEIL EN RÉNOVATION » */
.surtitre {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--pv-orange-texte);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Sous-titre et textes descriptifs */
.sous-titre {
	color: var(--pv-gris);
	font-size: 1.15rem;
	font-weight: 400;
}

/* Mentions discrètes */
.mention {
	color: var(--pv-gris);
	font-size: 0.92rem;
	font-weight: 300;
}

/* ==========================================================================
   5. Boutons
   Texte en gras de 19 px minimum : contraste suffisant sur fond orange.
   ========================================================================== */
.bouton {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	border: 2px solid var(--pv-orange);
	border-radius: var(--pv-rayon);
	background: var(--pv-orange);
	color: var(--pv-blanc);
	font-family: var(--pv-police);
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bouton:hover {
	background: #B8441A;
	border-color: #B8441A;
	color: var(--pv-blanc);
}

.bouton--secondaire {
	background: transparent;
	border-color: var(--pv-bleu);
	color: var(--pv-bleu);
}

.bouton--secondaire:hover {
	background: var(--pv-bleu);
	border-color: var(--pv-bleu);
	color: var(--pv-blanc);
}

/* ==========================================================================
   6. Mise en page
   ========================================================================== */
.conteneur {
	width: 100%;
	max-width: calc(var(--pv-largeur) + 2 * var(--pv-marge));
	margin: 0 auto;
	padding: 0 var(--pv-marge);
}

.site-contenu {
	padding: 3rem 0 4rem;
}

/* Lien « Aller au contenu » pour la navigation au clavier */
.lien-evitement {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--pv-bleu);
	color: var(--pv-blanc);
}

.lien-evitement:focus {
	top: 1rem;
}

/* Texte lu par les lecteurs d'écran mais invisible à l'écran */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   7. Menus et icônes
   ========================================================================== */
.menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu a {
	font-weight: 700;
	text-decoration: none;
}

.icone {
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
}

/* Bouton carré avec une icône (téléphone, menu) : 44 px, la taille d'un doigt */
.bouton-icone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 44px;
	height: 44px;
	padding: 0 0.6rem;
	border: 2px solid var(--pv-bleu);
	border-radius: var(--pv-rayon);
	background: var(--pv-blanc);
	color: var(--pv-bleu);
	font-family: var(--pv-police);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.bouton-icone:hover {
	background: var(--pv-bleu);
	color: var(--pv-blanc);
}

/* ==========================================================================
   8. En-tête
   Reste visible en haut de l'écran pendant qu'on fait défiler la page.
   ========================================================================== */
.site-entete {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid #E4E6EA;
	background: var(--pv-blanc);
}

/* Décalage sous la barre noire de WordPress, visible seulement une fois connecté */
@media (min-width: 601px) {
	.admin-bar .site-entete {
		top: 46px;
	}
}

@media (min-width: 783px) {
	.admin-bar .site-entete {
		top: 32px;
	}
}

.site-entete__barre {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.site-entete .site-logo {
	flex-shrink: 0;
}

.site-entete .site-logo img {
	width: 145px;
}

@media (min-width: 480px) {
	.site-entete .site-logo img {
		width: 175px;
	}
}

.site-entete__actions-mobiles {
	display: flex;
	gap: 0.5rem;
}

/* Le bouton « Menu » affiche l'icône ☰ fermé, ✕ ouvert */
.bouton-menu .icone--fermer,
.bouton-menu[aria-expanded="true"] .icone--menu {
	display: none;
}

.bouton-menu[aria-expanded="true"] .icone--fermer {
	display: inline-block;
}

/* Sans JavaScript, le bouton « Menu » ne servirait à rien : on le cache */
html:not(.js) .bouton-menu {
	display: none;
}

/* Mobile : le menu prend toute la largeur sous la barre, replié par défaut */
.site-entete__navigation {
	flex-basis: 100%;
	padding: 0.5rem 0 1rem;
}

.js .site-entete__navigation {
	display: none;
}

.js .site-entete__navigation.est-ouverte {
	display: block;
}

.menu--principal {
	flex-direction: column;
	gap: 0;
}

.menu--principal a {
	display: block;
	padding: 0.8rem 0;
	border-bottom: 1px solid #E4E6EA;
}

.site-entete__contact {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	margin-top: 1.2rem;
}

.site-entete__contact .bouton {
	text-align: center;
}

.lien-telephone {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.lien-telephone .icone {
	color: var(--pv-orange);
}

/* Ordinateur : tout sur une ligne, plus de bouton « Menu » */
@media (min-width: 1180px) {
	.site-entete__barre {
		flex-wrap: nowrap;
	}

	.site-entete .site-logo img {
		width: 190px;
	}

	.site-entete__actions-mobiles {
		display: none;
	}

	.site-entete__navigation,
	.js .site-entete__navigation {
		display: flex;
		flex-basis: auto;
		align-items: center;
		gap: 1.8rem;
		padding: 0;
	}

	.menu--principal {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 1.4rem;
	}

	.menu--principal a {
		padding: 0.3rem 0;
		border-bottom: 3px solid transparent;
		font-size: 0.95rem;
		white-space: nowrap;
	}

	.menu--principal a:hover,
	.menu--principal .current-menu-item > a {
		border-bottom-color: var(--pv-orange);
		color: var(--pv-bleu);
	}

	.site-entete__contact {
		flex-direction: row;
		align-items: center;
		gap: 1.4rem;
		margin-top: 0;
	}

	.site-entete__contact .bouton {
		padding: 0.6rem 1.2rem;
		white-space: nowrap;
	}
}

/* ==========================================================================
   9. Pied de page
   ========================================================================== */
.site-pied {
	padding: 3.5rem 0 1.5rem;
	background: var(--pv-bleu);
	color: #E3E6EB;
	font-size: 0.98rem;
}

.site-pied a {
	color: var(--pv-blanc);
}

.site-pied a:hover {
	color: var(--pv-blanc);
	text-decoration: underline;
	text-decoration-color: var(--pv-orange);
	text-decoration-thickness: 2px;
}

.site-pied__colonnes {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 700px) {
	.site-pied__colonnes {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.site-pied__colonnes {
		grid-template-columns: 1.4fr 1.1fr 1fr 0.9fr;
		gap: 3rem;
	}
}

.site-pied .site-logo img {
	width: 230px;
	margin-bottom: 1.2rem;
}

.site-pied__titre {
	margin-bottom: 1rem;
	color: var(--pv-blanc);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Petit trait orange sous les titres de colonnes, rappel de la charte */
.site-pied__titre::after {
	content: "";
	display: block;
	width: 2rem;
	height: 2px;
	margin-top: 0.5rem;
	background: var(--pv-orange);
}

.site-pied__titre--second {
	margin-top: 2rem;
}

.liste-contact {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.liste-contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin-bottom: 0.7rem;
}

.liste-contact .icone {
	margin-top: 0.15rem;
	color: var(--pv-orange);
}

.liste-contact a {
	text-decoration: none;
}

.menu--pied {
	flex-direction: column;
	gap: 0.6rem;
}

.menu--pied a {
	font-weight: 400;
}

.site-pied__bas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-pied__bas .mention {
	margin: 0;
	color: #C9CDD4;
}

.menu--legal {
	gap: 0.5rem 1.5rem;
}

.menu--legal a {
	color: #C9CDD4;
	font-size: 0.92rem;
	font-weight: 300;
}

/* ==========================================================================
   10. Bandeau cookies
   « Refuser » et « Accepter » ont exactement le même aspect (exigence de la CNIL).
   Le bandeau flotte au-dessus de la page : il ne la décale pas.
   ========================================================================== */
.bandeau-cookies {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	z-index: 200;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
	max-width: 960px;
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
	border-top: 4px solid var(--pv-orange);
	border-radius: var(--pv-rayon);
	background: var(--pv-blanc);
	box-shadow: 0 10px 40px rgba(27, 41, 66, 0.25);
	font-size: 0.95rem;
	line-height: 1.55;
}

.bandeau-cookies[hidden] {
	display: none;
}

.bandeau-cookies__contenu {
	flex: 1 1 420px;
}

.bandeau-cookies__contenu p {
	margin: 0;
}

.bandeau-cookies__titre {
	margin-bottom: 0.35rem !important;
	font-weight: 700;
}

.bandeau-cookies__boutons {
	display: flex;
	flex: 1 1 auto;
	gap: 0.75rem;
	justify-content: flex-end;
}

.bouton--choix {
	flex: 1 1 0;
	min-width: 8.5rem;
	border-color: var(--pv-bleu);
	background: var(--pv-bleu);
	text-align: center;
}

.bouton--choix:hover {
	border-color: var(--pv-orange);
	background: var(--pv-orange);
}

/* Bouton qui ressemble à un lien (« Gérer les cookies ») */
.lien-bouton {
	padding: 0;
	border: 0;
	background: none;
	color: #C9CDD4;
	font-family: var(--pv-police);
	font-size: 0.92rem;
	font-weight: 300;
	text-decoration: underline;
	text-decoration-color: var(--pv-orange);
	text-underline-offset: 3px;
	cursor: pointer;
}

.lien-bouton:hover {
	color: var(--pv-blanc);
}

/* ==========================================================================
   11. Sections de la page d'accueil
   ========================================================================== */
.home .site-contenu {
	padding: 0;
}

.section {
	padding: 4rem 0;
}

@media (min-width: 900px) {
	.section {
		padding: 5.5rem 0;
	}
}

.section--doux {
	background: var(--pv-fond-doux);
}

/* Chaque section remplit toute la largeur ; son contenu reste centré */
.section > .conteneur > * {
	margin-top: 0;
}

.conteneur--etroit {
	max-width: calc(860px + 2 * var(--pv-marge));
}

.section__intro {
	max-width: 46rem;
	margin-bottom: 2.5rem;
	color: var(--pv-gris);
	font-size: 1.15rem;
}

/* Accroche (haut de page) */
.section--accroche {
	position: relative;
	overflow: hidden;
	padding: 3.5rem 0 4rem;
	background: linear-gradient(180deg, var(--pv-fond-doux) 0%, var(--pv-blanc) 100%);
}

@media (min-width: 900px) {
	.section--accroche {
		padding: 6rem 0 6.5rem;
	}
}

/* Motif de pastilles de la charte, en filigrane à droite (ordinateur uniquement) */
@media (min-width: 1000px) {
	.section--accroche::after {
		content: "";
		position: absolute;
		top: 50%;
		right: -60px;
		width: 460px;
		height: 460px;
		background: url("assets/images/motif-pastilles.webp") center / contain no-repeat;
		opacity: 0.12;
		transform: translateY(-50%);
		pointer-events: none;
	}
}

.section--accroche .conteneur > * {
	position: relative;
	z-index: 1;
	max-width: 50rem;
}

.section--accroche h1 {
	font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem);
}

.section--accroche .conteneur > h1 {
	max-width: 58rem;
}

.section--accroche h1 {
	margin-bottom: 1rem;
}

.accroche__promesse {
	margin-bottom: 1.6rem;
	color: var(--pv-gris);
	font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
}

.liste-atouts,
.liste-documents {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.liste-atouts li,
.liste-documents li {
	position: relative;
	margin-bottom: 0.7rem;
	padding-left: 2rem;
}

/* Coche orange devant chaque atout */
.liste-atouts li::before,
.liste-documents li::before {
	content: "";
	position: absolute;
	top: 0.35em;
	left: 0;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--pv-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 75% no-repeat;
}

.liste-atouts li {
	font-weight: 700;
}

/* Boutons de l'éditeur (bloc « Bouton ») : même aspect que les boutons du thème */
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.wp-block-button__link {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	border: 2px solid var(--pv-orange);
	border-radius: var(--pv-rayon);
	background: var(--pv-orange);
	color: var(--pv-blanc);
	font-family: var(--pv-police);
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.wp-block-button__link:hover {
	border-color: #B8441A;
	background: #B8441A;
	color: var(--pv-blanc);
}

/* Grilles de cartes */
.grille {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 700px) {
	.grille--2,
	.grille--3,
	.grille--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.grille--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.grille--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.carte {
	padding: 1.6rem;
	border: 1px solid #E4E6EA;
	border-radius: var(--pv-rayon);
	background: var(--pv-blanc);
}

.carte > :last-child {
	margin-bottom: 0;
}

.carte h3 {
	font-size: 1.15rem;
}

.carte--projet {
	border-top: 3px solid var(--pv-orange);
}

.carte--projet p {
	color: var(--pv-gris);
	font-size: 0.95rem;
}

.carte--autre {
	border-style: dashed;
	border-top-style: solid;
	background: transparent;
}

.carte--inquietude {
	border-left: 4px solid var(--pv-orange);
}

/* Encadré « Bon à savoir » */
.encart {
	max-width: 46rem;
	margin-top: 2.5rem;
	padding: 1.1rem 1.4rem;
	border-left: 4px solid var(--pv-bleu);
	background: var(--pv-fond-doux);
}

/* Méthode : quatre étapes numérotées par la page elle-même */
.etapes {
	display: grid;
	gap: 1.25rem;
	counter-reset: etape;
}

@media (min-width: 900px) {
	.etapes {
		grid-template-columns: repeat(2, 1fr);
	}
}

.etape {
	position: relative;
	padding: 4.6rem 1.4rem 1.4rem;
	border: 1px solid #E4E6EA;
	border-radius: var(--pv-rayon);
}

/* Sur grand écran, le numéro passe à gauche du texte */
@media (min-width: 600px) {
	.etape {
		padding: 1.6rem 1.6rem 1.6rem 4.8rem;
	}
}

.etape::before {
	counter-increment: etape;
	content: counter(etape);
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--pv-bleu);
	color: var(--pv-blanc);
	font-weight: 900;
}

.etape h3 {
	font-size: 1.1rem;
}

.etape__resume {
	font-weight: 700;
}

/* Texte repris mot pour mot du contrat */
.texte-contrat {
	margin-bottom: 0;
	padding-left: 0.9rem;
	border-left: 2px solid var(--pv-orange);
	color: var(--pv-gris);
	font-size: 0.95rem;
}

.section > .conteneur > .documents__titre {
	margin-top: 3rem;
}

/* Encadrés placés après une grille (« Bon à savoir », « Phases 1 et 2 sans engagement ») */
.section > .conteneur > .encart {
	margin-top: 2rem;
}

/* Qui vous accompagne ? */
.presentation {
	display: grid;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 900px) {
	.presentation {
		grid-template-columns: 3fr 2fr;
		gap: 4rem;
	}
}

.presentation__texte p:not(.section__intro) {
	max-width: 42rem;
}

.citation {
	margin: 0;
	padding: 2rem;
	border-left: 4px solid var(--pv-orange);
	background: var(--pv-fond-doux);
	font-size: 1.15rem;
	font-style: italic;
}

.citation cite {
	display: block;
	margin-top: 1rem;
	color: var(--pv-gris);
	font-size: 0.92rem;
	font-style: normal;
	font-weight: 700;
}

/* Nos garanties : fond bleu nuit */
.section--bleu {
	background: var(--pv-bleu);
	color: #E3E6EB;
}

.section--bleu h2,
.section--bleu h3 {
	color: var(--pv-blanc);
}

.garantie {
	padding: 1.6rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--pv-rayon);
}

.garantie h3 {
	font-size: 1.15rem;
}

.garantie > :last-child {
	margin-bottom: 0;
}

/* Zone d'intervention */
.liste-communes {
	margin: 0;
	padding: 0;
	list-style: none;
}

.liste-communes li {
	padding: 0.35rem 0;
	border-bottom: 1px solid #EEF0F3;
}

.liste-communes li:last-child {
	border-bottom: 0;
}

.carte--zone h3 {
	color: var(--pv-orange-texte);
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

#zone .mention {
	margin-top: 1.5rem;
}

/* Questions fréquentes */
.faq {
	margin-bottom: 0.75rem;
	border: 1px solid #E4E6EA;
	border-radius: var(--pv-rayon);
	background: var(--pv-blanc);
}

.faq summary {
	position: relative;
	padding: 1.1rem 3.2rem 1.1rem 1.3rem;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.faq summary::-webkit-details-marker {
	display: none;
}

/* « + » qui devient « − » à l'ouverture */
.faq summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 1.3rem;
	color: var(--pv-orange);
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-50%);
}

.faq[open] summary::after {
	content: "−";
}

.faq > p {
	margin: 0;
	padding: 0 1.3rem 1.2rem;
}

/* Contact */
.section--contact {
	text-align: center;
}

.section--contact h2::after {
	margin-right: auto;
	margin-left: auto;
}

.section--contact .section__intro {
	margin-right: auto;
	margin-left: auto;
}

.contact-rapide {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.contact-rapide .bouton {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* WordPress ajoute un espace au-dessus de chaque bloc : dans nos sections,
   ce sont les marges du thème qui gèrent les espacements. */
.section .is-layout-flow > *,
.section .is-layout-constrained > * {
	margin-block-start: 0;
}

/* Liens du menu vers une section : le titre ne doit pas passer sous l'en-tête fixe */
html {
	scroll-padding-top: 90px;
}

@media (min-width: 783px) {
	.admin-bar {
		scroll-padding-top: 122px;
	}
}

/* ==========================================================================
   12. Pages chantiers, problématiques, guides et leurs listes
   ========================================================================== */
.contenu__entete {
	padding: 2rem 0 2.5rem;
	background: linear-gradient(180deg, var(--pv-fond-doux) 0%, var(--pv-blanc) 100%);
}

.contenu__entete h1 {
	max-width: 52rem;
	font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
}

.contenu__chapo {
	max-width: 46rem;
	margin-bottom: 0;
	color: var(--pv-gris);
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
}

/* Fil d'Ariane */
.fil-ariane ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0 0 1.5rem;
	padding: 0;
	color: var(--pv-gris);
	font-size: 0.92rem;
	list-style: none;
}

.fil-ariane li + li::before {
	content: "›";
	margin-right: 0.5rem;
	color: var(--pv-orange);
}

.fil-ariane a {
	color: var(--pv-gris);
}

/* Fiche d'un chantier : commune, projet, corps de métier, date */
.fiche {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	margin: 1.5rem 0 0;
}

.fiche dt {
	color: var(--pv-gris);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fiche dd {
	margin: 0;
	font-weight: 700;
}

/* Photos du chantier : vignettes de même taille en haut de page, texte juste dessous */
.vignettes {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 800px) {
	.vignettes {
		grid-template-columns: repeat(8, 1fr);
	}
}

.vignette--cachee {
	display: none;
}

.vignette__lien {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--pv-rayon);
	aspect-ratio: 1;
	background: var(--pv-fond-doux);
}

.vignette__lien img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.vignette__lien:hover img,
.vignette__lien:focus-visible img {
	transform: scale(1.05);
}

.vignette__lien:focus-visible {
	outline: 3px solid var(--pv-orange);
	outline-offset: 2px;
}

.vignette__etiquette {
	position: absolute;
	bottom: 0.3rem;
	left: 0.3rem;
	padding: 0.1rem 0.4rem;
	border-radius: 4px;
	background: rgba(27, 41, 66, 0.85);
	color: var(--pv-blanc);
	font-size: 0.72rem;
	font-weight: 700;
}

.vignette__plus {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(27, 41, 66, 0.6);
	color: var(--pv-blanc);
	font-size: 1.4rem;
	font-weight: 900;
}

.vignettes__aide {
	margin: 0.5rem 0 0;
	color: var(--pv-gris);
	font-size: 0.85rem;
}

/* Visionneuse : la photo en grand, flèches, glisser du doigt, Échap pour fermer */
.visionneuse {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(15, 22, 36, 0.95);
	color: var(--pv-blanc);
}

.visionneuse[open] {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
}

.visionneuse::backdrop {
	background: rgba(15, 22, 36, 0.95);
}

.visionneuse__photo {
	display: grid;
	justify-items: center;
	gap: 0.6rem;
	margin: 0;
	padding: 3.5rem 0 1.5rem;
	min-width: 0;
}

.visionneuse__photo img {
	max-width: 100%;
	max-height: calc(100vh - 8rem);
	border-radius: var(--pv-rayon);
	object-fit: contain;
}

.visionneuse__photo figcaption {
	font-size: 0.92rem;
	font-weight: 700;
}

.visionneuse button {
	border: 0;
	background: none;
	color: var(--pv-blanc);
	cursor: pointer;
	line-height: 1;
}

.visionneuse button:focus-visible {
	outline: 3px solid var(--pv-orange);
	outline-offset: 2px;
}

.visionneuse__fleche {
	padding: 1rem 0.6rem;
	font-size: 3rem;
}

.visionneuse__fermer {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	padding: 0.4rem 0.6rem;
	font-size: 2.2rem;
}

/* Texte rédigé (IA + relecture) : largeur de lecture confortable */
/* Le texte reste aligné à gauche avec le titre, sur une largeur de lecture confortable */
.contenu__texte > * {
	max-width: 760px;
}

.contenu__texte {
	padding-top: 1rem;
	padding-bottom: 3.5rem;
}

.contenu__texte h2 {
	margin-top: 2.5rem;
}

.contenu__texte h3 {
	margin-top: 1.8rem;
}

.contenu__texte ul,
.contenu__texte ol {
	margin: 0 0 1.2em;
	padding-left: 1.3rem;
}

.contenu__texte li {
	margin-bottom: 0.4rem;
}

.contenu__texte table {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.contenu__texte th,
.contenu__texte td {
	padding: 0.6rem 0.8rem;
	border: 1px solid #E4E6EA;
	text-align: left;
	vertical-align: top;
}

.contenu__texte th {
	background: var(--pv-fond-doux);
}

/* Guides : signature, réponse courte, sources */
.signature {
	margin: 1rem 0 0;
	color: var(--pv-gris);
	font-size: 0.95rem;
}

.signature strong {
	color: var(--pv-bleu);
}

.reponse-courte {
	margin-bottom: 2rem;
	padding: 1.2rem 1.4rem;
	border-left: 4px solid var(--pv-orange);
	background: var(--pv-fond-doux);
	font-size: 1.1rem;
}

.sources {
	font-size: 0.95rem;
}

/* Cartes : toute la carte est cliquable (le lien du titre la couvre) */
.carte--chantier,
.carte--contenu {
	position: relative;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.carte--chantier:has(a):hover,
.carte--contenu:has(a):hover {
	box-shadow: 0 8px 24px rgba(27, 41, 66, 0.12);
	transform: translateY(-2px);
}

.carte__titre {
	margin-bottom: 0.6rem;
	font-size: 1.15rem;
}

.carte__titre a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.carte--chantier {
	padding: 0;
	overflow: hidden;
}

.carte__image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.carte__corps {
	padding: 1.2rem 1.4rem 1.4rem;
}

.carte__details {
	margin-bottom: 0.4rem;
	color: var(--pv-orange-texte);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.carte__lien {
	margin-top: auto;
	margin-bottom: 0;
	color: var(--pv-orange-texte);
	font-weight: 700;
}

.section__suite {
	margin: 2rem 0 0;
}

/* Listes complètes */
.liste-contenus {
	padding-bottom: 4rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.pagination .page-numbers {
	padding: 0.4rem 0.8rem;
	border: 1px solid #E4E6EA;
	border-radius: var(--pv-rayon);
	text-decoration: none;
}

.pagination .current {
	background: var(--pv-bleu);
	color: var(--pv-blanc);
}

/* Appel à prendre contact en bas de page */
.appel-contact {
	padding: 4rem 0;
	background: var(--pv-fond-doux);
	text-align: center;
}

.appel-contact h2::after {
	margin-right: auto;
	margin-left: auto;
}

/* Pages avec bandeau de titre : pas d'espace blanc au-dessus du bandeau */
.site-contenu:has(> .contenu__entete),
.site-contenu:has(> article > .contenu__entete) {
	padding: 0;
}

/* ==========================================================================
   13. Formulaire de contact
   ========================================================================== */
.formulaire,
.formulaire__merci {
	margin: 0 auto 2.5rem;
	padding: 1.75rem;
	border: 1px solid #E4E6EA;
	border-radius: var(--pv-rayon);
	background: var(--pv-blanc);
	text-align: left;
}

@media (min-width: 700px) {
	.formulaire {
		padding: 2.25rem 2.5rem;
	}
}

.formulaire__grille {
	display: grid;
	gap: 0 1.5rem;
}

@media (min-width: 700px) {
	.formulaire__grille {
		grid-template-columns: 1fr 1fr;
	}
}

.formulaire__obligatoire {
	color: var(--pv-gris);
	font-size: 0.92rem;
}

.champ {
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
}

.champ label,
.champ legend {
	display: block;
	margin-bottom: 0.4rem;
	padding: 0;
	font-weight: 700;
}

.champ__aide {
	color: var(--pv-gris);
	font-size: 0.92rem;
	font-weight: 400;
}

p.champ__aide {
	margin: 0.35rem 0 0;
}

.champ input[type="text"],
.champ input[type="email"],
.champ input[type="tel"],
.champ select,
.champ textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 0.8rem;
	border: 1px solid #8A8F96;
	border-radius: var(--pv-rayon);
	background: var(--pv-blanc);
	color: var(--pv-bleu);
	font-family: var(--pv-police);
	font-size: 1rem;
}

.champ textarea {
	resize: vertical;
}

.champ [aria-invalid="true"] {
	border: 2px solid #B42318;
}

.formulaire__erreur {
	margin: 0.35rem 0 0;
	color: #B42318;
	font-size: 0.92rem;
	font-weight: 700;
}

.cases {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 0.5rem;
}

.case {
	display: flex !important;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	margin: 0 !important;
	padding: 0.4rem 0.75rem;
	border: 1px solid #E4E6EA;
	border-radius: var(--pv-rayon);
	font-weight: 400 !important;
	cursor: pointer;
}

.case:has(input:checked) {
	border-color: var(--pv-orange);
	background: #FFF6F1;
}

.case input {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: var(--pv-orange);
}

.champ-piege {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.formulaire__rgpd {
	color: var(--pv-gris);
	font-size: 0.92rem;
	line-height: 1.5;
}

.formulaire__alerte {
	margin-bottom: 1.5rem;
	padding: 1rem 1.2rem;
	border-left: 4px solid #B42318;
	background: #FEF3F2;
}

.formulaire__alerte p {
	margin: 0;
}

.formulaire__merci {
	border-left: 4px solid #12805C;
	background: #F0FAF5;
}

.formulaire__merci-titre {
	font-size: 1.2rem;
	font-weight: 700;
}

.formulaire__merci p:last-child {
	margin-bottom: 0;
}

.contact-ou {
	margin-bottom: 1rem;
	font-weight: 700;
}

.appel-contact__bouton {
	margin-bottom: 1.25rem;
}

/* Passages à compléter avant la mise en ligne : bien visibles sur le site de test */
mark.a-completer {
	padding: 0.1em 0.3em;
	border-radius: 3px;
	background: #FFE7D6;
	color: #8A3412;
	font-weight: 700;
}


/* ==========================================================================
   14. Mobile : zones à toucher du doigt d'au moins 44 px de haut
   ========================================================================== */
@media (max-width: 899px) {
	.menu--pied a,
	.menu--legal a,
	.liste-contact a,
	.fil-ariane a,
	.sources a,
	.lien-bouton {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.menu--pied,
	.menu--legal {
		gap: 0 1.5rem;
	}

	.liste-contact li {
		align-items: center;
		margin-bottom: 0.25rem;
	}

	.liste-contact .icone {
		margin-top: 0;
	}
}

/* ==========================================================================
   15. Avis Google (accueil)
   ========================================================================== */
.grille-avis {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
	gap: 1rem;
}

.carte--avis {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.3rem;
}

.carte--avis p {
	margin: 0;
}

.avis__etoiles {
	color: #A3420F;
	font-size: 1.15rem;
	letter-spacing: 0.1em;
}

.avis__texte {
	flex-grow: 1;
	font-size: 0.98rem;
}

.avis__auteur,
.avis__lien {
	font-size: 0.92rem;
}

.avis__date {
	color: var(--pv-gris);
}

/* ==========================================================================
   16. Maillage : encadré vers la page pilier
   ========================================================================== */
.encart-pilier {
	margin-top: 2.5rem;
	padding: 1.2rem 1.4rem;
	border-left: 4px solid var(--pv-orange);
	background: var(--pv-fond-doux);
}

.encart-pilier__intro {
	margin-bottom: 0.4rem;
	color: var(--pv-gris);
	font-size: 0.95rem;
}

.encart-pilier ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.encart-pilier a {
	font-size: 1.1rem;
	font-weight: 700;
}

/* Lien vers une définition du lexique : souligné en pointillés */
.lien-lexique {
	text-decoration-style: dotted;
	text-decoration-thickness: 2px;
	cursor: help;
}

/* Photo de William (« Qui vous accompagne ? ») : dimensions réservées, pas de décalage au chargement */
.presentation__visuel {
	display: grid;
	gap: 1.25rem;
}

.presentation__photo {
	margin: 0;
}

.presentation__photo img {
	width: 100%;
	max-width: 22rem;
	aspect-ratio: 3 / 4;
	border-radius: var(--pv-rayon);
	object-fit: cover;
	object-position: center 30%;
}

/* Avertissement hors du site en ligne : demandes non transmises */
.formulaire__avertissement {
	margin: 0 auto 1rem;
	padding: 0.7rem 1rem;
	border: 2px dashed #8A3412;
	border-radius: var(--pv-rayon);
	background: #FFF6F1;
	color: #8A3412;
	font-size: 0.95rem;
	font-weight: 700;
}
