/* Maquette prosilver v2 : 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.
   Polices du site public (Bricolage Grotesque, Schibsted Grotesk) dans ces blocs seulement ; 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). */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

@font-face {
	font-family: "Schibsted Grotesk";
	src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 900;
	font-display: swap;
}

html:not([data-pb-plain]) {
	--pb-bg: #edf2f8;
	--pb-surface: #ffffff;
	--pb-surface-2: #f4f7fb;
	--pb-line: #d8e2ed;
	--pb-ink: #1c2a39;
	--pb-muted: #5a6b7e;
	--pb-brand: #105289;
	--pb-brand-2: #12a3eb;
	--pb-brand-deep: #0b3a63;
	--pb-brand-soft: #e5eff9;
	--pb-accent: #d31141;
	--pb-fill: #105289;
	--pb-fill-2: #12a3eb;
	--pb-on-white: #d31141;
	--pb-shadow: 0 1px 2px rgba(16, 52, 89, 0.06), 0 6px 18px rgba(16, 52, 89, 0.07);
	--pb-radius: 14px;
	--pb-display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
	--pb-text: "Schibsted Grotesk", "Segoe UI", Verdana, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
	--pb-bg: #11161d;
	--pb-surface: #1a212b;
	--pb-surface-2: #212a35;
	--pb-line: #2d3a49;
	--pb-ink: #dfe7f0;
	--pb-muted: #9babbd;
	--pb-brand: #72bbfd;
	--pb-brand-2: #2f9fe0;
	--pb-brand-deep: #0a2a47;
	--pb-brand-soft: #1c2f45;
	--pb-accent: #ff7a98;
	--pb-fill: #17609c;
	--pb-fill-2: #1d86c6;
	--pb-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* État d'une demande ou d'un forum, dans le titre du sujet (Demandes de forum, Mes forums). */
html:not([data-pb-plain]) .pb-status {
	font-weight: 700;
}

html:not([data-pb-plain]) .pb-status-ok {
	color: #1b8a1b;
}

html:not([data-pb-plain]) .pb-status-wait {
	color: #105289;
}

html:not([data-pb-plain]) .pb-status-info {
	color: #b35c00;
}

html:not([data-pb-plain]) .pb-status-no {
	color: #bc2a4d;
}

html[data-theme="dark"] .pb-status-ok {
	color: #6fd36f;
}

html[data-theme="dark"] .pb-status-wait {
	color: #72bbfd;
}

html[data-theme="dark"] .pb-status-info {
	color: #f2b45a;
}

html[data-theme="dark"] .pb-status-no {
	color: #ff8aa6;
}

/* 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);
	letter-spacing: -0.01em;
}

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-ink);
}

/* 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_v2.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: #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) ---- */

.pb-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 10px 0 16px;
	padding: 18px 22px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: linear-gradient(120deg, var(--pb-surface) 55%, var(--pb-brand-soft));
	box-shadow: var(--pb-shadow);
}

.pb-banner-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--pb-fill), var(--pb-fill-2));
	color: #ffffff;
	font-size: 24px;
}

.pb-banner-text {
	min-width: 0;
}

.pb-banner-kicker {
	margin: 0;
	color: var(--pb-brand);
	font-size: 1.05em;
	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: 2px 0 0;
	font-size: 2.4em;
	line-height: 1.15;
	text-wrap: balance;
}

.pb-banner-text > div p,
.pb-banner-desc {
	margin: 4px 0 0;
	color: var(--pb-muted);
	font-size: 1.3em;
	line-height: 1.5;
}

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

.pb-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	margin: 10px 0 14px;
	padding: 34px 34px;
	border-radius: 20px;
	background: radial-gradient(120% 140% at 100% 0%, var(--pb-fill-2) 0%, var(--pb-fill) 45%, var(--pb-brand-deep) 100%);
	color: #ffffff;
	box-shadow: var(--pb-shadow);
	overflow: hidden;
}

.pb-hero-kicker {
	margin: 0 0 8px;
	font-size: 1.1em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
}

html:not([data-pb-plain]) .pb-hero h2,
html:not([data-pb-plain]) .pb-hero h1 {
	margin: 0;
	color: #ffffff;
	font-size: 3.6em;
	font-weight: 750;
	line-height: 1.05;
	text-wrap: balance;
}

