/* ==========================================================================
   Blog Numérique — socle (chargé partout)

   Organisation (une section = un fichier si le thème grossit) :
     1. Tokens          → seule source des valeurs de design
     2. Reset & base
     3. Layout   (l-)   → gabarit, conteneur, grille contenu/barre latérale
     4. Composants (c-) → BEM : .c-bloc__element--modificateur
     5. Utilitaires (u-)
     6. États   (is-/has-) posés par JS ou PHP

   Pas de @layer : les styles non stratifiés (plugins, cœur WP) l'emporteraient
   toujours sur ceux du thème, ce qui rendrait les surcharges imprévisibles.
   Points de rupture (mobile-first) : 640px, 921px (= Astra), 1200px.
   ========================================================================== */

/* 1. Tokens
   ------------------------------------------------------------------------ */

:root {
	/* Couleurs — définies dans theme.json (éditeur + front), alias sémantiques ici. */
	--bn-color-accent:        var(--wp--preset--color--accent, #dc3545);        /* 4,53:1 sur blanc */
	--bn-color-accent-strong: var(--wp--preset--color--accent-strong, #c62828); /* 5,62:1 : liens, survols */
	--bn-color-ink:           var(--wp--preset--color--ink, #1f2328);
	--bn-color-text:          var(--wp--preset--color--text, #334155);
	--bn-color-muted:         var(--wp--preset--color--muted, #646c7a);
	--bn-color-border:        var(--wp--preset--color--border, #e8eaed);
	--bn-color-border-strong: #d8dee6;
	--bn-color-surface:       var(--wp--preset--color--surface, #fff);
	--bn-color-soft:          var(--wp--preset--color--soft, #f5f6f8);
	--bn-color-canvas:        var(--wp--preset--color--canvas, #ededef);
	--bn-color-header:        var(--wp--preset--color--header, #333);
	--bn-color-nav:           var(--wp--preset--color--nav, #f0f5fa);
	--bn-color-nav-active:    #d1d5db;
	--bn-color-focus:         var(--bn-color-accent-strong);

	/* Typographie — pile système (aucune police à télécharger). */
	--bn-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--bn-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--bn-text-xs:   0.8125rem; /* 13px — méta (Astra) */
	--bn-text-sm:   0.875rem;  /* 14px */
	--bn-text-base: 1rem;      /* 16px */
	--bn-text-lg:   1.125rem;
	--bn-h1: clamp(1.75rem, 1.45rem + 1.3vw, 2.25rem);  /* 28 → 36px */
	--bn-h2: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);   /* 24 → 30px */
	--bn-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);   /* 20 → 24px */
	--bn-h4: 1.25rem;
	--bn-h5: 1.125rem;
	--bn-h6: 1rem;

	--bn-leading:       1.65;
	--bn-leading-tight: 1.25;
	--bn-weight-bold:   700;
	--bn-weight-semi:   600;

	/* Espacements — échelle 4px. */
	--bn-space-1: 0.25rem;
	--bn-space-2: 0.5rem;
	--bn-space-3: 0.75rem;
	--bn-space-4: 1rem;
	--bn-space-5: 1.5rem;
	--bn-space-6: 2rem;
	--bn-space-7: 3rem;
	--bn-space-8: 4rem;
	--bn-gap: 18px; /* = --bnb-gap */

	/* Formes — alignées sur BN Blocs. */
	--bn-radius-sm:   8px;
	--bn-radius-md:   12px;
	--bn-radius-lg:   14px; /* = --bnb-radius */
	--bn-radius-pill: 999px;

	--bn-shadow-sm: 0 1px 3px rgb(15 23 42 / 0.04);
	--bn-shadow-md: 0 8px 20px rgb(15 23 42 / 0.08);  /* = survol .bnb-card */
	--bn-shadow-lg: 0 10px 24px rgb(15 23 42 / 0.09); /* = survol .bnb-hero */

	/* Mouvement. */
	--bn-ease:       cubic-bezier(0.2, 0.7, 0.2, 1);
	--bn-dur-fast:   0.18s;
	--bn-dur:        0.25s;
	--bn-dur-slow:   0.35s;
	--bn-lift:       translateY(-2px);

	/* Gabarit. */
	--bn-container: 1200px;
	--bn-gutter:    clamp(16px, 4vw, 20px);
	--bn-sidebar:   300px;
	--bn-measure:   750px;
	--bn-panel-pad: clamp(1.25rem, 0.8rem + 2.2vw, 2.5rem);
}

/* 2. Reset & base
   ------------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: var(--bn-space-5);
}

body {
	margin: 0;
	background: var(--bn-color-canvas);
	color: var(--bn-color-text);
	font-family: var(--bn-font-sans);
	font-size: var(--bn-text-base);
	line-height: var(--bn-leading);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--bn-space-3);
	color: var(--bn-color-ink);
	font-weight: var(--bn-weight-semi);
	line-height: var(--bn-leading-tight);
	text-wrap: balance;
}

h1 { font-size: var(--bn-h1); font-weight: var(--bn-weight-bold); }
h2 { font-size: var(--bn-h2); }
h3 { font-size: var(--bn-h3); }
h4 { font-size: var(--bn-h4); }
h5 { font-size: var(--bn-h5); }
h6 { font-size: var(--bn-h6); }

p,
ul,
ol,
dl,
figure,
blockquote,
pre,
table {
	margin: 0 0 var(--bn-space-4);
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: var(--bn-color-accent-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--bn-dur-fast) ease, text-decoration-color var(--bn-dur-fast) ease;
}

a:hover {
	color: var(--bn-color-ink);
}

:focus-visible {
	outline: 2px solid var(--bn-color-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--bn-color-border-strong);
	border-radius: var(--bn-radius-sm);
	background: var(--bn-color-surface);
	/* Fond blanc → texte sombre, même dans un conteneur clair sur foncé
	   (sinon le texte hérite du blanc du bandeau et devient invisible). */
	color: var(--bn-color-ink);
	transition: border-color var(--bn-dur-fast) ease, box-shadow var(--bn-dur-fast) ease;
}

::placeholder {
	color: var(--bn-color-muted); /* 5,3:1 sur blanc */
	opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--bn-color-accent);
	box-shadow: 0 0 0 3px rgb(220 53 69 / 0.12);
	outline: none;
}

::selection {
	background: rgb(220 53 69 / 0.15);
}

/* 3. Layout
   ------------------------------------------------------------------------ */

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

.l-site {
	padding-block: var(--bn-space-5) var(--bn-space-7);
}

.l-layout {
	display: grid;
	gap: var(--bn-space-5);
	align-items: start;
}

.l-content {
	min-width: 0; /* évite le débordement des tableaux/code dans la grille */
	display: grid;
	gap: var(--bn-space-5);
}

/* Même règle un niveau plus bas : un panneau (article, commentaires…) est lui aussi
   un élément de grille et refuserait sinon de rétrécir sous son contenu le plus large
   (chemin de registre dans un bloc de code, tableau…). Le bloc défile alors seul. */
.l-content > * {
	min-width: 0;
}

.l-content:focus {
	outline: none;
}

@media (min-width: 921px) {
	.has-sidebar .l-layout {
		grid-template-columns: minmax(0, 1fr) var(--bn-sidebar);
		gap: var(--bn-space-6);
	}
}

/* 4. Composants
   ------------------------------------------------------------------------ */

/* Lien d'évitement */

.c-skip-link {
	position: absolute;
	top: var(--bn-space-2);
	left: var(--bn-space-2);
	z-index: 100;
	padding: var(--bn-space-2) var(--bn-space-4);
	border-radius: var(--bn-radius-sm);
	background: var(--bn-color-surface);
	color: var(--bn-color-ink);
	font-weight: var(--bn-weight-semi);
	transform: translateY(-200%);
}

.c-skip-link:focus {
	transform: none;
}

/* Icônes */

.c-icon {
	flex: none;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
}

.c-icon-button {
	display: inline-grid;
	place-items: center;
	width: 44px;  /* cible tactile WCAG 2.5.8 */
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--bn-radius-sm);
	background: transparent;
	color: inherit;
	font-size: 1.375rem;
	cursor: pointer;
	transition: background-color var(--bn-dur-fast) ease;
}

.c-icon-button:hover {
	background: rgb(255 255 255 / 0.1);
}

/* En-tête */

.c-header__bar {
	background: var(--bn-color-header);
	color: #fff;
}

.c-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bn-space-4);
	min-height: 72px;
	padding-block: var(--bn-space-3);
}

.c-brand {
	display: flex;
	align-items: center;
	gap: var(--bn-space-3);
	min-width: 0;
}

.c-brand .custom-logo {
	width: auto;
	max-height: 44px;
}

.c-brand__title {
	margin: 0;
	color: #fff;
	font-size: var(--bn-text-lg);
	font-weight: var(--bn-weight-semi);
	line-height: 1.2;
}

.c-brand__title a {
	color: inherit;
	text-decoration: none;
}

.c-brand__tagline {
	margin: 0;
	color: rgb(255 255 255 / 0.78); /* 8,6:1 sur #333 */
	font-size: 0.75rem;
	line-height: 1.3;
}

.c-header__tools {
	display: flex;
	align-items: center;
	gap: var(--bn-space-2);
}

.c-header__widgets p {
	margin: 0;
}

.c-header__widgets a {
	color: #fff;
}

/* Recherche (en-tête + générique) */

.c-search {
	display: flex;
	align-items: center;
	position: relative;
}

.c-search__input {
	padding-right: 2.75rem;
}

.c-search__submit {
	position: absolute;
	right: 2px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	color: var(--bn-color-muted);
	cursor: pointer;
}

.c-search__submit:hover {
	color: var(--bn-color-accent-strong);
}

.c-header__search .c-search__input {
	border-color: transparent;
	background: rgb(255 255 255 / 0.95);
}

/* Mobile : la recherche s'ouvre sous la barre ; sans JS elle reste visible. */
.js .c-header__search {
	display: none;
}

.js .c-header__search.is-open {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 20;
	padding: var(--bn-space-3) var(--bn-gutter);
	background: var(--bn-color-header);
	animation: bn-drop var(--bn-dur) var(--bn-ease);
}

.c-header__bar {
	position: relative;
}

.c-header__menu-toggle .is-open,
.c-header__menu-toggle[aria-expanded="true"] .is-closed {
	display: none;
}

.c-header__menu-toggle[aria-expanded="true"] .is-open {
	display: block;
}

.no-js .c-header__search-toggle,
.no-js .c-header__menu-toggle {
	display: none;
}

@media (min-width: 921px) {
	.c-header__inner {
		min-height: 96px;
	}

	.c-brand .custom-logo {
		max-height: 60px;
	}

	.js .c-header__search,
	.js .c-header__search.is-open {
		display: block;
		position: static;
		padding: 0;
		background: none;
		animation: none;
	}

	.c-header__search {
		width: 260px;
	}

	.c-header__search-toggle,
	.c-header__menu-toggle {
		display: none;
	}
}

/* Navigation principale */

.c-nav {
	background: var(--bn-color-nav);
	border-bottom: 1px solid var(--bn-color-border);
}

.c-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-nav .menu-item {
	position: relative;
}

.c-nav a {
	display: flex;
	align-items: center;
	gap: var(--bn-space-2);
	color: #111;
	font-weight: var(--bn-weight-semi);
	text-decoration: none;
}

.c-nav__icon {
	color: var(--bn-color-accent);
	font-size: 0.95em;
	transition: transform var(--bn-dur) var(--bn-ease);
}

.c-nav a:hover .c-nav__icon {
	transform: scale(1.12);
}

/* Dossier fermé / ouvert selon l'état du sous-menu (même boîte 1em : pas de décalage). */
.c-nav__icon--open,
.c-nav .is-expanded > a > .c-nav__icon--closed {
	display: none;
}

.c-nav .is-expanded > a > .c-nav__icon--open {
	display: inline-block;
}

@media (min-width: 921px) {
	/* Sur desktop, le survol ouvre aussi le sous-menu. */
	.c-nav .menu-item:hover > a > .c-nav__icon--closed {
		display: none;
	}

	.c-nav .menu-item:hover > a > .c-nav__icon--open {
		display: inline-block;
	}
}

.c-nav__toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--bn-radius-sm);
	background: none;
	color: var(--bn-color-muted);
	cursor: pointer;
}

.c-nav__toggle .c-icon {
	transition: transform var(--bn-dur) var(--bn-ease);
}

.c-nav__toggle[aria-expanded="true"] .c-icon {
	transform: rotate(180deg);
}

/* Mobile : liste verticale repliable. */
@media (max-width: 920.98px) {
	.js .c-nav {
		display: none;
	}

	.js .c-nav.is-open {
		display: block;
		animation: bn-drop var(--bn-dur) var(--bn-ease);
	}

	.c-nav .l-container {
		padding-block: var(--bn-space-2);
	}

	.c-nav .menu-item {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.c-nav a {
		flex: 1;
		min-height: 44px;
		padding: var(--bn-space-2) var(--bn-space-3);
		border-radius: var(--bn-radius-sm);
	}

	.c-nav .sub-menu {
		flex-basis: 100%;
		padding-left: var(--bn-space-4);
	}

	.js .c-nav .sub-menu {
		display: none;
	}

	.js .c-nav .is-expanded > .sub-menu {
		display: block;
	}
}

/* Desktop : barre horizontale, sous-menus en carte flottante. */
@media (min-width: 921px) {
	.c-nav__list {
		display: flex;
		flex-wrap: wrap;
		gap: var(--bn-space-1);
		padding-block: var(--bn-space-1);
	}

	.c-nav__list > .menu-item {
		display: flex;
		align-items: center;
	}

	.c-nav__list > .menu-item > a {
		padding: var(--bn-space-2) var(--bn-space-4);
		border-radius: var(--bn-radius-sm);
		transition: background-color var(--bn-dur-fast) ease;
	}

	.c-nav__list > .menu-item-has-children > a {
		padding-right: var(--bn-space-1);
	}

	.c-nav__list > .menu-item > a:hover,
	.c-nav__list > .menu-item:focus-within > a {
		background: rgb(255 255 255 / 0.7);
	}

	.c-nav__list > .current-menu-item > a,
	.c-nav__list > .current-menu-ancestor > a {
		background: var(--bn-color-nav-active);
	}

	.c-nav__list > .menu-item > .c-nav__toggle {
		width: 28px;
		height: 36px;
	}

	.c-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 30;
		min-width: 240px;
		padding: var(--bn-space-2);
		border: 1px solid var(--bn-color-border);
		border-radius: var(--bn-radius-md);
		background: var(--bn-color-surface);
		box-shadow: var(--bn-shadow-lg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition:
			opacity var(--bn-dur-fast) ease,
			transform var(--bn-dur-fast) var(--bn-ease),
			visibility 0s linear var(--bn-dur-fast);
	}

	.c-nav .sub-menu .sub-menu {
		top: calc(-1 * var(--bn-space-2) - 1px);
		left: 100%;
	}

	/* Survol (souris) + ouverture explicite (clavier, tactile). */
	.c-nav .menu-item:hover > .sub-menu,
	.c-nav .menu-item.is-expanded > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}

	.c-nav .sub-menu .menu-item {
		display: flex;
		align-items: center;
	}

	.c-nav .sub-menu a {
		flex: 1;
		padding: var(--bn-space-2) var(--bn-space-3);
		border-radius: var(--bn-radius-sm);
		font-weight: 500;
		transition: background-color var(--bn-dur-fast) ease, color var(--bn-dur-fast) ease;
	}

	.c-nav .sub-menu a:hover,
	.c-nav .sub-menu .current-menu-item > a {
		background: var(--bn-color-soft);
		color: var(--bn-color-accent-strong);
	}

	.c-nav .sub-menu .c-nav__toggle {
		width: 32px;
		height: 32px;
		transform: rotate(-90deg);
	}
}

/* Panneau : carte blanche qui accueille le contenu (remplace le « boxed » Astra). */

.c-panel {
	padding: var(--bn-panel-pad);
	border: 1px solid var(--bn-color-border);
	border-radius: var(--bn-radius-lg);
	background: var(--bn-color-surface);
	box-shadow: var(--bn-shadow-sm);
}

/* La page d'accueil (BN Blocs) gère sa propre respiration. */
.is-front .c-panel {
	padding-block: var(--bn-space-2);
}

/* Fil d'Ariane (archives et articles) */

.c-breadcrumb {
	margin-bottom: var(--bn-space-3);
	font-size: var(--bn-text-sm);
}

.c-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	color: var(--bn-color-muted);
}

.c-breadcrumb__item + .c-breadcrumb__item::before {
	content: "›";
	margin-inline: var(--bn-space-2);
	color: var(--bn-color-muted);
	opacity: 0.6;
}

.c-breadcrumb a {
	padding-block: 3px; /* zone cliquable ≥ 24px de haut (WCAG 2.2, 2.5.8) */
	color: var(--bn-color-muted);
	text-decoration: none;
}

.c-breadcrumb a:hover {
	color: var(--bn-color-accent-strong);
	text-decoration: underline;
}

.c-breadcrumb [aria-current] {
	min-width: 0;
	overflow: hidden;
	color: var(--bn-color-ink);
	font-weight: var(--bn-weight-semi);
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Page courante (souvent un long titre d'article) : une seule ligne, coupée par « … ».
   Elle prend la place restante ; s'il en reste moins de 8em, elle passe à la ligne
   et occupe toute la largeur. Le texte complet reste lu par les lecteurs d'écran. */
.c-breadcrumb__item:last-child {
	flex: 1 1 0;
	min-width: 8em;
}

/* Mobile : le titre de l'article suit juste en dessous, inutile de le répéter. */
@media (max-width: 639.98px) {
	.single-post .c-breadcrumb__item:last-child {
		display: none;
	}
}

/* Pastille de catégorie — équivalent de .bnb-category */

.c-pill {
	position: relative;
	z-index: 1; /* au-dessus du lien étendu des cartes */
	display: inline-block;
	margin-bottom: var(--bn-space-2);
	padding: 0.2rem 0.65rem;
	border-radius: var(--bn-radius-pill);
	background: var(--bn-color-accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: var(--bn-weight-bold);
	letter-spacing: 0.04em;
	line-height: 1.6;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color var(--bn-dur-fast) ease;
}

.c-pill:hover {
	background: var(--bn-color-accent-strong);
	color: #fff;
}

/* Ligne de méta */

.c-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bn-space-1) var(--bn-space-4);
	margin: 0;
	padding: 0;
	color: var(--bn-color-muted);
	font-size: var(--bn-text-xs);
	list-style: none;
}

.c-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.c-meta a {
	position: relative;
	z-index: 1;
	color: inherit;
	text-decoration: none;
}

.c-meta a:hover {
	color: var(--bn-color-accent-strong);
}

/* Bouton */

.c-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: var(--bn-space-2);
	padding: 0.65rem 1.25rem;
	border: 0;
	border-radius: var(--bn-radius-pill);
	background: var(--bn-color-accent);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: var(--bn-weight-semi);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 12px rgb(15 23 42 / 0.12);
	transition:
		background-color var(--bn-dur-fast) ease,
		box-shadow var(--bn-dur) ease,
		transform var(--bn-dur) var(--bn-ease);
}

.c-button:hover,
.wp-block-button__link:hover {
	background: var(--bn-color-accent-strong);
	color: #fff;
	box-shadow: 0 7px 18px rgb(15 23 42 / 0.18);
	transform: var(--bn-lift);
}

/* Barre latérale & widgets */

/* Masquée sous 921px : sur mobile elle passait sous l'article, sans intérêt
   pour le lecteur (choix repris de la production). Ses images sont en lazy-load :
   masquées, elles ne sont pas téléchargées. */
.c-sidebar {
	display: none;
	gap: var(--bn-space-5);
	align-content: start;
}

@media (min-width: 921px) {
	.c-sidebar {
		display: grid;
	}
}

.c-sidebar .c-widget {
	padding: var(--bn-space-5);
	border: 1px solid var(--bn-color-border);
	border-radius: var(--bn-radius-lg);
	background: var(--bn-color-surface);
	box-shadow: var(--bn-shadow-sm);
}

.c-widget__title {
	font-size: var(--bn-h5);
}

.c-widget ul {
	padding-left: 1.1em;
}

@media (min-width: 921px) {
	.c-sidebar {
		position: sticky;
		top: var(--bn-space-5);
	}
}

/* Pied de page */

.c-footer {
	border-top: 1px solid var(--bn-color-border);
	background: var(--bn-color-surface);
	color: var(--bn-color-muted);
	font-size: var(--bn-text-sm);
}

.c-footer__inner {
	display: grid;
	gap: var(--bn-space-4);
	justify-items: center;
	padding-block: var(--bn-space-6);
	text-align: center;
}

.c-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--bn-space-2) var(--bn-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-footer__menu a {
	color: var(--bn-color-text);
	font-weight: 500;
	text-decoration: none;
}

.c-footer__menu a:hover {
	color: var(--bn-color-accent-strong);
	text-decoration: underline;
}

/* Page en cours : signalée ; le clic ramène en haut de page (assets/js/navigation.js).
   Sans JS, le lien est neutralisé : Firefox traite le clic sur l'adresse courante
   comme un rechargement et garde la position, on resterait en bas de page. */
.c-footer__menu [aria-current="page"] {
	color: var(--bn-color-accent-strong);
	font-weight: var(--bn-weight-semi);
}

.no-js .c-footer__menu [aria-current="page"] {
	pointer-events: none;
}

.c-footer__copyright {
	margin: 0;
}

/* Pagination */

.c-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--bn-space-2);
	margin-top: var(--bn-space-6);
}

.c-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: var(--bn-space-3);
	border: 1px solid var(--bn-color-border);
	border-radius: var(--bn-radius-pill);
	color: var(--bn-color-text);
	font-weight: var(--bn-weight-semi);
	text-decoration: none;
	transition: border-color var(--bn-dur-fast) ease, color var(--bn-dur-fast) ease;
}

.c-pagination a.page-numbers:hover {
	border-color: var(--bn-color-accent);
	color: var(--bn-color-accent-strong);
}

.c-pagination .current {
	border-color: var(--bn-color-accent);
	background: var(--bn-color-accent);
	color: #fff;
}

/* 5. Utilitaires
   ------------------------------------------------------------------------ */

.u-sr-only,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* 6. Animations & préférences
   ------------------------------------------------------------------------ */

@keyframes bn-drop {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
