/* ==========================================================================
   Orangerie — feuille de style unique
   Direction : sobre et éditoriale. Titres en Cormorant Garamond, texte et
   interface en Lato, filets fins, peu d'aplats, beaucoup d'air.
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-var.woff2) format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: Lato; src: url(../fonts/lato-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Lato; src: url(../fonts/lato-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Lato; src: url(../fonts/lato-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	/* Couleurs */
	--brun: #926d5b;
	--brun-clair: #b89886;
	--brun-fonce: #6d4d3e;
	--nuit: #2a201b;
	--encre: #211915;
	--texte: #3d3430;
	--gris: #6f6560;
	--ivoire: #fbf8f5;
	--sable: #f5efe9;
	--trait: #e6ddd5;
	--orange: #c8532a;
	--blanc: #fff;

	/* Typo */
	--f-titre: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--f-texte: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Mise en page */
	--max: 1120px;
	--gutter: clamp(20px, 5vw, 48px);
	--section: clamp(72px, 10vw, 136px);
	--header-h: 84px;
	--radius: 4px;
	--ombre: 0 18px 40px -24px rgb(42 32 27 / .35);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.no-scroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	background: var(--blanc);
	color: var(--texte);
	font: 400 1.0625rem/1.75 var(--f-texte);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brun-fonce); text-decoration: underline; text-decoration-color: var(--brun-clair); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--encre); text-decoration-color: currentColor; }
:focus-visible { outline: 1px solid var(--brun-fonce); outline-offset: 4px; }
::selection { background: var(--sable); color: var(--encre); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-titre); font-weight: 500; color: var(--encre);
	line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .55em; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.65rem); font-weight: 600; line-height: 1.2; }
h4 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1.15em; }
strong { font-weight: 700; color: var(--encre); }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--trait); margin: 3rem 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--nuit); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Surtitre : petite étiquette au-dessus des titres de section */
.o-eyebrow {
	display: flex; align-items: center; gap: 14px;
	font: 700 .72rem/1 var(--f-texte); letter-spacing: .22em; text-transform: uppercase;
	color: var(--brun-fonce); margin-top: 0 !important; margin-bottom: 22px !important;
}
.o-eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }

/* ---------- Boutons ---------- */

