/*
 * LUCZAK-ARCHITECTE : composants partagés (accueil, expertises, pages, études de cas, articles).
 * Valeurs reprises de la maquette d'accueil (05-maquette-accueil) et de la page d'expertise (05b).
 * Aucune valeur nouvelle : tout composant ajouté réutilise ces règles.
 */

/* ============================================================
   En-tête transparent sur la photo, puis opaque au-delà de 40 px
   (classe la-transparent posée par functions.php, la-scrolled par entete.js)
   ============================================================ */
body.la-transparent header.wp-block-template-part {
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
}

body.la-transparent.la-scrolled header.wp-block-template-part {
	position: fixed;
}

body.la-transparent:not(.la-scrolled) .la-header {
	background: linear-gradient(180deg, rgba(17, 17, 17, 0.75) 0%, rgba(17, 17, 17, 0.4) 55%, rgba(17, 17, 17, 0) 100%) !important;
	border-bottom: 0;
	padding-bottom: 49px; /* 48 px de débord du dégradé + 1 px du filet absent */
}

body.la-transparent:not(.la-scrolled) .la-logo--blanc {
	display: block;
}

body.la-transparent:not(.la-scrolled) .la-logo--noir {
	display: none;
}

body.la-transparent:not(.la-scrolled) .la-marque {
	gap: 14px;
}

body.la-transparent:not(.la-scrolled) .la-site-name,
body.la-transparent:not(.la-scrolled) .la-site-name a,
body.la-transparent:not(.la-scrolled) .la-nav .wp-block-navigation__responsive-container-open,
body.la-transparent:not(.la-scrolled) .la-nav,
body.la-transparent:not(.la-scrolled) .la-nav .wp-block-navigation__responsive-container:not(.is-menu-open),
body.la-transparent:not(.la-scrolled) .la-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
	color: var(--wp--preset--color--white) !important;
}

/* Les sections de l'accueil se touchent (pas d'espace automatique entre elles) */
.la-accueil .wp-block-post-content > *,
.la-sections .wp-block-post-content > * {
	margin-block: 0;
}

/* Le sous-menu reste blanc, texte bleu profond */
body.la-transparent:not(.la-scrolled) .la-nav .wp-block-navigation__submenu-container,
body.la-transparent:not(.la-scrolled) .la-nav .wp-block-navigation__responsive-container.is-menu-open,
body.la-transparent:not(.la-scrolled) .la-nav .is-menu-open .wp-block-navigation__container {
	color: var(--wp--preset--color--navy) !important;
}

@media (max-width: 767px) {
	body.la-transparent:not(.la-scrolled) .la-logo--blanc img {
		width: 40px !important;
		height: 40px !important;
	}
}

/* ============================================================
   Icônes (dessinées au trait, couleur = currentColor via mask)
   ============================================================ */
:root,
.editor-styles-wrapper {
	--la-ico-fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
	--la-ico-coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E");
	--la-ico-telecharger: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M8 2v8M4.5 6.5L8 10l3.5-3.5M3 13h10'/%3E%3C/svg%3E");
	--la-ico-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
	--la-ico-lieu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M12 21s-6.5-6.1-6.5-11.2A6.5 6.5 0 0 1 18.5 9.8C18.5 14.9 12 21 12 21z M12 12.3a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/%3E%3C/svg%3E");
}

