/* ==========================================================================
   Brunel Tech — styles du thème
   Charte : bleus du site historique, ocre / vert / marine des vignettes,
   jaune et pervenche du logo.
   ========================================================================== */

:root, body {
	--bt-blue: #0170B9;
	--bt-blue-dark: #015C98;
	--bt-blue-light: #5795BF;
	--bt-navy: #08336D;
	--bt-ochre: #DAA72C;
	--bt-ochre-text: #8A6410;
	--bt-green: #6A9B49;
	--bt-green-text: #4C7A30;
	--bt-periwinkle: #7890E8;
	--bt-yellow: #FFC030;
	--bt-ink: #141A22;
	--bt-text: #3A414D;
	--bt-muted: #5F6672;
	--bt-line: #D9DEE5;
	--bt-line-strong: #C9D0DA;
	--bt-ground: #F4F6F9;
	--bt-white: #FFFFFF;

	--bt-font-display: "Space Grotesk", "Segoe UI", Arial, Helvetica, sans-serif;
	--bt-font-body: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
	--bt-font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

	--bt-radius: 18px;
	--bt-max: 1280px;
	--bt-gutter: 32px;
}

/* Couleurs par univers -------------------------------------------------- */
.is-recherche, .is-style-recherche    { --c: var(--bt-blue);       --ink: #FFFFFF;       --c-text: var(--bt-blue);       --c-deep: #08336D; --c-light: #9CCBF0; }
.is-enseignement, .is-style-enseignement { --c: var(--bt-ochre);      --ink: var(--bt-ink); --c-text: var(--bt-ochre-text); --c-deep: #3D2A05; --c-light: #F5D47E; }
.is-engagements, .is-style-engagements  { --c: var(--bt-green);      --ink: var(--bt-ink); --c-text: var(--bt-green-text); --c-deep: #1E3311; --c-light: #BFDDA4; }
.is-arts, .is-style-arts         { --c: var(--bt-periwinkle); --ink: var(--bt-ink); --c-text: #3F55B0;            --c-deep: #1F2A66; --c-light: #D2DAF8; }
.is-marine, .is-style-marine { --c: var(--bt-navy); --ink: #FFFFFF; --c-text: var(--bt-navy); --c-deep: #041A3A; --c-light: #FFC030; }
.is-encre, .is-style-encre { --c: var(--bt-ink); --ink: #FFFFFF; --c-text: var(--bt-ink); --c-deep: #0B0F14; --c-light: #DCE6F2; }
.is-tout         { --c: var(--bt-blue-dark);  --ink: #FFFFFF;       --c-text: var(--bt-blue-dark);  --c-deep: #08336D; --c-light: #9CCBF0; }

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bt-ground);
	color: var(--bt-ink);
	font-family: var(--bt-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--bt-ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--bt-blue); }
:focus-visible { outline: 3px solid var(--bt-blue); outline-offset: 3px; }
button { font: inherit; }

.bt-container { max-width: var(--bt-max); margin: 0 auto; padding-left: var(--bt-gutter); padding-right: var(--bt-gutter); }
.bt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.bt-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bt-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.bt-skip:focus { left: 8px; color: #fff; }
.bt-icon { display: block; }
.bt-arrow { display: inline-block; transition: transform .25s ease; }
a:hover .bt-arrow { transform: translateX(5px); }

/* Typo partagée */
.bt-kicker {
	margin: 0;
	font-family: var(--bt-font-mono);
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--bt-ink);
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.bt-kicker a { color: inherit; }
.bt-kicker--muted { color: var(--bt-muted); }
.bt-kicker--blue { color: var(--bt-blue); }
.bt-kicker--yellow { color: var(--bt-yellow); }
.bt-h2 {
	margin: 0;
	font-family: var(--bt-font-display);
	font-weight: 700;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.05;
	letter-spacing: -1.5px;
	color: var(--bt-ink);
}
.bt-h2--white { color: #FFFFFF; }
.bt-h3 { font-family: var(--bt-font-display); font-size: 26px; letter-spacing: -.5px; margin: 0 0 20px; color: var(--bt-blue-dark); }

/* Boutons */
.bt-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bt-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 16px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.bt-btn--primary { background: var(--bt-blue); color: #fff; }
.bt-btn--primary:hover { background: var(--bt-blue-dark); color: #fff; }
.bt-btn--ghost { background: #fff; color: var(--bt-blue-dark); border-color: var(--bt-blue); }
.bt-btn--ghost:hover { background: var(--bt-blue); color: #fff; }
.bt-btn--yellow { background: var(--bt-yellow); color: var(--bt-ink); }
.bt-btn--yellow:hover { background: #FFD266; color: var(--bt-ink); }
.bt-link { font-weight: 600; color: var(--bt-blue-dark); align-self: flex-start; }

/* En-tête --------------------------------------------------------------- */
.bt-header-wrap { background: #fff; border-bottom: 3px solid var(--bt-blue); position: relative; z-index: 20; }
.bt-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.bt-brand { display: flex; align-items: center; gap: 12px; font-family: var(--bt-font-display); font-weight: 700; font-size: 22px; letter-spacing: -.5px; color: var(--bt-ink); }
.bt-brand__mark { width: 40px; height: 40px; border-radius: 10px; background: var(--bt-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.bt-brand__logo { width: 40px; height: 40px; object-fit: contain; }
.bt-brand__dot { color: var(--bt-ochre); }

.bt-nav { display: flex; align-items: center; gap: 20px; }
.bt-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; font-size: 15px; font-weight: 500; }
.bt-menu li { position: relative; }
.bt-menu a { display: inline-block; padding: 10px 0; }
.bt-menu .current-menu-item > a,
.bt-menu .current_page_item > a,
.bt-menu .current-menu-ancestor > a { color: var(--bt-blue); box-shadow: inset 0 -2px 0 var(--bt-blue); }
/* Méga-menu : toute l'arborescence d'une rubrique se déploie au survol */
.bt-subtoggle { display: none; }
.bt-header-wrap { position: relative; }
.bt-menu .sub-menu, .bt-menu .children { list-style: none; margin: 0; padding: 0; }
.bt-menu > li.menu-item-has-children > a::after, .bt-menu > li.page_item_has_children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
@media (min-width: 901px) {
	.bt-nav .bt-menu > li { position: static; }
	.bt-nav .bt-menu > li > a { position: relative; }
	.bt-nav .bt-menu > li > a::before { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 26px; }
	.bt-nav .bt-menu > li > .sub-menu, .bt-nav .bt-menu > li > .children {
		position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
		display: none; background: #fff; border-top: 1px solid var(--bt-line);
		box-shadow: 0 24px 48px rgba(8, 51, 109, .16);
		padding: 28px max(32px, calc((100vw - 1280px) / 2 + 32px)) 32px;
		max-height: calc(100vh - 120px); overflow: auto;
		columns: 4 230px; column-gap: 36px;
	}
	.bt-nav .bt-menu > li:hover > .sub-menu, .bt-nav .bt-menu > li:focus-within > .sub-menu, .bt-nav .bt-menu > li.is-open > .sub-menu,
	.bt-nav .bt-menu > li:hover > .children, .bt-nav .bt-menu > li:focus-within > .children, .bt-nav .bt-menu > li.is-open > .children { display: block; }
	.bt-nav .bt-menu > li.is-closed > .sub-menu, .bt-nav .bt-menu > li.is-closed > .children { display: none; }
	/* Niveau 2 : intitulés de colonnes */
	.bt-nav .bt-menu > li > .sub-menu > li, .bt-nav .bt-menu > li > .children > li { break-inside: avoid; padding: 0 0 18px; }
	.bt-nav .bt-menu > li > .sub-menu > li > a, .bt-nav .bt-menu > li > .children > li > a {
		display: block; padding: 0 0 6px; margin-bottom: 6px; border-bottom: 2px solid var(--bt-ochre);
		font-family: var(--bt-font-display); font-weight: 700; font-size: 16px; color: var(--bt-blue-dark);
	}
	.bt-nav .bt-menu > li:nth-child(3n+1) > .sub-menu > li > a { border-bottom-color: var(--bt-blue); }
	.bt-nav .bt-menu > li:nth-child(3n+3) > .sub-menu > li > a { border-bottom-color: var(--bt-green); }
	/* Niveaux 3 et suivants */
	.bt-nav .bt-menu .sub-menu .sub-menu, .bt-nav .bt-menu .children .children { display: block; position: static; padding: 0; }
	.bt-nav .bt-menu .sub-menu .sub-menu a, .bt-nav .bt-menu .children .children a { display: block; padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--bt-text); }
	.bt-nav .bt-menu .sub-menu .sub-menu .sub-menu, .bt-nav .bt-menu .children .children .children { padding-left: 12px; border-left: 2px solid var(--bt-line); margin: 2px 0 6px 2px; }
	.bt-nav .bt-menu .sub-menu .sub-menu .sub-menu a, .bt-nav .bt-menu .children .children .children a { font-size: 13px; color: var(--bt-muted); padding: 3px 0; }
	.bt-nav .bt-menu .sub-menu a:hover, .bt-nav .bt-menu .children a:hover { color: var(--bt-blue); }
}

.bt-search-toggle, .bt-burger {
	width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--bt-line-strong);
	background: transparent; color: var(--bt-blue-dark); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.bt-search-toggle:hover, .bt-burger:hover { background: var(--bt-ground); }
.bt-burger { display: none; }
.bt-search { background: var(--bt-ground); border-top: 1px solid var(--bt-line); padding: 18px 0; }
.bt-search__form, .search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.bt-search__form input[type="search"], .search-form .search-field {
	flex: 1 1 260px; min-height: 48px; padding: 10px 18px; border-radius: 999px;
	border: 1px solid var(--bt-line-strong); background: #fff; font: inherit; color: var(--bt-ink);
}
.search-form .search-submit { min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 0; background: var(--bt-blue); color: #fff; font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
	.bt-burger { display: inline-flex; }
	.bt-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 8px; }
	.bt-nav.is-open { display: flex; }
	.bt-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.bt-menu a { padding: 12px 0; border-bottom: 1px solid var(--bt-line); display: block; }
	.bt-menu .sub-menu, .bt-menu .children { display: none; padding: 0 0 0 16px; }
	.bt-menu .menu-item-has-children > a, .bt-menu .page_item_has_children > a { padding-right: 44px; }
	.bt-menu li.is-open > .sub-menu, .bt-menu li.is-open > .children { display: block; }
	.bt-menu li { position: relative; }
	.bt-subtoggle { display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 0; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--bt-blue-dark); cursor: pointer; }
	.bt-subtoggle::before { content: ""; display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
	.bt-menu li.is-open > .bt-subtoggle::before { transform: rotate(-135deg); }
	.bt-menu > li > a::after { display: none !important; }
	.bt-search-toggle { align-self: flex-start; }
}

/* Hero ------------------------------------------------------------------ */
.bt-hero { display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: center; padding-top: 44px; padding-bottom: 52px; }
.bt-hero__text { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bt-hero__text .bt-kicker { font-size: 11px; display: block; line-height: 1.6; }
.bt-hero__text .bt-pulse { margin-right: 8px; vertical-align: 1px; }
.bt-hero__title { margin: 0; font-family: var(--bt-font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -.8px; }
.bt-hero__first { color: var(--bt-blue-dark); }
.bt-hero__last { color: var(--bt-blue); }
.bt-hero__lead { margin: 0; font-family: var(--bt-font-display); font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--bt-ink); }
.bt-hero__sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--bt-muted); }
.bt-hero .bt-actions { gap: 8px; margin-top: 4px; }
.bt-btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; gap: 8px; }
.bt-pulse { width: 8px; height: 8px; border-radius: 4px; background: var(--bt-green); display: inline-block; animation: bt-pulse 2.4s ease-in-out infinite; }
@keyframes bt-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Les quatre univers en escalier + arborescence déployée à côté */
.bt-universes { flex: 1 1 720px; min-width: 0; display: flex; gap: 28px; align-items: stretch; }
.bt-stairs { flex: 0 0 300px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.bt-step { display: flex; }
.bt-step--1 { margin-left: 24px; }
.bt-step--2 { margin-left: 48px; }
.bt-step--3 { margin-left: 72px; }
.bt-step .bt-node {
	position: relative; flex: 0 0 220px; width: 220px; height: 84px;
	border-radius: 16px; padding: 12px 16px;
	display: flex; flex-direction: column; justify-content: space-between;
	background: var(--c); color: var(--ink); text-decoration: none;
	filter: saturate(.72) brightness(1.06); box-shadow: 0 6px 16px rgba(8, 51, 109, .10);
	transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.bt-step + .bt-step .bt-node::before { content: ""; position: absolute; left: 24px; top: -18px; height: 18px; border-left: 2px dashed var(--bt-blue-light); opacity: .6; }
.bt-step .bt-node:hover { filter: saturate(.9) brightness(1.04); color: var(--ink); }
.bt-step.is-active .bt-node { filter: none; transform: translateX(8px); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c), 0 14px 28px rgba(8, 51, 109, .2); }
.bt-step.is-active .bt-node::after { content: ""; position: absolute; right: -16px; top: 50%; width: 16px; border-top: 2px solid var(--c); }
.bt-step .bt-node:focus-visible { outline: 3px solid var(--bt-ink); outline-offset: 4px; }
.bt-node__top { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; gap: 8px; }
.bt-node__num { font-family: var(--bt-font-mono); font-size: 11px; letter-spacing: 1px; opacity: .85; }
.bt-node__label { font-family: var(--bt-font-display); font-weight: 700; font-size: 20px; line-height: 1.05; }
.bt-node__go { display: inline-block; opacity: 0; transform: translateX(-4px); transition: opacity .25s ease, transform .25s ease; }
.bt-step.is-active .bt-node__go, .bt-node:hover .bt-node__go, .bt-node:focus-visible .bt-node__go { opacity: 1; transform: none; }

.bt-trees { flex: 1 1 360px; min-width: 0; display: flex; }
.bt-tree { flex: 1; display: flex; min-height: 0; flex-direction: column; background: #fff; border: 1px solid var(--bt-line); border-top: 4px solid var(--c); border-radius: var(--bt-radius); box-shadow: 0 12px 32px rgba(1, 92, 152, .08); overflow: hidden; animation: bt-fade .3s ease; max-height: 470px; }
.bt-tree[hidden] { display: none; }
@keyframes bt-fade { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.bt-tree__head { padding: 16px 22px 12px; border-bottom: 1px solid var(--bt-line); display: flex; flex-direction: column; gap: 4px; }
.bt-tree__title { font-family: var(--bt-font-display); font-weight: 700; font-size: 20px; color: var(--c-text); }
.bt-tree__title:hover { color: var(--bt-ink); }
.bt-tree__text { margin: 0; font-size: 13px; line-height: 1.45; color: var(--bt-muted); }
.bt-tree__body { padding: 14px 22px 18px; overflow: auto; }
.bt-tree__list { list-style: none; margin: 0; padding: 0; }
.bt-tree__list--l1 { columns: 2 200px; column-gap: 28px; }
.bt-tree__list--l1 > .bt-tree__item { break-inside: avoid; padding: 6px 0 8px; }
.bt-tree__list--l1 > .bt-tree__item > a, .bt-tree__list--l1 > .bt-tree__item > span { font-weight: 600; font-size: 14px; color: var(--bt-ink); display: inline-flex; gap: 8px; align-items: baseline; }
.bt-tree__list--l1 > .bt-tree__item > a::before, .bt-tree__list--l1 > .bt-tree__item > span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; transform: translateY(-1px); }
.bt-tree__list--l2 { margin: 4px 0 0 3px; padding-left: 13px; border-left: 2px solid var(--c-light, var(--bt-line)); }
.bt-tree__list--l2 a, .bt-tree__list--l2 span { font-size: 13px; color: var(--bt-text); display: inline-block; padding: 2px 0; }
.bt-tree__list--l3 { margin: 0 0 2px 2px; padding-left: 12px; }
.bt-tree__list--l3 a, .bt-tree__list--l3 span, .bt-tree__list--l4 a { font-size: 12px; color: var(--bt-muted); }
.bt-tree__list--l3 li { display: flex; gap: 6px; }
.bt-tree__list--l3 li::before { content: "–"; color: var(--bt-line-strong); flex: none; font-size: 12px; line-height: 1.9; }
.bt-tree__list a:hover { color: var(--bt-blue); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1100px) {
	.bt-universes { flex-direction: column; }
	.bt-stairs { flex: none; }
	.bt-tree { max-height: none; }
}
@media (max-width: 760px) {
	.bt-stairs { gap: 12px; }
	.bt-step--1 { margin-left: 12px; }
	.bt-step--2 { margin-left: 24px; }
	.bt-step--3 { margin-left: 36px; }
	.bt-step .bt-node { flex: 1 1 auto; width: auto; max-width: 260px; height: 76px; }
	.bt-step.is-active .bt-node { transform: none; }
	.bt-step.is-active .bt-node::after { display: none; }
	.bt-step + .bt-step .bt-node::before { top: -14px; height: 14px; }
}

/* Bandeau défilant ------------------------------------------------------ */
.bt-marquee { background: var(--bt-blue-dark); overflow: hidden; padding: 18px 0; }
.bt-marquee__track { display: flex; gap: 48px; width: max-content; font-family: var(--bt-font-display); font-size: 22px; color: #fff; white-space: nowrap; animation: bt-slide 40s linear infinite; }
.bt-marquee__star { color: var(--bt-yellow); }
.bt-marquee__star.is-alt { color: #9FB2F0; }
@keyframes bt-slide { to { transform: translateX(-50%); } }

/* Blocs univers --------------------------------------------------------- */
.bt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .bt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bt-tiles { grid-template-columns: minmax(0, 1fr); } }
.bt-tile {
	background: var(--c); color: var(--ink);
	padding: 44px 36px; min-height: 280px;
	display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
	transition: filter .25s ease;
	scroll-margin-top: 24px;
	position: relative; overflow: hidden; isolation: isolate;
}
.bt-tile__bg { position: absolute; inset: 0; z-index: -1; opacity: .32; transition: opacity .35s ease, transform .6s ease; }
.bt-tile__bg img { width: 100%; height: 100%; object-fit: cover; inset: 0; }
.bt-tile:hover .bt-tile__bg { opacity: .42; transform: scale(1.04); }
.bt-tile:hover { color: var(--ink); filter: brightness(1.08); }
.bt-tile__top { display: flex; justify-content: space-between; align-items: flex-start; }
.bt-tile__num { font-family: var(--bt-font-mono); font-size: 13px; letter-spacing: 1px; }
.bt-tile__bottom { display: flex; flex-direction: column; gap: 10px; }
.bt-tile__title { font-family: var(--bt-font-display); font-size: clamp(24px, 2.3vw, 34px); overflow-wrap: normal; hyphens: manual; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.bt-tile__text { font-size: 15px; line-height: 1.45; opacity: .9; }
.bt-tile__more { font-size: 15px; font-weight: 600; margin-top: 6px; }

/* Sections -------------------------------------------------------------- */
.bt-section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 36px; }
.bt-section__head { display: flex; flex-direction: column; gap: 10px; }
.bt-section__head--split { flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.bt-section__head--split > div:first-child { display: flex; flex-direction: column; gap: 10px; }

/* Filtres */
.bt-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-filter {
	min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer;
	background: #fff; color: var(--bt-ink); border: 1px solid var(--bt-line-strong);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.bt-filter:hover { border-color: var(--c); }
.bt-filter.is-active { background: var(--c); color: var(--ink); border-color: var(--c); }

/* Cartes */
.bt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.bt-card {
	background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius); overflow: hidden;
	display: flex; flex-direction: column; min-height: 260px; color: var(--bt-ink);
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.bt-card:hover { transform: translateY(-4px); border-color: var(--bt-blue); box-shadow: 0 10px 30px rgba(1, 92, 152, .12); color: var(--bt-ink); }
.bt-card[hidden] { display: none; }
.bt-card__img { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-light, var(--bt-ground)); }
.bt-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bt-card:hover .bt-card__img img { transform: scale(1.04); }
.bt-card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bt-card__row .bt-icon { flex: none; opacity: .9; }
.bt-card__head { background: var(--c); color: var(--ink); padding: 22px 26px; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.bt-card__domain { font-family: var(--bt-font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.bt-card__title { font-family: var(--bt-font-display); font-size: 23px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
.bt-card__body { padding: 20px 26px 24px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.bt-card__text { font-size: 15px; line-height: 1.5; color: var(--bt-muted); flex-grow: 1; }
.bt-card__more { font-size: 14px; font-weight: 600; color: var(--bt-blue-dark); }
.bt-cards--compact .bt-card { min-height: 0; }

/* Bichromie (images stylisées dans la couleur de l'univers) */
.bt-duo { position: relative; isolation: isolate; }
.bt-duo img { filter: grayscale(1) contrast(1.12) brightness(1.04); position: relative; z-index: 0; }
.bt-duo::before, .bt-duo::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.bt-duo::before { background: var(--c-deep, #08336D); mix-blend-mode: lighten; z-index: 1; }
.bt-duo::after { background: var(--c-light, #9CCBF0); mix-blend-mode: multiply; z-index: 2; }
.bt-card__img.bt-duo img, .bt-tile__bg.bt-duo img { position: absolute; }
.bt-tile .bt-tile__bg { position: absolute; }

/* Logos */
.bt-logo { display: flex; align-items: center; height: 64px; }
.bt-logo img { display: block; max-height: 56px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
.bt-logo--square { width: 72px; height: 72px; padding: 8px; background: #fff; border-radius: 14px; justify-content: center; box-shadow: 0 6px 16px rgba(20, 26, 34, .12); }
.bt-logo--square img { max-width: 100%; max-height: 100%; }

/* Bandes de couleur */
/* La hauteur des bandes se règle sur la bande elle-même (Dimensions › Marges internes / Hauteur minimale). */
.bt-band { padding-top: 88px; padding-bottom: 88px; box-sizing: border-box; }
.bt-band > .bt-section, .bt-band > .wp-block-group__inner-container > .bt-section { padding-top: 0; padding-bottom: 0; }
.bt-band[style*="min-height"] { display: flex; flex-direction: column; justify-content: center; }
.bt-band--green { background: var(--bt-green); }
.bt-band--ochre { background: var(--bt-ochre); }

.bt-engage { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.bt-engage__item {
	background: #fff; border-radius: var(--bt-radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; color: var(--bt-ink);
	transition: transform .25s ease, box-shadow .25s ease;
}
a.bt-engage__item:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(20, 26, 34, .18); color: var(--bt-ink); }
.bt-engage__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.bt-engage__top:empty { display: none; }
.bt-engage__icon { color: var(--bt-green-text); margin-left: auto; }
.bt-engage__kicker { font-family: var(--bt-font-mono); font-size: 12px; color: var(--bt-green-text); text-transform: uppercase; letter-spacing: 1px; }
.bt-engage__title { font-family: var(--bt-font-display); font-size: 22px; font-weight: 700; line-height: 1.2; }
.bt-engage__text { font-size: 15px; color: var(--bt-muted); line-height: 1.5; }

.bt-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--bt-navy); }
.bt-timeline li { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.bt-timeline__dot { width: 14px; height: 14px; border-radius: 7px; background: var(--bt-navy); box-shadow: 0 0 0 4px var(--bt-ochre); margin-top: -36px; }
.bt-timeline__media { display: flex; margin-top: 4px; }
.bt-timeline__icon { width: 72px; height: 72px; border-radius: 14px; background: var(--bt-navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.bt-timeline__when { font-family: var(--bt-font-mono); font-size: 14px; color: var(--bt-navy); }
.bt-timeline__title { font-family: var(--bt-font-display); font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--bt-ink); }
.bt-timeline a.bt-timeline__title:hover { color: var(--bt-navy); text-decoration: underline; }

.bt-cta {
	background: var(--bt-blue-dark); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 64px);
	display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.bt-cta__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bt-cta__text .bt-h2 { font-size: clamp(30px, 3.6vw, 48px); }
.bt-cta__text p { margin: 0; font-size: 17px; line-height: 1.5; max-width: 560px; color: #E3EEF8; }

/* Pages intérieures ----------------------------------------------------- */
.bt-page-hero { background: var(--bt-blue-dark); color: #fff; }
.bt-page-hero__inner { padding-top: 22px; padding-bottom: 26px; display: flex; flex-direction: column; gap: 8px; }
.bt-page-hero__title { margin: 0; font-family: var(--bt-font-display); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -1px; max-width: 980px; }
.bt-page-hero__lead { margin: 0; font-size: 16px; color: #E3EEF8; max-width: 760px; }
.bt-page-hero .bt-kicker { font-size: 12px; }
.bt-page-hero__search { max-width: 640px; }

.bt-entry { padding-top: 32px; padding-bottom: 72px; }
.bt-entry__thumb { margin: 0 0 40px; }
.bt-entry__thumb img { display: block; width: 100%; border-radius: var(--bt-radius); }
.bt-entry__content {
	background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius);
	padding: clamp(24px, 4vw, 56px); font-size: 17px; line-height: 1.7; color: var(--bt-text);
}
.bt-entry__content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.bt-entry__content > .alignwide { max-width: 1100px; }
.bt-entry__content > .alignfull { max-width: none; }
.bt-entry__content h2, .bt-entry__content h3, .bt-entry__content h4, .bt-entry__content h5, .bt-entry__content h6 {
	font-family: var(--bt-font-display); color: var(--bt-blue-dark); line-height: 1.2; letter-spacing: -.4px; margin-top: 1.6em; margin-bottom: .6em;
}
.bt-entry__content h2 { font-size: 32px; }
.bt-entry__content h3 { font-size: 24px; }
.bt-entry__content h4 { font-size: 20px; }
.bt-entry__content a { color: var(--bt-blue); text-decoration: underline; text-underline-offset: 3px; }
.bt-entry__content a:hover { color: var(--bt-blue-dark); }
.bt-entry__content img { border-radius: 12px; }
.bt-entry__content blockquote { border-left: 0; margin-left: auto; padding: 20px 28px; background: var(--bt-ground); border-radius: 14px; font-family: var(--bt-font-display); font-size: 20px; color: var(--bt-ink); }
.bt-entry__content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.bt-entry__content th, .bt-entry__content td { border: 1px solid var(--bt-line); padding: 10px 12px; text-align: left; }
.bt-entry__content th { background: var(--bt-ground); }
.bt-entry__content .wp-block-button__link { background: var(--bt-blue); color: #fff; border-radius: 999px; text-decoration: none; padding: 12px 24px; }
.bt-entry__content hr { border: 0; border-top: 1px solid var(--bt-line); margin: 2.4em auto; }
.bt-entry__content iframe { max-width: 100%; }

.bt-subpages { margin-top: 48px; }
.post-navigation { margin-top: 32px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.post-navigation a { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--bt-line); border-radius: 14px; padding: 18px 22px; font-family: var(--bt-font-display); font-weight: 700; }
.bt-pages { margin-top: 24px; display: flex; gap: 8px; }

.bt-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--bt-line-strong); background: #fff; font-weight: 600; }
.bt-pagination .page-numbers.current { background: var(--bt-blue); color: #fff; border-color: var(--bt-blue); }
.bt-empty { background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }

/* Commentaires (minimal) */
.comments-area { margin-top: 40px; background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius); padding: 32px; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid var(--bt-line-strong); border-radius: 10px; padding: 10px 12px; font: inherit; }
.comment-form .submit { width: auto; background: var(--bt-blue); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 600; cursor: pointer; }

/* Pied de page ---------------------------------------------------------- */
.bt-footer { background: var(--bt-navy); color: #DCE6F2; font-size: 14px; }
.bt-footer__inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.bt-footer .bt-menu { font-size: 14px; gap: 6px 24px; }
.bt-footer a { color: #fff; }
.bt-footer a:hover { color: var(--bt-yellow); }

/* ==========================================================================
   Accueil en blocs (même rendu sur le site et dans l'éditeur)
   ========================================================================== */
.bt-home { overflow-x: clip; }
/* WordPress ajoute une enveloppe interne aux groupes des thèmes classiques : on la rend transparente. */
[class*="bt-"] > .wp-block-group__inner-container { display: contents; }
.bt-hb > *, .bt-hb .wp-block-group > *, .bt-hb p, .bt-hb h2, .bt-hb h3, .bt-hb figure { margin-top: 0; margin-bottom: 0; }
.bt-hb .wp-block-group > * + * { margin-block-start: 0; }
.bt-hb a { text-decoration: none; }
.wp-block-bruneltech-hero, .bt-home > .bt-marquee { width: 100%; }
.bt-tiles.alignfull, .bt-band.alignfull { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.bt-section.bt-container { margin-left: auto; margin-right: auto; }

/* Blocs univers */
.bt-tile .bt-ico { width: 44px; height: 44px !important; }
.bt-tile__title { font-family: var(--bt-font-display); font-size: clamp(24px, 2.3vw, 34px); overflow-wrap: normal; hyphens: manual; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.bt-tile__title a, .bt-tile__title a:hover { color: var(--ink); }
.bt-tile__num, .bt-tile__text, .bt-tile__more { color: var(--ink); }
figure.bt-tile__bg { position: absolute; inset: 0; z-index: -1; margin: 0; opacity: .32; }
figure.bt-tile__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Cartes projets */
.bt-card { position: relative; }
.bt-card__title a, .bt-card__title a:hover { color: inherit; }
.bt-card__head > .bt-card__title { margin: 0; }
figure.bt-card__img { margin: 0; }
.bt-card figure.bt-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bt-card__row .bt-ico { color: var(--ink); opacity: .9; }
.bt-card__more { margin: 0; }
.bt-section__titles { display: flex; flex-direction: column; gap: 10px; }

/* Engagements */
.bt-engage__item { position: relative; }
.bt-engage__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bt-engage__top .bt-ico { color: var(--bt-green-text); margin-left: auto !important; width: 26px; height: 26px !important; }
.bt-engage__title a, .bt-engage__title a:hover { color: var(--bt-ink); }
figure.bt-logo { margin: 0; height: 64px; display: flex; align-items: center; }
figure.bt-logo img { max-height: 56px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
figure.bt-logo--square { width: 72px; height: 72px; padding: 8px; background: #fff; border-radius: 14px; justify-content: center; box-shadow: 0 6px 16px rgba(20, 26, 34, .12); }
figure.bt-logo--square img { max-width: 100%; max-height: 100%; }

/* Parcours */
.bt-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--bt-navy); }
.bt-tl { position: relative; padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.bt-tl::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 7px; background: var(--bt-navy); box-shadow: 0 0 0 4px var(--bt-ochre); }
.bt-tl .bt-tl__icon { width: 72px; height: 72px !important; border-radius: 14px; background-color: var(--bt-navy); -webkit-mask: none; mask: none; position: relative; }
.bt-tl .bt-tl__icon::after { content: ""; position: absolute; inset: 20px; background: #fff; -webkit-mask: var(--bt-ico) center / contain no-repeat; mask: var(--bt-ico) center / contain no-repeat; }
.bt-timeline__title a, .bt-timeline__title a:hover { color: var(--bt-ink); }
.bt-tl > .bt-timeline__title { font-family: var(--bt-font-display); font-size: 19px; font-weight: 700; line-height: 1.25; }

/* Conférences */
.bt-cta__lead { margin: 0; font-size: 17px; line-height: 1.5; max-width: 560px; color: #E3EEF8; }
.bt-cta .wp-block-buttons { margin: 0; }
.wp-block-button.bt-btn--yellow .wp-block-button__link {
	background: var(--bt-yellow); color: var(--bt-ink); border-radius: 999px; padding: 16px 28px;
	font-weight: 600; font-size: 16px; text-decoration: none; border: 0;
}
.wp-block-button.bt-btn--yellow .wp-block-button__link:hover { background: #FFD266; color: var(--bt-ink); }

/* Liens étendus à tout le bloc — uniquement sur le site public */
.bt-front .bt-tile, .bt-front .bt-card, .bt-front .bt-engage__item { cursor: pointer; }
.bt-front .bt-tile__title a::after,
.bt-front .bt-card__title a::after,
.bt-front .bt-engage__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.bt-front .bt-tile:hover .bt-tile__more, .bt-front .bt-card:hover .bt-card__more { text-decoration: underline; text-underline-offset: 3px; }
.bt-front .bt-card:hover .bt-card__img img { transform: scale(1.04); }
.bt-card .bt-card__img img { transition: transform .5s ease; }
.bt-front a.bt-tile:hover, .bt-front .bt-tile:hover { filter: brightness(1.06); }


/* ==========================================================================
   Page Conférences (et pages construites avec les blocs du thème)
   ========================================================================== */
.bt-home--page { padding-bottom: 0; }
.bt-conf-intro { display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: center; padding-top: 44px; padding-bottom: 52px; }
.bt-conf-intro__text { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bt-conf-intro__text .bt-kicker { font-size: 11px; display: block; }
.bt-conf-intro__actions { gap: 8px; margin-top: 4px !important; }
.wp-block-button.bt-btn--blue .wp-block-button__link { background: var(--bt-blue); color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600; border: 1px solid var(--bt-blue); text-decoration: none; }
.wp-block-button.bt-btn--blue .wp-block-button__link:hover { background: var(--bt-blue-dark); }
.wp-block-button.bt-btn--outline .wp-block-button__link { background: #fff; color: var(--bt-blue-dark); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600; border: 1px solid var(--bt-blue); text-decoration: none; }
.wp-block-button.bt-btn--outline .wp-block-button__link:hover { background: var(--bt-blue); color: #fff; }

.bt-conf-cycles { flex: 1 1 720px; min-width: 0; display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.bt-cycle-stairs { flex: 0 0 320px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.bt-cycle-node {
	position: relative; width: 260px; min-height: 84px; box-sizing: border-box; border-radius: 16px; padding: 12px 16px; gap: 8px;
	display: flex; flex-direction: column; justify-content: space-between;
	background: var(--c); color: var(--ink);
	filter: saturate(.72) brightness(1.06); box-shadow: 0 6px 16px rgba(8, 51, 109, .10);
	transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.bt-cycle-node + .bt-cycle-node { margin-left: 32px !important; }
.bt-cycle-node + .bt-cycle-node::before { content: ""; position: absolute; left: 24px; top: -18px; height: 18px; border-left: 2px dashed var(--bt-blue-light); opacity: .6; }
.bt-cycle-node.is-active, .editor-styles-wrapper .bt-cycle-node:first-child { filter: none; transform: translateX(8px); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c), 0 14px 28px rgba(8, 51, 109, .2); }
.bt-cycle-node__top { display: flex; justify-content: space-between; align-items: flex-start; }
.bt-cycle-node__num { font-family: var(--bt-font-mono); font-size: 11px; letter-spacing: 1px; opacity: .85; }
.bt-cycle-node .bt-ico { width: 22px; height: 22px !important; }
.bt-cycle-node__title { font-family: var(--bt-font-display); font-weight: 700; font-size: 19px; line-height: 1.1; }
.bt-cycle-node__title a, .bt-cycle-node__title a:hover { color: var(--ink); }
.bt-front .bt-cycle-node__title a::after { content: ""; position: absolute; inset: 0; }

.bt-cycle-panels { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bt-cycle-panel { background: #fff; border: 1px solid var(--bt-line); border-top: 4px solid var(--c); border-radius: var(--bt-radius); box-shadow: 0 12px 32px rgba(1, 92, 152, .08); overflow: hidden; display: flex; flex-direction: column; }
.bt-front .bt-cycle-panels.bt-js .bt-cycle-panel { display: none; }
.bt-front .bt-cycle-panels.bt-js .bt-cycle-panel.is-shown { display: flex; animation: bt-fade .3s ease; }
.bt-front .bt-cycle-panels:not(.bt-js) .bt-cycle-panel + .bt-cycle-panel { display: none; }
.bt-cycle-panel__head { padding: 16px 22px 12px; border-bottom: 1px solid var(--bt-line); display: flex; flex-direction: column; gap: 4px; }
.bt-cycle-panel__title { font-family: var(--bt-font-display); font-weight: 700; font-size: 20px; color: var(--c-text); }
.bt-cycle-panel__text { font-size: 13px; line-height: 1.45; color: var(--bt-muted); }
ul.bt-cycle-list { list-style: none; margin: 0 !important; padding: 14px 22px 18px !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 28px; }
ul.bt-cycle-list li { display: flex; gap: 10px; align-items: baseline; margin: 0; }
ul.bt-cycle-list li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--c); transform: translateY(-1px); }
ul.bt-cycle-list a { font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--bt-ink); text-decoration: none; }
ul.bt-cycle-list a:hover { color: var(--bt-blue); }
.bt-card[id^="conf-"] { scroll-margin-top: 24px; }
.bt-tl > .bt-timeline__title { font-family: var(--bt-font-display); font-size: 19px; font-weight: 700; line-height: 1.25; }

@media (max-width: 760px) {
	.bt-cycle-stairs { flex: 1 1 auto; }
	.bt-cycle-node + .bt-cycle-node { margin-left: 16px !important; }
	.bt-cycle-node.is-active { transform: none; }
}

/* Mobile ---------------------------------------------------------------- */
@media (max-width: 640px) {
	:root { --bt-gutter: 16px; }
	.bt-hero { padding-top: 36px; padding-bottom: 48px; gap: 36px; }
	.bt-hero__title { letter-spacing: -2px; }
	.bt-section { padding-top: 64px; padding-bottom: 64px; }
	.bt-band { padding-top: 64px; padding-bottom: 64px; }
	.bt-tile { min-height: 220px; padding: 32px 24px; }
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
	.bt-sub, .bt-step .bt-node { transition: none; }
	html { scroll-behavior: auto; }
	.bt-marquee__track, .bt-pulse { animation: none; }
	.bt-card, .bt-tile, .bt-arrow { transition: none; }
}
