/* ==========================================================================
   Habitance — styles du thème
   Couleurs : doré #C4A26B (fond), doré foncé #8C6D3F (texte sur blanc), blanc.
   ========================================================================== */

:root {
	--hab-gold: var(--wp--preset--color--gold, #C4A26B);
	--hab-gold-deep: var(--wp--preset--color--gold-deep, #8C6D3F);
	--hab-white: #fff;
	--hab-radius: 18px;
	--hab-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
	--hab-shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.2);
	--hab-header-h: 72px;
	--hab-topbar-h: 38px;
	--hab-ink: var(--wp--preset--color--ink, #2E2618);
	--hab-cream: var(--wp--preset--color--cream, #F8F3EA);
	--hab-section-y: clamp(48px, 7vw, 88px);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--hab-header-h) + 24px);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Pas d'espace doré entre en-tête / contenu / pied de page, ni entre sections pleine largeur. */
.wp-site-blocks > * { margin-block: 0; }
.hab-main { padding-top: 0; padding-bottom: 0; }
.hab-main > .wp-block-post-content { margin-block: 0; }
.wp-block-post-content > .alignfull { margin-block: 0; }

:focus-visible {
	outline: 2px solid var(--hab-white);
	outline-offset: 3px;
}
.has-white-background-color :focus-visible,
.is-style-card :focus-visible { outline-color: var(--hab-gold-deep); }

/* Texte réservé aux lecteurs d'écran */
.hab-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
/* L'en-tête entier est collant, décalé de la hauteur du bandeau contact :
   au défilement, le bandeau sort de l'écran et seule la barre de navigation reste. */
.hab-site-header {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--hab-topbar-h));
	z-index: 100;
}

/* Bandeau contact (téléphone + e-mail) */
.hab-topbar {
	height: var(--hab-topbar-h);
	box-sizing: border-box;
	padding: 0 clamp(16px, 3vw, 32px);
	background: var(--hab-ink);
	color: rgba(248, 243, 234, 0.72);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	line-height: 1;
}
.hab-topbar p { margin: 0; white-space: nowrap; }
.hab-topbar-tagline {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.7rem;
}
.hab-topbar-contact { gap: 0 !important; flex-shrink: 0; }
.hab-topbar-contact p + p {
	margin-left: 22px;
	padding-left: 22px;
	border-left: 1px solid rgba(248, 243, 234, 0.2);
}
.hab-topbar a {
	color: var(--hab-cream);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}
.hab-topbar a::before { color: var(--hab-gold); }
.hab-topbar a:hover { color: var(--hab-gold); }
.hab-topbar .hab-ico-phone a { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.hab-topbar :focus-visible { outline-color: var(--hab-gold); }

/* Barre de navigation */
.hab-header {
	min-height: var(--hab-header-h);
	box-sizing: border-box;
	padding: 10px clamp(16px, 3vw, 32px);
	border-bottom: 1px solid rgba(140, 109, 63, 0.12);
	box-shadow: 0 6px 24px rgba(46, 38, 24, 0.06);
}
.hab-header .wp-block-site-logo img { display: block; }

.hab-nav a { text-decoration: none; }
/* Liens : filet doré qui se déploie au survol, et reste sous la page en cours */
.hab-nav .wp-block-navigation-item:not(.hab-nav-cta) > .wp-block-navigation-item__content {
	position: relative;
	padding-block: 6px;
	transition: color 0.2s ease;
}
.hab-nav .wp-block-navigation-item:not(.hab-nav-cta) > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s ease;
}
.hab-nav .wp-block-navigation-item:not(.hab-nav-cta) > .wp-block-navigation-item__content:hover { color: var(--hab-ink); }
.hab-nav .wp-block-navigation-item:not(.hab-nav-cta) > .wp-block-navigation-item__content:hover::after,
.hab-nav .wp-block-navigation-item:not(.hab-nav-cta) > .wp-block-navigation-item__content[aria-current="page"]::after { transform: scaleX(1); }
.hab-nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--hab-ink); }

.hab-nav-cta > a {
	margin-left: 0.5rem;
	padding: 0.75em 1.4em !important;
	border-radius: 999px;
	background: var(--hab-gold-deep);
	color: var(--hab-white) !important;
	transition: background 0.25s ease, box-shadow 0.25s ease;
}
.hab-nav-cta > a:hover { background: var(--hab-ink); box-shadow: 0 6px 18px rgba(46, 38, 24, 0.22); }
.hab-nav-cta > a:focus-visible { outline-color: var(--hab-gold-deep); }

/* Téléphone et e-mail : seulement dans le menu mobile (le bandeau les affiche déjà) */
.hab-nav .hab-nav-contact { display: none; }

/* Menu mobile plein écran */
.hab-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: center;
	padding-top: 40px;
	font-size: 1.05rem;
}
.hab-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: center; gap: 1.75rem; }
.hab-nav .is-menu-open .hab-nav-cta > a { margin: 0.5rem 0 0; }
.hab-nav .is-menu-open .hab-nav-contact {
	display: flex;
	text-transform: none;
	letter-spacing: 0.04em;
	font-size: 1rem;
}
.hab-nav .is-menu-open .hab-nav-contact.hab-ico-phone {
	margin-top: 1rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(140, 109, 63, 0.2);
}

/* Entre 600 et 1100 px, le menu complet ne tient pas : on garde le bouton « menu ». */
@media (min-width: 600px) and (max-width: 1099px) {
	.hab-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.hab-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* Bandeau : sous ~900 px, l'accroche et les coordonnées ne tiennent plus côte à côte ;
   on garde seulement le téléphone et l'e-mail, centrés et sur une ligne. */
@media (max-width: 899px) {
	.hab-topbar { justify-content: center !important; }
	.hab-topbar-tagline { display: none; }
}
@media (max-width: 599px) {
	.hab-topbar-contact p + p { margin-left: 16px; padding-left: 16px; }
}
@media (max-width: 379px) {
	.hab-topbar { padding-inline: 12px; letter-spacing: 0.03em; }
	.hab-topbar .hab-ico-phone a { letter-spacing: 0.04em; }
	.hab-topbar-contact p + p { margin-left: 12px; padding-left: 12px; }
}

/* --------------------------------------------------------------------------
   Sections & titres
   -------------------------------------------------------------------------- */
.hab-section {
	padding-top: var(--hab-section-y);
	padding-bottom: var(--hab-section-y);
}
.hab-section-tight { padding-top: calc(var(--hab-section-y) / 2); padding-bottom: calc(var(--hab-section-y) / 2); }

.is-style-page-title {
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.1;
}
.hab-lead {
	font-style: italic;
	max-width: 760px;
	margin-inline: auto;
	opacity: 0.95;
}

/* Pastille blanche (titres « Projets Signature », « Nos valeurs ») */
.is-style-pill {
	width: fit-content;
	margin-inline: auto;
	background: var(--hab-white);
	color: var(--hab-gold) !important;
	padding: 0.55em 1.1em;
	border-radius: 14px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	font-weight: 700;
	font-size: clamp(1.2rem, 2vw, 1.375rem) !important;
	letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Bandeaux (couvertures)
   -------------------------------------------------------------------------- */
.wp-block-cover.hab-hero { min-height: calc(100svh - var(--hab-header-h) - var(--hab-topbar-h)); padding-block: 40px 28px; }
.wp-block-cover.hab-banner {
	min-height: clamp(460px, calc(88svh - var(--hab-header-h) - var(--hab-topbar-h)), 860px);
	padding-block: 64px;
}
.hab-banner .is-style-page-title { font-size: clamp(2.5rem, 5.5vw, 4.5rem) !important; margin-bottom: 0.4em; }
.hab-banner .hab-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; }
.hab-hero .wp-block-cover__inner-container,
.hab-banner .wp-block-cover__inner-container { color: var(--hab-white); }

/* Accueil : pas de voile doré. Un assombrissement neutre (encre) seulement derrière la
   colonne de texte à droite, et très léger en bas sous les pictogrammes ; le reste de la
   photo garde ses couleurs. Une ombre légère sur les lettres complète. */
.hab-hero .wp-block-cover__background.has-background-gradient {
	background:
		linear-gradient(180deg, rgba(20, 16, 10, 0) 60%, rgba(20, 16, 10, 0.38) 100%),
		linear-gradient(90deg, rgba(20, 16, 10, 0.14) 0%, rgba(20, 16, 10, 0.1) 30%, rgba(20, 16, 10, 0.42) 56%, rgba(20, 16, 10, 0.52) 100%) !important;
}
.hab-hero .wp-block-cover__inner-container { text-shadow: 0 1px 2px rgba(20, 16, 10, 0.45), 0 2px 18px rgba(20, 16, 10, 0.35); }
.hab-hero .hab-hero-logo img {
	filter: drop-shadow(0 1px 2px rgba(20, 16, 10, 0.55)) drop-shadow(0 4px 24px rgba(20, 16, 10, 0.45));
}
.hab-hero .is-style-pillars img {
	filter: drop-shadow(0 0 1px rgba(20, 16, 10, 0.9)) drop-shadow(0 1px 3px rgba(20, 16, 10, 0.7)) drop-shadow(0 4px 18px rgba(20, 16, 10, 0.55));
}
.hab-hero .wp-block-spacer { height: 24px !important; }
.hab-hero-logo img { width: min(300px, 70vw); height: auto; }
.hab-hero-intro { text-align: center; }
.hab-hero-name {
	margin: 0 0 16px !important;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}
.hab-hero h1 {
	margin: 0 0 10px;
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 400;
	font-size: clamp(2.2rem, 4.2vw, 3.6rem);
	line-height: 1.06;
	letter-spacing: -0.005em;
	text-wrap: balance;
}
.hab-hero-tagline {
	margin: 0 0 1.4rem;
	font-family: var(--wp--preset--font-family--spectral);
	font-style: italic;
	font-size: clamp(1.2rem, 1.9vw, 1.55rem);
}
.hab-hero-desc {
	max-width: 36em;
	margin: 0 auto !important;
	font-size: clamp(0.98rem, 1.15vw, 1.0625rem);
	font-weight: 400;
	line-height: 1.7;
	text-wrap: pretty;
}
.hab-hero-actions .wp-block-button__link { box-shadow: 0 10px 28px rgba(46, 38, 24, 0.18); text-shadow: none; }
/* Pictogrammes : posés sur un filet fin, en bas du bandeau */
.hab-hero .is-style-pillars { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.4); }
@media (max-width: 781px) {
	/* Mobile : le texte occupe toute la largeur, l'assombrissement est donc uniforme */
	.hab-hero .wp-block-cover__background.has-background-gradient {
		background: linear-gradient(180deg, rgba(20, 16, 10, 0.3) 0%, rgba(20, 16, 10, 0.42) 50%, rgba(20, 16, 10, 0.5) 100%) !important;
	}
	.wp-block-cover.hab-hero { padding-block: 32px 28px; }
	.hab-hero-logo img { width: min(220px, 60vw); }
	.hab-hero .is-style-pillars { padding-top: 20px; }
}