.la-ico-avis { --la-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E"); }
.la-ico-ordre { --la-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M4 21V9l8-6 8 6v12M9 21v-7h6v7'/%3E%3C/svg%3E"); }
.la-ico-assurance { --la-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8-8 9-4.6-1-8-4.5-8-9V6z M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.la-ico-rge { --la-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M5 19c0-8 5-14 15-15-1 10-7 15-15 15z M5 19l7-7'/%3E%3C/svg%3E"); }
.la-ico-mar { --la-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M3 11l9-7 9 7M5 9.5V20h14V9.5 M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
.la-ico-droit { --la-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M12 4v16M7 20h10M5 7h14M5 7l-3 7h6zM19 7l-3 7h6z'/%3E%3C/svg%3E"); }
.la-ico-experience { --la-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z M12 7v5l3 2'/%3E%3C/svg%3E"); }

/* ============================================================
   Structure commune des sections
   ============================================================ */
.la-section {
	padding-top: var(--wp--preset--spacing--section) !important;
	padding-bottom: var(--wp--preset--spacing--section) !important;
}

.la-section .la-pile > * {
	margin-block: 0;
}

.la-section .la-pile > * + *,
.la-section .la-pile > .wp-block-image:not(:first-child) {
	margin-block-start: 48px;
}

.la-entete {
	max-width: 720px;
}

.la-entete--large {
	max-width: 760px;
}

.la-entete > * {
	margin: 0;
}

.la-entete > * + * {
	margin-top: 12px;
}

.la-note {
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
}

.la-entete-lien {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}

.la-entete-lien > * {
	margin: 0 !important;
}

/* Lien fléché */
.la-fleche {
	margin: 0;
}

.la-fleche a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: 16px;
	line-height: 20px;
	font-weight: 600;
}

.la-fleche a::after {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--la-ico-fleche) center / contain no-repeat;
	mask: var(--la-ico-fleche) center / contain no-repeat;
}

/* Formats d'image fixes */
.la-r43:not(figure), .la-r43 img { aspect-ratio: 4 / 3; }
.la-r32:not(figure), .la-r32 img { aspect-ratio: 3 / 2; }
.la-r169:not(figure), .la-r169 img { aspect-ratio: 16 / 9; }
.la-r52 img { aspect-ratio: 5 / 2; }
.la-r34 img { aspect-ratio: 3 / 4; }
.la-op-25 img { object-position: center 25%; }

.la-section .wp-block-image {
	margin: 0;
}

.la-section .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	background: var(--wp--preset--color--grey-light);
}

/* Photos côte à côte (avant / après) et pastilles */
.la-duo,
.la-trio {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: minmax(0, 1fr);
	gap: 4px;
}

.la-trio {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.la-duo > *,
.la-trio > * {
	margin: 0 !important;
}

.la-photo {
	position: relative;
	min-width: 0;
	overflow: hidden;
}

.la-photo .wp-block-image,
.la-photo .wp-block-image img {
	height: 100% !important;
}

.la-pastille {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	max-width: calc(100% - 24px);
	box-sizing: border-box;
	margin: 0 !important;
	padding: 4px 10px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
}

.la-trio .la-pastille {
	left: 8px;
	bottom: 8px;
	padding: 4px 8px;
}

/* Zoom des photos au survol et au focus clavier (0,4 s) */
.la-zoom {
	overflow: hidden;
}

.la-zoom img {
	transition: transform 400ms ease;
}

.la-carte:hover .la-zoom img,
.la-carte:focus-within .la-zoom img,
.la-tuile:hover .la-zoom img,
.la-tuile:focus-within .la-zoom img {
	transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
	.la-zoom img {
		transition: none;
	}

	.la-carte:hover .la-zoom img,
	.la-carte:focus-within .la-zoom img,
	.la-tuile:hover .la-zoom img,
	.la-tuile:focus-within .la-zoom img {
		transform: none;
	}
}

/* Blocs à filet supérieur (pour qui, engagements, encarts, nous rencontrer) */
.la-filet {
	border-top: 1px solid var(--wp--preset--color--grey-mid);
	padding-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.la-filet > * {
	margin: 0 !important;
}

/* ============================================================
   A. Bandeau de réassurance
   ============================================================ */
.la-reassurance {
	background: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--wp--preset--color--grey-mid);
	padding-top: 20px !important;
	padding-bottom: 20px !important;
}

.la-reassurance__liste {
	list-style: none;
	margin: 0 auto !important;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
	gap: 14px 32px;
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--ink);
}

.la-reassurance__liste li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
}

.la-reassurance__liste li::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	background: var(--wp--preset--color--navy);
	-webkit-mask: var(--la-ico) center / contain no-repeat;
	mask: var(--la-ico) center / contain no-repeat;
}

.la-reassurance__liste a {
	color: var(--wp--preset--color--ink);
	text-decoration-color: var(--wp--preset--color--grey-mid);
	text-underline-offset: 4px;
}

.la-reassurance__liste a:hover {
	text-decoration-color: currentColor;
}

.la-reassurance__liste strong {
	font-weight: 600;
}

/* ============================================================
   B. Expertises : cartes
   ============================================================ */
.la-carte {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--wp--preset--color--grey-mid);
}

.la-carte > * {
	margin: 0 !important;
}

.la-carte__corps {
	flex-grow: 1;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-carte__corps > * {
	margin: 0 !important;
}

.la-carte__corps .la-fleche {
	margin-top: auto !important;
}

/* Photo et titre mènent aussi à la page de l'expertise */
.la-carte .wp-block-image a {
	position: relative;
	display: block;
	height: 100%;
}

/* Focus clavier dessiné au-dessus de la photo (sinon masqué par le zoom) */
.la-carte .wp-block-image a:focus-visible {
	outline: none;
}

.la-carte .wp-block-image a:focus-visible::after {
	content: "";
	position: absolute;
	inset: 4px;
	z-index: 1;
	border: 2px solid var(--wp--preset--color--white);
	outline: 2px solid var(--wp--preset--color--navy);
}

.la-carte .la-pastille {
	pointer-events: none;
}

.la-carte__corps h3 a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.la-carte__corps h3 a:hover {
	text-decoration: underline;
}

/* ============================================================
   C. Pour qui
   ============================================================ */
.la-question {
	font-size: 18px;
	line-height: 27px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

/* ============================================================
   D. Notre méthode : frise des phases et barres des missions
   ============================================================ */
.la-frise-cadre {
	overflow-x: auto;
	padding-bottom: 8px;
}

.la-frise {
	min-width: 1080px;
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	row-gap: 8px;
}

.la-frise > *,
.la-frise > * > * {
	margin: 0 !important;
}

.la-frise__temps {
	grid-row: 1;
	border-top: 2px solid var(--wp--preset--color--navy);
	padding: 10px 8px 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.la-frise__numero {
	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--grey-dark);
}

.la-frise__titre {
	font-size: 15px;
	line-height: 20px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.la-t1 { grid-column: 1 / 2; }
.la-t2 { grid-column: 2 / 5; margin-left: 4px !important; }
.la-t3 { grid-column: 5 / 6; margin-left: 4px !important; }
.la-t4 { grid-column: 6 / 8; margin-left: 4px !important; }
.la-t5 { grid-column: 8 / 10; margin-left: 4px !important; }

.la-frise__phase {
	grid-row: 2;
	border-left: 1px solid var(--wp--preset--color--grey-mid);
	padding: 8px 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.la-p1 { grid-column: 1; }
.la-p2 { grid-column: 2; }
.la-p3 { grid-column: 3; }
.la-p4 { grid-column: 4; }
.la-p5 { grid-column: 5; }
.la-p6 { grid-column: 6; }
.la-p7 { grid-column: 7; }
.la-p8 { grid-column: 8; }
.la-p9 { grid-column: 9; border-right: 1px solid var(--wp--preset--color--grey-mid); }

.la-frise__sigle {
	font-size: 16px;
	line-height: 20px;
	font-weight: 600;
}

.la-frise__libelle {
	font-size: 14px;
	line-height: 19px;
	color: var(--wp--preset--color--grey-dark);
}

.la-frise__barre {
	margin: 0 2px !important;
	min-height: 48px;
	box-sizing: border-box;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 15px;
	line-height: 20px;
	color: var(--wp--preset--color--ink);
}

.la-frise__mission {
	font-weight: 600;
}

.la-frise__etendue {
	color: var(--wp--preset--color--grey-dark);
}

.la-b1 {
	grid-column: 1 / 2;
	grid-row: 3;
	padding: 0 12px;
	background: var(--wp--preset--color--white);
	border: 1.5px solid var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
}

.la-b2 {
	grid-column: 2 / 6;
	grid-row: 4;
	background: var(--wp--preset--color--blue-pale);
}

.la-b3 {
	grid-column: 2 / 7;
	grid-row: 5;
	background: var(--wp--preset--color--blue-pale);
	border: 1.5px solid var(--wp--preset--color--navy);
}

.la-b4 {
	grid-column: 2 / 10;
	grid-row: 6;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.la-b4 .la-frise__etendue {
	color: var(--wp--preset--color--white);
}

.la-b5 {
	grid-column: 1 / 10;
	grid-row: 7;
	margin: 8px 2px 0 !important;
	padding: 12px 16px;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 4px 16px;
	background: var(--wp--preset--color--grey-light);
	border: 1.5px dashed var(--wp--preset--color--grey-dark);
}

.la-b5 .la-frise__etendue {
	color: var(--wp--preset--color--ink);
}

/* ============================================================
   E. Offre d'entrée
   ============================================================ */
.la-deux-col {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}

.la-deux-col > * {
	margin: 0 !important;
}

.la-offre__texte {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.la-offre__texte > *,
.la-offre__liste > * {
	margin: 0 !important;
}

.la-offre__texte > p {
	max-width: 640px;
}

.la-offre__liste {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-h3-petit {
	font-size: 19px !important;
	line-height: 25px !important;
}

.la-coches {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 18px;
	line-height: 27px;
}

.la-coches li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
}

.la-coches li::before {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 4px;
	background: var(--wp--preset--color--navy);
	-webkit-mask: var(--la-ico-coche) center / contain no-repeat;
	mask: var(--la-ico-coche) center / contain no-repeat;
}

.la-offre .la-note strong,
.la-estimatif .la-note strong {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.la-offre__prix {
	flex: 1 1 360px;
	min-width: 0;
	padding: 32px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.la-offre__prix > *,
.la-prix > * {
	margin: 0 !important;
}

.la-prix {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--wp--preset--color--grey-mid);
}

.la-prix__cible {
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
}

.la-prix__montant {
	font-size: 32px;
	line-height: 38px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.la-prix__deduction {
	font-size: 15px;
	line-height: 22px;
}

.la-boutons-pleins {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.la-boutons-pleins .wp-block-button,
.la-boutons-pleins .wp-block-button__link {
	width: 100%;
}

.la-btn-telecharger .wp-block-button__link::before,
.la-btn-tel .wp-block-button__link::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	background: currentColor;
	-webkit-mask: var(--la-ico-telecharger) center / contain no-repeat;
	mask: var(--la-ico-telecharger) center / contain no-repeat;
}

.la-btn-tel .wp-block-button__link::before {
	width: 18px;
	height: 18px;
	-webkit-mask-image: var(--la-ico-tel);
	mask-image: var(--la-ico-tel);
}

/* ============================================================
   F. Réalisations et H. Ressources : tuiles
   ============================================================ */
.la-tuile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.la-tuile > * {
	margin: 0 !important;
}

.la-article {
	gap: 12px;
}

.la-tuile__titre {
	font-size: 22px !important;
	line-height: 28px !important;
}

.la-tuile__titre a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* Toute la tuile est cliquable (lien étiré sur la tuile) */
.la-tuile__titre a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.la-tuile__titre a:hover {
	text-decoration: underline;
}

.la-meta {
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
}

.la-vignette {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
}

.la-vignette > * {
	margin: 0 !important;
}

/* ============================================================
   G. Engagements : photo et légende
   ============================================================ */
.la-engagements .wp-block-image figcaption {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
	text-align: left;
}

/* ============================================================
   I. Avis et preuves
   ============================================================ */
.la-avis__corps {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
}

.la-avis__corps > * {
	margin: 0 !important;
}

.la-note-google {
	flex: 1 1 260px;
	padding: 32px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-note-google > * {
	margin: 0 !important;
}

.la-note-google__score {
	font-size: 44px;
	line-height: 50px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

/* 5 étoiles pleines (décoratives : la note est écrite juste au-dessus) */
.la-note-google__score::after {
	content: "";
	display: block;
	width: 116px;
	height: 20px;
	margin-top: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 116 20' fill='%231F3864' stroke='%231F3864' stroke-width='1.3' stroke-linejoin='round'%3E%3Cg id='e'%3E%3Cpath d='M10 1.5l2.4 5 5.4.8-3.9 3.8.9 5.4L10 14l-4.8 2.5.9-5.4-3.9-3.8 5.4-.8z'/%3E%3C/g%3E%3Cuse href='%23e' x='24'/%3E%3Cuse href='%23e' x='48'/%3E%3Cuse href='%23e' x='72'/%3E%3Cuse href='%23e' x='96'/%3E%3C/svg%3E") left center / contain no-repeat;
}

.la-avis__liste {
	flex: 999 1 640px;
	min-width: 0;
}

.wp-block-quote.la-avis__citation {
	margin: 0;
	padding: 32px;
	border: 0;
	background: var(--wp--preset--color--white);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.la-avis__citation p {
	margin: 0;
	font-size: 18px;
	line-height: 29px;
}

.la-avis__citation cite {
	margin-top: auto;
	font-style: normal;
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
}

.la-avis__citation cite strong {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

/* Les 3 encarts se partagent toute la largeur (comme sur la maquette) */
.la-encarts.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.la-encarts .la-filet {
	padding-top: 20px;
	gap: 6px;
}

.la-encart__titre {
	font-size: 18px;
	line-height: 27px;
	font-weight: 600;
}

/* ============================================================
   I bis. L'agence et la carte
   ============================================================ */
.la-agence__haut {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 64px;
	align-items: flex-start;
}

.la-agence__haut > * {
	margin: 0 !important;
}

.la-agence__portrait {
	flex: 1 1 300px;
	max-width: 400px;
}

.la-agence__portrait figcaption {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
	text-align: left;
}

.la-agence__portrait figcaption strong {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.la-agence__texte {
	flex: 999 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.la-agence__texte > * {
	margin: 0 !important;
}

.la-agence__texte > p {
	max-width: 720px;
}

.la-agence .la-agence__bas {
	margin-top: 64px !important;
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.la-agence__bas > * {
	margin: 0 !important;
}

/* Emplacement de la carte (cadre commun ; le plan d'accès, .la-plan, le remplit) */
.la-carte-lieu {
	flex: 999 1 560px;
	min-width: 0;
	min-height: 360px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 360' preserveAspectRatio='none' fill='none' stroke='%23FFFFFF'%3E%3Cpath d='M-20 250 L820 120 M120 -20 L260 380 M480 -20 L420 380 M-20 60 L820 300 M640 -20 L760 380' stroke-width='10'/%3E%3Cpath d='M-20 180 L820 210 M300 -20 L360 380' stroke-width='4'/%3E%3C/svg%3E");
	background-size: 100% 100%;
}

.la-carte-lieu > * {
	margin: 0 !important;
}

.la-carte-lieu::before {
	content: "";
	width: 32px;
	height: 32px;
	background: var(--wp--preset--color--navy);
	-webkit-mask: var(--la-ico-lieu) center / contain no-repeat;
	mask: var(--la-ico-lieu) center / contain no-repeat;
}

.la-carte-lieu__nom {
	background: var(--wp--preset--color--white);
	padding: 6px 12px;
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.la-carte-lieu__info {
	font-size: 14px;
	line-height: 21px;
	color: var(--wp--preset--color--grey-dark);
}

.la-rencontre {
	flex: 1 1 300px;
	min-width: 0;
	gap: 12px;
}

/* ============================================================
   J. Appel final
   ============================================================ */
.la-appel__corps {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px 48px;
}

.la-appel__corps > * {
	margin: 0 !important;
}

.la-appel__texte {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.la-appel__texte > * {
	margin: 0 !important;
}

.la-appel__texte > p {
	max-width: 620px;
}

.la-appel__boutons {
	gap: 16px;
}

.la-btn-blanc .wp-block-button__link {
	border-color: var(--wp--preset--color--white);
}

.la-btn-blanc .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--blue-pale) !important;
	border-color: var(--wp--preset--color--blue-pale);
	color: var(--wp--preset--color--navy) !important;
}

.la-btn-contour-blanc .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}

.la-btn-contour-blanc .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

/* ============================================================
   Mobile (< 768 px) : une colonne, zones tactiles de 44 px
   ============================================================ */
@media (max-width: 767px) {
	/* Bandeau : les 7 mentions se suivent sur une ou plusieurs lignes */
	.la-reassurance__liste {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 20px;
	}

	.la-reassurance__liste li {
		align-items: center;
		min-height: 44px;
	}

	.la-reassurance__liste li::before {
		margin-top: 0;
	}

	.la-carte__corps {
		padding: 20px;
	}

	/* Frise : liste verticale, les 5 temps en intertitres numérotés, leurs phases (numérotées) en dessous */
	.la-frise-cadre {
		overflow: visible;
		padding-bottom: 0;
	}

	.la-frise {
		min-width: 0;
		display: flex;
		flex-direction: column;
		counter-reset: phase;
	}

	.la-frise__temps {
		margin: 16px 0 4px !important;
		flex-direction: row;
		align-items: baseline;
		gap: 10px;
		padding: 10px 0 0;
	}

	.la-t1 { order: 1; margin-top: 0 !important; }
	.la-p1 { order: 2; }
	.la-t2 { order: 3; }
	.la-p2, .la-p3, .la-p4 { order: 4; }
	.la-t3 { order: 5; }
	.la-p5 { order: 6; }
	.la-t4 { order: 7; }
	.la-p6, .la-p7 { order: 8; }
	.la-t5 { order: 9; }
	.la-p8, .la-p9 { order: 10; }
	.la-frise__barre { order: 11; }

	.la-frise__phase {
		flex-direction: row;
		align-items: baseline;
		flex-wrap: wrap;
		gap: 4px 12px;
		padding: 10px 12px;
		border-right: 0;
	}

	.la-frise__sigle::before {
		counter-increment: phase;
		content: counter(phase) ". ";
	}

	.la-frise__barre {
		margin: 8px 0 0 !important;
		padding: 12px 16px;
		flex-wrap: wrap;
		gap: 4px 16px;
	}

	.la-b1 {
		margin-top: 32px !important;
	}

	.la-offre__prix,
	.la-note-google,
	.wp-block-quote.la-avis__citation {
		padding: 24px;
	}

	.la-agence__portrait {
		max-width: 320px;
	}

	.la-agence .la-agence__bas {
		margin-top: 48px !important;
	}

	.la-carte-lieu {
		min-height: 240px;
	}

	.la-appel__boutons,
	.la-appel__boutons .wp-block-button,
	.la-appel__boutons .wp-block-button__link {
		width: 100%;
	}

	.la-methode .wp-block-buttons .wp-block-button,
	.la-agence__texte .wp-block-button {
		width: 100%;
	}

	.la-methode .wp-block-button__link,
	.la-agence__texte .wp-block-button__link {
		width: 100%;
	}
}

/* ============================================================
   Formats et cadrages complémentaires
   ============================================================ */
.la-op-30 img { object-position: center 30%; }
.la-op-40 img { object-position: center 40%; }
.la-op-45 img { object-position: center 45%; }
.la-op-55 img { object-position: center 55%; }
.la-op-60 img { object-position: center 60%; }

/* ============================================================
   Fil d'Ariane (Yoast SEO) : 14 / 20 px, liens soulignés
   ============================================================ */
.yoast-breadcrumbs {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--wp--preset--color--grey-dark);
}

.yoast-breadcrumbs a {
	color: inherit;
	text-underline-offset: 4px;
}

.yoast-breadcrumbs .la-ariane__sep {
	margin: 0 10px;
}

.yoast-breadcrumbs .breadcrumb_last {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

/* ============================================================
   En-tête de page sur photo (pages d'expertise, études de cas)
   Maquette 05b, section 1 : photo moins haute que l'accueil.
   ============================================================ */
.la-page-hero {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--grey-dark);
	min-height: 580px;
	box-sizing: border-box;
	padding: 168px 24px 88px !important;
	display: flex;
	align-items: flex-end;
	margin-block: 0 !important;
}

.la-page-hero__photo,
.la-page-hero .wp-block-post-featured-image {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	height: 100% !important;
}

.la-page-hero__photo img,
.la-page-hero .wp-block-post-featured-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.la-page-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 75%;
	background: linear-gradient(0deg, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.6) 40%, rgba(17, 17, 17, 0) 100%);
	pointer-events: none;
	z-index: 1;
}

.la-page-hero__legende,
.la-page-hero .wp-block-post-featured-image figcaption {
	position: absolute;
	z-index: 2;
	right: 24px;
	bottom: 16px;
	left: auto;
	max-width: calc(100% - 48px);
	margin: 0 !important;
	font-size: 14px;
	line-height: 21px;
	color: var(--wp--preset--color--white);
	text-align: right;
}

.la-page-hero__contenu {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto !important;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 32px 64px;
}

.la-page-hero__texte {
	flex: 1 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.la-page-hero__contenu > *,
.la-page-hero__texte > * {
	margin: 0 !important;
}

.la-page-hero__titre {
	font-size: clamp(30px, 4vw, 44px) !important;
	line-height: 1.14 !important;
}

.la-page-hero__promesse {
	max-width: 640px;
	font-size: 20px;
	line-height: 30px;
}

.la-page-hero__action {
	flex: 0 1 auto;
	padding-bottom: 4px;
}

.la-page-hero .yoast-breadcrumbs,
.la-page-hero .yoast-breadcrumbs .breadcrumb_last,
.la-page-hero .yoast-breadcrumbs a {
	color: var(--wp--preset--color--white);
}

.la-page-hero .la-meta {
	color: var(--wp--preset--color--white);
}

/* ============================================================
   En-tête de page sans photo (pages composées)
   ============================================================ */
.la-entete-page {
	padding-top: 48px !important;
	padding-bottom: 64px !important;
}

.la-entete-page .la-pile > * + * {
	margin-block-start: 24px;
}

.la-entete-page .la-entete > * + * {
	margin-top: 16px;
}

.la-entete-page .wp-block-buttons {
	margin-top: 32px !important;
}

/* ============================================================
   Introduction et sommaire « Sur cette page » (05b, section 2)
   ============================================================ */
.la-intro {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 80px;
	align-items: flex-start;
}

.la-intro > * {
	margin: 0 !important;
}

.la-intro__texte {
	flex: 999 1 560px;
	min-width: 0;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.la-intro__texte > * {
	margin: 0 !important;
}

.la-accroche {
	font-size: 22px;
	line-height: 32px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.la-sommaire {
	flex: 1 1 280px;
	min-width: 0;
	border-left: 1px solid var(--wp--preset--color--grey-mid);
	padding-left: 32px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.la-sommaire > * {
	margin: 0 !important;
}

.la-sommaire ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.la-sommaire li {
	margin: 0;
}

.la-sommaire a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 16px;
	line-height: 20px;
	font-weight: 600;
	text-underline-offset: 4px;
}

/* ============================================================
   Sections par sujet : texte et photo en alternance (05b, section 3)
   ============================================================ */
.la-section--suite {
	padding-top: 0 !important;
}

.la-sujet {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 64px;
	align-items: flex-start;
}

.la-sujet--inverse {
	flex-wrap: wrap-reverse;
}

.la-sujet > * {
	margin: 0 !important;
}

.la-sujet__media {
	flex: 1 1 440px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-sujet__media > * {
	margin: 0 !important;
}

.la-sujet__texte {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Sujet sans photo : le texte garde une largeur de lecture (720 px, comme les en-têtes) */
.la-sujet__texte:only-child {
	flex-basis: 100%;
	max-width: 720px;
}

.la-sujet__texte > *,
.la-verif > * {
	margin: 0 !important;
}

.la-verif {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-sujet__media .wp-block-image figcaption,
.la-legende {
	margin: 0;
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
	text-align: left;
}

/* Emplacement d'image en attente (« Photo à fournir ») */
.la-attente {
	position: relative;
	min-width: 0;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
	background: var(--wp--preset--color--grey-light);
	border: 1px solid var(--wp--preset--color--grey-mid);
}

.has-grey-light-background-color .la-attente {
	background: var(--wp--preset--color--white);
}

.la-attente > * {
	margin: 0 !important;
}

.la-duo .la-attente,
.la-trio .la-attente {
	border: 0;
}

/* ============================================================
   Points réglementaires (05b, section 4)
   ============================================================ */
.la-regles .la-filet p {
	font-size: 17px;
	line-height: 27px;
}

.la-a-verifier {
	color: var(--wp--preset--color--grey-dark);
}

/* ============================================================
   Notre méthode appliquée : 4 blocs titrés en H3 (05b, section 5) ;
   déroulés en étapes (luczak_etapes : libellé en capitales, la-etape__verbe)
   ============================================================ */
.la-etapes.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.la-etape {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-etape > *,
.la-etape__corps > * {
	margin: 0 !important;
}

.la-etape__verbe {
	border-top: 2px solid var(--wp--preset--color--navy);
	padding-top: 10px;
	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
}

.la-etape__titre {
	border-top: 2px solid var(--wp--preset--color--navy);
	padding-top: 10px;
	font-size: 19px;
	line-height: 25px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.la-etape__corps {
	border-left: 1px solid var(--wp--preset--color--grey-mid);
	padding: 4px 16px 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.la-etape:last-child .la-etape__corps {
	border-right: 1px solid var(--wp--preset--color--grey-mid);
}

.la-etape__phases {
	font-size: 16px;
	line-height: 20px;
	font-weight: 600;
}

.la-etape__texte {
	font-size: 16px;
	line-height: 25px;
}

.la-ligne-action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
}

.la-ligne-action > * {
	margin: 0 !important;
}

/* ============================================================
   Questions fréquentes : questions dépliables (05b, section 8)
   ============================================================ */
.la-faq {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 80px;
	align-items: flex-start;
}

.la-faq > * {
	margin: 0 !important;
}

.la-faq__entete {
	flex: 1 1 300px;
	min-width: 0;
	max-width: 380px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-faq__entete > * {
	margin: 0 !important;
}

.la-faq__liste {
	flex: 999 1 560px;
	min-width: 0;
	border-top: 1px solid var(--wp--preset--color--grey-mid);
}

.la-faq__liste > * {
	margin: 0 !important;
}

.la-faq__liste .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--grey-mid);
	margin: 0;
	padding: 0;
}

.la-faq__liste summary {
	min-height: 64px;
	padding: 18px 0;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-size: 19px;
	line-height: 26px;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	list-style: none;
	cursor: pointer;
}

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

.la-faq__liste summary::after {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	background: var(--wp--preset--color--ink);
	-webkit-mask: var(--la-ico-plus) center / contain no-repeat;
	mask: var(--la-ico-plus) center / contain no-repeat;
	transition: transform 200ms ease;
}

.la-faq__liste details[open] > summary::after {
	transform: rotate(45deg);
}

.la-faq__question {
	margin: 0;
	font: inherit;
	color: inherit;
}

.la-faq__liste details > :not(summary) {
	margin: 0 48px 12px 0;
}

.la-faq__liste details > :last-child:not(summary) {
	margin-bottom: 24px;
}

@media (prefers-reduced-motion: reduce) {
	.la-faq__liste summary::after {
		transition: none;
	}
}

:root,
.editor-styles-wrapper {
	--la-ico-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E");
}

/* ============================================================
   Texte courant d'une page (720 px) et fiches
   ============================================================ */
.la-prose {
	max-width: 720px;
}

.la-prose > * {
	margin-block: 0;
}

.la-prose > * + * {
	margin-block-start: 24px;
}

.la-prose > h2 {
	margin-block-start: 48px;
}

.la-prose > h3 {
	margin-block-start: 32px;
}

.la-prose > h2 + *,
.la-prose > h3 + * {
	margin-block-start: 12px;
}

/* Fiche d'une étude de cas : lignes à filet */
.la-fiche.is-layout-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}

.la-fiche .la-filet {
	padding-top: 16px;
	gap: 4px;
}

.la-fiche__libelle {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-dark);
}

/* Galerie de photos d'une étude de cas : grille de 2 ou 3 */
.la-galerie.is-layout-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}

.la-galerie .wp-block-image figcaption {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
	text-align: left;
}

/* ============================================================
   Filtres de la page Réalisations
   ============================================================ */
.la-filtres {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.la-filtres[hidden] {
	display: none;
}

.la-filtres__groupe {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-filtres__groupe > *,
.la-filtres > * {
	margin: 0 !important;
}

.la-filtres__boutons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.la-filtres__boutons .wp-block-button__link {
	cursor: pointer;
	font-family: inherit;
}

/* Boutons produits par l'extension maison (filtres, formulaire, estimatif) : le bouton secondaire
   reprend les valeurs de theme.json (variation « outline »). */
.la-filtres__boutons .is-style-outline .wp-block-button__link,
.la-form__actions .is-style-outline .wp-block-button__link,
.la-estimatif__suite .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
}

.la-filtres__boutons .is-style-outline .wp-block-button__link:hover,
.la-form__actions .is-style-outline .wp-block-button__link:hover,
.la-estimatif__suite .is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.la-liste-projets .wp-block-post[hidden] {
	display: none;
}

/* ============================================================
   Listes d'articles et d'études de cas (boucles de requête)
   ============================================================ */
.la-boucle .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.la-boucle .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
	gap: 48px 32px;
}

.la-boucle--articles .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
	gap: 40px 32px;
}

/* Accueil, Ressources : les 3 derniers articles sur 3 colonnes */
.la-ressources .la-boucle--articles .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}

.la-boucle .wp-block-post {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

.la-boucle .wp-block-post > * {
	margin: 0 !important;
}

.la-boucle .wp-block-post-featured-image {
	overflow: hidden;
}

.la-boucle .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
	background: var(--wp--preset--color--grey-light);
}

.la-boucle .wp-block-post:hover .wp-block-post-featured-image img,
.la-boucle .wp-block-post:focus-within .wp-block-post-featured-image img {
	transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
	.la-boucle .wp-block-post-featured-image img {
		transition: none;
	}

	.la-boucle .wp-block-post:hover .wp-block-post-featured-image img,
	.la-boucle .wp-block-post:focus-within .wp-block-post-featured-image img {
		transform: none;
	}
}

.la-boucle .wp-block-post-title {
	font-size: 22px !important;
	line-height: 28px !important;
}

.la-boucle .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.la-boucle .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.la-boucle .wp-block-post-title a:hover {
	text-decoration: underline;
}

.la-boucle .wp-block-post-excerpt,
.la-boucle .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
}

.la-boucle .wp-block-post-terms {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-dark);
}

.la-boucle .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

.la-boucle .wp-block-query-pagination {
	margin-top: 48px;
}

/* Liste des catégories (page Ressources) : liens en boutons secondaires */
.la-categories ul,
ul.la-categories {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.la-categories li {
	margin: 0;
}

.la-categories a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0 20px;
	border: 2px solid var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
}

.la-categories a:hover,
.la-categories .current-cat a {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

/* ============================================================
   Article : en-tête, sommaire, encadré vers la page pilier
   ============================================================ */
.la-article-entete > * {
	margin-block: 0;
}

.la-article-entete > * + * {
	margin-block-start: 16px;
}

.la-article-meta {
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
}

.la-article-meta > * {
	margin: 0 !important;
}

.la-article-entete .wp-block-post-terms {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-dark);
}

.la-article-entete .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

.la-encadre {
	padding: 32px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-encadre > * {
	margin: 0 !important;
}

.la-sommaire-article {
	border-left: 1px solid var(--wp--preset--color--grey-mid);
	padding-left: 32px;
}

.la-sommaire-article ol,
.la-sommaire-article ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.la-sommaire-article li {
	margin: 4px 0;
}

/* ============================================================
   Mobile (< 768 px) : composants des pages intérieures
   ============================================================ */
@media (max-width: 767px) {
	.la-page-hero {
		min-height: 520px;
		padding: 136px 16px 80px !important;
	}

	.la-page-hero__legende,
	.la-page-hero .wp-block-post-featured-image figcaption {
		right: 16px;
		bottom: 16px;
		max-width: calc(100% - 32px);
	}

	.la-page-hero__action,
	.la-page-hero__action .wp-block-button,
	.la-page-hero__action .wp-block-button__link {
		width: 100%;
	}

	.la-page-hero__promesse {
		font-size: 18px;
		line-height: 27px;
	}

	.la-entete-page {
		padding-top: 32px !important;
		padding-bottom: 48px !important;
	}

	.la-sommaire,
	.la-sommaire-article {
		padding-left: 20px;
	}

	.la-faq__liste details > :not(summary) {
		margin-right: 0;
	}

	.la-encadre {
		padding: 24px;
	}

	.la-ligne-action .wp-block-buttons,
	.la-ligne-action .wp-block-button,
	.la-ligne-action .wp-block-button__link {
		width: 100%;
	}
}

/* ============================================================
   Texte d'un article ou d'une page standard (bloc « Contenu »)
   Les sections pleine largeur se touchent ; le texte courant, lui,
   garde les espacements de la charte (24 px, 48 px avant un H2).
   ============================================================ */
.la-sections .wp-block-post-content.la-prose-page > * + *,
.la-page-standard .la-prose-page > * + * {
	margin-block-start: 24px;
}

.la-sections .wp-block-post-content.la-prose-page > h2,
.la-page-standard .la-prose-page > h2 {
	margin-block-start: 56px;
}

.la-sections .wp-block-post-content.la-prose-page > h3,
.la-page-standard .la-prose-page > h3 {
	margin-block-start: 32px;
}

.la-sections .wp-block-post-content.la-prose-page > h2 + *,
.la-sections .wp-block-post-content.la-prose-page > h3 + *,
.la-page-standard .la-prose-page > h2 + *,
.la-page-standard .la-prose-page > h3 + * {
	margin-block-start: 12px;
}

.la-prose-page .la-sommaire-article,
.la-prose-page .la-encadre {
	margin-block: 32px;
}

/* ============================================================
   Formulaires (contact « Étudier mon projet », estimatif)
   Champs : bordure gris moyen, arrondi 2 px (base.css) ; étiquettes visibles au-dessus.
   ============================================================ */
.la-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.la-form > * {
	margin: 0;
}

.la-form__etape {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.la-form__etape[hidden] {
	display: none;
}

.la-form__etape legend {
	padding: 0;
	margin-bottom: 8px;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.la-form__champ {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.la-form__champ > * {
	margin: 0;
}

.la-form__champ > label,
.la-form__libelle {
	font-size: 16px;
	line-height: 22px;
	font-weight: 600;
}

.la-form input[type="text"],
.la-form input[type="email"],
.la-form input[type="tel"],
.la-form input[type="number"],
.la-form select,
.la-form textarea {
	width: 100%;
	max-width: 100%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: 17px;
}

.la-form textarea {
	min-height: 140px;
	resize: vertical;
}

.la-form input[type="file"] {
	font: inherit;
	font-size: 15px;
}

.la-form [aria-invalid="true"]:not([role="radiogroup"]) {
	border: 2px solid var(--wp--preset--color--navy);
}

.la-form__ligne {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 24px;
}

.la-form__choix {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
	gap: 8px 24px;
}

.la-form__option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	padding: 10px 0;
	box-sizing: border-box;
	font-size: 17px;
	line-height: 24px;
	cursor: pointer;
}

.la-form__option input {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--wp--preset--color--navy);
}

.la-form__aide {
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--grey-dark);
}

.la-form__erreur {
	border-left: 2px solid var(--wp--preset--color--navy);
	padding-left: 10px;
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.la-form__alerte {
	padding: 16px 20px;
	background: var(--wp--preset--color--blue-pale);
	border-left: 2px solid var(--wp--preset--color--navy);
}

.la-form__alerte p {
	margin: 0;
}

.la-form__piege {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.la-form__actions {
	gap: 12px;
	padding-top: 8px;
	border-top: 1px solid var(--wp--preset--color--grey-mid);
}

.la-form__actions [hidden] {
	display: none;
}

.la-form__actions button {
	cursor: pointer;
	font-family: inherit;
}

.la-form__progression {
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.la-form__confirmation:focus {
	outline: none;
}

/* Estimatif : résultat */
.la-estimatif {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.la-estimatif__form .la-form__etape + .la-form__etape {
	margin-top: 16px;
}

/* Champs conditionnels : l'attribut hidden l'emporte sur display:flex de .la-form__champ. */
.la-estimatif [hidden] {
	display: none;
}

.la-estimatif__resultat {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 48px;
	background: var(--wp--preset--color--blue-pale);
}

.la-estimatif__resultat > * {
	margin: 0;
}

.la-estimatif__resultat .la-offre__texte {
	gap: 16px;
}

.la-estimatif__tableau {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 24px;
}

.la-estimatif__tableau th,
.la-estimatif__tableau td {
	padding: 8px 0;
	border-bottom: 1px solid var(--wp--preset--color--grey-mid);
	text-align: left;
	font-weight: 400;
}

.la-estimatif__tableau td {
	text-align: right;
	white-space: nowrap;
	font-weight: 600;
}

.la-estimatif__suite {
	gap: 12px;
}

/* Estimatif v2 : tableau à deux bornes (basse, haute) et blocs repliables */
.la-estimatif__tableau thead th {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: var(--wp--preset--color--grey-dark);
	text-align: right;
}

.la-estimatif__tableau thead th:first-child {
	text-align: left;
}

.la-estimatif__tableau th[scope="row"] strong {
	font-weight: 600;
}

.la-estimatif__tableau th[scope="row"] .la-note {
	display: block;
	margin: 0;
	font-size: 14px;
	line-height: 20px;
}

.la-estimatif__tableau td + td {
	padding-left: 16px;
}

.la-estimatif__tableau tfoot th,
.la-estimatif__tableau tfoot td {
	border-bottom: 0;
	border-top: 1px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--navy);
}

.la-estimatif__tableau tfoot tr + tr th,
.la-estimatif__tableau tfoot tr + tr td {
	border-top: 0;
}

/* Totaux TTC : une ligne par borne, un cran au-dessus du tableau, séparés du total HT. */
.la-estimatif__tableau .la-estimatif__total-ttc th,
.la-estimatif__tableau .la-estimatif__total-ttc td {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 26px;
	padding-top: 4px;
	padding-bottom: 4px;
}

.la-estimatif__tableau .la-estimatif__total-ttc td {
	padding-left: 10px;
}

.la-estimatif__tableau tfoot tr:not(.la-estimatif__total-ttc) + .la-estimatif__total-ttc th,
.la-estimatif__tableau tfoot tr:not(.la-estimatif__total-ttc) + .la-estimatif__total-ttc td {
	padding-top: 24px;
}

.la-estimatif__bareme {
	margin: 0;
}

.la-estimatif__bareme > summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 16px;
	line-height: 20px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.la-estimatif__bareme[open] > summary {
	margin-bottom: 12px;
}

.la-estimatif__bareme > p {
	margin: 12px 0 0;
}

/* Plan d'accès de l'agence ([luczak_carte]) : plan dessiné, affiché à taille réelle et recadré
   selon la place (repère, métro et tram restent visibles) ; mention OpenStreetMap toujours visible. */
.la-plan {
	position: relative;
	display: block;
	padding: 0;
	margin: 0;
	overflow: hidden;
	background: var(--wp--preset--color--white);
	background-image: none;
}

.la-plan::before {
	content: none;
}

/* 400 px au moins, sur tous les écrans : le repère, le métro et le tram restent dans le cadre. */
.la-carte-lieu.la-plan {
	min-height: 400px;
}

.la-plan__lien {
	position: absolute;
	inset: 0;
	display: block;
}

.la-plan__lien img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: none;
	object-position: 50% 18%;
}

.la-plan__itineraire {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--navy);
	background: var(--wp--preset--color--white);
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.la-plan__lien:hover .la-plan__itineraire,
.la-plan__lien:focus-visible .la-plan__itineraire {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.la-plan__lien:focus-visible {
	outline-offset: -4px;
}

.la-plan__credit {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	padding: 2px 8px;
	background: rgba(255, 255, 255, 0.85);
	font-size: 12px;
	line-height: 18px;
	color: var(--wp--preset--color--grey-dark);
}

.la-plan__credit a {
	color: inherit;
}

.la-sommaire-liste a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
}

@media (max-width: 767px) {
	.la-estimatif__resultat {
		padding: 24px;
	}

	.la-estimatif__tableau {
		font-size: 15px;
		line-height: 22px;
	}

	.la-estimatif__tableau td + td {
		padding-left: 10px;
	}

	.la-form__actions .wp-block-button,
	.la-form__actions .wp-block-button__link {
		width: 100%;
	}
}
