/* Site (prosilver) : habillage des blocs de présentation ajoutés au corps des pages (bandeau de titre des
   pages ; sur l'accueil, bandeau, chiffres clés, cartes, étapes, « Qui gère quoi » et appel à l'action), comme une
   feuille ajoutée par une extension (événement overall_header_stylesheets_after). Le style de phpBB n'est pas
   modifié : en-tête, barres, listes, panneaux, boutons, formulaires et pied de page restent ceux de prosilver.
   Habillage de prosilver depuis le 13/11/2026 : polices, couleurs des panneaux (bg1, bg2, bg3), dégradé de la barre
   d'en-tête, boutons et angles de prosilver, sans ombre portée (avant : polices Bricolage Grotesque et Schibsted
   Grotesk, dégradés et ombres). Couleurs claires et sombres en variables, le mode nuit posant data-theme="dark" sur la racine. Couleurs claires par défaut, même sans
   script : html:not([data-pb-plain]) vaut toujours (attribut jamais posé) et garde la spécificité de l'ancien
   sélecteur html[data-theme], qui ne valait qu'une fois l'attribut posé par le script du mode nuit (audit du
   11/11/2026).
   Couleurs du site reliées à celles de l'éditeur de style du forum système (variables --hs-style-<clé>, posées par
   style/service.php seulement pour les couleurs choisies, en clair et en mode nuit) ; sans réglage, couleurs d'origine.
   Les aplats (bandeaux, pastilles, boutons) prennent la couleur « Catégories » et son texte, lisible par construction
   (12/11/2026).
   Refonte du 27/11/2026 (maquettes validées par Bryx, captures/refonte-contenu-site/) : style plus moderne, proche de
   Bootstrap, du seul contenu des pages (en-tête, menus et pied de prosilver inchangés) : cartes blanches arrondies avec
   ombre douce, grands bandeaux en dégradé, boutons et pastilles arrondis, police du système, petites animations en CSS
   seul (apparition au défilement, survol, aperçu qui flotte, reflet du bouton), coupées si l'appareil demande moins de
   mouvement (prefers-reduced-motion). */