/* Carte contact (trapèze blanc) */
.is-style-contact-card {
	position: relative;
	isolation: isolate;
	width: fit-content;
	margin-inline: auto;
	padding: 18px 30px 16px;
	text-align: center;
	color: var(--hab-gold-deep);
}
.is-style-contact-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--hab-white);
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	transform: perspective(400px) rotateX(15deg);
	transform-origin: bottom center;
}
.is-style-contact-card > * { margin-block: 4px !important; }
.hab-contact-title {
	font-size: 0.8125rem !important;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hab-gold);
}
.is-style-contact-card a {
	color: var(--hab-gold-deep);
	text-decoration: none;
	font-weight: 500;
	font-size: 1.125rem;
	border-bottom: 1px solid rgba(196, 162, 107, 0.35);
	white-space: nowrap;
}
.is-style-contact-card a:hover { border-color: var(--hab-gold-deep); }

/* Pictogrammes (liens tel / mail / adresse) */
.hab-ico a::before {
	content: "";
	display: inline-block;
	width: 1.05em;
	height: 1.05em;
	margin-right: 0.55em;
	vertical-align: -0.17em;
	background-color: currentColor;
	-webkit-mask: var(--hab-icon) center / contain no-repeat;
	mask: var(--hab-icon) center / contain no-repeat;
}
.hab-ico-phone {
	--hab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.hab-ico-mail {
	--hab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}
.hab-ico-pin {
	--hab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */
.wp-block-group.is-style-card {
	background: var(--hab-white);
	color: var(--hab-gold-deep);
	border-radius: 20px;
	box-shadow: var(--hab-shadow);
	padding: clamp(24px, 4vw, 40px) clamp(18px, 4vw, 40px);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wp-block-group.is-style-card:hover { transform: translateY(-4px); box-shadow: var(--hab-shadow-strong); }
.is-style-card :where(h1, h2, h3, h4) { color: var(--hab-gold); }
.is-style-card a { color: var(--hab-gold-deep); }
.hab-prose.is-style-card:hover,
.hab-profile.wp-block-group.is-style-card:hover { transform: none; box-shadow: var(--hab-shadow); }

.wp-block-group.is-style-outline {
	border: 2px solid var(--hab-white);
	border-radius: 16px;
	padding: 22px 26px;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.wp-block-group.is-style-outline:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28); transform: translateY(-2px); }

/* Accueil : cartes de navigation illustrées (format portrait, flèche au survol) */
.hab-explore { --hab-section-y: clamp(56px, 7vw, 96px); }
.hab-nav-cards { gap: clamp(16px, 2vw, 28px) !important; }
.hab-nav-card {
	position: relative;
	height: 100%;
	border-radius: 20px;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 1px 2px rgba(46, 38, 24, 0.06), 0 22px 48px -18px rgba(46, 38, 24, 0.38);
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s ease;
}
.hab-nav-card:hover,
.hab-nav-card:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 1px 2px rgba(46, 38, 24, 0.06), 0 32px 64px -20px rgba(46, 38, 24, 0.48);
}
.hab-nav-card > * { margin: 0 !important; }
.hab-nav-card .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hab-nav-card:hover .wp-block-image img { transform: scale(1.06); }
.hab-nav-card h3 {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 110px 26px 24px;
	background: linear-gradient(to bottom, rgba(46, 38, 24, 0), rgba(46, 38, 24, 0.8));
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 400;
	font-size: clamp(1.15rem, 1.5vw, 1.4rem);
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
}
.hab-nav-card h3::after {
	content: "";
	flex: none;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.hab-nav-card:hover h3::after,
.hab-nav-card:focus-within h3::after { background-color: rgba(255, 255, 255, 0.18); border-color: #fff; transform: translateX(4px); }
/* Mobile : les cartes défilent à l'horizontale (la suivante dépasse pour inviter à glisser) */
@media (max-width: 781px) {
	.wp-block-columns.hab-nav-cards {
		flex-wrap: nowrap !important;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 20px)) !important;
		padding: 6px var(--wp--style--root--padding-left, 20px) 30px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--wp--style--root--padding-left, 20px);
		scrollbar-width: none;
	}
	.wp-block-columns.hab-nav-cards::-webkit-scrollbar { display: none; }
	.wp-block-columns.hab-nav-cards > .wp-block-column { flex: 0 0 78% !important; scroll-snap-align: start; }
	.hab-nav-card h3 { padding: 90px 20px 20px; }
}
.hab-nav-card h3 a { color: #fff; text-decoration: none; }
.hab-nav-card h3 a::after { content: ""; position: absolute; inset: -9999px; }
.hab-nav-card h3 a:focus-visible { outline: none; }
.hab-nav-card:focus-within { outline: 3px solid #fff; outline-offset: 3px; }

/* Apparition en fondu au défilement (ajoutée par theme.js, désactivée si « réduire les animations ») */
@media (prefers-reduced-motion: no-preference) {
	.hab-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
	.hab-reveal.is-visible { opacity: 1; transform: none; }
}

/* Accueil : texte d'introduction (bandeau crème, ton éditorial) */
.hab-statement { --hab-section-y: clamp(64px, 8vw, 104px); }
.hab-intro { max-width: 860px; margin-inline: auto !important; text-align: center; }
.hab-intro::before {
	content: "";
	display: block;
	width: 44px;
	height: 1px;
	margin: 0 auto 36px;
	background: var(--hab-gold);
}
.hab-intro > p { margin-block: 0 !important; margin-inline: auto !important; }
.hab-intro > p:first-of-type {
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 400;
	font-size: clamp(1.5rem, 2.7vw, 2.15rem);
	line-height: 1.4;
	color: var(--hab-ink);
	text-wrap: balance;
}
.hab-intro > p:first-of-type strong { font-weight: 500; color: var(--hab-gold-deep); }
.hab-intro > p:nth-of-type(2) {
	max-width: 40em;
	margin-top: 26px !important;
	font-weight: 300;
	font-size: clamp(1.02rem, 1.35vw, 1.15rem);
	line-height: 1.8;
	color: rgba(46, 38, 24, 0.72);
}
.hab-intro > p:last-of-type {
	margin-top: 30px !important;
	font-family: var(--wp--preset--font-family--spectral);
	font-style: italic;
	font-size: clamp(1.15rem, 1.7vw, 1.4rem);
	color: var(--hab-gold-deep);
}
.hab-intro > p:last-of-type strong { font-weight: 400; }


/* --------------------------------------------------------------------------
   Titres de section & chapeaux (réutilisables sur toutes les pages)
   -------------------------------------------------------------------------- */
.hab-title {
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 400 !important;
	font-size: clamp(2rem, 3.6vw, 2.85rem) !important;
	line-height: 1.12 !important;
	letter-spacing: 0.005em;
	text-wrap: balance;
}
/* Filet doré au-dessus du titre */
.hab-title::before {
	content: "";
	display: block;
	width: 44px;
	height: 1px;
	margin: 0 0 22px;
	background: currentColor;
	opacity: 0.7;
}
.hab-title.has-text-align-center::before { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Nos services
   -------------------------------------------------------------------------- */
.hab-why,
.hab-process { --hab-section-y: clamp(72px, 9vw, 128px); }
.hab-why .hab-lead,
.hab-process .hab-lead {
	font-style: normal;
	font-weight: 300;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.75;
}
.hab-why .hab-lead { margin-bottom: clamp(40px, 5vw, 64px); }

/* Pourquoi nous choisir : trois cartes à pictogramme */
.hab-reasons { gap: clamp(16px, 2.2vw, 28px) !important; counter-reset: hab-reason; }
.hab-reasons > .wp-block-column { display: flex; }
.hab-reason {
	counter-increment: hab-reason;
	position: relative;
	flex: 1;
	padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 36px);
	background: var(--hab-white);
	color: rgba(46, 38, 24, 0.72);
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(46, 38, 24, 0.05), 0 18px 40px -14px rgba(46, 38, 24, 0.22);
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
}
.hab-reason:hover {
	transform: translateY(-6px);
	box-shadow: inset 0 -3px 0 var(--hab-gold), 0 1px 2px rgba(46, 38, 24, 0.05), 0 30px 60px -18px rgba(46, 38, 24, 0.32);
}
.hab-reason::before {
	content: "";
	display: block;
	width: 56px;
	height: 56px;
	margin-bottom: 28px;
	border-radius: 50%;
	background: var(--hab-cream) var(--hab-reason-icon) center / 26px no-repeat;
}
.hab-reason::after {
	content: "0" counter(hab-reason);
	position: absolute;
	top: 28px;
	right: 32px;
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 2.5rem;
	line-height: 1;
	color: rgba(196, 162, 107, 0.4);
}
.hab-reason > * { margin: 0 !important; }
.hab-reason h3 {
	margin-bottom: 12px !important;
	font-size: clamp(1.2rem, 1.6vw, 1.375rem);
	font-weight: 500;
	line-height: 1.3;
	color: var(--hab-ink);
}
.hab-reason p { font-size: 1rem; line-height: 1.75; }
.hab-reason-local {
	--hab-reason-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C6D3F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.hab-reason-network {
	--hab-reason-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C6D3F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
.hab-reason-time {
	--hab-reason-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C6D3F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3Cpath d='m9 16 2 2 4-4'/%3E%3C/svg%3E");
}

/* Accompagnement : frise verticale (le trait se remplit au défilement, cf. theme.js) */
.hab-process-cols { gap: clamp(40px, 6vw, 104px) !important; }
.hab-process .hab-title::before { background: var(--hab-gold); opacity: 1; }
.hab-process .hab-lead { margin-inline: 0; color: rgba(46, 38, 24, 0.7); opacity: 1; }
@media (min-width: 782px) {
	.hab-process-intro {
		position: sticky;
		top: calc(var(--hab-header-h) + 56px);
		align-self: flex-start;
	}
}

.hab-timeline {
	--hab-marker: 64px;
	position: relative;
	display: grid;
	gap: 20px;
}
.hab-timeline::before,
.hab-timeline::after {
	content: "";
	position: absolute;
	left: calc(var(--hab-marker) / 2 - 1px);
	top: var(--hab-line-top, calc(var(--hab-marker) / 2));
	height: var(--hab-line-h, calc(100% - var(--hab-marker)));
	width: 2px;
	border-radius: 2px;
	background: rgba(140, 109, 63, 0.16);
}
.hab-timeline::after {
	background: var(--hab-gold);
	transform-origin: top;
	transform: scaleY(var(--hab-progress, 0));
}
.hab-step {
	position: relative;
	z-index: 1;
	display: grid !important;
	grid-template-columns: var(--hab-marker) 1fr;
	gap: clamp(18px, 2.4vw, 32px) !important;
	align-items: start;
	margin: 0 !important;
}
.hab-step > * { margin: 0 !important; }
.hab-step-marker {
	display: grid;
	place-items: center;
	width: var(--hab-marker);
	height: var(--hab-marker);
	border-radius: 50%;
	background: var(--hab-gold);
	/* anneau couleur fond : le trait de la frise s'arrête net autour de la pastille */
	box-shadow: 0 0 0 6px var(--hab-cream);
	transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
.hab-step-marker img { display: block; width: 56%; height: auto; }
.hab-step.is-active .hab-step-marker {
	background: var(--hab-gold-deep);
	box-shadow: 0 0 0 6px var(--hab-cream), 0 0 0 7px rgba(140, 109, 63, 0.3);
}
.hab-step-body {
	padding: 24px 28px;
	background: var(--hab-white);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(46, 38, 24, 0.04), 0 14px 34px -16px rgba(46, 38, 24, 0.2);
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
}
.hab-step-body:hover {
	transform: translateX(6px);
	box-shadow: 0 1px 2px rgba(46, 38, 24, 0.04), 0 24px 48px -20px rgba(46, 38, 24, 0.3);
}
.hab-step-body > * { margin: 0 !important; }
.hab-step-body h3 {
	margin-bottom: 8px !important;
	font-size: clamp(1.125rem, 1.5vw, 1.3rem);
	font-weight: 500;
	line-height: 1.35;
	color: var(--hab-ink);
}
.hab-step-body p { font-size: 1rem; line-height: 1.75; color: rgba(46, 38, 24, 0.7); }

@media (max-width: 781px) {
	.hab-reason::after { top: 24px; right: 24px; font-size: 2.1rem; }
	.hab-timeline { --hab-marker: 48px; gap: 16px; }
	.hab-step { gap: 16px !important; }
	.hab-step-body { padding: 20px 22px; }
	.hab-step-body:hover { transform: none; }
}

/* Apparition décalée des cartes et des étapes */
@media (prefers-reduced-motion: no-preference) {
	.hab-reasons > .wp-block-column:nth-child(2).hab-reveal { transition-delay: 0.1s; }
	.hab-reasons > .wp-block-column:nth-child(3).hab-reveal { transition-delay: 0.2s; }
}

/* Bandeau « photo + panneau » (Nos services, Nos réalisations, Qui sommes-nous ?) :
   plein écran sous l'en-tête, la photo entière sans voile, le texte posé d'un côté
   avec une ombre discrète derrière les lettres. */
.wp-block-cover.hab-banner-split {
	--hab-hero-h: calc(100svh - var(--hab-header-h) - var(--hab-topbar-h) - var(--wp-admin--admin-bar--height, 0px));
	min-height: max(520px, var(--hab-hero-h));
}
.hab-banner-split .wp-block-cover__image-background { object-position: 28% 35%; }
.hab-banner-realisations .wp-block-cover__image-background { object-position: 80% 55%; }
.hab-banner-about .wp-block-cover__image-background { object-position: 70% 60%; }
/* Assombrissement neutre (encre) du seul côté du texte, qui s'efface vers la photo */
.hab-banner-split .wp-block-cover__background.has-background-gradient {
	background: linear-gradient(90deg, rgba(20, 16, 10, 0) 30%, rgba(20, 16, 10, 0.38) 55%, rgba(20, 16, 10, 0.55) 100%) !important;
}
.hab-banner-realisations .wp-block-cover__background.has-background-gradient,
.hab-banner-about .wp-block-cover__background.has-background-gradient {
	background: linear-gradient(270deg, rgba(20, 16, 10, 0) 30%, rgba(20, 16, 10, 0.38) 55%, rgba(20, 16, 10, 0.55) 100%) !important;
}
.hab-banner-split .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin-inline: auto;
}
.hab-hero-panel {
	max-width: 600px;
	margin-left: auto !important;
	margin-right: 0 !important;
	text-align: left;
}
.hab-hero-panel > * { margin-block: 0 !important; }
.hab-hero-panel { text-shadow: 0 1px 2px rgba(20, 16, 10, 0.45), 0 2px 18px rgba(20, 16, 10, 0.35); }
.hab-hero-panel .wp-block-button:not(.is-style-outline) .wp-block-button__link { text-shadow: none; }
/* Nos réalisations et Qui sommes-nous ? : côtés inversés, le texte à gauche,
   la partie construite (bâtiment en pierre, cuisine) reste visible à droite */
.hab-banner-realisations .hab-hero-panel,
.hab-banner-about .hab-hero-panel { margin-left: 0 !important; margin-right: auto !important; }
.hab-breadcrumb {
	display: flex;
	gap: 10px;
	margin-bottom: 24px !important;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hab-white);
	/* Petit texte : une ombre serrée le détoure mieux qu'un halo large */
	text-shadow:
		0 1px 2px rgba(20, 16, 10, 0.8),
		0 0 8px rgba(20, 16, 10, 0.6),
		0 2px 22px rgba(20, 16, 10, 0.5);
}
.hab-breadcrumb a { color: inherit; text-decoration: none; }
.hab-breadcrumb a:hover { color: var(--hab-gold); }
.hab-breadcrumb span[aria-hidden] { opacity: 0.7; }
.hab-banner-split .is-style-page-title {
	margin-bottom: 22px !important;
	/* « Qui sommes-nous ? » tient sur une ligne dans le panneau */
	font-size: clamp(2.75rem, 4.6vw, 4.125rem) !important;
	line-height: 1.02;
	letter-spacing: -0.01em;
	text-transform: none;
}
.hab-banner-split .hab-lead {
	max-width: 32em;
	margin: 0 0 34px !important;
	font-style: normal;
	font-weight: 400;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.75;
	text-align: left;
	opacity: 1;
}
.hab-hero-panel .hab-hero-actions { gap: 12px; }
/* Bouton contour : fond sombre translucide pour rester lisible sur les zones claires */
.hab-hero-panel .hab-hero-actions .is-style-outline > .wp-block-button__link {
	box-shadow: none;
	background: rgba(20, 16, 10, 0.22);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.hab-hero-panel .hab-hero-actions .is-style-outline > .wp-block-button__link:hover { background: rgba(20, 16, 10, 0.36); }
.hab-btn-down .wp-block-button__link::after {
	content: "";
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin-left: 0.55em;
	vertical-align: -0.12em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M19 12l-7 7-7-7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M19 12l-7 7-7-7'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.3s ease;
}
.hab-btn-down .wp-block-button__link:hover::after { transform: translateY(3px); }
@media (max-width: 781px) {
	/* Mobile : la photo en haut (le sujet au-dessus du texte), qui se fond dans
	   un fond encre ; le texte dessous */
	.wp-block-cover.hab-banner-split {
		align-items: flex-end;
		min-height: calc(var(--hab-hero-h) - 70px); /* moins la barre d'actions mobile */
		padding-top: clamp(260px, 62vw, 380px);
		padding-bottom: 48px;
		background-color: var(--hab-ink);
	}
	.wp-block-cover.hab-banner-split .wp-block-cover__image-background {
		height: 52%;
		object-position: 18% 20%;
		-webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
		mask-image: linear-gradient(180deg, #000 60%, transparent);
	}
	.wp-block-cover.hab-banner-realisations .wp-block-cover__image-background { object-position: 75% 50%; }
	.wp-block-cover.hab-banner-about .wp-block-cover__image-background { object-position: 70% 50%; }
	/* Le texte est déjà sur le fond encre : pas d'assombrissement sur la photo */
	.hab-banner-split .wp-block-cover__background.has-background-gradient { background: none !important; }
	.hab-hero-panel { max-width: none; }
	.hab-banner-split .is-style-page-title { font-size: clamp(2.25rem, 10vw, 3.25rem) !important; }
}

/* Bandeaux : léger zoom de la photo et apparition du texte à l'arrivée */
.wp-block-cover.hab-banner { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
	.hab-banner .wp-block-cover__image-background { animation: hab-zoom 14s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.hab-banner:not(.hab-banner-split) .wp-block-cover__inner-container > *,
	.hab-hero-panel > * { animation: hab-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.hab-hero-panel > :nth-child(2) { animation-delay: 0.08s; }
	.hab-hero-panel > :nth-child(3) { animation-delay: 0.16s; }
	.hab-hero-panel > :nth-child(4) { animation-delay: 0.24s; }
	.hab-banner:not(.hab-banner-split) .wp-block-cover__inner-container > :nth-child(2) { animation-delay: 0.1s; }
}
@keyframes hab-zoom { from { transform: scale(1.08); } to { transform: none; } }
@keyframes hab-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Avis clients (accueil) : bandeau discret
   À gauche le titre, la note et les liens ; à droite les deux avis, repliés sur quelques lignes.
   -------------------------------------------------------------------------- */
.hab-reviews {
	--hab-section-y: clamp(40px, 5vw, 64px);
	border-block: 1px solid rgba(140, 109, 63, 0.12);
}
.hab-reviews-band {
	display: grid;
	grid-template-columns: minmax(200px, 260px) 1fr;
	gap: clamp(24px, 4vw, 64px);
	align-items: start;
}
.hab-reviews-head > * { margin: 0 !important; }
.hab-reviews-title {
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 400 !important;
	font-size: clamp(1.35rem, 1.9vw, 1.6rem) !important;
	line-height: 1.2 !important;
	color: var(--hab-ink);
}
.hab-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px !important;
	color: rgba(46, 38, 24, 0.65);
}
.hab-rating-score {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 1.25rem;
	line-height: 1;
	color: var(--hab-ink);
}
.hab-stars { color: var(--hab-gold); font-size: 0.8rem; letter-spacing: 0.12em; }
.hab-reviews-links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-top: 16px !important;
	font-size: 0.8125rem;
}
.hab-reviews-links a {
	color: var(--hab-gold-deep);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.hab-reviews-links a:hover { color: var(--hab-ink); }
.hab-review-list { margin: 0 !important; gap: clamp(20px, 3vw, 44px) !important; }
.hab-review-list > .wp-block-column { display: flex; }
.wp-block-quote.hab-review {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0;
	padding: 0 0 0 20px;
	border: 0;
	border-left: 1px solid rgba(196, 162, 107, 0.6);
	border-radius: 0;
	background: none;
	color: rgba(46, 38, 24, 0.78);
}
.wp-block-quote.hab-review::before {
	content: "★★★★★" / "";
	margin-bottom: 8px;
	color: var(--hab-gold);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
}
.wp-block-quote.hab-review p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	font-family: var(--wp--preset--font-family--spectral);
	font-style: italic;
	font-size: 0.98rem;
	line-height: 1.6;
}
.wp-block-quote.hab-review.is-open p { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: none; }
/* Bouton « Lire la suite » ajouté par theme.js quand le texte est replié */
.hab-review-more {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--hab-gold-deep);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: pointer;
}
.hab-review-more:hover { color: var(--hab-ink); }
.hab-review-more:focus-visible { outline: 2px solid var(--hab-gold-deep); outline-offset: 2px; }
.wp-block-quote.hab-review cite {
	display: block;
	margin-top: 12px;
	font-style: normal;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--hab-ink);
}
.wp-block-quote.hab-review cite::after { content: " · Avis Google"; font-weight: 400; color: rgba(46, 38, 24, 0.55); }
@media (max-width: 781px) {
	.hab-reviews-band { grid-template-columns: 1fr; gap: 20px; }
	.hab-reviews-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
	.hab-reviews-title { width: 100%; }
	.hab-rating { margin-top: 0 !important; }
	.hab-reviews-links { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; margin-top: 0 !important; }
	/* Les avis défilent à l'horizontale */
	.wp-block-columns.hab-review-list {
		flex-wrap: nowrap !important;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 20px)) !important;
		padding: 0 var(--wp--style--root--padding-left, 20px) 4px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--wp--style--root--padding-left, 20px);
		scrollbar-width: none;
	}
	.wp-block-columns.hab-review-list::-webkit-scrollbar { display: none; }
	.wp-block-columns.hab-review-list > .wp-block-column { flex: 0 0 86% !important; scroll-snap-align: start; }
	.wp-block-quote.hab-review p { -webkit-line-clamp: 5; line-clamp: 5; }
}

