/* ==========================================================================
   UBC Group — feuille de style principale
   Palette tirée du logo (graphite + argent chromé) + un accent laiton pour les actions.
   Échelle : texte 17–18 px, boutons ≥ 52 px, cibles tactiles ≥ 48 px, contrastes AA.
   ========================================================================== */

:root {
	--ink: #17181a;
	--graphite: #1f2023;
	--slate: #2c2d31;
	--silver: #c4c5c8;
	--silver-soft: #b4b6bb;
	--paper: #f4f4f2;
	--white: #ffffff;
	--text: #1c1d20;
	--muted: #55575c;
	--line: #e2e2de;
	--line-strong: #bdbeba;
	--line-dark: rgba(255, 255, 255, 0.14);
	--brass: #c9a24d;
	--brass-hover: #dab466;
	--whatsapp: #25d366;

	--radius-s: 12px;
	--radius: 16px;
	--radius-l: 24px;

	--font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--header-h: 76px;
	--gutter: 20px;
	--maxw: 1240px;
}

@media (min-width: 720px) {
	:root { --gutter: 32px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }
body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--brass);
	border-radius: 6px;
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: fixed; left: 16px; top: -80px; z-index: 200;
	background: var(--brass); color: var(--ink); font-weight: 700;
	padding: 14px 22px; border-radius: var(--radius-s); text-decoration: none;
}
.skip-link:focus { top: 16px; }
.is-hidden { display: none !important; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.875rem); }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); color: var(--muted); max-width: 62ch; }

.link {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
	font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong);
}
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 1.5rem;
	font: 700 1rem/1.2 var(--font-body);
	border: 2px solid transparent; border-radius: var(--radius-s);
	text-decoration: none; cursor: pointer; text-align: center;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--lg { min-height: 58px; padding: 0 1.75rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brass); color: var(--ink); }
.btn--primary:hover { background: var(--brass-hover); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--slate); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--paper); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--whatsapp { background: var(--whatsapp); color: #06210f; }
.btn--whatsapp:hover { background: #3be07a; }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	height: var(--header-h);
	border-bottom: 1px solid var(--line-dark);
	color: var(--white);
}
/* Le flou est sur un pseudo-élément : un backdrop-filter directement sur l'en-tête
   enfermerait le menu mobile (position: fixed) dans la hauteur de l'en-tête. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: rgba(23, 24, 26, 0.94);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img, .brand .custom-logo { height: 52px; width: auto; }

.nav-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border: 1.5px solid var(--line-dark); border-radius: var(--radius-s);
	background: transparent; color: var(--white); cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline-flex; }

/* Mobile : panneau plein écran */
.nav {
	display: none;
	position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99; -webkit-overflow-scrolling: touch;
	height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
	background: var(--ink); padding: 24px var(--gutter) 40px;
	flex-direction: column; gap: 28px; overflow-y: auto;
}
.admin-bar .nav { top: calc(var(--header-h) + 32px); height: calc(100vh - var(--header-h) - 32px); height: calc(100dvh - var(--header-h) - 32px); }
@media (max-width: 782px) { .admin-bar .nav { top: calc(var(--header-h) + 46px); height: calc(100vh - var(--header-h) - 46px); height: calc(100dvh - var(--header-h) - 46px); } }
.nav-open .nav { display: flex; }
.nav__list a {
	display: flex; align-items: center; min-height: 60px;
	font: 700 1.5rem/1.2 var(--font-display); text-decoration: none; color: var(--white);
	border-bottom: 1px solid var(--line-dark);
}
.nav__actions { display: grid; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; font-weight: 600; text-decoration: none; color: var(--silver); }
.nav__actions .btn { width: 100%; }

@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.nav {
		display: flex; position: static; inset: auto; height: auto; flex-direction: row; align-items: center;
		background: transparent; padding: 0; gap: 28px; overflow: visible; flex: 1; justify-content: flex-end;
	}
	.nav__list { display: flex; gap: 4px; }
	.nav__list a {
		min-height: 48px; padding: 0 14px; font: 600 1rem/1 var(--font-body); border: 0; border-radius: 10px; color: #e9e9ec; position: relative;
	}
	.nav__list a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
	.nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--white); box-shadow: inset 0 -3px 0 var(--brass); border-radius: 10px 10px 0 0; }
	.nav__actions { display: flex; align-items: center; gap: 18px; }
	.nav__actions .btn { width: auto; min-height: 48px; }
	.nav__phone span { display: none; }
}
@media (min-width: 1180px) { .nav__phone span { display: inline; } }

