/*
 * Blocs du catalogue. Les couleurs et polices viennent des réglages du thème
 * (theme.json), avec des valeurs de repli si le thème change.
 */

:root {
	--bn-ink: var(--wp--preset--color--ink, #17212f);
	--bn-paper: var(--wp--preset--color--paper, #f4f6f8);
	--bn-card: var(--wp--preset--color--white, #fff);
	--bn-rubric: var(--wp--preset--color--rubric, #a8261c);
	--bn-rule: var(--wp--preset--color--rule, #c6d9ea);
	--bn-line: var(--wp--preset--color--line, #d5dde5);
	--bn-soft: var(--wp--preset--color--soft, #e8edf2);
	--bn-muted: var(--wp--preset--color--muted, #4b5566);
	--bn-serif: var(--wp--preset--font-family--serif, Spectral, Georgia, serif);
	--bn-sans: var(--wp--preset--font-family--sans, "Atkinson Hyperlegible", system-ui, sans-serif);
	--bn-radius: 4px;
	--bn-lined: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--bn-rule) 31px, var(--bn-rule) 32px);
}

/* Boutons --------------------------------------------------------------- */

.bn-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1.5px solid var(--bn-ink);
	border-radius: var(--bn-radius);
	background: transparent;
	color: var(--bn-ink);
	font-family: var(--bn-sans);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.bn-button:hover { background: var(--bn-ink); color: var(--bn-card); }
.bn-button--primary { background: var(--bn-ink); color: var(--bn-card); }
.bn-button--primary:hover { background: #2b3a50; color: var(--bn-card); border-color: #2b3a50; }
.bn-button--small { min-height: 40px; padding: 0 14px; font-size: .9375rem; }
.bn-button[hidden] { display: none; }
.bn-icon { flex: none; }
.bn-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 24px; }

/* Notice (fiche bristol) ------------------------------------------------- */

.bn-notice {
	background: var(--bn-card);
	border: 1px solid var(--bn-line);
	border-radius: 3px;
}
.bn-notice__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 16px 24px 10px;
	border-bottom: 2px solid var(--bn-rubric);
}
.bn-notice__title {
	font-family: var(--bn-serif);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--bn-ink);
	text-decoration: none;
}
.bn-notice--card .bn-notice__title { font-size: 2rem; line-height: 1.1; }
a.bn-notice__title:hover { text-decoration: underline; text-underline-offset: 4px; }
.bn-notice__number { font-size: .875rem; color: var(--bn-muted); white-space: nowrap; }
.bn-notice__rows {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 18px;
	margin: 0;
	padding: 8px 24px 32px;
	background-image: var(--bn-lined);
	font-size: 1rem;
	line-height: 32px;
}
.bn-notice__rows dt {
	font-family: var(--bn-serif);
	font-style: italic;
	font-size: 1.0625rem;
	color: var(--bn-rubric);
}
.bn-notice__rows dd { margin: 0; }
.bn-notice__empty { margin: 0; padding: 16px 24px 24px; color: var(--bn-muted); }
.bn-notice--card { box-shadow: 0 22px 44px -28px rgba(23, 33, 47, .45); }
.bn-notice--card .bn-notice__head { padding: 22px 28px 12px; }
.bn-notice--card .bn-notice__rows { padding: 8px 28px 32px; }

/* Accès à la ressource -------------------------------------------------- */

.bn-access { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.bn-access .bn-button { min-height: 52px; padding: 0 24px; }
.bn-access__status { margin: 0; font-size: .9375rem; color: var(--bn-muted); }
.bn-access__status--broken { color: var(--bn-rubric); }

/* Fil d'Ariane ----------------------------------------------------------- */

.bn-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.bn-breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: var(--bn-muted); }
.bn-breadcrumbs a { color: var(--bn-muted); }
.bn-breadcrumbs a:hover { color: var(--bn-rubric); }

/* Fiche technique -------------------------------------------------------- */

.bn-sheet__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--bn-rubric);
}
.bn-sheet__title { margin: 0; font-family: var(--bn-serif); font-weight: 500; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem); letter-spacing: -.01em; }
.bn-sheet__note { font-size: .9375rem; color: var(--bn-muted); }
.bn-sheet__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 56px; margin-top: 36px; }
.bn-sheet__label { margin: 32px 0 0; font-family: var(--bn-serif); font-style: italic; font-weight: 400; font-size: 1.25rem; color: var(--bn-rubric); }
.bn-sheet__col > .bn-sheet__label:first-child { margin-top: 0; }
.bn-sheet__col p { margin: 10px 0 0; line-height: 1.7; }
.bn-sheet__figure { font-family: var(--bn-serif); font-size: 2.75rem !important; line-height: 1.1 !important; margin-top: 8px !important; }
.bn-sheet__muted { color: var(--bn-muted); }
.bn-sheet__keywords { font-size: .9375rem; color: var(--bn-muted); }
.bn-bars { margin: 12px 0 0; padding: 0; list-style: none; }
.bn-bars li { padding: 8px 0; }
.bn-bars__row { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.bn-bars__value { color: var(--bn-muted); font-variant-numeric: tabular-nums; }
.bn-bars__track { display: block; margin-top: 6px; height: 6px; background: var(--bn-soft); border-radius: 3px; }
.bn-bars__fill { display: block; height: 6px; background: var(--bn-ink); border-radius: 3px; }
.bn-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.bn-tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--bn-rule); border-radius: 3px; font-size: .9375rem; text-decoration: none; color: var(--bn-ink); }
.bn-tags a:hover { border-color: var(--bn-ink); }
.bn-sheet__legacy { margin-top: 40px; border-top: 1px solid var(--bn-line); padding-top: 16px; }
.bn-sheet__legacy summary { cursor: pointer; font-family: var(--bn-serif); font-size: 1.25rem; min-height: 44px; display: flex; align-items: center; }
.bn-sheet__legacy-body { overflow-x: auto; }
.bn-sheet__legacy-body table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.bn-sheet__legacy-body td, .bn-sheet__legacy-body th { border-bottom: 1px solid var(--bn-line); padding: 8px 12px 8px 0; vertical-align: top; text-align: left; }
.bn-sheet__locked { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; margin-top: 36px; }
.bn-sheet__pitch { flex: 1 1 360px; min-width: 0; }
.bn-sheet__lead { margin: 0; font-family: var(--bn-serif); font-size: 1.375rem; line-height: 1.45; max-width: 30em; }
.bn-sheet__pitch .bn-sheet__muted { margin: 16px 0 0; max-width: 34em; }
.bn-sheet__contents { flex: 1 1 300px; min-width: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--bn-line); }
.bn-sheet__contents li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--bn-line);
	font-family: var(--bn-serif);
	font-style: italic;
	font-size: 1.1875rem;
	color: var(--bn-rubric);
}
.bn-sheet__redacted { width: 30%; max-width: 150px; height: 10px; background: var(--bn-soft); border-radius: 2px; }