/* --------------------------------------------------------------------------
   Qui sommes-nous ?
   Fonds alternés (crème, doré foncé, crème) pour bien séparer les sections.
   -------------------------------------------------------------------------- */
.hab-about-mission,
.hab-about-values,
.hab-about-founder { --hab-section-y: clamp(64px, 8vw, 112px); }

/* Notre mission : titre à gauche, texte à droite, l'objectif mis en exergue */
.hab-mission {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	column-gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
.hab-mission > * { margin: 0 !important; }
.hab-mission > .hab-title { grid-column: 1; grid-row: 1 / span 3; }
.hab-mission > .hab-title::before { background: var(--hab-gold); opacity: 1; }
.hab-mission > p { grid-column: 2; }
.hab-mission > p:first-of-type {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	line-height: 1.45;
	color: var(--hab-ink);
	text-wrap: pretty;
}
.hab-mission > p:nth-of-type(2) {
	margin-top: 22px !important;
	font-weight: 300;
	font-size: clamp(1.02rem, 1.3vw, 1.125rem);
	line-height: 1.8;
	color: rgba(46, 38, 24, 0.75);
}
.hab-highlight {
	margin-top: 30px !important;
	padding-left: 22px;
	border-left: 2px solid var(--hab-gold);
	font-family: var(--wp--preset--font-family--spectral);
	font-style: italic;
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
	line-height: 1.6;
	color: var(--hab-gold-deep);
}

/* Nos valeurs : quatre cartes, pictogramme au-dessus du texte */
.hab-about-values .hab-title { margin-bottom: clamp(36px, 5vw, 56px) !important; }
.hab-about-values .hab-title::before { background: var(--hab-gold); opacity: 1; }
.hab-values > * { margin: 0 !important; }
.hab-values {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 24px);
}
.hab-value {
	padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.2vw, 28px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.05);
	text-align: center;
	transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hab-value:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.42); transform: translateY(-4px); }
