/* ==========================================================================
   Page « Le château et son équipe »
   Section 1 — Hero (fond pattern + texte à gauche + photo d'équipe à droite
   qui déborde sur le header et sur la section suivante + ellipse tournante)
   ========================================================================== */

:root {
	--ch-blanc: #fcfcfc;
	--ch-jaune: #f6b83b;
	--ch-vert-olive: #7e8b6f;
	--ch-beige-clair: #fffcf5;
	--ch-bleu-chateau: #3f5565;
	--ch-beige-lumineux: #f8efe8;
}

.brabois-ch {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	/* Contexte d'empilement du hero : z-index 46 -> tout son contenu (photo z:45 +
	   ellipse z:99 qui débordent en bas) passe AU-DESSUS des sections suivantes
	   (hist/projet, statiques, dont le fond beige recouvrait sinon la moitié basse
	   de l'ellipse). > header au repos (40) : la photo empiète bien dessus à
	   l'arrivée ; < header au scroll (100) : le header repasse devant. */
	z-index: 46;
	overflow: visible;
	margin-block-start: 0;
	color: var(--ch-blanc);
	background-color: #44525f; /* fallback si le pattern ne charge pas */
	background-image: var(--ch-pattern);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	/* Réglages géométriques (photo + ellipse) */
	--ch-photo-w: min(850px, 46vw);
	--ch-photo-right: clamp(8px, 2vw, 40px);
	--ch-photo-top: -92px;
	--ch-ellipse: 150px;
}

/* Pas de gap block (TT5) entre le header beige et le hero. */
.wp-block-post-content:has(> .brabois-ch) {
	margin-block-start: 0;
}
/* Supprime le block-gap TT5 (~19px) qui créait une bande blanche parasite
   sous le hero (sombre -> beige) et sous la section équipe (olive -> crème).
   On cible directement les sections concernées (les marges négatives
   intentionnelles, ex. .brabois-projet margin-top:-80, ne sont pas touchées). */
.brabois-hist,
.brabois-portrait {
	margin-block-start: 0;
}

/* ---- Colonne texte (gauche) ------------------------------------------------ */

.brabois-ch__inner {
	/* Pleine largeur avec un SEUL offset (comme le header) : le texte s'aligne
	   à gauche sur la même bande centrée 1440 que le header, pas au milieu. */
	box-sizing: border-box;
	min-height: 620px;
	display: flex;
	align-items: center;
	padding-block: 88px;
	padding-inline: max(40px, calc(50% - 720px));
}

.brabois-ch__text {
	position: relative;
	z-index: 5;
	max-width: 519px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
}

.brabois-ch__group {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.brabois-ch__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.brabois-ch__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Geist", "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--ch-blanc);
}
.brabois-ch__eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
	border-radius: 9999px;
	background: var(--ch-jaune);
}

.brabois-ch__title {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 32px;
	font-weight: 600;
	line-height: 37.12px;
	color: var(--ch-blanc);
}

.brabois-ch__desc {
	margin: 0;
	font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--ch-blanc);
}
.brabois-ch__desc strong {
	font-weight: 700;
}

/* ---- Bouton « Contactez-nous » --------------------------------------------- */

.brabois-ch__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	padding: 13.5px 17px;
	background: var(--ch-blanc);
	outline: 1px solid var(--ch-blanc);
	outline-offset: -1px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}
.brabois-ch__btn:hover {
	opacity: 0.9;
}
.brabois-ch__btn span {
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ch-vert-olive);
}
.brabois-ch__btn-arrow {
	display: block;
	height: 16px;
	width: auto;
}

/* ---- Photo d'équipe (droite) ----------------------------------------------- */
/* PNG pré-taillé (arche + coins arrondis, transparence bakée) : on positionne,
   on ne masque pas. Déborde le haut (par-dessus le header) et le bas. */
.brabois-ch__photo {
	position: absolute;
	top: var(--ch-photo-top);
	right: var(--ch-photo-right);
	width: var(--ch-photo-w);
	height: auto;
	z-index: 45;
	pointer-events: none;
}

/* ---- Ellipse tournante ----------------------------------------------------- */
/* Posée pile sur la couture hero / section suivante (bord bas de la section),
   centrée horizontalement sur la photo. Pivote doucement. */