/* Code d'accès d'établissement ------------------------------------------- */

.bn-code { max-width: 640px; }
.bn-sheet__pitch .bn-code { margin-top: 28px; padding: 24px 28px; background: var(--bn-paper); border: 1px solid var(--bn-line); border-radius: var(--bn-radius); }
.bn-code__title { margin: 0 0 12px; font-family: var(--bn-serif); font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.bn-code__label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 700; }
.bn-code__row { display: flex; flex-wrap: wrap; gap: 12px; }
.bn-code__input {
	flex: 1 1 220px;
	min-width: 0;
	height: 52px;
	box-sizing: border-box;
	padding: 0 16px;
	border: 1.5px solid var(--bn-ink);
	border-radius: var(--bn-radius);
	background: var(--bn-card);
	color: var(--bn-ink);
	font-family: var(--bn-sans);
	font-size: 1.0625rem;
	letter-spacing: .04em;
}
.bn-code__row .bn-button { min-height: 52px; }
.bn-code__help { margin: 12px 0 0; font-size: .9375rem; color: var(--bn-muted); }
.bn-code__error { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--bn-rubric); background: var(--bn-card); color: var(--bn-rubric); font-weight: 700; }
.bn-code__done { margin: 0; font-family: var(--bn-serif); font-size: 1.25rem; }
.bn-code__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }

/* Ressources proches ---------------------------------------------------- */