.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 50px; padding: .9em 1.9em;
	border: 1px solid var(--brun-fonce); border-radius: 0;
	background: var(--brun-fonce); color: #fff;
	font: 700 .74rem/1.2 var(--f-texte); letter-spacing: .16em; text-transform: uppercase;
	text-decoration: none; cursor: pointer;
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover, .wp-block-button__link:hover { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.btn--ghost, .is-style-outline .wp-block-button__link { background: transparent; color: var(--brun-fonce); border-color: var(--brun-clair); }
.btn--ghost:hover, .is-style-outline .wp-block-button__link:hover { background: var(--brun-fonce); border-color: var(--brun-fonce); color: #fff; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 2em 0; }

/* Lien fléché discret */
.lien-fleche { font: 700 .74rem/1.2 var(--f-texte); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--brun-fonce); }
.lien-fleche::after { content: " →"; }

/* ---------- En-tête ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgb(255 255 255 / .96);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--trait);
	transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgb(42 32 27 / .5); }
.site-header__inner {
	max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-logo img { transition: opacity .3s; }
.site-logo .logo-boucle { width: 30px; }
.site-logo .logo-texte { width: 214px; }
.site-logo .logo--clair { display: none; }

/* Accueil : en-tête transparent posé sur le héros, puis blanc au défilement */
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .logo--sombre { display: none; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .logo--clair { display: block; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .site-nav .menu > li > a,
.has-hero .site-header:not(.is-scrolled):not(.is-open) .submenu-toggle,
.has-hero .site-header:not(.is-scrolled):not(.is-open) .nav-toggle { color: #fff; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .menu-cta > a { border-color: rgb(255 255 255 / .6) !important; }
.has-hero .site-header.is-scrolled { background: rgb(255 255 255 / .96); border-color: var(--trait); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav a {
	display: block; padding: 10px 12px;
	color: var(--encre); text-decoration: none;
	font: 400 .92rem/1.2 var(--f-texte); letter-spacing: .03em;
}
.site-nav .menu > li > a { position: relative; }
.site-nav .menu > li:not(.menu-cta) > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav .menu > li:not(.menu-cta) > a:hover::after,
.site-nav .current_page_item > a::after, .site-nav .current_page_parent > a::after, .site-nav .current-page-ancestor > a::after { transform: scaleX(1); }
.submenu-toggle { background: none; border: 0; color: var(--encre); padding: 8px 6px 8px 0; margin-left: -8px; cursor: pointer; display: flex; }
.submenu-toggle svg { width: 10px; transition: transform .25s; }
.is-open > .submenu-toggle svg { transform: rotate(180deg); }

.site-nav .sub-menu {
	list-style: none; margin: 0; padding: 10px 0;
	position: absolute; top: calc(100% + 10px); left: 0; min-width: 270px;
	background: #fff; border: 1px solid var(--trait); box-shadow: var(--ombre);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.site-nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.site-nav .sub-menu a { color: var(--texte); padding: 9px 22px; font-size: .9rem; }
.site-nav .sub-menu a:hover, .site-nav .sub-menu .current_page_item > a { color: var(--brun-fonce); background: var(--ivoire); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu, .site-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.site-nav .menu > li.menu-cta > a {
	margin-left: 14px; padding: 12px 22px;
	border: 1px solid var(--brun-clair);
	font: 700 .72rem/1.2 var(--f-texte); letter-spacing: .16em; text-transform: uppercase;
	transition: background .3s, color .3s, border-color .3s;
}
.site-nav .menu > li.menu-cta > a:hover { background: var(--brun-fonce); border-color: var(--brun-fonce) !important; color: #fff !important; }

.nav-toggle { display: none; }

@media (max-width: 1040px) {
	:root { --header-h: 72px; }
	.site-logo .logo-texte { width: 180px; }
	.nav-toggle {
		display: flex; align-items: center; justify-content: center;
		width: 46px; height: 46px; margin-right: -10px;
		background: none; border: 0; color: var(--encre); cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 22px; height: 1px; background: currentColor;
		transition: transform .3s var(--ease), background .2s; position: relative;
	}
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -7px; }
	.nav-toggle__bars::after { top: 7px; }
	.is-open .nav-toggle__bars { background: transparent; }
	.is-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
	.is-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
	.site-header.is-open { background: #fff; border-color: var(--trait); }

	.site-nav {
		position: fixed; inset: var(--header-h) 0 0; z-index: 49;
		background: #fff; overflow-y: auto;
		padding: 12px var(--gutter) 48px;
		visibility: hidden; opacity: 0; transform: translateY(-6px);
		transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 46px)); }
	.is-open .site-nav { visibility: visible; opacity: 1; transform: none; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--trait); }
	.site-nav .menu > li > a { flex: 1; padding: 18px 2px; font: 500 1.6rem/1.2 var(--f-titre); color: var(--encre) !important; }
	.site-nav .menu > li > a::after { display: none; }
	.submenu-toggle { padding: 18px 8px; margin: 0; color: var(--encre) !important; }
	.site-nav .sub-menu {
		position: static; width: 100%; min-width: 0; padding: 0 0 14px 2px;
		border: 0; box-shadow: none; transform: none; background: none;
		display: none; opacity: 1; visibility: visible;
	}
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: none; }
	.site-nav li.is-open > .sub-menu { display: block; }
	.site-nav .sub-menu a { padding: 9px 0; font-size: 1rem; }
	.site-nav .sub-menu a:hover { background: none; }
	.site-nav .menu > li.menu-cta { border: 0; padding-top: 28px; }
	.site-nav .menu > li.menu-cta > a { font: 700 .78rem/1.2 var(--f-texte) !important; text-align: center; margin: 0; padding: 18px; background: var(--brun-fonce); border-color: var(--brun-fonce) !important; color: #fff !important; }
}

/* ---------- Contenu générique ---------- */

.page-article, .post-article, .listing { padding: clamp(40px, 6vw, 72px) var(--gutter) var(--section); }
.entry-header, .entry, .listing > *, .post-cta, .post-nav { max-width: var(--max); margin-inline: auto; }
.entry--post, .entry-header--post, .post-article .post-cta, .post-article .post-nav, .entry-thumb { max-width: 760px; margin-inline: auto; }

.entry-header { margin-bottom: clamp(32px, 5vw, 56px); }
.entry-title, .entry > h1 { margin-bottom: .5em; }
.entry > h1 { margin-bottom: clamp(32px, 5vw, 56px); }
.entry > p + .wp-block-columns, .entry > ul + .wp-block-columns { margin-top: clamp(48px, 7vw, 88px); }
.entry-header--center { text-align: center; }
.entry-header--center .entry-intro { margin-inline: auto; }
.entry-header--post .entry-title { font-size: clamp(2.1rem, 4vw, 3rem); }
.entry-intro { color: var(--gris); font-size: 1.12rem; max-width: 640px; }
.entry-intro a { font-weight: 700; }
.entry-meta { display: flex; gap: .7em; align-items: center; font: 700 .72rem/1 var(--f-texte); letter-spacing: .18em; text-transform: uppercase; color: var(--gris); margin-bottom: 1.4em; }
.entry-meta a { color: var(--brun-fonce); text-decoration: none; }

.entry h2 { margin-top: 1.8em; }
.entry h3 { margin-top: 1.6em; }
.entry > :first-child, .wp-block-column > :first-child { margin-top: 0; }
.entry h2 a, .entry h3 a { text-decoration: none; color: inherit; }
.entry h3 a:hover { color: var(--brun-fonce); }
.entry ul, .entry ol { padding-left: 1.2em; margin: 0 0 1.5em; }
.entry li { margin-bottom: .5em; padding-left: .3em; }
.entry ul li::marker { content: "—  "; color: var(--brun-clair); }
.entry ol li::marker { color: var(--brun); font-weight: 700; }
.entry blockquote { margin: 2.5em 0; padding: 0 0 0 1.6em; border-left: 1px solid var(--brun); font: italic 500 1.5rem/1.45 var(--f-titre); color: var(--encre); }
.entry blockquote p:last-child { margin: 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: .95rem; }
.entry th, .entry td { border-bottom: 1px solid var(--trait); padding: .8em .6em; text-align: left; vertical-align: top; }
.entry th { font-weight: 700; color: var(--encre); }
.entry figure { margin: 0 0 1.6em; }
.entry-thumb { margin: 0 auto 3em; }
.entry-thumb img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

/* Chapô et encadré */
.is-style-chapo { font: 500 clamp(1.35rem, 2vw, 1.6rem)/1.45 var(--f-titre); color: var(--encre); }
.is-style-encadre { background: var(--ivoire); border: 1px solid var(--trait); border-left: 2px solid var(--brun); padding: clamp(22px, 3vw, 34px) clamp(22px, 3.5vw, 40px); margin: 2.5em 0; }
.is-style-encadre > :last-child { margin-bottom: 0; }
.is-style-encadre h3 { margin-top: 0; }

/* Colonnes */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 88px); margin: 0 0 clamp(40px, 6vw, 80px); align-items: flex-start; }
.wp-block-column.is-vertically-aligned-center { align-self: center; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column[style*="flex-basis"] { flex-grow: 0; }
.wp-block-column > :last-child { margin-bottom: 0; }
@media (max-width: 781px) {
	.wp-block-columns { flex-direction: column; }
	.wp-block-column { flex-basis: 100% !important; width: 100%; }
}

/* Accordéons (bloc Détails) */
.wp-block-details { border-bottom: 1px solid var(--trait); margin: 0; }
.wp-block-details:first-of-type, .wp-block-heading + .wp-block-details, p + .wp-block-details { border-top: 1px solid var(--trait); }
.wp-block-details + .wp-block-details { border-top: 0; }
.wp-block-details summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 22px 44px 22px 0;
	font: 500 1.3rem/1.3 var(--f-titre); color: var(--encre);
	transition: color .2s;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::before, .wp-block-details summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1px; background: var(--brun);
	transition: transform .3s var(--ease);
}
.wp-block-details summary::after { transform: rotate(90deg); }
.wp-block-details[open] summary::after { transform: rotate(0); }
.wp-block-details summary:hover { color: var(--brun-fonce); }
.wp-block-details > :not(summary) { padding-right: 44px; }
.wp-block-details[open] > :last-child { padding-bottom: 14px; }

/* Images : cadre décalé (remplace les anciennes formes « blob ») */
.is-style-blob { position: relative; isolation: isolate; margin: 0 18px 18px 0 !important; }
.is-style-blob::before {
	content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
	border: 1px solid var(--brun-clair);
}
.is-style-blob img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.is-style-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.page-article .wp-block-image:not(.is-style-blob):not(.is-style-portrait) img[class*="wp-image"] { max-height: 640px; width: auto; margin-inline: auto; }

/* ---------- Accueil ---------- */

.entry.entry--home { max-width: none; }
.entry--home > * { margin: 0; }

.o-section { padding: var(--section) var(--gutter); }
.o-section > * { max-width: var(--max); margin-inline: auto; }
.o-section--sable { background: var(--ivoire); }
.o-section > .o-title { margin-bottom: clamp(40px, 6vw, 72px); max-width: var(--max); }

/* Héros */
.o-hero {
	position: relative; isolation: isolate;
	display: flex; align-items: flex-end;
	min-height: min(100svh, 860px);
	padding: calc(var(--header-h) + 64px) var(--gutter) clamp(56px, 8vw, 104px);
	color: #fff; overflow: hidden; background: var(--nuit);
}
.o-hero > .o-hero__bg { position: absolute; inset: 0; z-index: -2; margin: 0; max-width: none; }
.o-hero > .o-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; filter: saturate(.75) contrast(1.05); }
.o-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgb(26 18 14 / .55) 0%, rgb(26 18 14 / 0) 22%),
		linear-gradient(90deg, rgb(33 24 19 / .82) 0%, rgb(33 24 19 / .55) 45%, rgb(33 24 19 / .1) 100%);
}
.o-hero > .wp-block-columns { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; align-items: flex-end; }
.o-hero > .wp-block-columns > .wp-block-column:first-child { flex-grow: 1.9; }
.o-hero .o-hero__logo { width: 64px; margin: 0 0 32px; opacity: .95; }
.o-hero h1 { color: #fff; font-size: clamp(2.9rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.015em; margin-bottom: .35em; }
.o-hero .o-hero__lead { font: 400 clamp(1.05rem, 1.5vw, 1.2rem)/1.6 var(--f-texte); color: rgb(255 255 255 / .9); max-width: 36em; margin-bottom: .5em; }
.o-hero p { color: rgb(255 255 255 / .78); }
.o-hero .wp-block-buttons { margin: 2.2em 0 0; }
.o-hero .wp-block-button__link { background: #fff; border-color: #fff; color: var(--encre); }
.o-hero .wp-block-button__link:hover { background: transparent; color: #fff; }
.o-hero .is-style-outline .wp-block-button__link { background: transparent; border-color: rgb(255 255 255 / .55); color: #fff; }
.o-hero .is-style-outline .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--encre); }
.o-hero .o-hero__badge { margin: 0 0 12px auto; max-width: 300px; }
.o-hero .o-hero__badge img { width: 100%; filter: drop-shadow(0 10px 24px rgb(0 0 0 / .25)); }
@media (max-width: 781px) {
	.o-hero { min-height: 0; padding-top: calc(var(--header-h) + 56px); }
	.o-hero::before { background: linear-gradient(180deg, rgb(33 24 19 / .6), rgb(33 24 19 / .8)); }
	.o-hero .o-hero__badge { margin: 8px 0 0; max-width: 220px; }
}

/* Atouts sous le héros */
.o-atouts { list-style: none; padding: 0 !important; margin: 2.8em 0 0 !important; display: flex; flex-wrap: wrap; gap: 10px 36px; border-top: 1px solid rgb(255 255 255 / .22); padding-top: 22px !important; }
.o-atouts li { margin: 0 !important; padding: 0 !important; font: 700 .7rem/1.4 var(--f-texte); letter-spacing: .18em; text-transform: uppercase; color: rgb(255 255 255 / .85); }
.entry .o-atouts li::marker { content: none; }

/* Pourquoi nous choisir */
.o-raisons .wp-block-columns { margin-bottom: clamp(56px, 9vw, 120px); }
.o-raisons .wp-block-columns:last-child { margin-bottom: 0; }
.o-raisons h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 500; margin-top: 0; }
.o-raisons .wp-block-columns:nth-of-type(even) .is-style-blob { margin: 0 0 18px 18px !important; }
.o-raisons .wp-block-columns:nth-of-type(even) .is-style-blob::before { inset: 18px 18px -18px -18px; }
@media (max-width: 781px) {
	.o-raisons .wp-block-columns { flex-direction: column-reverse; }
	.o-raisons .wp-block-columns:nth-of-type(odd) { flex-direction: column; }
}

/* Cartes (domaines) */
.is-style-cartes { gap: 0; align-items: stretch; border-top: 1px solid var(--trait); }
.is-style-cartes > .wp-block-column {
	padding: clamp(28px, 3.5vw, 44px) clamp(22px, 3vw, 40px) clamp(28px, 3.5vw, 40px);
	display: flex; flex-direction: column;
	border-right: 1px solid var(--trait);
	transition: background .35s var(--ease);
}
.is-style-cartes > .wp-block-column:first-child { padding-left: 0; }
.is-style-cartes > .wp-block-column:last-child { border-right: 0; padding-right: 0; }
.is-style-cartes > .wp-block-column:hover { background: linear-gradient(180deg, var(--ivoire), transparent); }
.is-style-cartes h3 { margin: 0 0 .6em; font-size: clamp(1.5rem, 2.2vw, 1.85rem); font-weight: 500; }
.is-style-cartes p { color: var(--gris); }
.is-style-cartes .wp-block-buttons { margin-top: auto; padding-top: 16px; margin-bottom: 0; }
.is-style-cartes .wp-block-button__link { background: none !important; border: 0 !important; padding: 0; min-height: 0; color: var(--brun-fonce) !important; }
.is-style-cartes .wp-block-button__link::after { content: "→"; transition: transform .3s var(--ease); }
.is-style-cartes .wp-block-button__link:hover::after { transform: translateX(4px); }
.o-domaine__num { font: italic 500 1.9rem/1 var(--f-titre) !important; letter-spacing: 0 !important; color: var(--brun) !important; margin-bottom: 26px !important; }
.o-note { font-size: .92rem; color: var(--gris); margin-top: 40px !important; padding-top: 24px; border-top: 1px solid var(--trait); }
@media (max-width: 781px) {
	.is-style-cartes > .wp-block-column { border-right: 0; border-bottom: 1px solid var(--trait); padding: 28px 0; }
}

/* Équipe */
.o-equipe .wp-block-columns { gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.o-membre { position: relative; }
.o-membre .wp-block-image { margin: 0 0 20px; overflow: hidden; }
.o-membre .wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; filter: grayscale(.15); transition: transform .8s var(--ease), filter .5s; }
.o-membre:hover .wp-block-image img { transform: scale(1.03); filter: none; }
.o-membre h3 { margin: 0 0 .15em; font-size: 1.45rem; font-weight: 500; }
.o-membre h3 a::after { content: ""; position: absolute; inset: 0; }
.o-membre p { font: 700 .68rem/1.4 var(--f-texte); letter-spacing: .18em; text-transform: uppercase; color: var(--brun-fonce); margin: 0; }
@media (max-width: 781px) {
	.o-equipe .wp-block-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
	.o-membre h3 { font-size: 1.2rem; }
}

/* Bandeau contact */
.o-cta { background: var(--nuit); color: #fff; text-align: center; }
.o-cta h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.o-cta p { color: rgb(255 255 255 / .75); max-width: 560px; margin-inline: auto; }
.o-cta .o-eyebrow { justify-content: center; color: var(--brun-clair); }
.o-cta .o-eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.o-cta .wp-block-buttons { justify-content: center; }
.o-cta .wp-block-button__link { background: #fff; border-color: #fff; color: var(--encre); }
.o-cta .wp-block-button__link:hover { background: transparent; color: #fff; }
.o-cta .is-style-outline .wp-block-button__link { background: transparent; border-color: rgb(255 255 255 / .4); color: #fff; }
.o-cta .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--encre); }
.entry:not(.entry--home) > .o-cta { margin: 3.5em auto; }

/* ---------- Actualités ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px); margin-top: 8px; }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__link:hover { color: inherit; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sable) url(../img/logo-boucle-sombre.svg) center / 48px no-repeat; margin-bottom: 22px; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__date { font: 700 .68rem/1 var(--f-texte); letter-spacing: .18em; text-transform: uppercase; color: var(--brun-fonce); margin-bottom: 12px; }
.card__title { font-size: 1.55rem; font-weight: 500; line-height: 1.18; margin: 0 0 .55em; transition: color .2s; }
.card:hover .card__title { color: var(--brun-fonce); }
.card__excerpt { font-size: .95rem; color: var(--gris); margin: 0 0 1.2em; }
.card__more { margin-top: auto; font: 700 .7rem/1 var(--f-texte); letter-spacing: .16em; text-transform: uppercase; color: var(--brun-fonce); }
.card__more::after { content: " →"; }

.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid transparent; text-decoration: none; color: var(--texte); font: 700 .8rem/1 var(--f-texte); letter-spacing: .08em; }
.pagination .page-numbers.current { border-color: var(--brun-fonce); color: var(--brun-fonce); }
.pagination a.page-numbers:hover { border-color: var(--trait); color: var(--encre); }

.post-cta { margin-top: 72px; padding: clamp(32px, 5vw, 56px); background: var(--ivoire); border-top: 1px solid var(--brun-clair); text-align: center; }
.post-cta__title { font: 500 clamp(1.7rem, 2.8vw, 2.2rem)/1.2 var(--f-titre); color: var(--encre); margin-bottom: .4em; }
.post-cta p { color: var(--gris); }
.post-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 1.6em 0 0 !important; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; border-top: 1px solid var(--trait); padding-top: 32px; }
.post-nav a { display: block; text-decoration: none; color: var(--encre); font: 500 1.25rem/1.3 var(--f-titre); }
.post-nav a span { display: block; font: 700 .68rem/1.4 var(--f-texte); letter-spacing: .18em; text-transform: uppercase; color: var(--brun-fonce); margin-bottom: .6em; }
.post-nav a:hover { color: var(--brun-fonce); }
.post-nav__next { grid-column: 2; text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { grid-column: 1; text-align: left; } }

/* ---------- Formulaire de contact ---------- */

.contact-form { background: var(--ivoire); border: 1px solid var(--trait); padding: clamp(24px, 4vw, 48px); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 560px) { .cf-grid { grid-template-columns: 1fr; } }
.cf-field { margin: 0 0 22px; }
.cf-field label { display: block; font: 700 .68rem/1.3 var(--f-texte); letter-spacing: .16em; text-transform: uppercase; color: var(--texte); margin-bottom: 8px; }
.cf-field label span, .cf-required span { color: var(--orange); }
.cf-field input[type="text"], .cf-field input[type="email"], .cf-field input[type="tel"], .cf-field select, .cf-field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px;
	font: 400 1rem/1.4 var(--f-texte); color: var(--encre);
	background: #fff; border: 1px solid var(--trait); border-radius: 0;
	transition: border-color .2s, box-shadow .2s;
}
.cf-field textarea { resize: vertical; min-height: 160px; }
.cf-field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236d4d3e' stroke-width='1.2'/%3E%3C/svg%3E") right 16px center no-repeat; padding-right: 42px; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--brun); box-shadow: 0 0 0 3px rgb(146 109 91 / .12); }
.cf-field [aria-invalid="true"] { border-color: #b3261e; }
.cf-consent { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: start; }
.cf-consent input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--brun-fonce); }
.cf-consent label { font: 400 .92rem/1.55 var(--f-texte); letter-spacing: 0; text-transform: none; color: var(--texte); margin: 0; }
.cf-consent .cf-error { grid-column: 2; }
.cf-error { color: #b3261e; font-size: .88rem; margin: 6px 0 0; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 10px 0 24px; }
.cf-required { font-size: .85rem; color: var(--gris); }
.cf-rgpd { font-size: .8rem; line-height: 1.6; color: var(--gris); margin: 0; padding-top: 20px; border-top: 1px solid var(--trait); }
.cf-notice { padding: 16px 20px; margin-bottom: 24px; border-left: 2px solid; }
.cf-notice p { margin: .3em 0 0; }
.cf-notice--ok { background: #eef5f0; color: #1d5b33; }
.cf-notice--error { background: #fbeceb; color: #8c1d18; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Coordonnées (page contact) */
.o-coords h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.o-coords h3 { font: 700 .68rem/1.3 var(--f-texte); letter-spacing: .18em; text-transform: uppercase; margin: 2.2em 0 .6em; color: var(--brun-fonce); }
.o-coords h3:first-of-type { margin-top: 0; }
.o-coords p { margin: 0; color: var(--texte); }
.o-coords .o-coords__tel { font: 500 1.9rem/1.2 var(--f-titre); color: var(--encre); text-decoration: none; }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--nuit); color: rgb(255 255 255 / .72); font-size: .92rem; }
.site-footer a { color: rgb(255 255 255 / .85); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer__inner {
	max-width: var(--max); margin: 0 auto;
	padding: clamp(64px, 8vw, 96px) var(--gutter) 56px;
	display: grid; grid-template-columns: 1.1fr 1.5fr 1fr; gap: 48px;
}
.site-footer__brand img { width: 40px; margin-bottom: 20px; }
.site-footer__name { font: 500 1.6rem/1.2 var(--f-titre); color: #fff; margin: 0; }
.site-footer__name span { display: inline-block; margin-top: 8px; font: 700 .66rem/1 var(--f-texte); letter-spacing: .32em; text-transform: uppercase; color: var(--brun-clair); }
.footer-menu { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.footer-menu li { margin: 0 0 12px; break-inside: avoid; }
.footer-menu .sub-menu { display: none; }
.site-footer__contact { font-style: normal; display: flex; flex-direction: column; gap: 16px; line-height: 1.6; }
.site-footer__tel { font: 500 1.5rem/1.2 var(--f-titre); color: #fff !important; }
.site-footer__legal {
	max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 32px;
	border-top: 1px solid rgb(255 255 255 / .12);
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
	font-size: .8rem; color: rgb(255 255 255 / .6);
}
.site-footer__legal p { margin: 0; }
.legal-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.legal-menu a { color: rgb(255 255 255 / .65); }
@media (max-width: 860px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.site-footer__inner { grid-template-columns: 1fr; gap: 36px; }
	.footer-menu { columns: 1; }
}

/* ---------- Fil d'Ariane ---------- */

.breadcrumbs { max-width: var(--max); margin: 0 auto 36px; font-size: .78rem; letter-spacing: .04em; color: var(--gris); }
.post-article .breadcrumbs { max-width: 760px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 .7em; color: var(--trait); }
.breadcrumbs a { color: var(--gris); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brun-fonce); }
.breadcrumbs [aria-current] { color: var(--texte); }

/* ---------- Signature d'article ---------- */

.byline { display: flex; align-items: center; gap: 14px; margin: .4em 0 0; font-size: .92rem; color: var(--gris); }
.byline__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; }
.byline a { color: var(--encre); font-weight: 700; text-decoration: none; }

/* ---------- Maillage sous les pôles ---------- */

.extras { max-width: var(--max); margin: clamp(64px, 9vw, 112px) auto 0; }
.extras > h2 { margin-bottom: 40px; }
.extras__more { text-align: center; margin-top: 48px; }
.liens-expertises { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 40px; }
.liens-expertises li { border-bottom: 1px solid var(--trait); }
.liens-expertises a {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 20px 0; font: 500 1.3rem/1.3 var(--f-titre); color: var(--encre); text-decoration: none;
}
.liens-expertises a::after { content: "→"; font-family: var(--f-texte); color: var(--brun); transition: transform .3s var(--ease); }
.liens-expertises a:hover { color: var(--brun-fonce); }
.liens-expertises a:hover::after { transform: translateX(4px); }

/* ---------- Filtres des actualités ---------- */

.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin-top: 32px; }
.filtres a { padding: 6px 0; border-bottom: 1px solid transparent; font: 700 .7rem/1.2 var(--f-texte); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); text-decoration: none; }
.filtres a:hover { color: var(--encre); }
.filtres a[aria-current] { color: var(--brun-fonce); border-color: var(--brun-fonce); }