.pb-hero p.pb-hero-lead {
	margin: 12px 0 18px;
	max-width: 54ch;
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.45em;
	line-height: 1.55;
}

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

html:not([data-pb-plain]) .pb-hero .button {
	border: 0;
	font-size: 1.35em;
	padding: 8px 16px;
}

html:not([data-pb-plain]) .pb-hero .button.pb-button-primary {
	background: #ffffff;
	color: var(--pb-on-white);
}

html:not([data-pb-plain]) .pb-hero .button.pb-button-ghost {
	background: rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
	color: #ffffff;
}

html:not([data-pb-plain]) .pb-hero .button.pb-button-ghost .icon {
	color: #ffffff;
}

/* Aperçu d'un forum dans le bandeau d'accueil : une ligne de forum prosilver en miniature. */
.pb-hero-preview {
	display: grid;
	gap: 8px;
	padding: 14px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.pb-hero-address {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.22);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 1.15em;
	color: #ffffff;
	overflow-wrap: anywhere;
}

.pb-hero-address b {
	color: #ffe28a;
	font-weight: 600;
}

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

.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 {
	font-style: normal;
	font-family: var(--pb-display);
	font-size: 1.3em;
	font-weight: 600;
	color: #1c2a39;
	font-variant-numeric: tabular-nums;
}

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

.pb-stat {
	padding: 14px 16px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

.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: 26px 0 20px;
}

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

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: 12px;
}

.pb-card {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 4px 12px;
	align-content: start;
	padding: 14px 16px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

.pb-card .icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	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: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: pb-step;
}

.pb-steps li {
	position: relative;
	padding: 16px;
	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: 30px;
	height: 30px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pb-fill), var(--pb-fill-2));
	color: #ffffff;
	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;
}

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

.pb-split > div {
	padding: 16px 18px;
	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: var(--pb-brand-soft);
}

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

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

.pb-split dt {
	color: var(--pb-ink);
	font-size: 1.2em;
	font-weight: 700;
}

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

.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: 14px 24px;
	margin: 22px 0 18px;
	padding: 22px 26px;
	border-radius: 18px;
	background: linear-gradient(120deg, var(--pb-brand-deep), var(--pb-fill));
	color: #ffffff;
	box-shadow: var(--pb-shadow);
}

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

.pb-cta p {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.3em;
}

html:not([data-pb-plain]) .pb-cta .button {
	background: #ffffff;
	border: 0;
	color: var(--pb-on-white);
	font-size: 1.35em;
	padding: 8px 16px;
}