.bn-related__title { margin: 0; font-family: var(--bn-serif); font-weight: 500; font-size: 1.875rem; }
.bn-related__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; margin: 24px 0 0; padding: 0; list-style: none; }
.bn-related__list li { padding: 18px 0; border-top: 1px solid var(--bn-ink); }
.bn-related__link { font-family: var(--bn-serif); font-size: 1.375rem; font-weight: 500; text-decoration: none; color: var(--bn-ink); }
.bn-related__link:hover { color: var(--bn-rubric); }
.bn-related__list p { margin: 6px 0 0; color: var(--bn-muted); }

/* Recherche -------------------------------------------------------------- */

.bn-search__label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 700; }
.bn-search__row { display: flex; flex-wrap: wrap; gap: 12px; }
.bn-search__input {
	flex: 1 1 280px;
	min-width: 0;
	height: 52px;
	box-sizing: border-box;
	padding: 0 16px;
	border: 1.5px solid var(--bn-ink);
	border-radius: var(--bn-radius);
	background: var(--bn-card);
	color: var(--bn-ink);
	font-family: var(--bn-sans);
	font-size: 1.0625rem;
}
.bn-search__row .bn-button { min-height: 52px; }
.bn-search--large .bn-search__input, .bn-search--large .bn-button { height: 56px; min-height: 56px; font-size: 1.125rem; }
.bn-search--large { max-width: 640px; }

/* Catalogue -------------------------------------------------------------- */

.bn-catalogue > .bn-search { max-width: 760px; }
.bn-catalogue__layout { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; margin-top: 44px; }
.bn-catalogue__filters { flex: 1 1 260px; min-width: 0; max-width: 340px; }
.bn-catalogue__results { flex: 999 1 560px; min-width: 0; transition: opacity .15s ease; }
.bn-catalogue.is-loading .bn-catalogue__results { opacity: .55; }
.bn-filters__group { margin: 0 0 20px; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--bn-line); min-width: 0; }
.bn-filters__group legend { padding: 0; margin-bottom: 8px; font-family: var(--bn-serif); font-size: 1.25rem; font-weight: 500; }
.bn-filters__option { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 1rem; cursor: pointer; }
.bn-filters__option input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--bn-ink); }
.bn-filters__name { flex: 1 1 auto; }
.bn-filters__count { color: var(--bn-muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
/* « Ouverture constatée depuis » : liste déroulante et mention. */
.bn-filters__select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--bn-muted);
	border-radius: var(--bn-radius);
	background: var(--bn-card);
	color: var(--bn-ink);
	font-family: var(--bn-sans);
	font-size: .9375rem;
}
.bn-filters__note { margin: 8px 0 0; font-size: .875rem; color: var(--bn-muted); }
.bn-premium-box { margin-top: 4px; padding: 20px; background: var(--bn-card); border: 1px solid var(--bn-line); border-radius: 3px; }
.bn-premium-box__title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--bn-serif); font-size: 1.25rem; font-weight: 500; }
.bn-premium-box ul { margin: 12px 0 0; padding: 0 0 0 20px; color: var(--bn-muted); line-height: 1.8; }
.bn-premium-box a { display: inline-block; margin-top: 10px; padding: 8px 0; font-weight: 700; font-size: .9375rem; }
.bn-results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--bn-ink); }
.bn-results-bar__summary { margin: 0; font-family: var(--bn-sans); font-size: 1.0625rem; font-weight: 700; }
.bn-sort { display: flex; align-items: center; gap: 10px; font-size: .9375rem; }
.bn-sort select { height: 44px; padding: 0 12px; border: 1px solid var(--bn-muted); border-radius: var(--bn-radius); background: var(--bn-card); color: var(--bn-ink); font-family: var(--bn-sans); font-size: .9375rem; }
.bn-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.bn-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--bn-rule); border-radius: 18px; background: var(--bn-card); font-size: .9375rem; color: var(--bn-ink); text-decoration: none; }
.bn-chip:hover { border-color: var(--bn-ink); }
.bn-chip__x { font-size: 1.125rem; line-height: 1; color: var(--bn-muted); }
.bn-chips__reset { padding: 8px 4px; font-size: .9375rem; }
.bn-results { margin: 0; padding: 0; list-style: none; }
.bn-result { padding: 26px 0; border-bottom: 1px solid var(--bn-soft); }
.bn-result__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.bn-result__title { margin: 0; font-family: var(--bn-serif); font-size: 1.5625rem; font-weight: 500; line-height: 1.2; }
.bn-result__title a { color: var(--bn-ink); text-decoration: none; }
.bn-result__title a:hover { color: var(--bn-rubric); text-decoration: underline; text-underline-offset: 4px; }
.bn-result__tagline { margin: 6px 0 0; max-width: 46em; }
.bn-result__meta { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 12px 0 0; font-size: .9375rem; color: var(--bn-muted); }
.bn-result__meta div { display: flex; gap: 8px; }
.bn-result__meta dt { font-family: var(--bn-serif); font-style: italic; font-size: 1rem; color: var(--bn-rubric); }
.bn-result__meta dd { margin: 0; }
.bn-badge { font-size: .875rem; color: var(--bn-muted); white-space: nowrap; }
.bn-badge--strong { font-weight: 700; color: var(--bn-ink); border: 1.5px solid var(--bn-ink); border-radius: 3px; padding: 1px 8px; }
.bn-empty { padding: 32px 0; }
.bn-empty p:first-child { margin-top: 0; font-family: var(--bn-serif); font-size: 1.375rem; }
.bn-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.bn-pagination__status { font-size: .9375rem; color: var(--bn-muted); }