.hab-value > * { margin: 0 !important; }
.hab-value .wp-block-image img { display: block; width: 156px !important; height: auto; margin-inline: auto; }
.hab-value p { margin-top: 18px !important; font-size: 0.98rem; line-height: 1.7; color: rgba(255, 255, 255, 0.9); }
@media (max-width: 1000px) {
	.hab-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.hab-values { grid-template-columns: 1fr; gap: 12px; }
	.hab-value { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 18px 20px; text-align: left; }
	.hab-value .wp-block-image img { width: 96px !important; }
	.hab-value p { margin-top: 0 !important; font-size: 0.95rem; }
}

/* Nicolas de Salins : grand portrait, la lettre posée comme une feuille (s'ouvre dans la visionneuse) */
.hab-profile {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
.hab-profile > *,
.hab-profile-body > * { margin: 0 !important; }
.hab-profile .hab-portrait img {
	display: block;
	width: 100%;
	max-width: none;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 20%;
	border-radius: 20px;
	box-shadow: 0 30px 60px -24px rgba(46, 38, 24, 0.45);
}
.hab-profile-body .hab-title { margin-bottom: clamp(24px, 3vw, 36px) !important; }
.hab-profile-body .hab-title::before { background: var(--hab-gold); opacity: 1; }
.hab-profile .hab-letter {
	max-width: 440px;
	border-radius: 6px;
	background: var(--hab-white);
	box-shadow: 0 1px 2px rgba(46, 38, 24, 0.08), 0 26px 50px -20px rgba(46, 38, 24, 0.38);
	transform: rotate(-1.2deg);
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s ease;
}
.hab-profile .hab-letter:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 1px 2px rgba(46, 38, 24, 0.08), 0 34px 64px -22px rgba(46, 38, 24, 0.45); }
.hab-profile .hab-letter img { display: block; width: 100%; height: auto; border-radius: 6px; }
@media (max-width: 781px) {
	/* Mobile : le nom, puis le portrait, puis la lettre */
	.hab-mission,
	.hab-profile { grid-template-columns: 1fr; }
	.hab-mission > .hab-title { grid-row: auto; margin-bottom: 20px !important; }
	.hab-mission > p { grid-column: 1; }
	.hab-profile { gap: 24px; }
	.hab-profile-body { display: contents; }
	.hab-profile-body .hab-title { order: -1; margin-bottom: 0 !important; }
	.hab-profile .hab-letter { max-width: none; margin-inline: 6px !important; }
}