/* 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: 12px;
}

.pb-shortcut {
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	gap: 6px;
	padding: 16px;
	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.15s, transform 0.15s;
}

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

.pb-shortcut:hover {
	border-color: var(--pb-fill-2);
	transform: translateY(-2px);
}

.pb-shortcut-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--pb-fill), var(--pb-fill-2));
	color: #ffffff;
	font-size: 17px;
}

.pb-shortcut strong {
	font-family: var(--pb-display);
	font-size: 1.4em;
	font-weight: 700;
	color: var(--pb-brand);
}

.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: 999px;
	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;
}

/* 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: 12px;
}

.pb-forum {
	display: grid;
	grid-template-rows: auto auto 1fr auto auto;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

.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;
}

.pb-forum-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--pb-muted);
	font-size: 1.08em;
}

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

.pb-forum-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 10px 0 0;
	border-top: 1px solid var(--pb-line);
}

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

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

.pb-forum-last {
	margin: 0;
	padding: 8px 10px;
	border-radius: 9px;
	background: var(--pb-surface-2);
	color: var(--pb-muted);
	font-size: 1.05em;
	line-height: 1.45;
}

/* 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);
}

.pb-post-hero {
	position: relative;
	padding: 34px 40px 74px;
	border-radius: 20px 20px 0 0;
	background: radial-gradient(120% 160% at 100% 0%, var(--pb-fill-2) 0%, var(--pb-fill) 45%, var(--pb-brand-deep) 100%);
	color: #ffffff;
	overflow: hidden;
}

.pb-post-pattern {
	position: absolute;
	right: -20px;
	bottom: -60px;
	color: rgba(255, 255, 255, 0.08);
	font-size: 260px;
	line-height: 1;
	pointer-events: none;
}

html:not([data-pb-plain]) a.pb-post-rubric {
	position: relative;
	display: inline-block;
	padding: 4px 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: #ffffff;
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

html:not([data-pb-plain]) .pb-post-hero h2 {
	position: relative;
	max-width: 22ch;
	margin: 14px 0 18px;
	padding: 0;
	border: 0;
	color: #ffffff;
	font-family: var(--pb-display);
	font-size: 3.6em;
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -0.02em;
	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: rgba(255, 255, 255, 0.75);
	font-size: 1em;
}

.pb-post-hero .pb-avatar {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.pb-post-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.15em;
}

.pb-post-body {
	position: relative;
	max-width: 760px;
	margin: -48px auto 0;
	padding: 30px 36px 30px;
	border: 1px solid var(--pb-line);
	border-radius: 18px;
	background: var(--pb-surface);
	box-shadow: 0 10px 34px rgba(16, 52, 89, 0.12);
	font-size: 1.45em;
	line-height: 1.7;
}

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

.pb-post-lead {
	padding-left: 16px;
	border-left: 4px solid var(--pb-fill-2);
	color: var(--pb-ink);
	font-size: 1.12em;
	line-height: 1.6;
}

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;
	letter-spacing: -0.01em;
}

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

.pb-post-checks {
	display: grid;
	gap: 8px;
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.pb-post-checks li {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--pb-surface-2);
}

.pb-post-checks .icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-size: 15px;
}

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

.pb-post-sign {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 1.4em;
	padding-top: 1em;
	border-top: 1px solid var(--pb-line);
	color: var(--pb-muted);
	font-size: 0.9em;
	line-height: 1.45;
}

.pb-post-sign b {
	color: var(--pb-ink);
}

.pb-post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	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-fill-2);
}

.pb-post-next-cover {
	display: grid;
	place-items: center;
	background: radial-gradient(120% 160% at 100% 0%, var(--pb-fill-2) 0%, var(--pb-fill) 50%, var(--pb-brand-deep) 100%);
	color: rgba(255, 255, 255, 0.9);
	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;
}

.pb-article-note {
	display: flex;
	gap: 12px;
	margin: 1.4em 0;
	padding: 14px 16px;
	border-left: 4px solid var(--pb-fill-2);
	border-radius: 10px;
	background: var(--pb-brand-soft);
	font-size: 0.92em;
	line-height: 1.55;
}

.pb-article-note .icon {
	color: var(--pb-brand);
	font-size: 1.3em;
	line-height: 1.2;
}

.pb-article-note strong {
	display: block;
	color: var(--pb-brand);
}

/* Annuaire : autres catégories en pastilles, description d'un forum classé sur deux lignes (audit du 11/11/2026). */
.pb-dir-categories {
	margin: 0 0 14px;
}

.pb-pill-count {
	opacity: .7;
	font-variant-numeric: tabular-nums;
}

.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 6px;
	color: #ffffff;
	font-size: 0.95em;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.8;
}