/* ---------- Hero accueil ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--ink); overflow: hidden; }
.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(580px, 86vh, 800px); opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.hero__slide.is-active, .hero:not(.is-ready) .hero__slide:first-child { opacity: 1; visibility: visible; transition: opacity 0.7s ease; }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 108px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.hero__nav { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 50%; background: rgba(23, 24, 26, 0.45); color: var(--white); cursor: pointer; }
.hero__nav:hover { background: var(--white); color: var(--ink); }
.hero__nav--prev svg { transform: rotate(180deg); }
.hero__dots { display: flex; margin-left: 8px; }
.hero__dot { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero__dot::before { content: ""; width: 32px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.5); }
.hero__dot[aria-current="true"]::before { background: var(--brass); }
.hero__count { margin-left: 8px; font-size: 0.9375rem; font-weight: 600; color: #e4e5e8; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .hero__count { display: none; } }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero__art {
	position: absolute; inset: 0; z-index: -3;
	background:
		url("../img/logo-mark.png") no-repeat right 7% center / auto 74%,
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px),
		linear-gradient(135deg, #2c2d31 0%, #17181a 70%);
}
.hero__art::after { content: ""; position: absolute; inset: 0; background: rgba(23, 24, 26, 0.62); }
.hero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(23, 24, 26, 0.9) 0%, rgba(23, 24, 26, 0.62) 48%, rgba(23, 24, 26, 0.2) 100%), linear-gradient(0deg, rgba(23, 24, 26, 0.75) 0%, transparent 38%); }
.hero__inner { padding-block: 72px 150px; }
.hero__title { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); font-weight: 800; letter-spacing: -0.025em; max-width: 17ch; margin-bottom: 0.4em; }
.hero__text { font-size: clamp(1.125rem, 1.05rem + 0.45vw, 1.375rem); color: #e4e5e8; max-width: 54ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 520px) { .hero__actions .btn { width: 100%; } }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	.hero__slide:first-child .hero__inner > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.hero__slide:first-child .hero__inner > :nth-child(2) { animation-delay: 0.12s; }
	.hero__slide:first-child .hero__inner > :nth-child(3) { animation-delay: 0.24s; }
}

/* ---------- Tuiles d'accès rapide ---------- */
.tiles { position: relative; z-index: 2; margin-top: -92px; }
.tiles__grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .tiles__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tile { position: relative; display: flex; align-items: flex-end; min-height: 230px; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; background: var(--slate); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55); }
.tile__media { position: absolute; inset: 0; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 24, 26, 0.92) 0%, rgba(23, 24, 26, 0.35) 70%, rgba(23, 24, 26, 0.15) 100%); }
.tile__body { position: relative; display: grid; gap: 4px; padding: 24px; width: 100%; }
.tile__title { font: 700 1.5rem/1.15 var(--font-display); }
.tile__text { color: #dcdde0; font-size: 1rem; line-height: 1.45; }
.tile__meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; color: var(--brass); }
.tile:hover .tile__meta svg { transform: translateX(4px); }
.tile__meta svg { transition: transform 0.18s ease; }