/* --------------------------------------------------------------------------
   Galeries
   -------------------------------------------------------------------------- */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { font-size: 0.875rem; }

/* Pictogrammes de l'accueil */
body .wp-block-gallery.has-nested-images.is-style-pillars { justify-content: center; }
body .wp-block-gallery.has-nested-images.is-style-pillars figure.wp-block-image:not(#individual-image) { flex-grow: 0; }
body .wp-block-gallery.has-nested-images.is-style-pillars figure.wp-block-image img {
	width: clamp(110px, 11vw, 165px);
	margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Nos réalisations : sections et galeries
   -------------------------------------------------------------------------- */
.hab-works { --hab-section-y: clamp(64px, 8vw, 112px); overflow-x: clip; }
.hab-project { --hab-section-y: clamp(64px, 8vw, 112px); }
.hab-project .hab-title { margin-bottom: clamp(28px, 4vw, 48px) !important; }
.hab-project:not(.has-background) .hab-title::before { opacity: 0.8; }
.hab-project.has-background .hab-title::before { background: var(--hab-gold); opacity: 1; }

/* Photos agrandissables (classe posée par theme.js, qui gère la visionneuse) */
.hab-zoomable { position: relative; overflow: hidden; cursor: zoom-in; }
.hab-zoomable img { transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hab-zoomable:hover img { transform: scale(1.04); }
.hab-zoomable::after {
	content: "";
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C6D3F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
	box-shadow: 0 4px 14px rgba(46, 38, 24, 0.2);
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}
.hab-zoomable:hover::after,
.hab-zoomable:focus-visible::after { opacity: 1; transform: none; }
.hab-zoomable:focus-visible { outline: 2px solid var(--hab-gold-deep); outline-offset: 3px; }
@media (hover: none) {
	.hab-zoomable::after { top: 10px; right: 10px; width: 30px; height: 30px; background-size: 13px; opacity: 0.9; transform: none; }
}

/* Panorama : mosaïque éditoriale, une grande photo à gauche et deux à droite */
body .wp-block-gallery.has-nested-images.is-style-panorama {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: clamp(10px, 1.4vw, 18px);
	height: clamp(380px, 40vw, 560px);
}
body .wp-block-gallery.has-nested-images.is-style-panorama figure.wp-block-image:not(#individual-image) {
	width: auto;
	height: auto;
	min-height: 0;
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
}
body .wp-block-gallery.has-nested-images.is-style-panorama figure.wp-block-image:not(#individual-image):nth-child(1) { grid-column: 2; grid-row: 1; }
body .wp-block-gallery.has-nested-images.is-style-panorama figure.wp-block-image:not(#individual-image):nth-child(2) { grid-column: 1; grid-row: 1 / span 2; }
body .wp-block-gallery.has-nested-images.is-style-panorama figure.wp-block-image:not(#individual-image):nth-child(3) { grid-column: 2; grid-row: 2; }
.wp-block-gallery.is-style-panorama figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 781px) {
	body .wp-block-gallery.has-nested-images.is-style-panorama { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
	body .wp-block-gallery.has-nested-images.is-style-panorama figure.wp-block-image:not(#individual-image):nth-child(2) { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4 / 3; }
	body .wp-block-gallery.has-nested-images.is-style-panorama figure.wp-block-image:not(#individual-image):nth-child(1) { grid-column: 1; grid-row: 2; aspect-ratio: 1; }
	body .wp-block-gallery.has-nested-images.is-style-panorama figure.wp-block-image:not(#individual-image):nth-child(3) { grid-column: 2; grid-row: 2; aspect-ratio: 1; }
}

/* Carrousel : bande de photos qui défile, la suivante dépasse (compteur, barre et flèches par theme.js) */
/* Séparation entre la mosaïque et la bande : filet doré, petite maison au centre (rappel du logo) */
.hab-strip {
	position: relative;
	margin-top: clamp(48px, 6vw, 80px) !important;
	padding-top: clamp(48px, 6vw, 80px);
	border-top: 1px solid rgba(140, 109, 63, 0.32);
}
.hab-strip::before {
	content: "";
	position: absolute;
	top: -15px;
	left: 50%;
	width: 64px;
	height: 30px;
	transform: translateX(-50%);
	background: var(--hab-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4A26B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 4l8 6.5M6 9v11M18 9v11'/%3E%3C/svg%3E") center / 24px no-repeat;
}
body .wp-block-gallery.has-nested-images.is-style-carousel {
	display: flex;
	flex-wrap: nowrap !important;
	gap: clamp(10px, 1.4vw, 18px) !important;
	/* la bande va jusqu'au bord droit de l'écran */
	margin: 0 calc(50% - 50vw) 0 0 !important;
	padding-right: calc(50vw - 50%);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.wp-block-gallery.is-style-carousel::-webkit-scrollbar { display: none; }
.wp-block-gallery.is-style-carousel:focus-visible { outline: 2px solid var(--hab-gold-deep); outline-offset: 6px; }
body .wp-block-gallery.has-nested-images.is-style-carousel figure.wp-block-image:not(#individual-image) {
	flex: 0 0 min(66%, 780px);
	width: auto;
	height: clamp(260px, 34vw, 480px);
	margin: 0;
	border-radius: 18px;
	scroll-snap-align: start;
}
.wp-block-gallery.is-style-carousel figure img { width: 100%; height: 100%; object-fit: cover; }
.hab-strip-bar { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); margin-top: 22px; }
.hab-strip-count {
	min-width: 4.6em;
	margin: 0;
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 1.1rem;
	font-variant-numeric: tabular-nums;
	color: var(--hab-ink);
}
.hab-strip-count span { color: rgba(46, 38, 24, 0.45); }
.hab-strip-progress { flex: 1; height: 2px; border-radius: 2px; background: rgba(140, 109, 63, 0.18); overflow: hidden; }
.hab-strip-progress i {
	display: block;
	height: 100%;
	background: var(--hab-gold-deep);
	transform-origin: left;
	transform: scaleX(var(--hab-p, 0.2));
	transition: transform 0.4s ease;
}
.hab-strip-btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(140, 109, 63, 0.35);
	border-radius: 50%;
	background: transparent;
	color: var(--hab-gold-deep);
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.hab-strip-btn svg { width: 18px; height: 18px; }
.hab-strip-btn:hover:not(:disabled) { background: var(--hab-gold-deep); border-color: var(--hab-gold-deep); color: var(--hab-white); }
.hab-strip-btn:disabled { opacity: 0.35; cursor: default; }
.hab-strip-btn:focus-visible { outline: 2px solid var(--hab-gold-deep); outline-offset: 3px; }
@media (max-width: 781px) {
	body .wp-block-gallery.has-nested-images.is-style-carousel {
		margin: 0 calc(-1 * var(--wp--style--root--padding-left, 20px)) !important;
		padding: 0 var(--wp--style--root--padding-left, 20px);
		scroll-padding-inline: var(--wp--style--root--padding-left, 20px);
	}
	body .wp-block-gallery.has-nested-images.is-style-carousel figure.wp-block-image:not(#individual-image) { flex-basis: 84%; height: 64vw; }
	.hab-strip-btn { display: none; }
}

/* Carrés : grille régulière (5 × 2 sur ordinateur, 2 colonnes sur mobile) ; la visionneuse montre chaque photo entière */
body .wp-block-gallery.has-nested-images.is-style-squares {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(8px, 1.2vw, 14px);
	margin-top: clamp(40px, 5vw, 64px) !important;
}
body .wp-block-gallery.has-nested-images.is-style-squares figure.wp-block-image:not(#individual-image) {
	width: auto !important;
	margin: 0 !important;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
}
.wp-block-gallery.is-style-squares figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 781px) {
	body .wp-block-gallery.has-nested-images.is-style-squares { grid-template-columns: repeat(2, 1fr); }
	body .wp-block-gallery.has-nested-images.is-style-squares figure.wp-block-image:not(#individual-image) { border-radius: 10px; }
}

/* Avant / après travaux : étiquette à gauche, trois photos à droite */
.hab-phase {
	display: grid;
	grid-template-columns: minmax(150px, 210px) 1fr;
	gap: clamp(16px, 3vw, 48px);
	align-items: start;
}
.hab-phase > * { margin: 0 !important; }
.hab-phase + .hab-phase {
	margin-top: clamp(28px, 3.5vw, 44px) !important;
	padding-top: clamp(28px, 3.5vw, 44px);
	border-top: 1px solid rgba(140, 109, 63, 0.16);
}
.hab-phase-label {
	padding-top: 4px;
	font-family: var(--wp--preset--font-family--plex);
	font-size: 0.78rem !important;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hab-gold-deep);
}
.hab-phase-label::before {
	content: "";
	display: block;
	width: 28px;
	height: 1px;
	margin-bottom: 14px;
	background: var(--hab-gold);
}
body .wp-block-gallery.has-nested-images.is-style-framed {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(10px, 1.4vw, 16px);
}
body .wp-block-gallery.has-nested-images.is-style-framed figure.wp-block-image:not(#individual-image) {
	width: auto;
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
}
.wp-block-gallery.is-style-framed figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 781px) {
	.hab-phase { grid-template-columns: 1fr; gap: 14px; }
	body .wp-block-gallery.has-nested-images.is-style-framed { gap: 8px; }
	body .wp-block-gallery.has-nested-images.is-style-framed figure.wp-block-image:not(#individual-image) { aspect-ratio: 1; border-radius: 10px; }
}

/* Visionneuse native de WordPress (images isolées) : fond sombre au lieu du doré */
.wp-lightbox-overlay .scrim { background-color: rgba(24, 19, 12, 0.94) !important; }
.wp-lightbox-overlay .close-button { color: #fff !important; }
.wp-lightbox-overlay img { border-radius: 12px; }

/* Visionneuse des galeries (construite par theme.js) */
.hab-lb {
	box-sizing: border-box;
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(20, 16, 10, 0.96);
	color: var(--hab-white);
}
.hab-lb[open] { display: grid; place-items: center; }
.hab-lb::backdrop { background: rgba(20, 16, 10, 0.6); }
.hab-lb-figure {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	max-width: min(100%, 1600px);
	margin: 0;
	padding: 64px 88px 28px;
}
.hab-lb-img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100dvh - 160px);
	border-radius: 10px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
	transition: opacity 0.25s ease;
}
.hab-lb.is-loading .hab-lb-img { opacity: 0.35; }
.hab-lb-caption { max-width: 60ch; font-size: 0.9rem; text-align: center; color: rgba(255, 255, 255, 0.75); }
.hab-lb-count {
	position: absolute;
	top: 22px;
	left: 26px;
	margin: 0;
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.8);
}
.hab-lb-btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: var(--hab-white);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hab-lb-btn svg { width: 22px; height: 22px; }
.hab-lb-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--hab-white); }
.hab-lb-btn:focus-visible { outline: 2px solid var(--hab-white); outline-offset: 3px; }
.hab-lb-close { top: 14px; right: 18px; }
.hab-lb-prev,
.hab-lb-next { top: 50%; transform: translateY(-50%); }
.hab-lb-prev { left: 18px; }
.hab-lb-next { right: 18px; }
.hab-lb.is-single .hab-lb-prev,
.hab-lb.is-single .hab-lb-next,
.hab-lb.is-single .hab-lb-count { display: none; }
html.hab-lb-open { overflow: hidden; }
@media (max-width: 781px) {
	.hab-lb-figure { padding: 64px 12px 96px; }
	.hab-lb-img { max-height: calc(100dvh - 210px); }
	.hab-lb-prev,
	.hab-lb-next { top: auto; bottom: 24px; transform: none; }
	.hab-lb-prev { left: calc(50% - 64px); }
	.hab-lb-next { right: calc(50% - 64px); }
}

/* --------------------------------------------------------------------------
   Avant / après (curseur construit par theme.js)
   -------------------------------------------------------------------------- */
.wp-block-group.is-style-compare {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	max-height: 76svh;
	margin-inline: auto;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 60px -24px rgba(46, 38, 24, 0.5);
	--pos: 50%;
}
.is-style-compare.hab-compare-ready > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0 !important;
}
.is-style-compare.hab-compare-ready > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is-style-compare.hab-compare-ready > .wp-block-image:first-child { z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.hab-compare-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	z-index: 3;
	width: 2px;
	transform: translateX(-50%);
	background: var(--hab-white);
	box-shadow: 0 0 18px rgba(20, 16, 10, 0.35);
	pointer-events: none;
}
.hab-compare-handle {
	position: absolute;
	top: 50%;
	left: var(--pos);
	z-index: 4;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--hab-white);
	box-shadow: 0 8px 24px rgba(20, 16, 10, 0.35);
	pointer-events: none;
	transition: transform 0.2s ease;
}
.is-style-compare:hover .hab-compare-handle { transform: translate(-50%, -50%) scale(1.06); }
.hab-compare-label {
	position: absolute;
	top: 18px;
	z-index: 5;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(20, 16, 10, 0.45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--hab-white);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	pointer-events: none;
}
.hab-compare-label.before { left: 18px; }
.hab-compare-label.after { right: 18px; }
.hab-compare-range {
	position: absolute;
	inset: 0;
	z-index: 6;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	touch-action: pan-y;
}
.hab-compare-range:focus-visible + .hab-compare-handle { outline: 3px solid var(--hab-gold-deep); outline-offset: 2px; }
@media (max-width: 781px) {
	.wp-block-group.is-style-compare { border-radius: 14px; }
	.hab-compare-handle { width: 46px; height: 46px; }
	.hab-compare-label { top: 12px; padding: 5px 11px; font-size: 0.65rem; }
	.hab-compare-label.before { left: 12px; }
	.hab-compare-label.after { right: 12px; }
}

/* --------------------------------------------------------------------------
   Contact : carte (chargement au clic) & formulaire
   -------------------------------------------------------------------------- */
.hab-map {
	position: relative;
	aspect-ratio: 5 / 3;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.hab-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.wpcf7 form > p,
.wpcf7 form .hab-field { margin: 0 0 14px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1.0625rem;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 8px;
	padding: 0.7em 0.9em;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 ::placeholder { color: rgba(255, 255, 255, 0.9); opacity: 1; }
.wpcf7 input:focus,
.wpcf7 textarea:focus { outline: 2px solid #fff; outline-offset: 1px; background: rgba(255, 255, 255, 0.16); }
.wpcf7 input[type="submit"] {
	font: inherit;
	font-weight: 600;
	color: var(--hab-gold-deep);
	background: #fff;
	border: 0;
	border-radius: 10px;
	padding: 0.75em 2em;
	cursor: pointer;
	transition: background 0.2s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--cream); }
.wpcf7 .wpcf7-spinner { background-color: #fff; }
.wpcf7 .wpcf7-not-valid-tip { color: #fff; font-size: 0.875rem; font-weight: 600; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { border-color: #fff !important; color: #fff; margin: 12px 0 0 !important; border-radius: 8px; }
.hab-form-note { font-size: 0.8125rem; opacity: 0.9; margin-top: 10px !important; }
.hab-form-note a { color: inherit; }
.hab-hp { position: absolute !important; left: -9999px !important; }

/* Accueil : section contact (titre et carte à gauche, formulaire à droite) */
.hab-contact { --hab-section-y: clamp(56px, 7vw, 96px); }
.hab-contact-cols { gap: clamp(24px, 4vw, 64px) !important; }
.hab-contact-aside { display: flex; flex-direction: column; }
.hab-contact-aside > * { margin: 0 !important; }
.hab-contact .hab-lead {
	margin-top: 14px !important;
	margin-inline: 0 !important;
	text-align: left;
	font-style: normal;
	font-weight: 300;
	font-size: clamp(1.02rem, 1.3vw, 1.15rem);
}
.hab-contact .hab-map {
	flex: 1;
	margin-top: 28px !important;
	aspect-ratio: auto;
	min-height: 220px;
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(46, 38, 24, 0.05), 0 18px 40px -18px rgba(46, 38, 24, 0.3);
}
.hab-contact-form {
	box-sizing: border-box;
	padding: clamp(22px, 2.6vw, 34px) !important;
	background: var(--hab-white);
	border-radius: 20px;
	color: var(--hab-ink);
	box-shadow: 0 1px 2px rgba(46, 38, 24, 0.05), 0 22px 48px -18px rgba(46, 38, 24, 0.3);
}
/* Formulaire : Nom sur toute la largeur, E-mail et Téléphone côte à côte */
:is(.hab-contact-form, .hab-quote) .wpcf7 form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
:is(.hab-contact-form, .hab-quote) .wpcf7 form > * { grid-column: 1 / -1; }
:is(.hab-contact-form, .hab-quote) .wpcf7 form > p:nth-of-type(2),
:is(.hab-contact-form, .hab-quote) .wpcf7 form > p:nth-of-type(3) { grid-column: auto; }
:is(.hab-contact-form, .hab-quote) .wpcf7 form > p,
:is(.hab-contact-form, .hab-quote) .wpcf7 form .hab-field { margin: 0 0 12px; }
:is(.hab-contact-form, .hab-quote) .wpcf7 form > p:last-of-type { margin-bottom: 0; }
:is(.hab-contact-form, .hab-quote) .wpcf7 input[type="text"],
:is(.hab-contact-form, .hab-quote) .wpcf7 input[type="email"],
:is(.hab-contact-form, .hab-quote) .wpcf7 input[type="tel"],
:is(.hab-contact-form, .hab-quote) .wpcf7 textarea {
	padding: 0.8em 1em;
	color: var(--hab-ink);
	background: var(--hab-cream);
	border: 1px solid rgba(140, 109, 63, 0.18);
	border-radius: 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
:is(.hab-contact-form, .hab-quote) .wpcf7 textarea { height: 120px; min-height: 96px; }
:is(.hab-contact-form, .hab-quote) .wpcf7 ::placeholder { color: rgba(46, 38, 24, 0.5); }
:is(.hab-contact-form, .hab-quote) .wpcf7 input:focus,
:is(.hab-contact-form, .hab-quote) .wpcf7 textarea:focus {
	outline: none;
	background: var(--hab-white);
	border-color: var(--hab-gold-deep);
	box-shadow: 0 0 0 4px rgba(196, 162, 107, 0.25);
}
:is(.hab-contact-form, .hab-quote) .wpcf7 [aria-invalid="true"] { border-color: #a23b2a; }
:is(.hab-contact-form, .hab-quote) .wpcf7 input[type="submit"] {
	width: 100%;
	padding: 0.9em 2em;
	color: var(--hab-white);
	background: var(--hab-gold-deep);
	border-radius: 999px;
	letter-spacing: 0.04em;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
:is(.hab-contact-form, .hab-quote) .wpcf7 input[type="submit"]:hover { background: var(--hab-ink); box-shadow: 0 10px 24px -10px rgba(46, 38, 24, 0.5); }
:is(.hab-contact-form, .hab-quote) .wpcf7 input[type="submit"]:focus-visible { outline: 2px solid var(--hab-gold-deep); outline-offset: 3px; }
:is(.hab-contact-form, .hab-quote) .wpcf7 form > p:last-of-type { position: relative; }
/* Indicateur d’envoi placé dans le bouton, pour ne pas ajouter de ligne sous le formulaire */
:is(.hab-contact-form, .hab-quote) .wpcf7 .wpcf7-spinner { position: absolute; top: 50%; right: 18px; margin: -12px 0 0; background-color: var(--hab-white); }
:is(.hab-contact-form, .hab-quote) .wpcf7 .wpcf7-not-valid-tip { color: #a23b2a; }
:is(.hab-contact-form, .hab-quote) .wpcf7 form .wpcf7-response-output { margin: 12px 0 0 !important; border-color: rgba(140, 109, 63, 0.3) !important; color: var(--hab-ink); }
@media (max-width: 781px) {
	:is(.hab-contact-form, .hab-quote) .wpcf7 form { grid-template-columns: 1fr; }
	:is(.hab-contact-form, .hab-quote) .wpcf7 form > p:nth-of-type(2),
	:is(.hab-contact-form, .hab-quote) .wpcf7 form > p:nth-of-type(3) { grid-column: 1 / -1; }
	/* Mobile : titre, formulaire, puis carte */
	.hab-contact-cols { gap: 16px !important; }
	.hab-contact-aside { display: contents; }
	.hab-contact-cols > *,
	.hab-contact-aside > * { flex: 0 0 100%; }
	.hab-contact-aside .hab-title { order: 1; }
	.hab-contact .hab-lead { order: 2; margin-top: 0 !important; margin-bottom: 8px !important; }
	.hab-contact-form { order: 3; }
	.hab-contact .hab-map { order: 4; min-height: 200px; margin-top: 8px !important; }
}

/* Fenêtre « Demander un devis » (ouverte par theme.js) : carte centrée sur ordinateur,
   panneau qui monte du bas sur mobile. Les champs reprennent le style du formulaire de l'accueil. */
.hab-quote {
	box-sizing: border-box;
	width: min(560px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: clamp(28px, 4vw, 44px);
	border: 0;
	border-radius: 24px;
	background: var(--hab-white);
	color: var(--hab-ink);
	box-shadow: 0 40px 100px -30px rgba(20, 16, 10, 0.6);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.hab-quote::backdrop { background: rgba(20, 16, 10, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) {
	.hab-quote[open] { animation: hab-pop 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
	.hab-quote[open]::backdrop { animation: hab-fade 0.35s ease; }
}
@keyframes hab-pop { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes hab-fade { from { opacity: 0; } to { opacity: 1; } }
.hab-quote-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(140, 109, 63, 0.25);
	border-radius: 50%;
	background: var(--hab-white);
	color: var(--hab-gold-deep);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hab-quote-close svg { width: 18px; height: 18px; }
.hab-quote-close:hover { background: var(--hab-cream); border-color: var(--hab-gold-deep); }
.hab-quote-close:focus-visible { outline: 2px solid var(--hab-gold-deep); outline-offset: 2px; }
.hab-quote-title {
	margin: 0 0 8px;
	padding-right: 48px;
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 400;
	font-size: clamp(1.7rem, 3vw, 2.2rem);
	line-height: 1.15;
	color: var(--hab-ink);
}
.hab-quote-title::before {
	content: "";
	display: block;
	width: 40px;
	height: 1px;
	margin-bottom: 18px;
	background: var(--hab-gold);
}
.hab-quote-lead { margin: 0 0 24px; font-weight: 300; color: rgba(46, 38, 24, 0.72); }
.hab-quote-alt { margin: 18px 0 0; font-size: 0.9rem; text-align: center; color: rgba(46, 38, 24, 0.65); }
.hab-quote-alt a {
	font-weight: 500;
	color: var(--hab-gold-deep);
	text-decoration: none;
	border-bottom: 1px solid rgba(140, 109, 63, 0.35);
	white-space: nowrap;
}
.hab-quote-alt a:hover { border-color: var(--hab-gold-deep); }
@media (max-width: 600px) {
	.hab-quote {
		width: 100%;
		max-height: 92dvh;
		margin: auto 0 0;
		padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
		border-radius: 24px 24px 0 0;
	}
	@media (prefers-reduced-motion: no-preference) {
		.hab-quote[open] { animation: hab-sheet 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
	}
}
@keyframes hab-sheet { from { transform: translateY(100%); } to { transform: none; } }

/* En-tête : ombre plus marquée dès que la page défile (classe posée par theme.js) */
.hab-header { transition: box-shadow 0.3s ease; }
.hab-scrolled .hab-header { box-shadow: 0 14px 34px -16px rgba(46, 38, 24, 0.24); }

/* --------------------------------------------------------------------------
   Appel à l'action & pied de page
   -------------------------------------------------------------------------- */
.hab-cta {
	padding-top: clamp(40px, 6vw, 64px);
	padding-bottom: clamp(48px, 7vw, 72px);
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.hab-cta .hab-lead { font-style: normal; font-weight: 300; font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin-bottom: 28px; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border: 2px solid #fff;
	background: transparent;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); }

/* Pied de page (fond encre, comme le bandeau contact de l'en-tête) :
   logo à gauche, pages au milieu, coordonnées à droite (chacun centré dans sa colonne),
   puis la ligne légale. */
.hab-footer {
	padding-top: clamp(48px, 6vw, 72px);
	padding-bottom: 26px;
	color: rgba(248, 243, 234, 0.68);
	font-size: 0.95rem;
	line-height: 1.7;
}
.hab-footer a {
	color: var(--hab-cream);
	text-decoration: none;
	transition: color 0.2s ease;
}
.hab-footer a:hover { color: var(--hab-gold); }
.hab-footer :focus-visible { outline-color: var(--hab-gold); }

.hab-footer-main {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	gap: 32px clamp(24px, 4vw, 64px);
	margin-block: 0 clamp(36px, 4.5vw, 52px) !important;
	text-align: center;
}
.hab-footer-main > * { margin-block: 0 !important; }
.hab-footer-brand { display: flex; flex-direction: column; align-items: center; }
.hab-footer-logo { margin: 0 !important; }
.hab-footer-logo img { display: block; height: auto; }
.hab-footer-tagline {
	max-width: 34ch;
	margin: 16px auto 0 !important;
	text-wrap: balance;
	font-family: var(--wp--preset--font-family--spectral);
	font-style: italic;
	font-size: 1.0625rem;
	line-height: 1.45;
	color: rgba(248, 243, 234, 0.72);
}

/* Pages : petites capitales espacées, filet doré au survol (comme l'en-tête) */
.hab-footer-links {
	display: grid;
	justify-items: center;
	gap: 2px;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.hab-footer-links a {
	position: relative;
	display: inline-block;
	padding-block: 7px;
}
.hab-footer-links a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0.2em; /* compense l'espacement de la dernière lettre */
	bottom: 0;
	height: 1px;
	background: var(--hab-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s ease;
}
.hab-footer-links a:hover::after { transform: scaleX(1); }

/* Coordonnées : pictogrammes dorés */
.hab-footer-contact { display: grid; justify-items: center; gap: 10px; }
.hab-footer-contact p { margin: 0; line-height: 1.45; }
.hab-footer-contact .hab-ico a { display: inline-flex; align-items: baseline; }
.hab-footer-contact .hab-ico a::before { flex: none; align-self: center; color: var(--hab-gold); }
.hab-footer-contact .hab-ico-pin a::before { align-self: flex-start; margin-top: 0.2em; }
.hab-footer-contact .hab-ico-phone a { letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }

/* Ordinateur : pages et coordonnées alignées à gauche entre elles, chaque bloc centré dans sa colonne */
@media (min-width: 782px) {
	.hab-footer-links,
	.hab-footer-contact {
		justify-self: center;
		justify-items: start;
		text-align: left;
	}
}

.hab-footer-bottom {
	gap: 10px 32px !important;
	padding-top: 24px;
	border-top: 1px solid rgba(248, 243, 234, 0.12);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: rgba(248, 243, 234, 0.45);
}
.hab-footer-bottom p { margin: 0; }
.hab-footer-legal { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.hab-footer-bottom a { color: rgba(248, 243, 234, 0.6); }
.hab-footer-bottom a:hover { color: var(--hab-cream); }

/* Mobile : logo, pages sur deux colonnes, puis coordonnées, le tout centré */
@media (max-width: 781px) {
	.hab-footer-main { grid-template-columns: 1fr; gap: 28px; }
	.hab-footer-logo img { width: 130px !important; }
	.hab-footer-links {
		grid-template-rows: auto auto;
		grid-auto-flow: column;
		column-gap: 28px;
		justify-content: center;
		letter-spacing: 0.14em;
	}
	.hab-footer-links a { padding-block: 9px; }
	.hab-footer-bottom {
		flex-direction: column;
		justify-content: center !important;
		text-align: center;
	}
	.hab-footer-legal { justify-content: center; gap: 6px 22px; }
}
/* Très petits écrans : « Demander un devis » tient sur une ligne dans la barre mobile */
@media (max-width: 379px) {
	.hab-mobile-bar .wp-block-button .wp-block-button__link { font-size: 0.9rem; }
}

/* --------------------------------------------------------------------------
   Barre d'actions mobile (Appeler / Devis)
   -------------------------------------------------------------------------- */
.hab-mobile-bar { display: none !important; }
@media (max-width: 781px) {
	.hab-mobile-bar {
		display: flex !important;
		flex-wrap: nowrap !important;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		gap: 10px !important;
		margin: 0 !important;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.14);
	}
	.hab-mobile-bar .wp-block-button { flex: 1 1 0; margin: 0; }
	.hab-mobile-bar .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
		padding: 0.75em 0.5em;
		font-size: 1rem;
		text-align: center;
		color: #fff;
		background: var(--hab-gold-deep);
	}
	.hab-mobile-bar .hab-mb-quote .wp-block-button__link { background: var(--hab-gold); }
	.hab-mobile-bar .hab-ico a::before { vertical-align: -0.2em; }
	body { padding-bottom: 70px; }
	body .hab-consent { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* Bandeau cookies (Google Analytics) */
body:not(.hab-analytics) .hab-cookies-link { display: none; }
.hab-consent {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 1000;
	width: min(460px, calc(100vw - 32px));
	box-sizing: border-box;
	padding: 20px 22px;
	background: #fff;
	color: var(--hab-gold-deep);
	border-radius: 16px;
	box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
	font-size: 0.9375rem;
	line-height: 1.55;
}
.hab-consent[hidden] { display: none; }
.hab-consent p { margin: 0 0 14px; }
.hab-consent a { color: inherit; }
.hab-consent-title { font-weight: 600; font-size: 1rem; color: var(--hab-gold); margin-bottom: 6px !important; }
.hab-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Refuser et accepter : même taille, même style (exigence CNIL). */
.hab-consent-actions button {
	flex: 1 1 140px;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--hab-gold-deep);
	border: 0;
	border-radius: 10px;
	padding: 0.7em 1em;
	cursor: pointer;
}
.hab-consent-actions button:hover { background: #75592f; }
.hab-consent-actions button:focus-visible { outline: 2px solid var(--hab-gold-deep); outline-offset: 2px; }

/* Pages simples (mentions légales, confidentialité) */
.hab-simple { padding-top: var(--hab-section-y); padding-bottom: var(--hab-section-y); }
.hab-simple .is-style-page-title { margin-bottom: 32px; }
.hab-prose { font-size: 1.0625rem; }
.hab-prose h2 { font-size: 1.375rem; margin-top: 1.8em; }
.hab-prose h2:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   Pages légales (modèle « Page simple » : mentions légales, confidentialité)
   -------------------------------------------------------------------------- */
.hab-legal-page > * { margin-block: 0 !important; }
.hab-legal-band { padding-block: clamp(48px, 7vw, 96px) clamp(44px, 6vw, 80px); }
.hab-legal-band .hab-breadcrumb { gap: 10px !important; margin-bottom: 20px !important; }
.hab-legal-band .hab-breadcrumb p { margin: 0; }
.hab-legal-band .hab-breadcrumb .wp-block-post-title {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	opacity: 0.75;
}
.hab-breadcrumb-sep { opacity: 0.5; }
.hab-legal-title {
	margin-block: 0 !important;
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 400 !important;
	font-size: clamp(2.4rem, 5vw, 4rem) !important;
	line-height: 1.05 !important;
	letter-spacing: -0.005em;
	color: var(--hab-white);
}
.hab-legal-body { padding-block: clamp(56px, 7vw, 104px); }

.hab-legal { display: grid; grid-template-columns: minmax(0, 760px); justify-content: start; }
.hab-legal.has-toc { grid-template-columns: 220px minmax(0, 760px); column-gap: clamp(40px, 6vw, 104px); }
.hab-legal > * { margin: 0 !important; }

/* Texte */
.hab-legal .hab-prose {
	counter-reset: hab-legal;
	font-size: 1.05rem;
	line-height: 1.8;
	color: rgba(46, 38, 24, 0.82);
}
.hab-legal .hab-prose > * { max-width: 70ch; margin-inline: 0 !important; }
.hab-legal .hab-prose > p { margin-block: 0 0 1.1em !important; }
.hab-legal .hab-prose > p:first-child:not(.hab-legal-card) {
	margin-bottom: 1.6em !important;
	font-family: var(--wp--preset--font-family--spectral);
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	line-height: 1.55;
	color: var(--hab-ink);
}
.hab-legal .hab-prose strong { font-weight: 600; color: var(--hab-ink); }
.hab-legal .hab-prose a {
	color: var(--hab-gold-deep);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.hab-legal .hab-prose a:hover { color: var(--hab-ink); }
/* Titres numérotés 01, 02… séparés par un filet */
.hab-legal .hab-prose h2 {
	counter-increment: hab-legal;
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 2.2em 0 0.7em !important;
	padding-top: 1.6em;
	border-top: 1px solid rgba(140, 109, 63, 0.18);
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 400;
	font-size: clamp(1.4rem, 2.2vw, 1.8rem);
	line-height: 1.2;
	color: var(--hab-ink);
	scroll-margin-top: calc(var(--hab-header-h) + 32px);
}
.hab-legal .hab-prose h2::before {
	content: counter(hab-legal, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--plex);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	color: var(--hab-gold-deep);
}

/* Mentions légales : deux cartes (entreprise, hébergeur) */
.hab-legal:has(.hab-legal-card) { grid-template-columns: minmax(0, 1fr); }
.hab-legal .hab-prose:has(.hab-legal-card) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	max-width: 960px;
}
.hab-legal .hab-prose:has(.hab-legal-card) > * { max-width: none; }
.hab-legal-card {
	margin: 0 !important;
	padding: clamp(24px, 3vw, 36px);
	border-radius: 18px;
	background: var(--hab-white);
	line-height: 2;
	box-shadow: 0 1px 2px rgba(46, 38, 24, 0.05), 0 18px 40px -20px rgba(46, 38, 24, 0.25);
}
.hab-legal .hab-legal-card strong {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hab-gold-deep);
}

/* Sommaire (ajouté par theme.js quand la page compte au moins trois titres) */
.hab-toc { position: sticky; top: calc(var(--hab-header-h) + 40px); align-self: start; }
.hab-toc-title {
	margin: 0 0 14px;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hab-gold-deep);
}
.hab-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid rgba(140, 109, 63, 0.2); }
.hab-toc a {
	display: block;
	margin-left: -1px;
	padding: 7px 0 7px 18px;
	border-left: 1px solid transparent;
	font-size: 0.9rem;
	line-height: 1.4;
	color: rgba(46, 38, 24, 0.62);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.hab-toc a:hover { color: var(--hab-ink); }
.hab-toc a[aria-current="true"] { color: var(--hab-ink); border-left-color: var(--hab-gold-deep); }
@media (max-width: 900px) {
	.hab-legal.has-toc { grid-template-columns: minmax(0, 1fr); }
	.hab-toc { display: none; }
}
@media (max-width: 781px) {
	.hab-legal .hab-prose:has(.hab-legal-card) { grid-template-columns: 1fr; }
}