/* Index des types -------------------------------------------------------- */

.bn-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.bn-index li { border-bottom: 1px solid var(--bn-soft); }
.bn-index a { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; color: var(--bn-ink); text-decoration: none; }
.bn-index__name { flex: 0 1 auto; font-family: var(--bn-serif); font-size: 1.25rem; }
.bn-index__leader { flex: 1 1 auto; min-width: 16px; border-bottom: 1.5px dotted #9aa6b2; }
.bn-index__count { flex: none; font-size: 1rem; color: var(--bn-muted); font-variant-numeric: tabular-nums; }
.bn-index a:hover .bn-index__name { color: var(--bn-rubric); }

/* Dernières fiches ------------------------------------------------------- */

.bn-latest { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--bn-ink); }
.bn-latest__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px; padding: 20px 0; border-bottom: 1px solid var(--bn-soft); }
.bn-latest__main { flex: 1 1 420px; min-width: 0; }
.bn-latest__title { font-family: var(--bn-serif); font-size: 1.4375rem; font-weight: 500; text-decoration: none; color: var(--bn-ink); }
.bn-latest__title:hover { color: var(--bn-rubric); }
.bn-latest__tagline { margin: 4px 0 0; color: var(--bn-muted); }
.bn-latest__type { flex: 0 1 300px; font-size: .9375rem; color: var(--bn-muted); }
.bn-latest__date { flex: 0 0 150px; font-size: .9375rem; color: var(--bn-muted); text-align: right; }

/* Chercher dans une ressource ------------------------------------------- */

.bn-inside { flex: 0 0 100%; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--bn-line); }
.bn-inside .bn-search__row, .bn-inside__hint { max-width: 640px; }
.bn-inside .bn-search__input, .bn-inside .bn-button { height: 48px; min-height: 48px; }
.bn-inside__hint { margin: 8px 0 0; font-size: .875rem; color: var(--bn-muted); }

/* Recherche dans les bibliothèques -------------------------------------- */