/* 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 {
	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: 6px;
	margin: 0 0 14px;
	font-size: 1.1em;
}

.pb-news-categories .pb-chip {
	text-decoration: none;
}

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

.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-ink);
	font-size: 2.2em;
	font-weight: 700;
	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: 4px 4px 4px 12px;
	border: 1px solid var(--pb-line);
	border-radius: 12px;
	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 {
	border: 0;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--pb-fill), var(--pb-fill-2));
	color: #ffffff;
	font-size: 1.15em;
	padding: 5px 12px;
}

.pb-news-cover {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 96px;
	padding: 0 14px;
	background: radial-gradient(120% 160% at 100% 0%, var(--pb-fill-2) 0%, var(--pb-fill) 50%, var(--pb-brand-deep) 100%);
	color: #ffffff;
	font-family: var(--pb-display);
	font-size: 1.7em;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-align: center;
}

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

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

/* Site v2 : image de couverture d'un article (sinon l'icône de la maquette) 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;
}

.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, 1fr) minmax(0, 1.1fr);
	margin: 0 0 14px;
	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.15s;
}

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

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

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

.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.15s, transform 0.15s;
}

.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,
html:not([data-pb-plain]) a.pb-news-page,
html:not([data-pb-plain]) a.pb-news-page:hover {
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-news-card:hover,
.pb-news-featured:hover,
.pb-news-page:hover {
	border-color: var(--pb-fill-2);
}

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

.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: 6px;
	padding: 7px 14px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--pb-fill), var(--pb-fill-2));
	color: #ffffff;
	font-size: 1.2em;
	font-weight: 700;
}

.pb-news-pages {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 18px 0 4px;
}

.pb-news-page {
	padding: 6px 14px;
	border: 1px solid var(--pb-line);
	border-radius: 9px;
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	font-size: 1.15em;
	font-weight: 600;
}

.pb-news-page-off {
	color: var(--pb-muted);
	opacity: 0.6;
}

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

html:not([data-pb-plain]) .pb-cta.pb-cta-small {
	margin: 14px 0;
	padding: 16px 20px;
}

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: 12px;
}

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

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,
html:not([data-pb-plain]) a.pb-page {
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-cat:hover,
.pb-rcard:hover {
	border-color: var(--pb-fill-2);
	transform: translateY(-2px);
}

.pb-cat-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--pb-fill), var(--pb-fill-2));
	color: #ffffff;
	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 12px;
	padding: 10px 12px;
	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;
}

.pb-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-right: 8px;
}

.pb-pill {
	padding: 4px 11px;
	border: 1px solid var(--pb-line);
	border-radius: 999px;
	background: var(--pb-surface-2);
	font-size: 1.1em;
	font-weight: 600;
}

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

html:not([data-pb-plain]) a.pb-pill.pb-pill-on {
	border-color: var(--pb-fill);
	background: linear-gradient(135deg, var(--pb-fill), var(--pb-fill-2));
	color: #ffffff;
}

.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: 14px;
}

.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.15s, transform 0.15s;
}

.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;
}

.pb-rthumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.pb-rank-badge {
	position: absolute;
	left: 8px;
	bottom: 8px;
	min-width: 26px;
	padding: 3px 7px;
	border-radius: 8px;
	background: rgba(11, 30, 52, 0.82);
	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: 8px;
	bottom: 8px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f6c343;
	color: #6b4a00;
	font-size: 14px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

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

.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);
}

.pb-pages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 18px 0 4px;
}

.pb-page {
	display: grid;
	place-items: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border: 1px solid var(--pb-line);
	border-radius: 9px;
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	font-size: 1.15em;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

html:not([data-pb-plain]) a.pb-page:hover {
	border-color: var(--pb-fill-2);
}

.pb-page-on {
	border-color: var(--pb-fill);
	background: linear-gradient(135deg, var(--pb-fill), var(--pb-fill-2));
	color: #ffffff;
}

.pb-page-gap {
	color: var(--pb-muted);
}

/* Flux d'actualité (views/flux.php, flux.js) : colonne des forums connectés, onglets, éléments par jour, À lire,
   Découvrir avec les captures de l'annuaire. */
.pb-flux {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	margin: 0 0 16px;
	font-family: var(--pb-text);
	font-size: 11.5px;
	color: var(--pb-ink);
}

.pb-flux-side {
	position: sticky;
	top: 12px;
	padding: 14px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

.pb-flux-accounts {
	margin: 0 0 12px;
	padding: 8px 10px;
	border-radius: 9px;
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-size: 1.1em;
	font-weight: 700;
}

html:not([data-pb-plain]) .pb-flux-side h3 {
	margin: 12px 0 6px;
	padding: 0;
	border: 0;
	color: var(--pb-muted);
	font-family: var(--pb-text);
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pb-flux-forums {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pb-flux-forums a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	border-radius: 8px;
	font-size: 1.12em;
}

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

html:not([data-pb-plain]) .pb-flux-forums a:hover {
	background: var(--pb-surface-2);
}

html:not([data-pb-plain]) .pb-flux-forums a.pb-flux-forum-on {
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-weight: 700;
}

.pb-flux-forums b {
	margin-left: auto;
	min-width: 20px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--pb-on-white);
	color: #ffffff;
	font-size: 0.85em;
	text-align: center;
}

.pb-dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--dot);
}