html:not([data-pb-plain]) {
	--pb-bg: var(--hs-style-page, #f5f7fa);
	--pb-surface: var(--hs-style-panel, #ffffff);
	--pb-surface-2: var(--hs-style-row, #f1f5f9);
	--pb-line: #dde5ee;
	--pb-ink: var(--hs-style-post-text, #333333);
	--pb-muted: var(--hs-style-text, #536482);
	--pb-title: #28313f;
	--pb-brand: var(--hs-style-link, #105289);
	--pb-brand-2: var(--hs-style-header, #12a3eb);
	--pb-brand-deep: var(--hs-style-category, #0076b1);
	--pb-brand-soft: #e3eef8;
	--pb-accent: var(--hs-style-link-hover, #d31141);
	--pb-fill: var(--hs-style-category, #0076b1);
	--pb-fill-2: var(--hs-style-header, #12a3eb);
	--pb-on-white: var(--hs-style-link-hover, #d31141);
	--pb-on-fill: var(--hs-style-category-text, #ffffff);
	/* Dégradé de la barre d'en-tête de prosilver (colours.css, .headerbar) pour les grands aplats : liseré clair puis
	   couleur « Catégories », légèrement assombrie vers le bas, et non plus le bleu clair d'en-tête (#12a3eb : 2,8:1 avec
	   le blanc), pour que le texte blanc reste lisible sur tout l'aplat (WCAG AA 4,5:1 ; #0076b1 : 5,0:1, 13/11/2026).
	   Depuis la refonte du 27/11/2026 : dégradé en biais vers un bleu plus sombre, avec un halo clair en haut à droite. */
	--pb-bar: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.16), transparent 42%), linear-gradient(135deg, var(--pb-fill) 0%, color-mix(in srgb, var(--pb-fill) 72%, #062a45) 58%, color-mix(in srgb, var(--pb-fill) 55%, #04182b) 100%);
	--pb-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.06);
	--pb-shadow-hover: 0 12px 26px rgba(15, 23, 42, 0.13);
	--pb-radius: 12px;
	--pb-radius-lg: 20px;
	--pb-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--pb-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
	--pb-bg: var(--hs-style-page, #242424);
	--pb-surface: var(--hs-style-panel, #2b3138);
	--pb-surface-2: var(--hs-style-row, #262b31);
	--pb-line: #3d4650;
	--pb-ink: var(--hs-style-post-text, #cfcfcf);
	--pb-muted: var(--hs-style-text, #a5b0bf);
	--pb-title: #c5d1e3;
	--pb-brand: var(--hs-style-link, #9ec7fc);
	--pb-brand-2: var(--hs-style-header, #0a5680);
	--pb-brand-deep: var(--hs-style-category, #084e73);
	--pb-brand-soft: #34404c;
	--pb-accent: var(--hs-style-link-hover, #ff7a98);
	--pb-fill: var(--hs-style-category, #084e73);
	--pb-fill-2: var(--hs-style-header, #0a5680);
	/* Couleur « survol des liens » de nuit, claire comme --pb-accent (sans réglage, #d31141 restait sous le texte foncé
	   de .pb-new : 3,5:1). */
	--pb-on-white: var(--hs-style-link-hover, #ff7a98);
	/* Barre d'en-tête de prosilver en mode nuit (nightmode/forum.css, .headerbar). */
	--pb-bar: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.1), transparent 42%), linear-gradient(135deg, var(--pb-fill-2) 0%, var(--pb-fill) 55%, color-mix(in srgb, var(--pb-fill) 70%, #021622) 100%);
	--pb-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.22);
	--pb-shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.45);
}

/* Base commune des blocs. */
.pb-banner,
.pb-hero,
.pb-stats,
.pb-section,
.pb-cta {
	font-family: var(--pb-text);
	font-size: 11.5px;
	color: var(--pb-ink);
}

.pb-banner h2,
.pb-banner h1,
.pb-hero h2,
.pb-hero h1,
.pb-section h2,
.pb-section h3,
.pb-cta h2,
.pb-stat strong {
	font-family: var(--pb-display);
}

html:not([data-pb-plain]) .pb-banner h2,
html:not([data-pb-plain]) .pb-banner h1,
html:not([data-pb-plain]) .pb-section h2,
html:not([data-pb-plain]) .pb-section h3,
html:not([data-pb-plain]) .pb-cta h2 {
	border: 0;
	font-weight: 700;
	text-transform: none;
	text-decoration: none;
}

html:not([data-pb-plain]) .pb-section h2,
html:not([data-pb-plain]) .pb-banner h2,
html:not([data-pb-plain]) .pb-banner h1 {
	color: var(--pb-title);
}

/* Titres de section en gras, police du système (refonte du 27/11/2026 ; avant : h2 de prosilver sans gras). */
html:not([data-pb-plain]) .pb-section h2 {
	letter-spacing: -0.01em;
}

/* Titre de la page en h1 sur les pages du site, nom du site en texte dans l'en-tête de prosilver (audit général du
   11/11/2026, website/site.php) : mêmes rendus qu'avant. */
.site-description .pb-sitename {
	margin: 15px 0 0;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 2em;
	font-weight: bold;
	line-height: normal;
	color: var(--hs-style-header-text, #FFFFFF);
}

.pb-banner h1,
.pb-hero h1 {
	margin-right: 0;
	width: auto;
}

/* Téléphone : prosilver masque les paragraphes de l'en-tête (.site-description p, description du forum) ; le nom du
   site reste affiché, comme le h1 qu'il remplace (responsive.css de prosilver). */
@media (max-width: 700px) {
	.site-description p.pb-sitename {
		display: block;
		margin: 5px;
		line-height: 1.2em;
		text-align: inherit;
	}
}

.panel h1.message-title {
	margin: 0.5em 0;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #CCCCCC;
	color: #115098;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 1.6em;
	font-weight: normal;
}

html[data-theme="dark"] .panel h1.message-title {
	color: #c5d1e3;
	border-bottom-color: #3a3f47;
}

/* ---- Bandeau de titre des pages (ajouté par build.py autour du titre de la page) ---- */

/* Grand bandeau en dégradé (refonte du 27/11/2026) : icône dans un carré translucide, surtitre en pastille. */
.pb-banner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 10px 0 20px;
	padding: 30px 34px;
	border-radius: var(--pb-radius-lg);
	background: var(--pb-fill);
	background-image: var(--pb-bar);
	color: var(--pb-on-fill);
	box-shadow: var(--pb-shadow);
	overflow: hidden;
}

.pb-banner::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -170px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
	pointer-events: none;
}

.pb-banner-icon {
	position: relative;
	z-index: 1;
	flex: none;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.15);
	color: var(--pb-on-fill);
	font-size: 28px;
}

/* Icônes des pastilles à leur taille (prosilver fixe .icon à 14 px). */
.pb-banner-icon .icon,
.pb-shortcut-icon .icon,
.pb-cat-icon .icon {
	font-size: inherit;
}

.pb-banner-text {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.pb-banner-kicker {
	display: inline-block;
	margin: 0;
	padding: 4px 12px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: var(--pb-on-fill);
	font-size: 0.95em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

html:not([data-pb-plain]) .pb-banner h2,
html:not([data-pb-plain]) .pb-banner h1 {
	margin: 8px 0 0;
	color: var(--pb-on-fill);
	font-size: 2.8em;
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-wrap: balance;
}

html:not([data-pb-plain]) .pb-banner h1 a,
html:not([data-pb-plain]) .pb-banner h1 a:hover {
	color: inherit;
}

.pb-banner-text > div p,
.pb-banner-text > p:not(.pb-banner-kicker) {
	margin: 6px 0 0;
	max-width: 70ch;
	color: var(--pb-on-fill);
	font-size: 1.35em;
	line-height: 1.5;
	opacity: 0.92;
}

/* ---- Accueil vitrine ---- */

.pb-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
	gap: 36px;
	align-items: center;
	margin: 10px 0 18px;
	padding: 46px 44px;
	border-radius: var(--pb-radius-lg);
	background: var(--pb-fill);
	background-image: var(--pb-bar);
	color: var(--pb-on-fill);
	box-shadow: var(--pb-shadow);
	overflow: hidden;
}

/* Grand cercle translucide en bas à droite du bandeau (décor). */
.pb-hero::after {
	content: "";
	position: absolute;
	right: -140px;
	bottom: -200px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	pointer-events: none;
}

.pb-hero > * {
	position: relative;
	z-index: 1;
}

.pb-hero-kicker {
	display: inline-block;
	margin: 0 0 14px;
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	font-size: 0.95em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pb-on-fill);
}

html:not([data-pb-plain]) .pb-hero h2,
html:not([data-pb-plain]) .pb-hero h1 {
	margin: 0;
	color: var(--pb-on-fill);
	font-size: 3.6em;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-wrap: balance;
}

.pb-hero p.pb-hero-lead {
	margin: 16px 0 26px;
	max-width: 54ch;
	color: var(--pb-on-fill);
	font-size: 1.45em;
	line-height: 1.6;
	opacity: 0.92;
}

.pb-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Boutons en pilule du bandeau et de l'appel à l'action (refonte du 27/11/2026, au lieu des boutons de prosilver) :
   bouton principal blanc, bouton secondaire en contour. Couleur « Catégories » sur blanc : 5,0:1 (#0076b1). */
html:not([data-pb-plain]) .pb-hero .button,
html:not([data-pb-plain]) .pb-cta .button {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: auto;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	color: var(--pb-fill);
	font-family: var(--pb-text);
	font-size: 1.25em;
	font-weight: 600;
	line-height: 1.3;
	text-shadow: none;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

html:not([data-pb-plain]) .pb-hero .button .icon,
html:not([data-pb-plain]) .pb-cta .button .icon {
	color: inherit;
}

html:not([data-pb-plain]) .pb-hero .button:hover,
html:not([data-pb-plain]) .pb-cta .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
	color: var(--pb-fill);
}

html:not([data-pb-plain]) .pb-hero .button.pb-button-ghost {
	border-color: rgba(255, 255, 255, 0.6);
	background: transparent;
	box-shadow: none;
	color: var(--pb-on-fill);
}

html:not([data-pb-plain]) .pb-hero .button.pb-button-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--pb-on-fill);
}

/* Aperçu d'un forum dans le bandeau d'accueil : carte blanche légèrement inclinée (refonte du 27/11/2026). */
.pb-hero-preview {
	display: grid;
	gap: 0;
	padding: 16px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
	color: #1e293b;
	transform: rotate(-1.5deg);
}

.pb-hero-address {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	padding: 7px 10px;
	border-radius: 8px;
	background: #f1f5f9;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 1.1em;
	color: #475569;
	overflow-wrap: anywhere;
}

.pb-hero-address .icon {
	color: #198754;
}

.pb-hero-address b {
	color: #0b4f7c;
	font-weight: 700;
}

.pb-hero-forum {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 10px 8px;
	border-radius: 0;
	background: transparent;
	color: #1c2a39;
}

.pb-hero-forum + .pb-hero-forum {
	border-top: 1px solid #eef2f6;
}

.pb-hero-forum img {
	width: 32px;
	height: 32px;
}

.pb-hero-forum strong {
	display: block;
	color: #105289;
	font-family: var(--pb-display);
	font-size: 1.3em;
}

.pb-hero-forum span {
	color: #5a6b7e;
	font-size: 1.05em;
}

.pb-hero-forum em {
	padding: 2px 10px;
	border-radius: 999px;
	background: #f1f5f9;
	font-style: normal;
	font-family: var(--pb-display);
	font-size: 1.1em;
	font-weight: 700;
	color: #1c2a39;
	font-variant-numeric: tabular-nums;
}

/* Mode nuit : l'aperçu prend les couleurs d'une ligne de forum prosilver sombre, au lieu de rester blanc (audit du
   15/11/2026). */
html[data-theme="dark"] .pb-hero-preview {
	background: var(--pb-surface);
	color: var(--pb-ink);
}

html[data-theme="dark"] .pb-hero-address,
html[data-theme="dark"] .pb-hero-forum em {
	background: var(--pb-surface-2);
	color: var(--pb-ink);
}

html[data-theme="dark"] .pb-hero-address b {
	color: var(--pb-brand);
}

html[data-theme="dark"] .pb-hero-forum + .pb-hero-forum {
	border-top-color: var(--pb-line);
}

html[data-theme="dark"] .pb-hero-forum {
	color: var(--pb-ink);
}

html[data-theme="dark"] .pb-hero-forum strong {
	color: var(--pb-brand);
}

html[data-theme="dark"] .pb-hero-forum span {
	color: var(--pb-muted);
}

html[data-theme="dark"] .pb-hero-forum em {
	color: var(--pb-ink);
}

/* Chiffres clés. */
.pb-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 14px;
}

.pb-stat {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 2px 14px;
	align-items: center;
	padding: 18px 20px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

.pb-stat .icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-size: 18px;
}

.pb-stat strong {
	display: block;
	color: var(--pb-ink);
	font-family: var(--pb-display);
	font-size: 2.6em;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.pb-stat span {
	color: var(--pb-muted);
	font-size: 1.2em;
}

/* Sections de présentation. */
.pb-section {
	margin: 40px 0 24px;
}

.pb-section-head {
	margin: 0 0 18px;
}

html:not([data-pb-plain]) .pb-section-head h2 {
	margin: 0;
	font-size: 2.2em;
	line-height: 1.15;
	text-wrap: balance;
}

.pb-section-head p {
	margin: 4px 0 0;
	max-width: 70ch;
	color: var(--pb-muted);
	font-size: 1.3em;
}

.pb-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.pb-card {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 4px 14px;
	align-content: start;
	padding: 18px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.pb-card .icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-size: 18px;
}

html:not([data-pb-plain]) .pb-card h3 {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--pb-ink);
	font-size: 1.35em;
}

.pb-card p {
	margin: 0;
	color: var(--pb-muted);
	font-size: 1.15em;
	line-height: 1.5;
}

.pb-also {
	margin: 12px 0 0;
	color: var(--pb-muted);
	font-size: 1.2em;
}

/* Étapes de la demande : la suite est réelle (une demande passe par les quatre). */
.pb-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: pb-step;
}

.pb-steps li {
	position: relative;
	padding: 18px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	counter-increment: pb-step;
}

.pb-steps li::before {
	content: counter(pb-step);
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--pb-fill);
	color: var(--pb-on-fill);
	font-family: var(--pb-display);
	font-size: 1.3em;
	font-weight: 700;
}

html:not([data-pb-plain]) .pb-steps h3 {
	margin: 0 0 4px;
	padding: 0;
	border: 0;
	color: var(--pb-ink);
	font-size: 1.35em;
}

.pb-steps p {
	margin: 0;
	color: var(--pb-muted);
	font-size: 1.15em;
	line-height: 1.5;
}

/* Étapes en bref de l'accueil : frise, numéros reliés par une ligne, sans cartes (refonte du 27/11/2026). */
.pb-steps-short {
	position: relative;
}

.pb-steps-short::before {
	content: "";
	position: absolute;
	top: 22px;
	left: 12.5%;
	right: 12.5%;
	height: 2px;
	background: linear-gradient(90deg, var(--pb-fill), var(--pb-brand-soft));
}

.pb-steps-short li {
	padding: 0 6px;
	border: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
}

.pb-steps-short li::before {
	position: relative;
	width: 44px;
	height: 44px;
	margin: 0 auto 14px;
	box-shadow: 0 0 0 6px var(--pb-brand-soft);
}

/* Qui gère quoi : deux colonnes. */
.pb-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.pb-split > div {
	padding: 22px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

.pb-split > div.pb-split-host {
	background: linear-gradient(160deg, var(--pb-brand-soft), var(--pb-surface) 65%);
}

html:not([data-pb-plain]) .pb-split h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: var(--pb-ink);
	font-size: 1.5em;
}

.pb-split h3 .icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-size: 16px;
}

.pb-split dl {
	margin: 0;
	display: grid;
	gap: 0;
}

/* Une ligne par rôle, coche verte devant (Font Awesome 4.7 de prosilver). */
.pb-split dt {
	padding: 10px 0 0 24px;
	border-top: 1px solid var(--pb-line);
	color: var(--pb-ink);
	font-size: 1.2em;
	font-weight: 700;
	text-indent: -24px;
}

.pb-split dt:first-child {
	border-top: 0;
}

.pb-split dt::before {
	content: "\f00c";
	display: inline-block;
	width: 24px;
	color: #198754;
	font-family: FontAwesome;
	font-weight: normal;
	text-indent: 0;
}

html[data-theme="dark"] .pb-split dt::before {
	color: #6ee7b7;
}

.pb-split dd {
	margin: 2px 0 0;
	padding: 0 0 10px 24px;
	color: var(--pb-muted);
	font-size: 1.15em;
}

/* Colonne hébergeur (#cadceb) : #536482 n’y fait que 4,25:1. #4c5a76 fait 4,93:1 (audit du 26/11/2026).
   En mode nuit, #a5b0bf sur #34404c fait déjà 4,82:1 : la couleur claire de .pb-split dd reste. */
html:not([data-theme="dark"]) .pb-split > div.pb-split-host dd {
	color: #4c5a76;
}

.pb-note {
	margin: 10px 0 0;
	color: var(--pb-muted);
	font-size: 1.15em;
}

/* Appel à l'action de fin d'accueil. */
.pb-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin: 32px 0 20px;
	padding: 34px 40px;
	border-radius: var(--pb-radius-lg);
	background: var(--pb-fill);
	background-image: var(--pb-bar);
	color: var(--pb-on-fill);
	box-shadow: var(--pb-shadow);
}

html:not([data-pb-plain]) .pb-cta h2 {
	margin: 0;
	color: var(--pb-on-fill);
	font-size: 2.2em;
}

.pb-cta > div {
	flex: 1 1 340px;
}

.pb-cta p {
	margin: 6px 0 0;
	color: var(--pb-on-fill);
	font-size: 1.3em;
	opacity: 0.92;
}

/* Raccourcis du site (remplacent sur l'accueil la catégorie « phpBBHost » de la liste des forums). */
.pb-shortcuts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 16px;
}

.pb-shortcut {
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	gap: 8px;
	padding: 22px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	color: var(--pb-ink);
	text-decoration: none;
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

html:not([data-pb-plain]) a.pb-shortcut,
html:not([data-pb-plain]) a.pb-shortcut:hover {
	color: var(--pb-ink);
	text-decoration: none;
}

/* Cartes qui se soulèvent au survol (refonte du 27/11/2026). */
.pb-shortcut:hover,
.pb-card:hover {
	border-color: var(--pb-brand);
	box-shadow: var(--pb-shadow-hover);
	transform: translateY(-4px);
}

.pb-shortcut-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-size: 18px;
}

.pb-shortcut strong {
	margin-top: 4px;
	font-family: var(--pb-display);
	font-size: 1.4em;
	font-weight: 700;
	color: var(--pb-ink);
}

.pb-shortcut-text {
	color: var(--pb-muted);
	font-size: 1.12em;
	line-height: 1.5;
}

.pb-shortcut-meta {
	padding-top: 8px;
	border-top: 1px solid var(--pb-line);
	color: var(--pb-muted);
	font-size: 1.05em;
	font-variant-numeric: tabular-nums;
}

.pb-new {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 7px;
	border-radius: 4px;
	background: var(--pb-on-white);
	color: #ffffff;
	font-family: var(--pb-text);
	font-size: 0.6em;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.04em;
	vertical-align: middle;
	text-transform: uppercase;
}

/* En mode nuit, la couleur « survol des liens » est claire (#ff7a98, ou réglée puis éclaircie par night_colours()) : texte
   foncé sur la pastille, le blanc y tombant vers 2,5:1 (#ff7a98 : 7,6:1 en #111111, au moins 8:1 pour une couleur
   réglée ; WCAG 1.4.3). */
html[data-theme="dark"] .pb-new {
	color: #111111;
}

/* Forums à la une (remplacent sur l'accueil la liste prosilver du même nom). */
.pb-section-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 20px;
}

.pb-more {
	font-size: 1.2em;
	font-weight: 600;
	white-space: nowrap;
}

.pb-forums {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.pb-forum {
	display: grid;
	grid-template-rows: auto auto 1fr auto auto;
	gap: 10px;
	padding: 18px 20px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	overflow: hidden;
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.pb-forum:hover {
	border-color: var(--pb-brand);
	box-shadow: var(--pb-shadow-hover);
	transform: translateY(-4px);
}

.pb-forum-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	margin: -18px -20px 0;
	border-bottom: 1px solid var(--pb-line);
	border-radius: var(--pb-radius) var(--pb-radius) 0 0;
	background: var(--pb-surface-2);
	overflow: hidden;
}

.pb-forum-thumb img,
.pb-rthumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 0.4s;
}

/* Capture qui zoome légèrement au survol de la carte. */
.pb-forum:hover .pb-forum-thumb img,
.pb-rcard:hover .pb-rthumb img {
	transform: scale(1.04);
}

.pb-forum-head {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
}

html:not([data-pb-plain]) .pb-forum-name {
	display: block;
	color: var(--pb-brand);
	font-family: var(--pb-display);
	font-size: 1.45em;
	font-weight: 700;
	line-height: 1.2;
}

.pb-forum-address {
	display: block;
	color: var(--pb-muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 1em;
	overflow-wrap: anywhere;
}

.pb-forum-desc {
	margin: 0;
	color: var(--pb-ink);
	font-size: 1.15em;
	line-height: 1.5;
}

html:not([data-pb-plain]) .pb-chip {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-weight: 600;
}

/* Chiffres d'un forum en pastilles (nombre puis libellé). */
.pb-forum-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
}

.pb-forum-stats > div {
	display: flex;
	flex-direction: row-reverse;
	align-items: baseline;
	gap: 5px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--pb-surface-2);
}

.pb-forum-stats dt {
	color: var(--pb-muted);
	font-size: 1.05em;
	font-weight: 400;
}

.pb-forum-stats dd {
	margin: 0;
	color: var(--pb-ink);
	font-family: var(--pb-display);
	font-size: 1.1em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Lecture d'un article (views/news.php) : en-tête d'article (rubrique, titre, auteur, date, durée de lecture) sur une
   couverture, corps posé sur la couverture, puis appel à l'action et navigation entre articles. */
.pb-post {
	margin: 10px 0 14px;
	font-family: var(--pb-text);
	font-size: 11.5px;
	color: var(--pb-ink);
}

/* Article pleine largeur (refonte du 27/11/2026) : grand bandeau arrondi, titre en bas, texte dans une carte de toute
   la largeur dessous (avant : carte de 760 px posée sur le bandeau). */
.pb-post-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	min-height: 240px;
	padding: 48px 44px 38px;
	border-radius: var(--pb-radius-lg);
	background: var(--pb-fill);
	background-image: var(--pb-bar);
	color: var(--pb-on-fill);
	box-shadow: var(--pb-shadow);
	overflow: hidden;
}

.pb-post-pattern {
	position: absolute;
	right: 44px;
	top: 36px;
	color: rgba(255, 255, 255, 0.13);
	font-size: 140px;
	line-height: 1;
	pointer-events: none;
}

.pb-post-pattern .icon {
	font-size: inherit;
}

html:not([data-pb-plain]) a.pb-post-rubric {
	position: relative;
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	color: var(--pb-on-fill);
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

/* Titre de l'article : h1.topic-title du gabarit (le sélecteur h2 ne s'appliquait plus, 13/11/2026). */
html:not([data-pb-plain]) .pb-post-hero h1 {
	position: relative;
	max-width: 26ch;
	margin: 14px 0 16px;
	padding: 0;
	border: 0;
	color: var(--pb-on-fill);
	font-family: var(--pb-display);
	font-size: 3.6em;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-transform: none;
	text-wrap: balance;
}

.pb-post-meta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: 0;
}

.pb-post-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pb-post-author b,
.pb-post-author small {
	display: block;
}

.pb-post-author b {
	font-size: 1.25em;
}

.pb-post-author small {
	color: var(--pb-on-fill);
	font-size: 1em;
}

.pb-post-hero .pb-avatar {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Photo de l'auteur (avatar de son compte du forum système), sinon son initiale. */
img.pb-avatar {
	object-fit: cover;
	background: var(--pb-surface-2);
}

.pb-post-facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	color: var(--pb-on-fill);
	font-size: 1.15em;
}

.pb-post-facts > span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Barre de lecture : avance avec le défilement de la page (CSS seul, navigateurs qui gèrent animation-timeline ;
   ailleurs, masquée). */
.pb-post-progress {
	display: none;
}

.pb-post-body {
	position: relative;
	margin: 16px 0 0;
	padding: 36px 40px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	font-size: 1.45em;
	line-height: 1.75;
}

.pb-post-body p {
	margin: 0 0 1em;
}

/* Listes [list] d’un article : phpBB ne rend aucun saut de ligne après [/list] (bloc), la marge du bas tient lieu
   de la ligne vide (line-height) pour que le titre suivant ne colle pas à la liste. */
.pb-post-body ul,
.pb-post-body ol {
	margin: 0.4em 0 1.7em 2em;
	padding: 0;
}

html:not([data-pb-plain]) .pb-post-body h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 1.5em 0 0.6em;
	padding: 0;
	border: 0;
	color: var(--pb-ink);
	font-family: var(--pb-display);
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}

html:not([data-pb-plain]) .pb-post-body h3::before {
	content: "";
	flex: none;
	width: 18px;
	height: 4px;
	border-radius: 2px;
	background: var(--pb-fill);
}

html:not([data-pb-plain]) .pb-post-body a {
	color: var(--pb-brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pb-post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: stretch;
	margin: 0 0 16px;
	font-family: var(--pb-text);
	font-size: 11.5px;
}

.pb-post-next {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	overflow: hidden;
	transition: border-color 0.15s;
}

html:not([data-pb-plain]) a.pb-post-next,
html:not([data-pb-plain]) a.pb-post-next:hover,
html:not([data-pb-plain]) a.pb-post-all,
html:not([data-pb-plain]) a.pb-post-all:hover {
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-post-next:hover,
.pb-post-all:hover {
	border-color: var(--pb-brand);
	box-shadow: var(--pb-shadow-hover);
}

.pb-post-next-cover {
	display: grid;
	place-items: center;
	background: var(--pb-fill);
	background-image: var(--pb-bar);
	color: rgba(255, 255, 255, 0.9);
	color: color-mix(in srgb, var(--pb-on-fill) 90%, transparent);
	font-size: 28px;
}

.pb-post-next-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 14px 16px;
}

.pb-post-next-text em {
	color: var(--pb-muted);
	font-size: 1.05em;
	font-style: normal;
}

.pb-post-next-text strong {
	color: var(--pb-brand);
	font-family: var(--pb-display);
	font-size: 1.45em;
	font-weight: 700;
}

.pb-post-next-text small {
	color: var(--pb-muted);
	font-size: 1em;
}

.pb-post-all {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 20px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	font-size: 1.25em;
	font-weight: 700;
	white-space: nowrap;
}

/* Annuaire : description d'un forum classé sur deux lignes (audit du 11/11/2026). */
.pb-rdesc {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: var(--pb-muted);
	font-size: .95em;
	line-height: 1.4;
}

/* Mention visible « exemple » au-dessus de l'aperçu du bandeau de l'accueil (chiffres fictifs). */
.pb-hero-example {
	margin: 0 0 8px;
	color: #64748b;
	font-size: 0.95em;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

html[data-theme="dark"] .pb-hero-example {
	color: var(--pb-muted);
}

/* Recherche des actualités et de l'annuaire : focus visible autour du champ (le champ lui-même n'a pas de contour). */
.pb-news-search:focus-within {
	border-color: var(--pb-brand);
	box-shadow: 0 0 0 4px var(--pb-brand-soft);
	outline: 2px solid var(--pb-brand);
	outline-offset: 2px;
}

/* Rubriques des actualités (pastilles) et articles liés d'un article (audit du 11/11/2026). */
.pb-news-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	font-size: 1.15em;
}

html:not([data-pb-plain]) .pb-news-categories .pb-chip {
	padding: 6px 14px;
	border: 1px solid var(--pb-line);
	background: var(--pb-surface);
	color: var(--pb-muted);
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

html:not([data-pb-plain]) .pb-news-categories .pb-chip:hover {
	border-color: var(--pb-brand);
	color: var(--pb-brand);
}

html:not([data-pb-plain]) .pb-news-categories .pb-chip-on,
html:not([data-pb-plain]) .pb-news-categories .pb-chip-on:hover {
	border-color: var(--pb-brand);
	background: var(--pb-brand);
	color: #fff;
}

/* Mode nuit : texte foncé sur le bleu clair des liens (#9ec7fc : 1,7:1 avec le blanc, 8,4:1 avec #042b40). */
html[data-theme="dark"]:not([data-pb-plain]) .pb-news-categories .pb-chip-on {
	color: #042b40;
}

.pb-news-related {
	margin: 0 0 16px;
}

/* Actualités (views/news_index.php) : en-tête avec recherche, article à la une, grille, pages ; article
   (views/news.php) : appel à l'action et navigation entre articles. */
.pb-news-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 0 14px;
}

html:not([data-pb-plain]) .pb-news-head h2 {
	margin: 0;
	border: 0;
	color: var(--pb-title);
	font-size: 2.2em;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
}

.pb-news-head p {
	margin: 2px 0 0;
	color: var(--pb-muted);
	font-size: 1.2em;
	font-variant-numeric: tabular-nums;
}

.pb-news-search {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 5px 5px 5px 16px;
	border: 1px solid var(--pb-line);
	border-radius: 999px;
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

.pb-news-search .icon {
	color: var(--pb-muted);
	font-size: 14px;
}

html:not([data-pb-plain]) .pb-news-search input {
	width: 220px;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--pb-ink);
	font-family: var(--pb-text);
	font-size: 1.25em;
	outline: none;
}

html:not([data-pb-plain]) .pb-news-search .button {
	height: auto;
	border: 0;
	border-radius: 999px;
	background: var(--pb-fill);
	color: var(--pb-on-fill);
	font-size: 1.15em;
	font-weight: 600;
	padding: 7px 16px;
	text-shadow: none;
}

.pb-news-cover {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 130px;
	padding: 0 14px;
	background: var(--pb-fill);
	background-image: var(--pb-bar);
	color: var(--pb-on-fill);
	font-family: var(--pb-display);
	font-size: 1.7em;
	font-weight: 700;
	text-align: center;
}

.pb-news-cover .icon {
	font-size: 0.95em;
	opacity: 0.85;
}

.pb-news-cover-large {
	height: auto;
	min-height: 260px;
	font-size: 2.8em;
}

/* Site : image de couverture d'un article (sinon l'icône de la rubrique) et images du texte des articles. */
.pb-news-cover-image {
	padding: 0;
	overflow: hidden;
}

.pb-news-cover-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

/* Image de couverture qui zoome légèrement au survol de la carte. */
.pb-news-card:hover .pb-news-cover-image img,
.pb-news-featured:hover .pb-news-cover-image img {
	transform: scale(1.04);
}

.pb-post-cover {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 18px;
	border-radius: var(--pb-radius);
}

.pb-post-body img {
	max-width: 100%;
	height: auto;
}

.pb-news-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	margin: 0 0 18px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	overflow: hidden;
	color: var(--pb-ink);
	text-decoration: none;
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.pb-news-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	padding: 18px 20px;
}

.pb-news-featured .pb-news-content {
	justify-content: center;
	padding: 30px;
}

.pb-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.pb-news-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	overflow: hidden;
	color: var(--pb-ink);
	text-decoration: none;
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.pb-news-card .pb-news-content {
	flex: 1;
}

html:not([data-pb-plain]) a.pb-news-card,
html:not([data-pb-plain]) a.pb-news-card:hover,
html:not([data-pb-plain]) a.pb-news-featured,
html:not([data-pb-plain]) a.pb-news-featured:hover {
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-news-card:hover,
.pb-news-featured:hover {
	border-color: var(--pb-brand);
	box-shadow: var(--pb-shadow-hover);
}

.pb-news-card:hover {
	transform: translateY(-4px);
}

.pb-news-meta {
	color: var(--pb-muted);
	font-size: 1.05em;
	font-variant-numeric: tabular-nums;
}

.pb-news-card strong,
.pb-news-featured strong {
	color: var(--pb-ink);
	font-family: var(--pb-display);
	font-size: 1.45em;
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}

.pb-news-featured strong {
	font-size: 2.2em;
	line-height: 1.15;
}

.pb-news-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	color: var(--pb-muted);
	font-size: 1.15em;
	line-height: 1.5;
}

.pb-news-featured .pb-news-excerpt {
	font-size: 1.3em;
}

.pb-news-more {
	margin-top: auto;
	padding-top: 6px;
	color: var(--pb-brand);
	font-size: 1.1em;
	font-weight: 700;
}

.pb-news-cta {
	margin-top: 10px;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--pb-fill);
	color: var(--pb-on-fill);
	font-size: 1.2em;
	font-weight: 700;
}

html:not([data-pb-plain]) .pb-cta.pb-cta-small {
	margin: 18px 0;
	padding: 26px 30px;
}

html:not([data-pb-plain]) .pb-cta.pb-cta-small h2 {
	font-size: 1.7em;
}

/* Annuaire (views/dir_index.php) : cartes des catégories. */
.pb-cats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.pb-cat {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	grid-template-rows: 1fr auto;
	gap: 12px 14px;
	padding: 18px 20px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

html:not([data-pb-plain]) a.pb-cat,
html:not([data-pb-plain]) a.pb-cat:hover,
html:not([data-pb-plain]) a.pb-rcard,
html:not([data-pb-plain]) a.pb-rcard:hover,
html:not([data-pb-plain]) a.pb-pill {
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-cat:hover,
.pb-rcard:hover {
	border-color: var(--pb-brand);
	box-shadow: var(--pb-shadow-hover);
	transform: translateY(-4px);
}

.pb-cat-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-size: 19px;
}

.pb-cat-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.pb-cat-text strong {
	color: var(--pb-ink);
	font-family: var(--pb-display);
	font-size: 1.4em;
	font-weight: 700;
	line-height: 1.2;
}

.pb-cat-text span {
	color: var(--pb-muted);
	font-size: 1.12em;
	line-height: 1.45;
}

.pb-cat-count {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 8px;
	border-top: 1px solid var(--pb-line);
	color: var(--pb-brand);
	font-size: 1.12em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Catégorie et recherche (partials/forum_sort.php, forum_rank.php) : tri en boutons, cartes classées avec capture. */
.pb-sort {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

.pb-sort-label {
	color: var(--pb-muted);
	font-size: 1.1em;
	font-weight: 600;
}

/* Tri en onglets arrondis : groupe sur fond gris, choix en cours en blanc surélevé. */
.pb-pills {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 2px;
	margin-right: 8px;
	padding: 4px;
	border-radius: 999px;
	background: var(--pb-surface-2);
}

.pb-pill {
	padding: 6px 15px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-size: 1.1em;
	font-weight: 600;
}

html:not([data-pb-plain]) a.pb-pill {
	color: var(--pb-muted);
}

html:not([data-pb-plain]) a.pb-pill:hover {
	color: var(--pb-ink);
}

html:not([data-pb-plain]) a.pb-pill.pb-pill-on {
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	color: var(--pb-ink);
}

.pb-count {
	margin: 0 0 10px;
	color: var(--pb-muted);
	font-size: 1.15em;
	font-variant-numeric: tabular-nums;
}

.pb-rgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.pb-rcard {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	overflow: hidden;
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.pb-rthumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	max-width: 100%;
	border-bottom: 1px solid var(--pb-line);
	background: var(--pb-surface-2);
	overflow: hidden;
}

/* Rang en pastille ronde en haut à gauche de la capture. */
.pb-rank-badge {
	position: absolute;
	left: 10px;
	top: 10px;
	min-width: 32px;
	height: 32px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(11, 30, 52, 0.82);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
	line-height: 32px;
	color: #ffffff;
	font-family: var(--pb-display);
	font-size: 1.3em;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.pb-rank-trophy {
	position: absolute;
	right: 10px;
	top: 10px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f6c343;
	color: #6b4a00;
	font-size: 15px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.pb-rbody {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 18px;
}

.pb-rbody strong {
	color: var(--pb-brand);
	font-family: var(--pb-display);
	font-size: 1.35em;
	font-weight: 700;
	line-height: 1.25;
}

.pb-rbody strong .icon {
	color: var(--pb-muted);
	font-size: 0.7em;
}

.pb-rstats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 10px;
	color: var(--pb-muted);
	font-size: 1.05em;
}

.pb-stat-item b {
	color: var(--pb-ink);
	font-variant-numeric: tabular-nums;
}

.pb-stat-on {
	color: var(--pb-brand);
	font-weight: 700;
}

.pb-stat-on b {
	color: var(--pb-brand);
}

/* Initiale de l'auteur d'un article (phpbbhost_site_news.html). */
.pb-avatar {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--av, var(--pb-brand));
	color: #ffffff;
	font-family: var(--pb-display);
	font-size: 1.5em;
	font-weight: 700;
}

/* Mode nuit : même texte foncé que .pb-chip-on sur le bleu clair des liens. */
html[data-theme="dark"] .pb-avatar {
	color: #042b40;
}

/* ---- Animations (refonte du 27/11/2026), en CSS seul ---- */
@keyframes pb-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

@keyframes pb-float {
	0%,
	100% {
		transform: rotate(-1.5deg) translateY(0);
	}

	50% {
		transform: rotate(-1.5deg) translateY(-8px);
	}
}

@keyframes pb-shine {
	0%,
	70% {
		transform: translateX(-120%) skewX(-20deg);
	}

	100% {
		transform: translateX(260%) skewX(-20deg);
	}
}

@keyframes pb-progress {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

/* Bandeaux qui apparaissent en fondu à l'ouverture de la page. */
.pb-hero,
.pb-banner,
.pb-post-hero {
	animation: pb-rise 0.6s ease-out both;
}

/* Aperçu de forum du bandeau d'accueil qui flotte doucement. */
.pb-hero-preview {
	animation: pb-float 6s ease-in-out 0.6s infinite;
}

/* Reflet lumineux qui passe sur le bouton de l'appel à l'action toutes les quelques secondes. */
html:not([data-pb-plain]) .pb-cta .button::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
	animation: pb-shine 4.5s ease-in-out infinite;
	pointer-events: none;
}

/* Blocs qui apparaissent au défilement, et barre de lecture des articles : seulement si le navigateur sait lier une
   animation au défilement (animation-timeline) ; ailleurs, tout reste affiché tel quel. */
@supports (animation-timeline: view()) {
	.pb-stats,
	.pb-section,
	.pb-cta,
	.pb-steps li,
	.pb-post-body {
		animation: pb-rise linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 35%;
	}

	.pb-post-progress {
		position: sticky;
		top: 0;
		z-index: 2;
		display: block;
		height: 4px;
		margin: 12px 0 0;
		border-radius: 4px;
		background: var(--pb-surface-2);
		overflow: hidden;
	}

	.pb-post-progress span {
		display: block;
		height: 100%;
		background: linear-gradient(90deg, var(--pb-fill), var(--pb-fill-2));
		transform-origin: left;
		animation: pb-progress linear both;
		animation-timeline: scroll(root);
	}
}

/* ---- Téléphone et tablette ---- */

@media (max-width: 900px) {
	.pb-hero {
		grid-template-columns: 1fr;
		padding: 30px 22px;
	}

	.pb-steps-short::before {
		display: none;
	}

	.pb-cards,
	.pb-steps,
	.pb-forums,
	.pb-news-grid,
	.pb-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pb-rgrid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

}

@media (max-width: 700px) {
	html:not([data-pb-plain]) .pb-hero h2,
	html:not([data-pb-plain]) .pb-hero h1 {
		font-size: 2.6em;
	}

	.pb-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pb-stat {
		grid-template-columns: 1fr;
		padding: 14px 16px;
	}

	.pb-stat .icon {
		grid-row: auto;
		margin-bottom: 6px;
	}

	.pb-hero-preview {
		transform: none;
		animation: none;
	}

	/* Étapes en liste : numéro à gauche du titre. */
	.pb-steps-short li {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 14px;
		text-align: left;
	}

	.pb-steps-short li::before {
		grid-row: span 2;
		margin: 0;
	}

	.pb-cards,
	.pb-steps,
	.pb-split,
	.pb-forums,
	.pb-news-featured,
	.pb-news-grid,
	.pb-cats {
		grid-template-columns: 1fr;
	}

	.pb-rgrid {
		grid-template-columns: 1fr;
	}

	.pb-news-cover-large {
		min-height: 140px;
		font-size: 2.2em;
	}

	.pb-news-search {
		width: 100%;
	}

	html:not([data-pb-plain]) .pb-news-search input {
		width: 100%;
		flex: 1;
	}

	.pb-banner {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 24px 20px;
	}

	.pb-cta {
		padding: 26px 22px;
	}

	.pb-post-hero {
		min-height: 200px;
		padding: 28px 20px;
	}

	.pb-post-pattern {
		right: 16px;
		top: 16px;
		font-size: 80px;
	}

	html:not([data-pb-plain]) .pb-post-hero h1 {
		font-size: 2.5em;
	}

	.pb-post-body {
		padding: 22px 18px;
		font-size: 1.35em;
	}

	.pb-post-nav {
		grid-template-columns: 1fr;
	}

	.pb-post-next {
		grid-template-columns: 84px minmax(0, 1fr);
	}

	.pb-post-all {
		justify-content: center;
		padding: 12px;
	}

	.pb-shortcuts {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.pb-shortcut {
		grid-template-columns: 38px minmax(0, 1fr);
		grid-template-rows: auto;
		gap: 2px 12px;
		padding: 12px 14px;
	}

	.pb-shortcut-icon {
		grid-row: span 3;
	}

	.pb-shortcut-meta {
		padding-top: 2px;
		border-top: 0;
	}

	.pb-banner-icon {
		width: 52px;
		height: 52px;
		border-radius: 14px;
		font-size: 22px;
	}

	html:not([data-pb-plain]) .pb-banner h2,
	html:not([data-pb-plain]) .pb-banner h1 {
		font-size: 1.9em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pb-shortcut,
	.pb-card,
	.pb-forum,
	.pb-news-card,
	.pb-news-featured,
	.pb-cat,
	.pb-rcard,
	.pb-post-next,
	.pb-forum-thumb img,
	.pb-rthumb img,
	.pb-news-cover-image img,
	html:not([data-pb-plain]) .pb-hero .button,
	html:not([data-pb-plain]) .pb-cta .button {
		transition: none;
	}

	.pb-shortcut:hover,
	.pb-card:hover,
	.pb-forum:hover,
	.pb-news-card:hover,
	.pb-cat:hover,
	.pb-rcard:hover,
	.pb-forum:hover .pb-forum-thumb img,
	.pb-rcard:hover .pb-rthumb img,
	.pb-news-card:hover .pb-news-cover-image img,
	.pb-news-featured:hover .pb-news-cover-image img,
	html:not([data-pb-plain]) .pb-hero .button:hover,
	html:not([data-pb-plain]) .pb-cta .button:hover {
		transform: none;
	}

	.pb-hero,
	.pb-banner,
	.pb-post-hero,
	.pb-hero-preview,
	.pb-stats,
	.pb-section,
	.pb-cta,
	.pb-steps li,
	.pb-post-body {
		animation: none;
	}

	html:not([data-pb-plain]) .pb-cta .button::after,
	.pb-post-progress {
		display: none;
	}
}