.bn-federated__form { max-width: 760px; }
.bn-federated__choice { margin-top: 16px; }
.bn-federated__choice summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: .9375rem; font-weight: 700; }
.bn-federated__change { margin-left: 10px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; color: var(--bn-muted); }
.bn-federated__choice[open] .bn-federated__change { display: none; }
.bn-federated__choice fieldset { margin: 8px 0 0; padding: 8px 16px; border: 1px solid var(--bn-line); border-radius: 3px; background: var(--bn-card); columns: 2 280px; column-gap: 32px; }
.bn-federated__choice .bn-filters__option { break-inside: avoid; }
.bn-federated__choice .bn-filters__count { font-size: .875rem; }
.bn-federated__wait { margin: 20px 0 0; font-weight: 700; }
.bn-federated__wait[hidden] { display: none; }
.bn-federated__wait::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--bn-rubric); animation: bn-pulse 1s ease-in-out infinite alternate; }
@keyframes bn-pulse { from { opacity: .25; } to { opacity: 1; } }
.bn-federated.is-loading .bn-federated__grid, .bn-federated.is-loading .bn-federated__links { opacity: .5; transition: opacity .15s ease; }
.bn-federated__intro { margin-top: 36px; max-width: 46em; }
.bn-federated__intro > p { margin: 0; font-family: var(--bn-serif); font-size: 1.25rem; line-height: 1.5; }
.bn-federated__sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0 40px; margin: 24px 0 0; padding: 0; list-style: none; }
.bn-federated__sources li { padding: 12px 0; border-top: 1px solid var(--bn-soft); }
.bn-federated__sources strong { font-family: var(--bn-serif); font-size: 1.125rem; font-weight: 500; }
.bn-federated__sources span { display: block; color: var(--bn-muted); font-size: .9375rem; }
.bn-federated__locked { margin-top: 32px; max-width: 46em; }
.bn-federated__locked p:not(.bn-premium-box__title) { margin: 12px 0 0; }
.bn-federated .bn-results-bar { margin-top: 40px; }
.bn-federated__answered { font-weight: 400; color: var(--bn-muted); }
.bn-federated__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; margin-top: 24px; }
.bn-source { display: flex; flex-direction: column; padding: 18px 22px 16px; background: var(--bn-card); border: 1px solid var(--bn-line); border-top: 2px solid var(--bn-rubric); border-radius: 3px; min-width: 0; }
.bn-source--error, .bn-source--busy { border-top-color: var(--bn-line); }
.bn-source__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.bn-source__title { margin: 0; font-family: var(--bn-serif); font-size: 1.375rem; font-weight: 500; }
.bn-source__count { font-size: .875rem; color: var(--bn-muted); font-variant-numeric: tabular-nums; }
.bn-source__desc { margin: 2px 0 0; font-size: .875rem; color: var(--bn-muted); }
.bn-source__results { margin: 12px 0 0; padding: 0; list-style: none; }
.bn-source__results li { padding: 10px 0; border-top: 1px solid var(--bn-soft); }
.bn-source__link { color: var(--bn-ink); text-decoration: none; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.bn-source__link:hover { color: var(--bn-rubric); text-decoration: underline; text-underline-offset: 3px; }
.bn-source__meta { margin: 4px 0 0; font-size: .875rem; color: var(--bn-muted); overflow-wrap: anywhere; }
.bn-source__note { margin: 14px 0 0; color: var(--bn-muted); }
.bn-source__more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: auto 0 0; padding-top: 14px; font-size: .9375rem; }
.bn-source__more a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-weight: 700; }
.bn-source__fiche { font-weight: 400 !important; color: var(--bn-muted); }
.bn-federated__links { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--bn-ink); }
.bn-federated__links-title { margin: 0; font-family: var(--bn-serif); font-size: 1.625rem; font-weight: 500; }
.bn-federated__more summary { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; }
.bn-federated__more summary::-webkit-details-marker { display: none; }
.bn-federated__more summary::after { content: "+"; font-family: var(--bn-sans); font-size: 1.5rem; line-height: 1; color: var(--bn-muted); }
.bn-federated__more[open] summary::after { content: "−"; }
.bn-federated__more summary .bn-federated__links-title { display: inline; }
.bn-federated__links-intro { margin: 6px 0 0; color: var(--bn-muted); }
.bn-federated__deeplinks { margin: 20px 0 0; padding: 0; list-style: none; columns: 3 240px; column-gap: 40px; }
.bn-federated__deeplinks li { break-inside: avoid; border-bottom: 1px solid var(--bn-soft); }
.bn-federated__deeplinks a { display: block; padding: 9px 0; color: var(--bn-ink); text-decoration: none; }
.bn-federated__deeplinks a:hover { color: var(--bn-rubric); text-decoration: underline; text-underline-offset: 3px; }
.bn-catalogue__elsewhere { margin: 14px 0 0; font-size: .9375rem; color: var(--bn-muted); }