.pb-star {
	color: #e0a800;
}

html:not([data-pb-plain]) .pb-flux-manage {
	display: block;
	margin-top: 14px;
	padding: 8px 10px;
	border: 1px solid var(--pb-line);
	border-radius: 9px;
	color: var(--pb-ink);
	font-size: 1.1em;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

html:not([data-pb-plain]) .pb-flux-manage:hover {
	border-color: var(--pb-fill-2);
}

.pb-flux-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

.pb-flux-tabs {
	margin: 0;
}

.pb-pill-count {
	display: inline-block;
	min-width: 16px;
	margin-left: 2px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--pb-on-white);
	color: #ffffff;
	font-size: 0.85em;
	text-align: center;
}

.pb-flux-search {
	box-shadow: none;
}

html:not([data-pb-plain]) .pb-flux-search input {
	width: 150px;
	padding: 4px 0;
}

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

html:not([data-pb-plain]) .pb-fgroup h3 {
	margin: 4px 0 8px;
	padding: 0;
	border: 0;
	color: var(--pb-muted);
	font-family: var(--pb-text);
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pb-fgroup {
	margin: 0 0 14px;
}

.pb-fitem {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: start;
	margin: 0 0 8px;
	padding: 12px 14px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	transition: border-color 0.15s;
}

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

.pb-fitem:hover {
	border-color: var(--pb-fill-2);
}

.pb-fitem-unread {
	border-left: 4px solid var(--pb-fill-2);
}

.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;
}

.pb-fitem-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.pb-kind {
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 0.95em;
	font-weight: 700;
}