/* ---------- Placeholders visuels ---------- */
.is-placeholder { position: relative; background: linear-gradient(135deg, #2f3034, #1b1c1f); }
.is-placeholder::after { content: ""; position: absolute; inset: 0; background: url("../img/logo-mark.png") no-repeat center / auto 46%; opacity: 0.28; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink .lead { color: var(--silver); }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.section__head .lead { margin-bottom: 0; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section__more { margin-top: 40px; text-align: center; }

/* ---------- Filtres ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters .chips { margin-bottom: 0; }
.chip {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
	border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink);
	font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chips--secondary .chip { min-height: 44px; font-size: 0.9375rem; background: transparent; }
.chips--secondary .chip[aria-current="true"] { background: var(--ink); }

/* ---------- Cartes projet ---------- */
.grid--cards { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 20px 40px -24px rgba(23, 24, 26, 0.45); }
.card.is-hidden { display: none; }
.card__link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--slate); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .badge { position: absolute; top: 14px; left: 14px; z-index: 1; }
.card__body { padding: 22px 22px 26px; }
.card__type { margin: 0 0 4px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.card__title { font-size: 1.4375rem; margin-bottom: 10px; }
.card__link:hover .card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card__loc { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--muted); font-size: 1rem; }
.card__specs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.card__specs li { display: inline-flex; align-items: center; gap: 6px; }
.card__price { margin: 14px 0 0; font-weight: 800; font-size: 1.125rem; }

.badge { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; font: 700 0.875rem/1 var(--font-body); background: var(--ink); color: var(--white); }
.badge--realise { background: #e9e9ec; color: var(--ink); }
.badge--en-cours { background: var(--brass); color: var(--ink); }
.badge--a-vendre { background: var(--white); color: var(--ink); }
.badge--a-louer { background: var(--ink); color: var(--white); }
.badge--outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.5); }

.progress { height: 10px; border-radius: 999px; background: #e6e6e2; overflow: hidden; margin-top: 16px; }
.progress--lg { height: 12px; }
.progress__bar { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.progress__label { margin: 8px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.empty-card { background: var(--white); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); max-width: 720px; }
.empty-card h2, .empty-card h3 { margin-bottom: 8px; }
.empty-card p { color: var(--muted); }

/* ---------- Groupe & activités ---------- */
.split { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.split__text .lead { margin-bottom: 2rem; }
.activities { display: grid; }
.activity { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.activity:first-child { padding-top: 0; }
.activity__icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: var(--radius-s); background: var(--slate); color: var(--silver); }
.activity__title { font-size: 1.3125rem; margin-bottom: 4px; }
.activity p { margin: 0; color: var(--silver-soft); font-size: 1rem; }

/* ---------- Publics ---------- */
.audiences { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.audience { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.audience__icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: var(--radius-s); background: var(--ink); color: var(--white); margin-bottom: 20px; }
.audience h3 { font-size: 1.375rem; }
.audience p { color: var(--muted); font-size: 1rem; flex: 1; }

/* ---------- Dirigeants ---------- */
.leaders { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
@media (min-width: 720px) { .leaders { gap: 28px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.leader__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--slate); margin-bottom: 16px; }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; }
.leader__name { font-size: 1.375rem; margin-bottom: 2px; }
.leader__role { margin: 0; color: var(--muted); font-weight: 600; }
.leaders--full { grid-template-columns: 1fr; gap: 56px; }
.leader--full { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .leader--full { grid-template-columns: 300px 1fr; gap: 48px; } }
.leader--full .leader__photo { margin-bottom: 0; max-width: 360px; }
.leader--full .leader__name { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.leader--full .leader__role { font-size: 1.125rem; margin-bottom: 16px; }
.leader__bio { max-width: 62ch; }

/* ---------- Bandeau final ---------- */
.cta-band { background: linear-gradient(135deg, #2c2d31, #17181a); color: var(--white); padding-block: clamp(56px, 7vw, 96px); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band .lead { color: var(--silver); margin: 0; }
.cta-band .h2 { max-width: 20ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 520px) { .cta-band__actions, .cta-band__actions .btn { width: 100%; } }

/* ---------- Pages intérieures ---------- */
.page-hero { background: linear-gradient(135deg, #2c2d31 0%, #17181a 75%); color: var(--white); padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.page-hero__title { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -0.02em; max-width: 20ch; margin-bottom: 0.3em; }
.page-hero__lead { display: flex; align-items: center; gap: 8px; color: var(--silver); font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); max-width: 60ch; margin: 0; }
.page-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--silver); font-size: 1rem; margin-bottom: 18px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }

.prose { max-width: 70ch; }
.prose--narrow { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.75rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.375rem; margin-top: 1.4em; }
.prose img { border-radius: var(--radius-s); }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose ul li { margin-bottom: 0.4em; }
.prose a { color: var(--ink); font-weight: 600; }
.wp-block-gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px !important; margin: 28px 0; }
.wp-block-gallery .wp-block-image { margin: 0 !important; width: auto !important; }
.wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project .prose { max-width: none; }

/* ---------- Fiche projet ---------- */
.project { display: grid; gap: 40px; padding-block: 40px 72px; }
@media (min-width: 1040px) { .project { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; } }
.project__cover { position: relative; margin: 0 0 32px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--slate); }
.project__cover img { width: 100%; height: 100%; object-fit: cover; }
.video { margin-top: 32px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; }
.project__aside { display: grid; gap: 20px; }
@media (min-width: 1040px) { .project__aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section--paper .panel { background: var(--white); }
.panel__title { font-size: 1.375rem; margin-bottom: 8px; }
.panel__text { color: var(--muted); font-size: 1rem; }
.panel__alt { margin: 16px 0 0; font-size: 1rem; color: var(--muted); }
.specs { margin: 8px 0 0; }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-size: 1rem; }
.specs dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
.contact-list { display: grid; gap: 8px; margin-top: 20px; }
.contact-list a, .contact-list__static { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius-s); text-decoration: none; background: var(--white); border: 1px solid var(--line); line-height: 1.4; }
.contact-list a:hover { border-color: var(--ink); }
.contact-list__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: var(--radius-s); background: var(--ink); color: var(--white); }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; margin-top: 16px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 1rem; }
.req { color: #a3262a; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 54px; padding: 0 16px;
	font: 500 1rem/1.4 var(--font-body); color: var(--text);
	background: var(--white); border: 1.5px solid #8c8e93; border-radius: var(--radius-s);
}
.field textarea { padding: 14px 16px; min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; box-shadow: 0 0 0 6px var(--brass); border-color: var(--ink); }
.form__hint { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: var(--radius-s); margin-bottom: 8px; font-size: 1rem; }
.notice--ok { background: #e6f4ea; color: #12401f; border: 1px solid #9fd0ac; }
.notice--error { background: #fdecea; color: #6b1a1a; border: 1px solid #e5a6a6; }

/* ---------- Pagination ---------- */
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); text-decoration: none; font-weight: 700; background: var(--white); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }
a.page-numbers:hover { border-color: var(--ink); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #c9cacf; padding-top: clamp(56px, 7vw, 88px); font-size: 1rem; }
.site-footer__grid { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .site-footer__grid { grid-template-columns: 1.4fr 0.8fr 0.9fr 1.4fr; gap: 48px; } }
.site-footer__brand p { max-width: 36ch; margin-top: 18px; }
.site-footer__title { font: 700 1.0625rem/1.2 var(--font-display); color: var(--white); margin-bottom: 14px; }
.footer-list a, .footer-list span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.footer-list a:hover { color: var(--white); text-decoration: underline; }
.footer-list--contact span { align-items: flex-start; padding-block: 10px; line-height: 1.5; }
.footer-list--contact svg { flex: none; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid var(--line-dark); border-radius: var(--radius-s); color: var(--white); }
.social a:hover { background: var(--white); color: var(--ink); }
.site-footer__bottom { border-top: 1px solid var(--line-dark); padding-block: 24px; font-size: 0.9375rem; color: var(--silver-soft); }
.site-footer__bottom p { margin: 0; }

/* ---------- Barre d'action mobile (fiche projet) ---------- */
.mobile-cta { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(23, 24, 26, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark); }
.mobile-cta .btn { min-height: 52px; }
@media (min-width: 1040px) { .mobile-cta { display: none; } }
@media (max-width: 1039px) { .single-ubc_projet { padding-bottom: 80px; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

.field [aria-invalid="true"] { border-color: #a3262a; }

/* ---------- À propos ---------- */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .facts > div { grid-template-columns: 150px 1fr; gap: 24px; } }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; font-size: 1.125rem; }
@media (min-width: 960px) { .activities--wide { grid-template-columns: 1fr 1fr; column-gap: 64px; } .activities--wide .activity:first-child { padding-top: 24px; } }

/* ---------- Blog ---------- */
.card--post .card__media img { object-position: top center; }
.card__excerpt { margin: 0; color: var(--muted); font-size: 1rem; }
.card--post .card__title { margin-bottom: 8px; }
.prose--article { font-size: 1.125rem; }
.prose--article h2 { margin-top: 1.8em; }
.prose--article figure { margin: 2em 0; }
.prose--article .wp-block-image img { width: 100%; height: auto; border-radius: var(--radius); }
.article__back { max-width: 760px; margin: 40px auto 0; }
.page-hero--article .page-hero__title { max-width: 24ch; }

/* Animations au survol (désactivées si l'utilisateur préfère moins de mouvement) */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
	.tile { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease; }
	.tile__media { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
	.tile__media::after { transition: background 0.35s ease; }
	.tile__body { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
	.tile::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); z-index: 2; }
	.tile:hover, .tile:focus-visible { transform: translateY(-8px); box-shadow: 0 28px 50px -18px rgba(0, 0, 0, 0.7); }
	.tile:hover .tile__media, .tile:focus-visible .tile__media { transform: scale(1.07); }
	.tile:hover .tile__media::after, .tile:focus-visible .tile__media::after { background: linear-gradient(0deg, rgba(23, 24, 26, 0.95) 0%, rgba(23, 24, 26, 0.5) 75%, rgba(23, 24, 26, 0.25) 100%); }
	.tile:hover .tile__body, .tile:focus-visible .tile__body { transform: translateY(-4px); }
	.tile:hover::before, .tile:focus-visible::before { transform: scaleX(1); }
	.tile:hover .tile__meta svg { transform: translateX(8px); }

	.card { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease; }
	.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, 0.45); }
	.card__media img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
	.card:hover .card__media img { transform: scale(1.06); }

	.activity, .audience, .leader { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
	.activity:hover, .audience:hover, .leader:hover { transform: translateY(-4px); }
	.btn { transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
	.btn:hover { transform: translateY(-2px); }
	.btn:active { transform: translateY(0); }
}

/* Changement de couleur au survol des blocs d'accueil */
@media (hover: hover) {
	.tile__title, .tile__meta { transition: color 0.3s ease; }
	.tile:hover .tile__media::after, .tile:focus-visible .tile__media::after { background: linear-gradient(0deg, rgba(122, 92, 24, 0.95) 0%, rgba(95, 72, 20, 0.62) 70%, rgba(201, 162, 77, 0.3) 100%); }
	.tile:hover .tile__title, .tile:focus-visible .tile__title { color: var(--white); }
	.tile:hover .tile__meta, .tile:focus-visible .tile__meta { color: var(--white); }
	.tile:hover .tile__text, .tile:focus-visible .tile__text { color: #fff; }
	.tile:hover { background: #7a5c18; }
}

/* Activités : changement de couleur au survol */
.activity__icon, .activity__title { transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.activity { transition: border-color 0.25s ease; }
@media (hover: hover) {
	.activity:hover .activity__icon { background: var(--brass); color: var(--ink); transform: scale(1.06); }
	.activity:hover .activity__title { color: var(--brass); }
	.activity:hover { border-bottom-color: var(--brass); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
	.activity:hover { transform: translateX(6px); }
}

/* Cartes « Un bien pour chaque projet de vie » : changement de couleur au survol */
.audience, .audience h3, .audience p, .audience .link, .audience__icon { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
@media (hover: hover) {
	.audience:hover, .audience:focus-within { background: var(--ink); border-color: var(--brass); }
	.audience:hover h3, .audience:focus-within h3 { color: var(--white); }
	.audience:hover p, .audience:focus-within p { color: var(--silver); }
	.audience:hover .audience__icon, .audience:focus-within .audience__icon { background: var(--brass); color: var(--ink); }
	.audience:hover .link, .audience:focus-within .link { color: var(--brass); }
}


/* ==========================================================================
   Carrières, présence internationale, fenêtre d'annonce, vidéos de projet
   ========================================================================== */

/* Menu à 6 entrées : on resserre entre 960 et 1180 px */
@media (min-width: 960px) and (max-width: 1179px) {
	.nav { gap: 14px; }
	.nav__list { gap: 0; }
	.nav__list a { padding: 0 10px; font-size: 0.9375rem; }
	.nav__actions { gap: 10px; }
	.nav__actions .btn { padding: 0 1.1rem; }
}

.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.section--ink .btn--ghost-dark { color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.section--ink .btn--ghost-dark:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.section__head--spaced { margin-top: clamp(40px, 6vw, 72px); }

/* Offres d'emploi */
.offers { display: grid; gap: 16px; }
.offer {
	display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
	padding: clamp(20px, 3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
@media (min-width: 760px) { .offer { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } }
.offer__main { min-width: 0; }
.offer__tags { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 14px; }
.offer__tags li {
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
	border-radius: 999px; background: var(--paper); color: var(--text); font-size: 0.9375rem; font-weight: 600;
}
.offer__tags svg { color: var(--muted); flex: none; }
.offer__title { margin: 0 0 6px; font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.offer__title a { text-decoration: none; }
.offer__title a:hover { text-decoration: underline; }
.offer__text { margin: 0; color: var(--muted); max-width: 62ch; }
.offer .btn { flex: none; }
@media (max-width: 759px) { .offer .btn { width: 100%; } }
.offer--closed { opacity: 0.8; }
@media (hover: hover) {
	.offer:hover { border-color: var(--brass); box-shadow: 0 14px 34px rgba(23, 24, 26, 0.1); }
}
.offers--dark .offer { background: var(--graphite); border-color: var(--line-dark); color: var(--white); }
.offers--dark .offer__tags li { background: rgba(255, 255, 255, 0.09); color: #ececee; }
.offers--dark .offer__tags svg { color: var(--silver); }
.offers--dark .offer__text { color: var(--silver); }
.offers--dark .offer__title a { color: var(--white); }
.offers--dark .offer:hover { border-color: var(--brass); box-shadow: none; }

/* Présence : Guinée et étranger */
.places { display: grid; gap: 16px; }
@media (min-width: 760px) { .places { grid-template-columns: 1fr 1fr; gap: 24px; } }
.place { display: flex; gap: 20px; padding: clamp(22px, 3vw, 34px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.place__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--brass); }
.place__title { margin: 0 0 2px; font-size: 1.5rem; }
.place__tag { margin: 0 0 8px; color: var(--muted); font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.place p:last-child { margin: 0; }
@media (hover: hover) { .place:hover { border-color: var(--brass); box-shadow: 0 14px 34px rgba(23, 24, 26, 0.08); } }

/* Fenêtre d'annonce */
.popup { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.popup[hidden] { display: none; }
.popup__overlay { position: absolute; inset: 0; background: rgba(12, 12, 14, 0.72); }
.popup__box {
	position: relative; width: 100%; max-width: 880px; max-height: calc(100dvh - 32px); overflow-y: auto;
	display: grid; background: var(--white); color: var(--text); border-radius: var(--radius-l);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); outline: none;
}
@media (min-width: 760px) { .popup__box:has(.popup__media) { grid-template-columns: 1fr 1fr; max-width: 980px; } .popup__body { padding: 32px 36px; } }
/* L'affiche s'affiche en entier, sans recadrage */
.popup__media { background: var(--ink); display: flex; align-items: center; justify-content: center; }
.popup__media img { display: block; width: 100%; height: auto; max-height: 46dvh; object-fit: contain; }
@media (min-width: 760px) { .popup__media img { max-height: calc(100dvh - 32px); } }
.popup__body { padding: clamp(24px, 4vw, 44px); align-self: center; }
.popup__badge { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; margin-bottom: 14px; border-radius: 999px; background: var(--ink); color: var(--brass); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.popup__title { font-size: clamp(1.625rem, 3.4vw, 2.25rem); margin-bottom: 12px; }
.popup__text { color: var(--muted); margin-bottom: 22px; }
.popup__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .popup__actions .btn { width: 100%; } }
.popup__close {
	position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--ink); cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.popup__close:hover { background: var(--ink); color: var(--white); }
.popup:not([hidden]) .popup__overlay { animation: ubc-fade 0.25s ease both; }
.popup:not([hidden]) .popup__box { animation: ubc-pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes ubc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ubc-pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .popup:not([hidden]) .popup__overlay, .popup:not([hidden]) .popup__box { animation: none; } }

/* Vidéos du projet */
.vids { margin-top: clamp(36px, 5vw, 56px); }
.vids__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.vids__head .h3 { margin: 0; }
.vids__nav { display: flex; gap: 8px; }
.vids__btn {
	display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); cursor: pointer;
}
.vids__btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.vids__btn:first-child svg { transform: rotate(180deg); }
.vids__track {
	display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
	scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.vids__item { flex: 0 0 min(86%, 560px); scroll-snap-align: start; }
.vid { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); cursor: pointer; }
.vid img, .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vid__play {
	position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; justify-content: center;
	width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--brass); color: var(--ink);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4); transition: transform 0.2s ease, background 0.2s ease;
}
.vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 55%); pointer-events: none; }
.vid__play { z-index: 1; }
.vid:hover .vid__play { transform: scale(1.08); background: var(--brass-hover); }
.vid.is-playing::after { display: none; }

/* Atouts d'un projet */
.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.amenities li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--paper); font-size: 0.9375rem; font-weight: 600; }
.amenities svg { color: var(--brass); flex: none; }