@media (max-width: 600px) {
	.bn-latest__date { text-align: left; flex-basis: auto; }
	.bn-notice__head { padding: 14px 18px 8px; }
	.bn-notice__rows { padding: 8px 18px 32px; column-gap: 14px; font-size: .9375rem; }
	.bn-notice--card .bn-notice__title { font-size: 1.625rem; }
	.bn-access .bn-button { width: 100%; }
	.bn-catalogue__filters { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bn-catalogue__results { transition: none; }
	.bn-federated__wait::before { animation: none; }
}

/* Lettre mensuelle ------------------------------------------------------- */

.bn-newsletter { max-width: 640px; }
.bn-newsletter__message { margin: 0 0 20px; padding: 12px 16px; border-left: 3px solid currentColor; font-weight: 700; }
.bn-newsletter__message:empty { display: none; }
.bn-newsletter__message.is-error { border-left-color: var(--bn-rubric); }
.bn-newsletter__form { display: grid; gap: 18px; }
.bn-newsletter__label { display: block; margin-bottom: 8px; padding: 0; font-size: .9375rem; font-weight: 700; }
.bn-newsletter__input {
	width: 100%;
	height: 52px;
	box-sizing: border-box;
	padding: 0 16px;
	border: 1.5px solid var(--bn-ink);
	border-radius: var(--bn-radius);
	background: var(--bn-card);
	color: var(--bn-ink);
	font-family: var(--bn-sans);
	font-size: 1.0625rem;
}
.bn-newsletter__segments { margin: 0; padding: 0; border: 0; min-width: 0; }
.bn-newsletter__option { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 1rem; cursor: pointer; }
.bn-newsletter__option input, .bn-newsletter__consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--bn-rubric); }
.bn-newsletter__consent { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; line-height: 1.5; }
.bn-newsletter__consent input { margin-top: 2px; }
.bn-newsletter__consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bn-newsletter__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bn-newsletter .bn-newsletter__submit { justify-self: start; border-color: currentColor; color: inherit; background: transparent; }
.bn-newsletter .bn-newsletter__submit:hover { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Module modele : groupes de filtres « Pour qui » et « Conditions » -------- */

.bn-facets__group { margin: 0 0 20px; border-bottom: 1px solid var(--bn-line); }
.bn-facets__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	padding-bottom: 8px;
	cursor: pointer;
	list-style: none;
	font-family: var(--bn-serif);
	font-size: 1.375rem;
	font-weight: 500;
}
.bn-facets__summary::-webkit-details-marker { display: none; }
.bn-facets__summary::after { content: "+"; font-family: var(--bn-sans); font-size: 1.5rem; line-height: 1; color: var(--bn-muted); }
.bn-facets__group[open] > .bn-facets__summary::after { content: "−"; }
.bn-facets__summary:focus-visible { outline: 2px solid var(--bn-ink); outline-offset: 2px; }
.bn-facets__body .bn-filters__group:last-child { border-bottom: 0; }
.bn-facets__body .bn-filters__group legend { font-size: 1.125rem; }

/* Module fiabilite : lien non vérifiable automatiquement ------------------ */

.bn-access__status--unverifiable { padding-left: 12px; border-left: 3px solid var(--bn-rule); color: var(--bn-ink); }

/* Volets repliables : un signe « + » ou « − », sur le modèle des facettes ---- */

/* Le display:flex de ces résumés retire le triangle natif : sans signe, le
   formulaire de constat et le signalement ne paraissent pas cliquables. Les
   étapes d'intégration prennent le même signe que les autres volets. */
.bn-integrer__step summary { display: flex; align-items: center; }
.bn-reach__summary,
.bn-problem__summary,
.bn-sheet__legacy summary,
.bn-integrer__step summary {
	justify-content: space-between;
	gap: 16px;
	list-style: none;
}
.bn-reach__summary::-webkit-details-marker,
.bn-problem__summary::-webkit-details-marker,
.bn-sheet__legacy summary::-webkit-details-marker,
.bn-integrer__step summary::-webkit-details-marker { display: none; }
.bn-reach__summary::after,
.bn-problem__summary::after,
.bn-sheet__legacy summary::after,
.bn-integrer__step summary::after { content: "+"; flex: none; font-family: var(--bn-sans); font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--bn-muted); }
details[open] > .bn-reach__summary::after,
details[open] > .bn-problem__summary::after,
.bn-sheet__legacy[open] > summary::after,
.bn-integrer__step[open] > summary::after { content: "−"; }

/* Champs à copier (intégration, liens courts) : contour lisible (6,9:1) et
   fond blanc pour les détacher de la page. */
:is(input, textarea).bn-integrer__input,
input.bn-kit__input { border-color: var(--bn-muted); background: var(--bn-card); }