.pb-kind-reply { background: #e3f1fb; color: #105289; }
.pb-kind-quote { background: #f1e9fb; color: #6b3fae; }
.pb-kind-mention { background: #e5f6ea; color: #1f7a3d; }
.pb-kind-pm { background: #fdecef; color: #b0173f; }
.pb-kind-topic { background: #fff1e0; color: #a35400; }
.pb-kind-reaction { background: #fde8f1; color: #b2236b; }

html[data-theme="dark"] .pb-kind-reply { background: #16324d; color: #8cc8ff; }
html[data-theme="dark"] .pb-kind-quote { background: #2c2146; color: #c7a8ff; }
html[data-theme="dark"] .pb-kind-mention { background: #173525; color: #7fdc9d; }
html[data-theme="dark"] .pb-kind-pm { background: #3b1822; color: #ff9db3; }
html[data-theme="dark"] .pb-kind-topic { background: #3a2610; color: #ffbe73; }
html[data-theme="dark"] .pb-kind-reaction { background: #3a1830; color: #ff9cd0; }

.pb-fitem-text {
	color: var(--pb-ink);
	font-size: 1.25em;
	line-height: 1.45;
}

.pb-fitem-meta {
	color: var(--pb-muted);
	font-size: 1.05em;
}

.pb-unread-dot {
	width: 10px;
	height: 10px;
	margin-top: 6px;
	border-radius: 50%;
	background: var(--pb-fill-2);
}

html:not([data-pb-plain]) .pb-saved-title {
	color: var(--pb-brand);
	font-family: var(--pb-display);
	font-size: 1.4em;
	font-weight: 700;
}

.pb-saved-last {
	color: var(--pb-muted);
	font-size: 1.08em;
}

html:not([data-pb-plain]) .pb-saved-remove {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-size: 14px;
	text-decoration: none;
}

.pb-flux-filters {
	box-shadow: none;
}

html:not([data-pb-plain]) .pb-flux-filters select {
	border: 1px solid var(--pb-line);
	border-radius: 8px;
	background: var(--pb-surface);
	color: var(--pb-ink);
	padding: 4px 8px;
	margin-right: 8px;
}

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

.pb-dcard {
	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;
}

.pb-dcard .pb-rbody {
	align-items: flex-start;
	flex: 1;
}

.pb-dcard .pb-rbody strong {
	color: var(--pb-ink);
}

.pb-dcard-desc {
	color: var(--pb-muted);
	font-size: 1.12em;
	line-height: 1.45;
}

.pb-dcard .pb-rstats {
	width: 100%;
	padding-top: 8px;
	border-top: 1px solid var(--pb-line);
}

.pb-dcard-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	margin-top: auto;
}

html:not([data-pb-plain]) .pb-dcard-preview {
	color: var(--pb-brand);
	font-size: 1.08em;
	font-weight: 600;
}

html:not([data-pb-plain]) .pb-dcard-join {
	padding: 5px 14px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--pb-fill), var(--pb-fill-2));
	color: #ffffff;
	font-size: 1.1em;
	font-weight: 700;
	text-decoration: none;
}

.pb-flux-more {
	display: flex;
	justify-content: center;
	margin: 4px 0 0;
}

html:not([data-pb-plain]) .pb-flux-more .pb-page {
	padding: 0 16px;
	color: var(--pb-ink);
	text-decoration: none;
}

/* Gestion de mes forums (module « Mes forums » de l'UCP, ucp_myforums.html) : cartes des forums et export. */
.pb-mf {
	font-family: var(--pb-text);
	font-size: 11.5px;
	color: var(--pb-ink);
}

.pb-mf-intro {
	margin: 0 0 4px;
	font-size: 1.25em;
}

.pb-mf-card {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	margin: 0 0 12px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
	overflow: hidden;
}

.pb-mf-thumb {
	position: relative;
	display: block;
	max-width: 100%;
	min-height: 140px;
	border-right: 1px solid var(--pb-line);
	background: var(--pb-surface-2);
	overflow: hidden;
}

.pb-mf-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.pb-mf-thumb-pending img {
	object-fit: contain;
	padding: 24px;
	opacity: 0.6;
}

.pb-mf-capture {
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 2px 8px;
	border-radius: 7px;
	background: rgba(11, 30, 52, 0.8);
	color: #ffffff;
	font-size: 0.95em;
	font-weight: 600;
}

.pb-mf-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 14px 16px;
}

.pb-mf-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.pb-mf-title strong {
	color: var(--pb-ink);
	font-family: var(--pb-display);
	font-size: 1.6em;
	font-weight: 700;
	line-height: 1.2;
}

.pb-mf-state {
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 1em;
	font-weight: 700;
}

.pb-mf-state-ok {
	background: #e3f5e8;
	color: #1b7a33;
}

html[data-theme="dark"] .pb-mf-state-ok {
	background: #173525;
	color: #7fdc9d;
}

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

.pb-mf-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	margin: 0;
}

.pb-mf-facts dt {
	color: var(--pb-muted);
	font-size: 0.95em;
	font-weight: 400;
}

.pb-mf-facts dd {
	margin: 0;
	color: var(--pb-ink);
	font-size: 1.12em;
	font-weight: 600;
}

.pb-mf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

html:not([data-pb-plain]) .pb-mf-primary,
html:not([data-pb-plain]) .pb-mf-secondary {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 13px;
	border-radius: 9px;
	font-size: 1.12em;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

html:not([data-pb-plain]) .pb-mf-primary {
	background: linear-gradient(135deg, var(--pb-fill), var(--pb-fill-2));
	color: #ffffff;
}

html:not([data-pb-plain]) .pb-mf-secondary {
	border: 1px solid var(--pb-line);
	background: var(--pb-surface);
	color: var(--pb-ink);
}

html:not([data-pb-plain]) .pb-mf-secondary:hover {
	border-color: var(--pb-fill-2);
}

/* Site v2 : export des données et ouverture de l'administration envoyés par un bouton de formulaire (jeton de
   phpBB), au même aspect que les liens. */
html:not([data-pb-plain]) button.pb-mf-secondary,
html:not([data-pb-plain]) button.pb-mf-primary {
	cursor: pointer;
	font-family: inherit;
	line-height: inherit;
}

html:not([data-pb-plain]) button.pb-mf-primary {
	border: 0;
}

.pb-mf-data {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 14px 16px;
	border: 1px dashed var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface-2);
}

.pb-mf-data-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-size: 17px;
}

.pb-mf-data strong {
	font-family: var(--pb-display);
	font-size: 1.3em;
}

.pb-mf-data p {
	margin: 2px 0 0;
	color: var(--pb-muted);
	font-size: 1.1em;
}

/* Demander un forum (views/request.php) : étapes avec icône, inclus et non proposé. */
.pb-steps-icons li::before {
	position: absolute;
	right: 14px;
	top: 14px;
	margin: 0;
}

.pb-step-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 10px;
	border-radius: 11px;
	background: var(--pb-brand-soft);
	color: var(--pb-brand);
	font-size: 18px;
}

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

.pb-offer {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.pb-offer-card {
	padding: 16px 18px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	box-shadow: var(--pb-shadow);
}

html:not([data-pb-plain]) .pb-offer-card h3 {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	font-size: 1.5em;
	text-transform: none;
}

html:not([data-pb-plain]) .pb-offer-yes h3 {
	color: #1b7a33;
}

html:not([data-pb-plain]) .pb-offer-no h3 {
	color: #b0173f;
}

html[data-theme="dark"] .pb-offer-yes h3 {
	color: #7fdc9d;
}

html[data-theme="dark"] .pb-offer-no h3 {
	color: #ff9db3;
}

/* Bon à savoir de /request : liste simple, mêmes lignes que les cartes de l'offre. */
.pb-req-good {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 4px 18px;
	border: 1px solid var(--pb-line);
	border-radius: 10px;
	background: var(--pb-surface);
	list-style: none;
}

.pb-req-good li {
	padding: 8px 0;
	border-top: 1px solid var(--pb-line);
	color: var(--pb-ink);
	font-size: 1.22em;
	line-height: 1.45;
}

.pb-req-good li:first-child {
	border-top: 0;
}

.pb-offer-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pb-offer-card li {
	position: relative;
	padding: 7px 0 7px 26px;
	border-top: 1px solid var(--pb-line);
	color: var(--pb-ink);
	font-size: 1.22em;
	line-height: 1.4;
}

.pb-offer-card li:first-child {
	border-top: 0;
}

.pb-offer-card li::before {
	position: absolute;
	left: 2px;
	top: 7px;
	font-family: FontAwesome;
	font-size: 0.95em;
}

.pb-offer-yes li::before {
	content: "\f00c";
	color: #1b8a1b;
}

.pb-offer-no li::before {
	content: "\f00d";
	color: #bc2a4d;
}

html[data-theme="dark"] .pb-offer-yes li::before {
	color: #7fdc9d;
}

html[data-theme="dark"] .pb-offer-no li::before {
	color: #ff9db3;
}

html:not([data-pb-plain]) .pb-offer-card a {
	color: var(--pb-brand);
}

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

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

	.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));
	}

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

	.pb-flux-side {
		position: static;
		order: 2;
	}

	.pb-dgrid {
		grid-template-columns: repeat(2, 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-cards,
	.pb-steps,
	.pb-split,
	.pb-offer,
	.pb-forums,
	.pb-news-featured,
	.pb-news-grid,
	.pb-cats {
		grid-template-columns: 1fr;
	}

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

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

	.pb-mf-card,
	.pb-mf-data {
		grid-template-columns: 1fr;
	}

	.pb-mf-thumb {
		min-height: 0;
		aspect-ratio: 16 / 10;
		border-right: 0;
		border-bottom: 1px solid var(--pb-line);
	}

	.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 {
		padding: 14px 16px;
	}

	.pb-post-hero {
		padding: 24px 18px 64px;
		border-radius: 16px 16px 0 0;
	}

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

	.pb-post-body {
		margin: -44px 8px 0;
		padding: 20px 16px 22px;
		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: 42px;
		height: 42px;
		font-size: 19px;
	}

	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-news-card,
	.pb-cat,
	.pb-rcard,
	.pb-fitem,
	.pb-post-next {
		transition: none;
	}

	.pb-shortcut:hover,
	.pb-news-card:hover,
	.pb-cat:hover,
	.pb-rcard:hover {
		transform: none;
	}
}

/* Page « Demander un forum » : règles de l'adresse voulue, sous les étapes (audit du 11/11/2026). */
html:not([data-pb-plain]) .pb-req-rules {
	margin: 12px 0 0;
	padding: 10px 14px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-surface-2);
	color: var(--pb-muted);
	font-family: var(--pb-text);
	font-size: 13px;
}