.brabois-ch__ellipse {
	position: absolute;
	width: var(--ch-ellipse);
	height: auto;
	bottom: calc(var(--ch-ellipse) / -2);
	right: calc(var(--ch-photo-right) + var(--ch-photo-w) / 2 - var(--ch-ellipse) / 2);
	/* Au-dessus de TOUT le contenu (sections, photo hero z:45), mais sous le header
	   quand il repasse dessus au scroll (header .is-scrolled z:100). */
	z-index: 99;
	pointer-events: none;
	animation: brabois-ch-spin 32s linear infinite;
}
@keyframes brabois-ch-spin {
	to {
		transform: rotate(360deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	.brabois-ch__ellipse {
		animation: none;
	}
}

/* ---- Responsive ------------------------------------------------------------ */

/* La photo rétrécit en vw quand l'écran diminue, mais `--ch-photo-top` est fixe :
   sa partie opaque (le toit) remonterait et couvrirait le CTA du header. On réduit
   donc l'empiètement haut au fur et à mesure -> la photo n'empiète plus qu'« un peu »
   sur le header et le bouton reste dégagé. */
@media (max-width: 1380px) {
	.brabois-ch {
		--ch-photo-top: -60px;
	}
}
@media (max-width: 1200px) {
	.brabois-ch {
		--ch-photo-top: -34px;
	}
}

@media (max-width: 1024px) {
	.brabois-ch {
		--ch-photo-w: 48vw;
		--ch-photo-top: -20px;
		--ch-ellipse: 120px;
	}
	.brabois-ch__inner {
		min-height: 560px;
		padding-right: 44vw;
	}
}

@media (max-width: 760px) {
	.brabois-ch {
		overflow: hidden;
	}
	.brabois-ch__inner {
		min-height: 0;
		flex-direction: column;
		padding-block: 48px 0;
		padding-inline: 20px;
	}
	.brabois-ch__text {
		max-width: none;
	}
	.brabois-ch__title {
		font-size: 26px;
		line-height: 1.2;
	}
	/* Photo repassée dans le flux, pleine largeur, sous le texte. */
	.brabois-ch__photo {
		position: static;
		display: block;
		width: 100%;
		margin-top: 32px;
	}
	.brabois-ch__ellipse {
		--ch-ellipse: 96px;
		right: 16px;
		bottom: -24px;
	}
}

/* ==========================================================================
   Section 2 — « Un lieu historique » (encart texturé + 2 photos débordantes)
   ========================================================================== */

.brabois-hist {
	background: var(--ch-beige-clair, #fffcf5);
	/* padding-bottom 0 : le beige-clair s'arrête au bas de l'encart ; la section
	   « projet » (beige-lumineux) remonte dessous et l'encart empiète sur elle. */
	padding-block: 100px 0;
	padding-inline: max(40px, calc(50% - 720px));
}

/* Encart : texture « pattern clair » (média 28), SANS border-radius.
   z-index 3 -> reste AU-DESSUS de la section « projet » (z-index 2) qui remonte
   dessous, si bien que l'encart empiète visuellement sur le beige-lumineux. */
.brabois-hist__card {
	position: relative;
	z-index: 3;
	overflow: visible;
	box-sizing: border-box;
	padding: 72px 24px 76px;
	background-color: #fbf9f4;
	background-image: var(--hist-pattern);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border: 1px solid rgba(63, 85, 101, 0.1);
}

/* ---- Contenu (titre + flèche + description), centré ------------------------ */
.brabois-hist__body {
	max-width: 1020px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	text-align: center;
}

.brabois-hist__title {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 30px;
	font-weight: 600;
	color: var(--ch-bleu-chateau, #3f5565);
}

.brabois-hist__arrow {
	display: block;
	height: 44px;
	width: auto;
}

.brabois-hist__desc {
	margin: 0;
	font-family: "Geist", "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 28px;
	color: #404040;
}

/* ---- Deux photos débordant à gauche et à droite de l'encart ---------------- */
.brabois-hist__photos {
	position: relative;
	height: 540px;
	margin-top: 64px;
}

.brabois-hist__photo {
	position: absolute;
	width: 690px; /* même taille pour les deux photos */
	height: auto;
	pointer-events: none;
	filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.16));
}

/* Carte postale ancienne : déborde le bord GAUCHE, un peu plus haute. */
.brabois-hist__photo--left {
	left: -74px;
	bottom: 30px;
}

/* Photo actuelle : déborde le bord DROIT (décalée un peu plus à droite), plus basse. */
.brabois-hist__photo--right {
	right: -96px;
	bottom: 0;
}

/* ---- Responsive ------------------------------------------------------------ */
/* ≤1380 : photos en vw (sinon 690px fixes -> débordement horizontal). */
@media (max-width: 1380px) {
	.brabois-hist__photo--left {
		width: 46vw;
		left: -16px;
	}
	.brabois-hist__photo--right {
		width: 47vw;
		right: -16px;
	}
	.brabois-hist__photos {
		height: 40vw;
	}
}

@media (max-width: 760px) {
	.brabois-hist {
		padding-block: 64px 80px;
	}
	.brabois-hist__card {
		padding: 48px 18px 40px;
	}
	.brabois-hist__title {
		font-size: 24px;
	}
	/* Photos repassées dans le flux, empilées, sans débordement latéral. */
	.brabois-hist__photos {
		height: auto;
		margin-top: 40px;
		display: flex;
		flex-direction: column;
		gap: 24px;
		align-items: center;
	}
	.brabois-hist__photo {
		position: static;
		width: 100%;
		max-width: 420px;
	}
}

/* ==========================================================================
   Section 3 — « Le projet d'aujourd'hui » (4 cartes, reprise de la section
   « formats » d'Organiser un événement + hover + auto-highlight + point olive).
   Fond --beige-lumineux ; l'encart « pattern clair » de la section 2 empiète dessus.
   ========================================================================== */

.brabois-projet {
	position: relative;
	z-index: 2; /* sous l'encart histoire (z:3), au-dessus du beige-clair de la section 2 */
	width: 100%;
	box-sizing: border-box;
	background: var(--ch-beige-lumineux, #f8efe8);
	/* Remonte sous la section 2 -> l'encart empiète ; padding-top compense l'overlap. */
	margin-top: -80px;
	padding: 176px max(40px, calc(50% - 720px)) 128px;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brabois-projet__inner {
	max-width: 1280px;
	margin-inline: auto;
}

.brabois-projet__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 56px;
}
.brabois-projet__title {
	margin: 0;
	color: var(--ch-bleu-chateau, #3f5565);
	font-family: "Montserrat", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 29.92px;
}
.brabois-projet__sep {
	display: block;
	width: 380px;
	max-width: 100%;
	height: 10px;
}

/* ---- Grille de cartes ------------------------------------------------------ */
.brabois-projet__grid {
	/* Grille 4 colonnes FLUIDES : les cartes rétrécissent au lieu de passer à la
	   ligne -> toujours 4 côte à côte, même sur petit desktop. */
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.brabois-projet__card {
	position: relative;
	min-width: 0; /* la carte suit la largeur de sa colonne (grille fluide) */
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 24px;
	background: var(--ch-bleu-chateau, #3f5565);
	outline: 1px solid rgba(252, 252, 252, 0.36);
	outline-offset: -1px;
	transition: background-color 0.4s ease, outline-color 0.4s ease;
}
.brabois-projet__img {
	display: block;
	width: 100%;
	height: 210px;
	object-fit: cover;
}
.brabois-projet__body {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 0 24px 36px;
}
.brabois-projet__cardhead {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.brabois-projet__ctitle {
	margin: 0;
	color: var(--ch-blanc, #fcfcfc);
	font-family: "Montserrat", sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 23.12px;
	transition: color 0.4s ease;
}
.brabois-projet__line {
	width: 247px;
	max-width: 100%;
	height: 1px;
	background: var(--ch-blanc, #fcfcfc);
	opacity: 0.3;
	transition: background-color 0.4s ease;
}

/* Lien flèche + libellé */
.brabois-projet__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.brabois-projet__arrow {
	display: inline-flex;
	flex: 0 0 auto;
}
/* Pas de `display` ici : sinon `.brabois-projet__arrow img` (spécificité 0,0,1,1)
   écraserait `.brabois-projet__arrow--b{display:none}` -> les 2 flèches s'afficheraient
   en état normal et le texte se décalerait entre les états. */
.brabois-projet__arrow img {
	height: 16px;
	width: auto;
}
.brabois-projet__arrow--b {
	display: none;
}
.brabois-projet__cta {
	color: var(--ch-blanc, #fcfcfc);
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: color 0.4s ease;
}

/* Point olive sous la carte mise en lumière (caché par défaut). */
.brabois-projet__dot {
	position: absolute;
	left: 50%;
	bottom: -26px;
	width: 11px;
	height: 11px;
	border-radius: 9999px;
	background: var(--ch-vert-olive, #7e8b6f);
	transform: translateX(-50%) scale(0);
	transition: transform 0.35s ease;
}

/* ---- État « mis en lumière » : survol OU carte active (auto-cycle) ---------- */
.brabois-projet__card:hover,
.brabois-projet__card.is-active {
	background: var(--ch-blanc, #fcfcfc);
	outline-color: var(--ch-vert-olive, #7e8b6f);
}
.brabois-projet__card:hover .brabois-projet__ctitle,
.brabois-projet__card.is-active .brabois-projet__ctitle,
.brabois-projet__card:hover .brabois-projet__cta,
.brabois-projet__card.is-active .brabois-projet__cta {
	color: var(--ch-bleu-chateau, #3f5565);
}
.brabois-projet__card:hover .brabois-projet__line,
.brabois-projet__card.is-active .brabois-projet__line {
	background: var(--ch-bleu-chateau, #3f5565);
}
.brabois-projet__card:hover .brabois-projet__cta,
.brabois-projet__card.is-active .brabois-projet__cta {
	text-decoration: underline;
}
.brabois-projet__card:hover .brabois-projet__arrow--w,
.brabois-projet__card.is-active .brabois-projet__arrow--w {
	display: none;
}
.brabois-projet__card:hover .brabois-projet__arrow--b,
.brabois-projet__card.is-active .brabois-projet__arrow--b {
	display: block;
}
.brabois-projet__card:hover .brabois-projet__dot,
.brabois-projet__card.is-active .brabois-projet__dot {
	transform: translateX(-50%) scale(1);
}

/* ---- Responsive ------------------------------------------------------------ */
/* 4 colonnes tenues jusqu'en tablette ; 2 colonnes en dessous, 1 en petit mobile. */
@media (max-width: 900px) {
	.brabois-projet__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 760px) {
	.brabois-projet {
		margin-top: -60px;
		padding-top: 140px;
		padding-bottom: 80px;
	}
}
@media (max-width: 520px) {
	.brabois-projet__grid {
		grid-template-columns: 1fr;
		max-width: 360px;
		margin-inline: auto;
	}
}

/* ==========================================================================
   Section 4 — « Ils font vivre le Château ! »
   Fond pattern olive (média 40) + texte centré blanc + grande photo d'équipe
   (média 83) collée en bas à droite.
   ========================================================================== */

.brabois-team {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	/* Pas de marge avec la section précédente (block-gap TT5). */
	margin-block-start: 0;
	background-color: #7e8b6f; /* fallback si le pattern ne charge pas */
	background-image: var(--team-pattern);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--ch-blanc, #fcfcfc);
	/* padding-bottom 0 : la photo touche le bas de la section. */
	padding-block: 96px 0;
	display: flex;
	flex-direction: column;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brabois-team__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1040px;
	margin-inline: auto;
	padding-inline: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	text-align: center;
}
.brabois-team__title {
	margin: 0;
	color: var(--ch-blanc, #fcfcfc);
	font-family: "Montserrat", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 29.92px;
}
.brabois-team__desc {
	margin: 0;
	color: var(--ch-blanc, #fcfcfc);
	font-family: "Geist", "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}

/* Le texte long est scindé en 2 paragraphes côte à côte (2 colonnes de même
   largeur). Alignés à gauche : un pavé de texte centré en colonnes est illisible
   (le titre, lui, reste centré). */
.brabois-team__cols {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 56px;
	row-gap: 24px;
	text-align: left;
}

/* Grande photo d'équipe : DANS LE FLUX, sous le texte, collée en bas à droite
   (touche le bord droit de l'écran et le bas de la section, aucun chevauchement). */
.brabois-team__photo {
	display: block;
	width: 70vw; /* 70 % de la largeur de l'écran */
	height: auto;
	margin: 64px 0 0 auto;
	pointer-events: none;
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
	.brabois-team__photo {
		width: 80%;
	}
	.brabois-team__cols {
		column-gap: 40px;
	}
}
@media (max-width: 860px) {
	.brabois-team__cols {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
	}
}
@media (max-width: 640px) {
	.brabois-team__photo {
		width: 100%;
		margin-top: 40px;
	}
}

/* ==========================================================================
   Section 5 — « Le portrait du mois » (éditable en back-office, mensuel)
   Gauche : photo (arche + double nom) ; droite : encart pattern clair
   (guillemets + titre + séparateur + méta + description + citation).
   ========================================================================== */

.brabois-portrait {
	background: #fffcf5;
	padding-block: 96px 120px;
	padding-inline: max(40px, calc(50% - 720px));
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.brabois-portrait__inner {
	display: grid;
	/* Colonne droite en 1fr (et NON 56 %) : 44 % + 56 % = 100 % de la bande,
	   + gap 48px -> la grille dépassait de 48px et la carte sortait de 8px de
	   l'écran à 1280 (scroll horizontal). En 1fr, elle prend l'espace restant,
	   gap compris. Même correctif que .brabois-petitdej__inner (02/07). */
	grid-template-columns: 44% 1fr;
	align-items: center;
	gap: 48px;
}

/* ---- Colonne gauche : photo (arche + contour bakés dans le média) + double nom */
.brabois-portrait__media {
	position: relative;
	padding-bottom: 68px; /* espace pour le double nom, rapproché de la photo */
}
/* La forme d'arche et le contour font partie du média : on affiche la photo telle quelle. */
.brabois-portrait__photo {
	display: block;
	width: 100%;
	height: auto;
}
/* Nom écrit 2 fois, CENTRÉ sous la photo : un plein + un « fantôme » très clair, décalé. */
.brabois-portrait__names {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	line-height: 1;
	text-align: center;
	white-space: nowrap;
}
.brabois-portrait__name {
	font-family: "Cormorant Infant", Georgia, serif;
	font-style: italic;
	font-weight: 600;
	font-size: 40px;
	color: var(--ch-vert-olive, #7e8b6f);
}
.brabois-portrait__name--ghost {
	position: absolute;
	left: -42px;
	top: -34px;
	opacity: 0.14;
}

/* ---- Colonne droite : encart -------------------------------------------------*/
.brabois-portrait__card {
	position: relative;
	box-sizing: border-box;
	padding: 64px 64px 68px;
	background-color: #fbf9f4;
	background-image: var(--pt-pattern);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border: 1px solid rgba(63, 85, 101, 0.1);
}
/* Guillemets décalés en haut-gauche, à cheval sur le bord de l'encart. */
.brabois-portrait__quote {
	position: absolute;
	top: 36px;
	left: -34px;
	width: 62px;
	height: auto;
	pointer-events: none;
}
.brabois-portrait__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.brabois-portrait__title {
	margin: 0;
	font-family: "Cormorant Infant", Georgia, serif;
	font-style: italic;
	font-weight: 600;
	font-size: 30px;
	color: var(--ch-bleu-chateau, #3f5565);
}
.brabois-portrait__sep {
	display: block;
	width: 100%;
	max-width: 520px;
	height: 10px;
	margin-bottom: 4px;
}
.brabois-portrait__meta {
	margin: 0;
	font-family: "Cormorant Infant", Georgia, serif;
	font-weight: 600;
	font-size: 20px;
	color: var(--ch-bleu-chateau, #3f5565);
}
.brabois-portrait__desc {
	margin: 0;
	font-family: "Geist", "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #404040;
}
.brabois-portrait__cit {
	margin: 4px 0 0;
	font-family: "Cormorant Infant", Georgia, serif;
	font-style: italic;
	font-weight: 500;
	font-size: 19px;
	line-height: 30px;
	color: var(--ch-bleu-chateau, #3f5565);
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
	.brabois-portrait__inner {
		grid-template-columns: 1fr;
		gap: 64px;
	}
	.brabois-portrait__media {
		max-width: 520px;
		margin-inline: auto;
	}
	/* 1 colonne : les guillemets remontent AU-DESSUS du titre (sinon chevauchement). */
	.brabois-portrait__quote {
		left: 8px;
		top: -22px;
	}
}
@media (max-width: 640px) {
	.brabois-portrait__card {
		padding: 44px 24px 40px;
	}
	.brabois-portrait__quote {
		top: -20px;
		left: 4px;
		width: 52px;
	}
}

/* Section « chiffres » de la page château : SANS fond (fond blanc de page),
   contrairement à la variante accueil (beige-clair). */
.brabois-chiffres--plain {
	background: transparent;
}

/* ==========================================================================
   Section 7 — « Le domaine et son environnement » (galerie 9 images éditable)
   Fond pattern (média 13) ; grille 3×3 ; curseur « Agrandir » au survol + lightbox.
   ========================================================================== */

.brabois-domaine {
	margin-block-start: 0;
	background-color: #44525f; /* fallback si le pattern ne charge pas */
	background-image: var(--dom-pattern);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--ch-blanc, #fcfcfc);
	padding: 96px max(40px, calc(50% - 720px)) 112px;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.brabois-domaine__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 72px;
}
.brabois-domaine__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}
.brabois-domaine__title {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 29.92px;
	color: var(--ch-blanc, #fcfcfc);
}
.brabois-domaine__sep {
	display: block;
	width: 100%;
	max-width: 600px;
	height: 10px;
}
.brabois-domaine__desc {
	margin: 0;
	max-width: 848px;
	font-family: "Geist", "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--ch-blanc, #fcfcfc);
}

.brabois-domaine__grid {
	display: grid;
	grid-template-columns: repeat(3, 341px);
	gap: 20px;
	justify-content: center;
}
.brabois-domaine__img {
	width: 341px;
	height: 341px;
	margin: 0;
	padding: 0;
	border: 0;
	display: block;
	background: var(--dom-img) center / cover no-repeat;
	/* Curseur « Agrandir » (même ellipse que le carrousel des gammes / Séjourner). */
	cursor: url("../img/cursor-agrandir.png") 55 55, zoom-in;
	transition: filter 0.25s ease, transform 0.25s ease;
}
.brabois-domaine__img:hover {
	filter: brightness(1.05);
}

/* Lightbox (clic sur une image). */
.brabois-domaine-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(20, 26, 30, 0.9);
	cursor: zoom-out;
}
.brabois-domaine-lightbox[hidden] {
	display: none;
}
.brabois-domaine-lightbox img {
	max-width: 92vw;
	max-height: 88vh;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
	.brabois-domaine__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}
	.brabois-domaine__img {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}
}
@media (max-width: 640px) {
	.brabois-domaine__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ==========================================================================
   Section 8 — « atouts » (reprise de Séjourner, mêmes icônes, textes château).
   Variante château : pas de chevauchement de carte d'onglets (spécifique Séjourner)
   + contenu CENTRÉ (icône + texte), conforme à la maquette château.
   ========================================================================== */
.brabois-atouts--chateau {
	margin-top: 0;
	background: var(--ch-beige-clair, #fffcf5);
	padding: 0 24px;
}
.brabois-atouts--chateau .brabois-atouts__grid {
	min-height: 0;
}
.brabois-atouts--chateau .brabois-atouts__item {
	align-items: center;
	text-align: center;
	padding: 80px 28px;
}
.brabois-atouts--chateau .brabois-atouts__text {
	max-width: 260px;
}
/* Mobile : la grille passe en 2×2 (base Séjourner) ; on RÉDUIT le grand padding
   vertical (80px) des colonnes pour que la section prenne beaucoup moins de place. */
@media (max-width: 782px) {
	.brabois-atouts--chateau .brabois-atouts__item {
		padding: 28px 12px;
		gap: 14px;
	}
	.brabois-atouts--chateau .brabois-atouts__icon {
		height: 44px;
	}
	.brabois-atouts--chateau .brabois-atouts__grid {
		gap: 8px 0;
	}
}

/* ==========================================================================
   Section 9 — « Vous aussi, vivez l'expérience… » + formulaire de contact
   Fond --beige-lumineux ; head (titre + séparateur + 2 boutons) puis carte
   blanche (formulaire). Anti-spam ALTCHA + honeypot + case RGPD.
   ========================================================================== */

.brabois-cform {
	background: var(--ch-beige-lumineux, #f8efe8);
	padding: 96px max(40px, calc(50% - 720px)) 120px;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.brabois-cform__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 44px;
}
.brabois-cform__head {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	text-align: center;
}
.brabois-cform__title {
	margin: 0;
	color: var(--ch-bleu-chateau, #3f5565);
	font-family: "Montserrat", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 29.92px;
}
/* Sous-titre optionnel (ex. « Remplissez le formulaire ci-dessous : »). */
.brabois-cform__subtitle {
	margin: -12px 0 0;
	color: var(--ch-anthracite, #404040);
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
}
.brabois-cform__sep {
	display: block;
	width: 100%;
	max-width: 480px;
	height: 10px;
}
.brabois-cform__cta {
	display: inline-flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: 24px;
}
.brabois-cform__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13.5px 17px;
	text-decoration: none;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: opacity 0.2s ease;
}
.brabois-cform__btn:hover {
	opacity: 0.9;
}
.brabois-cform__btn img {
	display: block;
	height: 16px;
	width: auto;
}
.brabois-cform__btn--fill {
	background: var(--ch-vert-olive, #7e8b6f);
	color: var(--ch-blanc, #fcfcfc);
}
.brabois-cform__btn--outline {
	background: transparent;
	outline: 1px solid var(--ch-vert-olive, #7e8b6f);
	outline-offset: -1px;
	color: var(--ch-vert-olive, #7e8b6f);
}

/* ---- Notice ---------------------------------------------------------------- */
.brabois-cform__notice {
	width: 100%;
	max-width: 846px;
	margin: 0;
	padding: 14px 20px;
	font-family: "Geist", "Montserrat", sans-serif;
	font-size: 15px;
	text-align: center;
}
.brabois-cform__notice--ok {
	background: rgba(126, 139, 111, 0.14);
	color: #3f5565;
	border: 1px solid var(--ch-vert-olive, #7e8b6f);
}
.brabois-cform__notice--err {
	background: rgba(190, 60, 60, 0.08);
	color: #9a2a2a;
	border: 1px solid #cf8a8a;
}

/* ---- Carte formulaire ------------------------------------------------------ */
.brabois-cform__form {
	width: 100%;
	max-width: 846px;
	box-sizing: border-box;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 4px 63px rgba(217, 217, 217, 0.25);
	outline: 1px solid rgba(30, 90, 95, 0.4);
	outline-offset: -1px;
	padding: 64px 108px;
	display: flex;
	flex-direction: column;
	gap: 36px;
}
.brabois-cform__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.brabois-cform__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.brabois-cform__field {
	box-sizing: border-box;
	width: 100%;
	padding: 11px 24px;
	border: 0;
	outline: 1px solid var(--ch-bleu-chateau, #3f5565);
	outline-offset: -1px;
	background: transparent;
	color: var(--ch-bleu-chateau, #3f5565);
	font-family: "Cormorant Infant", Georgia, serif;
	font-style: italic;
	font-weight: 600;
	font-size: 16px;
	line-height: 21.76px;
}
.brabois-cform__field::placeholder {
	color: var(--ch-bleu-chateau, #3f5565);
	opacity: 1;
}
.brabois-cform__field:focus {
	outline-width: 2px;
}
.brabois-cform__field--full {
	grid-column: 1 / -1;
}
.brabois-cform__select {
	font-style: normal;
	font-weight: 700;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233f5565' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 24px center;
	padding-right: 48px;
}
.brabois-cform__textarea {
	min-height: 190px;
	resize: vertical;
	line-height: 24px;
}
.brabois-cform__rgpd {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: "Geist", "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	color: #404040;
}
.brabois-cform__rgpd input {
	margin-top: 2px;
	flex: 0 0 auto;
	accent-color: var(--ch-vert-olive, #7e8b6f);
}
.brabois-cform__rgpd a {
	color: var(--ch-bleu-chateau, #3f5565);
}
.brabois-cform__altcha {
	--altcha-border-width: 1px;
	--altcha-border-radius: 0;
	--altcha-color-base: #fff;
	--altcha-border-color: rgba(63, 85, 101, 0.4);
	--altcha-color-base-content: #3f5565;
	--altcha-color-success: #7e8b6f;
	--altcha-max-width: 320px;
}
.brabois-cform__submit {
	align-self: flex-end;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13.5px 17px;
	border: 0;
	cursor: pointer;
	background: var(--ch-vert-olive, #7e8b6f);
	color: var(--ch-blanc, #fcfcfc);
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: opacity 0.2s ease;
}
.brabois-cform__submit:hover {
	opacity: 0.92;
}
.brabois-cform__submit img {
	display: block;
	height: 16px;
	width: auto;
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
	.brabois-cform__form {
		padding: 44px 28px;
	}
}
@media (max-width: 640px) {
	.brabois-cform__grid {
		grid-template-columns: 1fr;
	}
	.brabois-cform__cta {
		flex-wrap: wrap;
	}
	.brabois-cform__submit {
		align-self: stretch;
		justify-content: center;
	}
}

/* ==========================================================================
   Fix bande blanche avant le footer (page château uniquement).
   Le footer global (.brabois-footer__main) GRIMPE de -250px (/-180/-120 responsive)
   sur la dernière section. L'avis (.brabois-avis--evt) avait padding-bottom:400
   (hérité d'événement, d'avant le footer) -> le footer ne couvrait pas tout ->
   grande bande beige vide. On aligne le padding-bas sur la remontée du footer.
   Scopé .page-id-36 (spécificité 0,0,2,0 > .brabois-avis--evt d'evenement.css).
   ⚠️ La page « Organiser un événement » a le même souci (à corriger pareil).
   ========================================================================== */
.page-id-36 .brabois-avis--evt {
	padding-bottom: 274px;
}

/* Le formulaire de cette page a été RETIRÉ (V3 client, 27/07/2026) : il ne reste que
   le head (titre + 2 boutons). Sans carte qui déborde, le padding-top de 246px de
   .brabois-avis--evt (qui dégageait ce débord) laisserait un grand vide beige. */
.page-id-36 .brabois-cform {
	padding-bottom: 96px;
}
.page-id-36 .brabois-avis--evt {
	padding-top: 96px;
}
@media (max-width: 1024px) {
	.page-id-36 .brabois-avis--evt {
		padding-bottom: 200px;
	}
}
@media (max-width: 640px) {
	.page-id-36 .brabois-avis--evt {
		padding-bottom: 140px;
	}
}

/* ==========================================================================
   Cibles tactiles des cartes « projet » (ajout responsive du 28/08/2026)
   Le lien (flèche + libellé) mesurait 20px de haut : la carte n'est pas
   cliquable dans son ensemble, c'est bien ce lien qu'on vise au doigt.
   ========================================================================== */
@media (max-width: 782px) {
	.brabois-projet__link { min-height: 32px; }
}

/* ==========================================================================
   Section « vidéo » (reportage, inc/video.php) — posée juste après la section
   « projet » : même fond beige-lumineux, elle en prolonge le bloc. Lecteur =
   façade cf_video du socle (cpg-core), réglée ici aux couleurs du Château.
   Ajout du 21/10/2026.
   ========================================================================== */

.brabois-projet:has(+ .brabois-video) {
	padding-bottom: 80px;
}
.brabois-video {
	position: relative;
	z-index: 2;
	width: 100%;
	box-sizing: border-box;
	margin-block-start: 0;
	background: var(--ch-beige-lumineux, #f8efe8);
	padding: 0 max(40px, calc(50% - 720px)) 128px;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--cpg-video-rayon: 0px;
	--cpg-video-accent: var(--ch-bleu-chateau, #3f5565);
}
.brabois-video__inner {
	max-width: 1000px;
	margin-inline: auto;
}
.brabois-video__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-bottom: 40px;
	text-align: center;
}
.brabois-video__title {
	margin: 0;
	color: var(--ch-bleu-chateau, #3f5565);
	font-family: "Montserrat", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 29.92px;
}
.brabois-video__sep {
	display: block;
	width: 380px;
	max-width: 100%;
	height: 10px;
}
.brabois-video .cpg-video {
	margin: 0;
}
.brabois-video .cpg-video__titre {
	margin-top: 16px !important;
	color: var(--ch-bleu-chateau, #3f5565);
	font-size: 15px;
	font-weight: 500;
	text-align: center;
}

@media (max-width: 767px) {
	.brabois-projet:has(+ .brabois-video) {
		padding-bottom: 56px;
	}
	.brabois-video {
		padding: 0 20px 72px;
	}
	.brabois-video__head {
		margin-bottom: 28px;
	}
	.brabois-video__title {
		font-size: 20px;
		line-height: 1.35;
	}
}
/* Bouton lecture plus lisible sur la vignette (photo sombre) : bleu Château. */
.brabois-video .cpg-video__lecture {
	width: 88px;
	height: 62px;
}
.brabois-video .cpg-video__lecture-fond {
	fill: var(--ch-bleu-chateau, #3f5565);
	fill-opacity: .92;
}
.brabois-video .cpg-video__facade:hover .cpg-video__lecture-fond,
.brabois-video .cpg-video__facade:focus-visible .cpg-video__lecture-fond {
	fill: var(--ch-vert-olive, #7e8b6f);
	fill-opacity: 1;
}
@media (max-width: 767px) {
	.brabois-video .cpg-video__lecture {
		width: 68px;
		height: 48px;
	}
}

/* 21/10/2026 : la photo de droite de la section histoire déborde exprès
   (right:-96px) mais faisait défiler la page de 31 px à 1440. `clip` coupe le
   débord horizontal sans créer de conteneur défilant ni toucher au débord
   vertical voulu sur la section suivante. */
.brabois-hist {
	overflow-x: clip;
}
