/* SIMPLE Forum — feuille de style unique.
   Tout est préfixé .sphf-forum pour ne rien casser ailleurs,
   et neutralise les héritages agressifs de thème (capitales, centrage). */

.sphf-forum,
.sphf-forum * {
	box-sizing: border-box;
}

.sphf-forum {
	/* Fond des blocs et zones : ceux de l'apparence commune (SIMPLE Core). */
	--sphf-bg: var(--sphf-card, #ffffff);
	--sphf-soft: var(--sphf-zone, #f5f7fa);
	--sphf-line: #e3e8ef;
	--sphf-text: #1d2733;
	--sphf-muted: #66748a;
	--sphf-accent: #1d6fe0;
	--sphf-accent-dark: #1558b3;
	--sphf-accent-soft: #eaf2fe;
	--sphf-accent-wash: #f5f9ff;
	--sphf-danger: #c0392b;
	/* Courbure des coins (Forum → Apparence) : blocs, petits éléments, boutons. */
	--sphf-radius: 12px;
	--sphf-radius-s: 8px;
	--sphf-pill: 999px;
	--sphf-shadow: 0 1px 2px rgba(18, 32, 51, .06), 0 6px 20px rgba(18, 32, 51, .06);

	line-height: 1.55;
	color: var(--sphf-text);
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	font-family: var(--sphf-font);
	max-width: 55em;
	margin: 0 auto;
	padding: 1em;
}

.sphf-forum p,
.sphf-forum h1,
.sphf-forum h2,
.sphf-forum ul,
.sphf-forum li,
.sphf-forum label,
.sphf-forum div,
.sphf-forum span,
.sphf-forum a {
	text-align: left !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.sphf-forum ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sphf-forum a {
	color: var(--sphf-accent);
	text-decoration: none;
}

.sphf-forum a:hover {
	text-decoration: underline;
}

/* --- En-tête --- */

.sphf-fo-head {
	display: flex;
	flex-wrap: wrap;
	gap: .75em;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: .875em;
	margin-bottom: 1.125em;
	border-bottom: 1px solid var(--sphf-line);
}

.sphf-fo-head__title {
	font-size: 1.375em;
	font-weight: 700;
	color: var(--sphf-text) !important;
	text-transform: none;
}

.sphf-fo-head__title:hover {
	text-decoration: none;
	color: var(--sphf-accent) !important;
}

.sphf-fo-head__right {
	display: flex;
	gap: .875em;
	align-items: center;
	font-size: .875em;
}

.sphf-fo-head__me {
	color: var(--sphf-muted);
}

.sphf-fo-link {
	color: var(--sphf-accent);
}

/* --- Barre d'outils --- */

.sphf-fo-tools {
	display: flex;
	flex-wrap: wrap;
	gap: .625em;
	align-items: center;
	margin-bottom: .875em;
}

.sphf-fo-search {
	display: flex;
	gap: .5em;
	flex: 1 1 16.25em;
	margin: 0;
}

.sphf-fo-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: .625em .875em;
	font-size: .9375em;
	font-family: inherit;
	color: var(--sphf-text);
	background: var(--sphf-bg);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-pill);
}

.sphf-fo-search input[type="search"]:focus {
	outline: 2px solid var(--sphf-accent-soft);
	border-color: var(--sphf-accent);
}

/* --- Boutons --- */

.sphf-fo-btn {
	display: inline-block;
	padding: .625em 1.125em;
	font-size: .9375em;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	color: var(--sphf-text);
	background: var(--sphf-bg);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-pill);
	cursor: pointer;
	transition: background .15s, border-color .15s, transform .05s;
}

.sphf-fo-btn:hover {
	background: var(--sphf-soft);
	text-decoration: none;
}

.sphf-fo-btn:active {
	transform: translateY(1px);
}

.sphf-fo-btn--primary {
	color: #fff !important;
	background: var(--sphf-accent);
	border-color: var(--sphf-accent);
	box-shadow: 0 2px 8px rgba(29, 111, 224, .28);
}

.sphf-fo-btn--primary:hover {
	background: var(--sphf-accent-dark);
	border-color: var(--sphf-accent-dark);
}

.sphf-fo-btn--ghost {
	background: var(--sphf-soft);
}

.sphf-fo-btn--new {
	white-space: nowrap;
}

/* --- Pastilles de catégorie --- */

.sphf-fo-cats {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	margin-bottom: 1.25em;
}

.sphf-fo-chip {
	display: inline-flex;
	gap: .375em;
	align-items: center;
	padding: .375em .875em;
	font-size: .875em;
	font-weight: 600;
	color: var(--sphf-muted) !important;
	background: var(--sphf-soft);
	border: 1px solid transparent;
	border-radius: var(--sphf-pill);
}

.sphf-fo-chip:hover {
	background: var(--sphf-accent-soft);
	color: var(--sphf-accent-dark) !important;
	text-decoration: none;
}

.sphf-fo-chip.is-active {
	color: #fff !important;
	background: var(--sphf-accent);
	border-color: var(--sphf-accent);
}

.sphf-fo-chip__n {
	font-size: .75em;
	font-weight: 700;
	opacity: .7;
}

.sphf-fo-resultline {
	margin: 0 0 .875em;
	font-size: .875em;
	color: var(--sphf-muted);
}

/* --- Liste des discussions --- */

.sphf-fo-list {
	background: var(--sphf-bg);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-radius);
	box-shadow: var(--sphf-shadow);
	overflow: hidden;
}

.sphf-fo-item {
	display: flex;
	gap: .875em;
	align-items: center;
	padding: .875em 1.125em;
	border-top: 1px solid var(--sphf-line);
}

.sphf-fo-item:first-child {
	border-top: none;
}

.sphf-fo-item:hover {
	background: var(--sphf-soft);
}

.sphf-fo-item.is-pinned {
	background: #fffdf3;
}

.sphf-fo-item.is-hidden {
	opacity: .55;
}

.sphf-fo-item__avatar {
	flex: 0 0 auto;
	line-height: 0;
}

.sphf-fo-avatar {
	border-radius: 50%;
	display: block;
}

.sphf-fo-item__main {
	flex: 1 1 auto;
	min-width: 0;
}

.sphf-fo-item__title {
	display: block;
	font-size: 1.0625em;
	font-weight: 600;
	color: var(--sphf-text) !important;
	word-wrap: break-word;
}

.sphf-fo-item__title:hover {
	color: var(--sphf-accent) !important;
	text-decoration: none;
}

.sphf-fo-item__meta,
.sphf-fo-topic__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .375em;
	align-items: center;
	margin-top: .1875em;
	font-size: .8125em;
	color: var(--sphf-muted);
}

.sphf-fo-tag {
	padding: 2px .625em;
	font-size: .75em;
	font-weight: 600;
	color: var(--sphf-accent-dark) !important;
	background: var(--sphf-accent-soft);
	border-radius: var(--sphf-pill);
}

.sphf-fo-tag:hover {
	text-decoration: none;
	filter: brightness(.96);
}

.sphf-fo-dot {
	color: #b6c0cf;
}

.sphf-fo-closed {
	font-weight: 600;
	color: var(--sphf-danger);
}

.sphf-fo-item__count {
	flex: 0 0 4em;
	text-align: center;
}

.sphf-fo-count {
	display: block;
	font-size: 1.125em;
	font-weight: 700;
}

.sphf-fo-count__label {
	display: block;
	font-size: .6875em;
	color: var(--sphf-muted);
}

/* --- Vide --- */

.sphf-fo-empty,
.sphf-fo-callout {
	padding: 2em 1.5em;
	margin: 1.125em 0;
	text-align: center;
	background: var(--sphf-bg);
	border: 1px dashed var(--sphf-line);
	border-radius: var(--sphf-radius);
}

.sphf-fo-empty p,
.sphf-fo-callout p {
	margin: 0 0 .875em;
	color: var(--sphf-muted);
	text-align: center;
}

/* --- Discussion --- */

.sphf-fo-back {
	margin: 0 0 .75em;
	font-size: .875em;
}

.sphf-fo-topic {
	padding: 1.125em 1.25em;
	margin-bottom: 1em;
	background: var(--sphf-bg);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-radius);
	box-shadow: var(--sphf-shadow);
}

.sphf-fo-topic__title {
	margin: 0 0 .375em;
	font-size: 1.5em;
	line-height: 1.25;
	font-weight: 700;
	text-transform: none;
	word-wrap: break-word;
}

.sphf-fo-posts {
	display: flex;
	flex-direction: column;
	gap: .75em;
}

.sphf-fo-post {
	display: flex;
	gap: .875em;
	padding: 1em 1.125em;
	background: var(--sphf-bg);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-radius);
	box-shadow: var(--sphf-shadow);
}

.sphf-fo-post.is-hidden {
	opacity: .55;
	border-style: dashed;
}

.sphf-fo-post__side {
	flex: 0 0 auto;
	line-height: 0;
}

.sphf-fo-post__body {
	flex: 1 1 auto;
	min-width: 0;
}

.sphf-fo-post__head {
	display: flex;
	flex-wrap: wrap;
	gap: .375em;
	align-items: center;
	margin-bottom: .375em;
	font-size: .8125em;
	color: var(--sphf-muted);
}

.sphf-fo-post__author {
	font-size: .9375em;
	font-weight: 700;
	color: var(--sphf-text);
}

.sphf-fo-post__date {
	color: var(--sphf-muted) !important;
}

.sphf-fo-edited {
	font-style: italic;
}

.sphf-fo-post__content {
	font-size: 1em;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.sphf-fo-post__content a {
	text-decoration: underline;
}

.sphf-fo-post__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	margin-top: .75em;
}

.sphf-fo-inline {
	display: inline;
	margin: 0;
}

.sphf-fo-mini {
	padding: .25em .625em;
	font-size: .75em;
	font-weight: 600;
	font-family: inherit;
	color: var(--sphf-muted) !important;
	background: var(--sphf-soft);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-pill);
	cursor: pointer;
}

.sphf-fo-mini:hover {
	color: var(--sphf-text) !important;
	background: #e9eef5;
	text-decoration: none;
}

.sphf-fo-mini--danger {
	color: var(--sphf-danger) !important;
}

.sphf-fo-modbar {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	align-items: center;
	padding-top: .75em;
	margin-top: .75em;
	border-top: 1px dashed var(--sphf-line);
}

.sphf-fo-modbar__label {
	font-size: .75em;
	font-weight: 700;
	text-transform: uppercase !important;
	letter-spacing: .04em !important;
	color: var(--sphf-muted);
}

/* --- Photos --- */

.sphf-fo-photos {
	display: flex;
	flex-wrap: wrap;
	gap: .625em;
	margin-top: .75em;
}

.sphf-fo-photo {
	display: block;
	line-height: 0;
	border-radius: var(--sphf-radius-s);
	overflow: hidden;
	border: 1px solid var(--sphf-line);
}

.sphf-fo-photo__img {
	display: block;
	width: auto;
	max-width: 13.75em;
	height: auto;
	max-height: 13.75em;
	object-fit: cover;
}

/* --- Formulaires --- */

.sphf-fo-form {
	padding: 1.25em;
	margin-top: 1.125em;
	background: var(--sphf-bg);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-radius);
	box-shadow: var(--sphf-shadow);
}

.sphf-fo-form--narrow {
	max-width: 26.25em;
	margin: 1.125em auto;
}

.sphf-fo-form__title {
	margin: 0 0 1em;
	font-size: 1.25em;
	font-weight: 700;
	text-transform: none;
}

.sphf-fo-label {
	display: block;
	margin: .875em 0 .375em;
	font-size: .875em;
	font-weight: 600;
}

.sphf-fo-label:first-of-type {
	margin-top: 0;
}

.sphf-fo-form input[type="text"],
.sphf-fo-form input[type="email"],
.sphf-fo-form input[type="password"],
.sphf-fo-form select,
.sphf-fo-form textarea {
	display: block;
	width: 100%;
	padding: .6875em .875em;
	font-size: 1em;
	font-family: inherit;
	line-height: 1.5;
	color: var(--sphf-text);
	background: var(--sphf-bg);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-radius-s);
	text-transform: none;
}

.sphf-fo-form textarea {
	min-height: 8.75em;
	resize: vertical;
}

.sphf-fo-form input:focus,
.sphf-fo-form select:focus,
.sphf-fo-form textarea:focus {
	outline: 2px solid var(--sphf-accent-soft);
	border-color: var(--sphf-accent);
}

.sphf-fo-check {
	display: flex;
	gap: .5em;
	align-items: center;
	margin-top: .75em;
	font-size: .875em;
	color: var(--sphf-muted);
}

.sphf-fo-check input {
	width: auto;
	margin: 0;
}

.sphf-fo-hint {
	margin: .5em 0 0;
	font-size: .8125em;
	color: var(--sphf-muted);
}

.sphf-fo-form__actions {
	margin-top: 1.125em;
}

.sphf-fo-upload {
	margin-top: 1em;
}

.sphf-fo-upload__label {
	display: block;
	margin-bottom: .375em;
	font-size: .875em;
	font-weight: 600;
}

.sphf-fo-upload input[type="file"] {
	font-size: .875em;
	font-family: inherit;
}

.sphf-fo-hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* --- Notices --- */

.sphf-fo-notice {
	padding: .75em 1em;
	margin-bottom: 1em;
	font-size: .9375em;
	border-radius: var(--sphf-radius-s);
	border: 1px solid;
}

.sphf-fo-notice--ok {
	color: #14532d;
	background: #e7f7ee;
	border-color: #b6e3c8;
}

.sphf-fo-notice--error {
	color: #7f1d1d;
	background: #fdecec;
	border-color: #f3c2c2;
}

/* --- Pagination --- */

.sphf-fo-pager {
	display: flex;
	flex-wrap: wrap;
	gap: .375em;
	margin: 1.125em 0;
}

.sphf-fo-pager__link {
	min-width: 2.375em;
	padding: .4375em .625em;
	font-size: .875em;
	font-weight: 600;
	text-align: center;
	color: var(--sphf-muted) !important;
	background: var(--sphf-bg);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-radius-s);
}

.sphf-fo-pager__link:hover {
	background: var(--sphf-soft);
	text-decoration: none;
}

.sphf-fo-pager__link.is-active {
	color: #fff !important;
	background: var(--sphf-accent);
	border-color: var(--sphf-accent);
}

/* --- Petits écrans --- */

@media (max-width: 600px) {
	.sphf-forum {
		padding: .75em;
	}

	.sphf-fo-item {
		padding: .75em .875em;
	}

	.sphf-fo-item__count {
		flex-basis: 2.875em;
	}

	.sphf-fo-count {
		font-size: 1em;
	}

	.sphf-fo-topic__title {
		font-size: 1.25em;
	}

	.sphf-fo-post {
		padding: .875em;
		gap: .625em;
	}

	.sphf-fo-btn--new {
		flex: 1 1 100%;
	}
}

/* --- Abonnement aux réponses --- */

.sphf-fo-subscribe {
	margin-top: .75em;
}

.sphf-fo-tag--pin {
	color: #8a5a00 !important;
	background: #fdf1d6;
}

.sphf-fo-mini.is-on {
	color: var(--sphf-accent-dark) !important;
	background: var(--sphf-accent-soft);
	border-color: transparent;
}

@media (max-width: 480px) {
	.sphf-fo-item__avatar {
		display: none;
	}

	.sphf-fo-item__meta {
		row-gap: 2px;
	}

	.sphf-fo-tools {
		gap: .5em;
	}
}

.sphf-fo-upload__count {
	margin: .375em 0 0;
	font-size: .8125em;
	font-weight: 600;
	color: var(--sphf-accent-dark);
}

.sphf-fo-upload__count:empty {
	display: none;
}

/* ====================================================================
   Nouveautés 1.2 : imbrication, profil, en-tête, modes d'affichage
   ================================================================= */

/* --- En-tête sans titre --- */

.sphf-fo-head--notitle {
	justify-content: flex-end;
	padding-bottom: .625em;
	margin-bottom: .875em;
}

.sphf-fo-head__me {
	display: inline-flex;
	gap: .4375em;
	align-items: center;
	color: var(--sphf-muted) !important;
}

.sphf-fo-head__me:hover {
	color: var(--sphf-accent) !important;
	text-decoration: none;
}

.sphf-fo-avatar--mini {
	width: 1.75em;
	height: 1.75em;
}

.sphf-fo-avatar--big {
	width: 6em;
	height: 6em;
}

/* --- Réponses imbriquées --- */

.sphf-fo-post.is-reply {
	margin-left: calc(var(--sphf-d, 0) * 1.875em);
	border-left: 3px solid var(--sphf-accent-soft);
}

.sphf-fo-post__parent {
	color: var(--sphf-muted) !important;
	font-style: italic;
}

.sphf-fo-mini--reply {
	color: var(--sphf-accent-dark) !important;
	background: var(--sphf-accent-soft);
	border-color: transparent;
}

.sphf-fo-quote {
	padding: .5em .875em;
	margin: 0 0 .875em;
	font-size: .875em;
	color: var(--sphf-muted);
	background: var(--sphf-soft);
	border-left: 3px solid var(--sphf-line);
	border-radius: 0 var(--sphf-radius-s) var(--sphf-radius-s) 0;
}

@media (max-width: 600px) {
	.sphf-fo-post.is-reply {
		margin-left: calc(var(--sphf-d, 0) * .875em);
	}
}

/* --- Profil --- */

.sphf-fo-profile__photo {
	margin-bottom: 1.125em;
	text-align: center;
}

.sphf-fo-profile__photo .sphf-fo-avatar {
	display: inline-block;
	border: 3px solid var(--sphf-accent-soft);
}

.sphf-fo-details {
	margin: 1em auto 0;
	font-size: .875em;
}

.sphf-fo-details summary {
	cursor: pointer;
	color: var(--sphf-accent);
}

.sphf-fo-form--plain {
	padding: 1em 0 0;
	background: none;
	border: none;
	box-shadow: none;
}

/* ====================================================================
   Mode « hériter du thème »
   Le plugin ne pose plus que la structure : police, couleur de texte et
   fond viennent du thème. Les traits sont un gris translucide, neutre
   aussi bien sur fond clair que sur fond sombre.
   ================================================================= */

.sphf--theme {
	--sphf-bg: transparent;
	--sphf-soft: rgba(128, 128, 128, .10);
	--sphf-line: rgba(128, 128, 128, .28);
	--sphf-text: inherit;
	--sphf-muted: inherit;
	--sphf-shadow: none;

	max-width: none;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.sphf--theme .sphf-fo-head__title,
.sphf--theme .sphf-fo-item__title,
.sphf--theme .sphf-fo-topic__title,
.sphf--theme .sphf-fo-form__title,
.sphf--theme .sphf-fo-post__author {
	font-family: inherit;
	color: inherit !important;
}

.sphf--theme .sphf-fo-item__meta,
.sphf--theme .sphf-fo-topic__meta,
.sphf--theme .sphf-fo-post__head,
.sphf--theme .sphf-fo-hint,
.sphf--theme .sphf-fo-check,
.sphf--theme .sphf-fo-count__label,
.sphf--theme .sphf-fo-resultline,
.sphf--theme .sphf-fo-head__me,
.sphf--theme .sphf-fo-empty p,
.sphf--theme .sphf-fo-callout p {
	color: inherit !important;
	opacity: .72;
}

.sphf--theme .sphf-fo-list,
.sphf--theme .sphf-fo-topic,
.sphf--theme .sphf-fo-post,
.sphf--theme .sphf-fo-form,
.sphf--theme .sphf-fo-empty,
.sphf--theme .sphf-fo-callout {
	background: transparent;
	box-shadow: none;
}

.sphf--theme .sphf-fo-item.is-pinned {
	background: rgba(210, 160, 0, .09);
}

.sphf--theme .sphf-fo-btn,
.sphf--theme .sphf-fo-mini,
.sphf--theme .sphf-fo-pager__link {
	font-family: inherit;
	color: inherit !important;
	background: transparent;
}

.sphf--theme .sphf-fo-btn:hover,
.sphf--theme .sphf-fo-mini:hover,
.sphf--theme .sphf-fo-pager__link:hover {
	background: var(--sphf-soft);
}

.sphf--theme .sphf-fo-btn--primary,
.sphf--theme .sphf-fo-chip.is-active,
.sphf--theme .sphf-fo-pager__link.is-active {
	color: #fff !important;
	background: var(--sphf-accent);
	border-color: var(--sphf-accent);
}

.sphf--theme .sphf-fo-btn--primary:hover {
	background: var(--sphf-accent-dark);
}

.sphf--theme .sphf-fo-chip,
.sphf--theme .sphf-fo-tag,
.sphf--theme .sphf-fo-mini--reply {
	color: inherit !important;
	background: var(--sphf-soft);
}

.sphf--theme .sphf-fo-chip.is-active {
	color: #fff !important;
}

.sphf--theme .sphf-fo-form input[type="text"],
.sphf--theme .sphf-fo-form input[type="email"],
.sphf--theme .sphf-fo-form input[type="password"],
.sphf--theme .sphf-fo-form select,
.sphf--theme .sphf-fo-form textarea,
.sphf--theme .sphf-fo-search input[type="search"] {
	font-family: inherit;
	color: inherit;
	background: transparent;
}

.sphf--theme .sphf-fo-post.is-reply {
	border-left-color: var(--sphf-line);
}

/* ====================================================================
   1.3 : en-tête supprimé, liens de compte dans la barre, cadenas
   ================================================================= */

/* Aucun espace propre au plugin au-dessus du forum : le titre de la page
   WordPress est juste au-dessus. Le réglage « espace au-dessus » ajoute
   ou retire des pixels par-dessus cette base. */
.sphf-forum {
	padding: 0 1em 1em;
}

.sphf--blank {
	padding-top: 1.5em;
}

.sphf-forum > *:first-child {
	margin-top: 0;
}

.sphf-fo-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .625em 1em;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 .75em;
	font-size: .875em;
}

.sphf-fo-nav__right,
.sphf-fo-tools__account {
	display: flex;
	flex-wrap: wrap;
	gap: .875em;
	align-items: center;
	font-size: .875em;
}

.sphf-fo-tools__account {
	margin-left: auto;
}

.sphf-fo-lock {
	flex: 0 0 auto;
	vertical-align: -2px;
}

.sphf-fo-closed {
	display: inline-flex;
	gap: .25em;
	align-items: center;
}

.sphf-fo-modbar .sphf-fo-mini {
	display: inline-flex;
	gap: .3125em;
	align-items: center;
}

@media (max-width: 600px) {
	.sphf-forum {
		padding: 0 .75em .75em;
	}

	.sphf-fo-tools__account {
		width: 100%;
		margin-left: 0;
		justify-content: flex-start;
	}
}

/* Les liens de compte terminent la rangée des catégories : ils se placent à
   droite quand il reste de la place, et se rangent à la suite des pastilles
   sinon — jamais sur une ligne à eux seuls. */
.sphf-fo-cats__account {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .875em;
	align-items: center;
	margin-left: auto;
	padding-left: .625em;
	font-size: .875em;
	white-space: nowrap;
}

/* ====================================================================
   1.4 : nouveautés depuis la dernière visite, votes
   ================================================================= */

/* --- Discussions ayant du nouveau --- */

.sphf-fo-item.is-unread {
	background: var(--sphf-accent-wash);
	box-shadow: inset 3px 0 0 var(--sphf-accent);
}

.sphf-fo-item.is-unread:hover {
	filter: brightness(.985);
}

.sphf-fo-item.is-unread .sphf-fo-item__title {
	font-weight: 700;
}

.sphf-fo-tag--new {
	color: #fff !important;
	background: var(--sphf-accent);
}

.sphf-fo-chip--unread {
	font-weight: 700;
}

.sphf-fo-markread {
	margin: -.5em 0 1em;
	text-align: right;
}

/* --- Votes --- */

.sphf-fo-vote {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: center;
	margin-top: .5em;
	line-height: 1;
}

.sphf-fo-vote__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.625em;
	height: 1.375em;
	padding: 0;
	color: #9aa7b8;
	background: none;
	border: none;
	border-radius: var(--sphf-radius-s);
	cursor: pointer;
	transition: color .12s, background .12s;
}

.sphf-fo-vote__btn:hover {
	color: var(--sphf-accent);
	background: var(--sphf-soft);
}

.sphf-fo-vote__btn.is-on {
	color: var(--sphf-accent);
}

.sphf-fo-vote__spacer {
	display: block;
	height: 1.375em;
}

.sphf-fo-vote__score {
	font-size: .875em;
	font-weight: 700;
	color: var(--sphf-muted);
	cursor: help;
}

.sphf-fo-vote.is-positive .sphf-fo-vote__score {
	color: #1d7a4c;
}

.sphf-fo-vote.is-negative .sphf-fo-vote__score {
	color: var(--sphf-danger);
}

/* --- Reprises pour le mode « hériter du thème » --- */

.sphf--theme .sphf-fo-item.is-unread {
	background: var(--sphf-soft);
}

.sphf--theme .sphf-fo-tag--new {
	color: #fff !important;
	background: var(--sphf-accent);
}

.sphf--theme .sphf-fo-vote__btn,
.sphf--theme .sphf-fo-vote__score {
	color: inherit;
	opacity: .65;
}

.sphf--theme .sphf-fo-vote__btn.is-on,
.sphf--theme .sphf-fo-vote.is-positive .sphf-fo-vote__score,
.sphf--theme .sphf-fo-vote.is-negative .sphf-fo-vote__score {
	opacity: 1;
}

@media (max-width: 600px) {
	.sphf-fo-vote {
		flex-direction: row;
		gap: .25em;
		margin-top: .375em;
	}
}

/* ====================================================================
   1.5 : colonne de gauche, liste sur une ligne, catégories verrouillées
   ================================================================= */

.sphf-fo-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
	align-items: flex-start;
}

.sphf-fo-side {
	flex: 0 0 13.125em;
	min-width: 0;
}

.sphf-fo-main {
	flex: 1 1 20em;
	min-width: 0;
	container-type: inline-size;
}

.sphf-fo-main__top {
	display: flex;
	flex-wrap: wrap;
	gap: .625em .875em;
	align-items: center;
	margin-bottom: .875em;
}

.sphf-fo-main__filter {
	font-size: .875em;
	font-weight: 600;
	color: var(--sphf-muted);
}

/* --- Colonne de gauche --- */

.sphf-fo-side .sphf-fo-search {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	margin: 0 0 1.125em;
}

.sphf-fo-side .sphf-fo-search input[type="search"] {
	flex: 1 1 100%;
}

.sphf-fo-side .sphf-fo-search .sphf-fo-btn {
	flex: 1 1 auto;
	padding: .5em .875em;
	font-size: .875em;
}

.sphf-fo-side__title {
	margin: 0 0 .375em;
	font-size: .75em;
	font-weight: 700;
	text-transform: uppercase !important;
	letter-spacing: .06em !important;
	color: var(--sphf-muted);
}

.sphf-fo-side__news {
	padding-bottom: 1em;
	margin-bottom: 1em;
	border-bottom: 1px solid var(--sphf-line);
}

/* L'entrée « Nouveaux messages » n'est pas une catégorie : teinte ambre,
   forme différente, et séparée de la liste des catégories. */
.sphf-fo-news {
	display: flex;
	gap: .5em;
	align-items: center;
	justify-content: space-between;
	padding: .5625em .75em;
	font-size: .875em;
	font-weight: 700;
	color: #7a5200 !important;
	background: #fdf3dc;
	border: 1px solid #f0dcae;
	border-radius: var(--sphf-radius-s);
}

.sphf-fo-news:hover {
	background: #fbeac4;
	text-decoration: none;
}

.sphf-fo-news.is-active {
	color: #fff !important;
	background: #b57f12;
	border-color: #b57f12;
}

.sphf-fo-news__n {
	padding: 1px .5em;
	font-size: .75em;
	background: rgba(255, 255, 255, .65);
	border-radius: var(--sphf-pill);
}

.sphf-fo-news.is-active .sphf-fo-news__n {
	color: #7a5200;
	background: #fff;
}

.sphf-fo-markread {
	margin: .5em 0 0;
	text-align: left;
}

/* --- Catégories en colonne --- */

.sphf-fo-cats {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 1.125em;
}

.sphf-fo-cat {
	display: flex;
	gap: .5em;
	align-items: center;
	justify-content: space-between;
	padding: .4375em .75em;
	font-size: .9375em;
	color: var(--sphf-text) !important;
	border-radius: var(--sphf-radius-s);
}

.sphf-fo-cat:hover {
	background: var(--sphf-soft);
	text-decoration: none;
}

.sphf-fo-cat.is-active {
	font-weight: 700;
	color: #fff !important;
	background: var(--sphf-accent);
}

.sphf-fo-cat__name {
	display: inline-flex;
	gap: .3125em;
	align-items: center;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sphf-fo-cat__n {
	flex: 0 0 auto;
	font-size: .75em;
	font-weight: 600;
	opacity: .65;
}

.sphf-fo-cat.is-locked .sphf-fo-cat__name {
	opacity: .95;
}

.sphf-fo-side__account {
	display: flex;
	flex-wrap: wrap;
	gap: .75em;
	align-items: center;
	padding-top: .875em;
	font-size: .875em;
	border-top: 1px solid var(--sphf-line);
}

/* --- Liste sur une seule ligne --- */

.sphf-fo-list .sphf-fo-item {
	display: flex;
	gap: .5em;
	align-items: baseline;
	padding: .5625em .75em;
}

.sphf-fo-item__flags {
	display: inline-flex;
	flex: 0 0 auto;
	gap: .25em;
	align-items: center;
	align-self: center;
}

.sphf-fo-item__flags:empty {
	display: none;
}

.sphf-fo-dotnew {
	display: block;
	width: .5em;
	height: .5em;
	background: var(--sphf-accent);
	border-radius: 50%;
}

.sphf-fo-flag {
	display: inline-flex;
	color: var(--sphf-muted);
}

.sphf-fo-list .sphf-fo-item__title {
	flex: 1 1 55%;
	min-width: 0;
	overflow: hidden;
	font-size: .9375em;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sphf-fo-item__author {
	flex: 0 1 auto;
	max-width: 8.125em;
	min-width: 0;
	overflow: hidden;
	font-size: .8125em;
	color: var(--sphf-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sphf-fo-item__date {
	flex: 0 0 2.125em;
	font-size: .8125em;
	color: var(--sphf-muted);
	text-align: right;
	cursor: help;
}

.sphf-fo-item__replies {
	flex: 0 0 2.125em;
	font-size: .875em;
	font-weight: 700;
	text-align: right;
	cursor: help;
}

.sphf-fo-item.is-unread .sphf-fo-item__title {
	font-weight: 700;
}

/* --- Adaptation aux petits écrans --- */

@media (max-width: 782px) {
	.sphf-fo-layout {
		gap: 1em;
	}

	.sphf-fo-side {
		flex: 1 1 100%;
	}

	.sphf-fo-cats {
		flex-direction: row;
		flex-wrap: wrap;
		gap: .375em;
	}

	.sphf-fo-side__title {
		flex: 1 1 100%;
	}

	.sphf-fo-cat {
		padding: .375em .75em;
		background: var(--sphf-soft);
		border-radius: var(--sphf-pill);
	}

	.sphf-fo-side__account {
		border-top: none;
	}
}

@media (max-width: 520px) {
	.sphf-fo-item__author {
		display: none;
	}
}

/* Quand la colonne de droite est étroite — thème à contenu resserré, écran
   partagé — l'auteur s'efface pour laisser le titre respirer. */
@container (max-width: 26.875em) {
	.sphf-fo-item__author {
		display: none;
	}
}

/* --- Mode « hériter du thème » --- */

.sphf--theme .sphf-fo-news {
	color: inherit !important;
	background: var(--sphf-soft);
	border-color: var(--sphf-line);
}

.sphf--theme .sphf-fo-news.is-active {
	color: #fff !important;
	background: var(--sphf-accent);
	border-color: var(--sphf-accent);
}

.sphf--theme .sphf-fo-cat.is-active {
	color: #fff !important;
	background: var(--sphf-accent);
}

/* ====================================================================
   1.6 : visionneuse de photos, bouton de retour, colonne permanente
   ================================================================= */

/* --- Bouton vert de retour --- */

.sphf-fo-btn--back {
	--sphf-green: #1d7a4c;
	--sphf-green-dark: #166138;

	padding: .5em 1em;
	font-size: .875em;
	color: #fff !important;
	background: var(--sphf-green);
	border-color: var(--sphf-green);
	box-shadow: 0 2px 8px rgba(29, 122, 76, .25);
}

.sphf-fo-btn--back:hover {
	color: #fff !important;
	background: var(--sphf-green-dark);
	border-color: var(--sphf-green-dark);
	text-decoration: none;
}

.sphf--theme .sphf-fo-btn--back {
	color: #fff !important;
	background: var(--sphf-green);
	border-color: var(--sphf-green);
}

/* --- Visionneuse (hors de l'enveloppe : tailles en px) --- */

html.sphf-fo-lb-open {
	overflow: hidden;
}

.sphf-fo-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	gap: 8px;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(32, 36, 42, .92);
	backdrop-filter: blur(2px);
}

.sphf-fo-lb.is-open {
	display: flex;
}

.sphf-fo-lb__stage {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	justify-content: center;
	max-width: calc(100% - 140px);
	max-height: 100%;
	margin: 0;
}

.sphf-fo-lb__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 110px);
	width: auto;
	height: auto;
	border-radius: var(--sphf-radius-s);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
	object-fit: contain;
}

.sphf-fo-lb__btn {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background .15s;
}

.sphf-fo-lb__btn:hover {
	background: rgba(255, 255, 255, .26);
}

.sphf-fo-lb__btn[hidden] {
	visibility: hidden;
}

.sphf-fo-lb__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 42px;
	height: 42px;
}

.sphf-fo-lb__count {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, .85);
	text-align: center;
}

@media (max-width: 600px) {
	.sphf-fo-lb {
		padding: 12px;
	}

	.sphf-fo-lb__stage {
		max-width: 100%;
	}

	.sphf-fo-lb__btn {
		width: 40px;
		height: 40px;
	}

	.sphf-fo-lb__prev {
		position: absolute;
		left: 10px;
	}

	.sphf-fo-lb__next {
		position: absolute;
		right: 10px;
	}

	.sphf-fo-lb__img {
		max-height: calc(100vh - 130px);
	}
}

/* --- La colonne de gauche est présente sur toutes les vues --- */

.sphf-fo-nav {
	margin-bottom: .875em;
}

.sphf-fo-nav:empty {
	display: none;
}

/* La photo cliquable annonce qu'elle s'agrandit. */
.sphf-fo-photo {
	cursor: zoom-in;
}

/* ====================================================================
   1.8 : sections privées
   ================================================================= */

/* --- Dans le menu : tout en bas, fond de couleur, cadenas --- */

.sphf-fo-cats__sep {
	display: block;
	height: 1px;
	margin: .5em .25em .375em;
	background: var(--sphf-line);
}

.sphf-fo-cat.is-private,
.sphf--theme .sphf-fo-cat.is-private {
	color: var(--sphf-private-text, #1f2328) !important;
	background: var(--sphf-private-bg, #fbe9c6);
	box-shadow: inset 0 0 0 1px var(--sphf-private-line, rgba(0, 0, 0, .12));
}

.sphf-fo-cat.is-private:hover {
	filter: brightness(.96);
}

.sphf-fo-cat.is-private.is-active,
.sphf--theme .sphf-fo-cat.is-private.is-active {
	font-weight: 700;
	color: var(--sphf-private-text, #1f2328) !important;
	background: var(--sphf-private-bg, #fbe9c6);
	box-shadow: inset 0 0 0 2px var(--sphf-accent), inset 0 0 0 1px var(--sphf-private-line, rgba(0, 0, 0, .12));
}

.sphf-fo-cat.is-private + .sphf-fo-cat.is-private {
	margin-top: .1875em;
}

@media (max-width: 782px) {
	.sphf-fo-cats__sep {
		display: none;
	}

	.sphf-fo-cat.is-private {
		background: var(--sphf-private-bg, #fbe9c6);
	}
}

/* --- Étiquette et ligne de liste --- */

.sphf-fo-tag.sphf-fo-tag--private {
	display: inline-flex;
	gap: .25em;
	align-items: center;
	color: var(--sphf-private-text, #1f2328) !important;
	background: var(--sphf-private-bg, #fbe9c6);
}

.sphf-fo-flag--private {
	color: #9a6700;
}

/* --- Page « Section privée » --- */

.sphf-fo-private {
	max-width: 35em;
	margin: .5em auto 1.5em;
	padding: 1.75em 1.5em 1.5em;
	color: var(--sphf-private-text, #1f2328);
	text-align: center;
	background: var(--sphf-private-bg, #fbe9c6);
	border: 1px solid var(--sphf-private-line, rgba(0, 0, 0, .12));
	border-radius: var(--sphf-radius);
}

.sphf-fo-private p {
	margin: 0 0 .875em;
	line-height: 1.55;
}

.sphf-fo-private .sphf-fo-hint {
	margin: .875em 0 0;
	font-size: .8125em;
	color: inherit;
	opacity: .8;
}

.sphf-fo-private__icon {
	display: inline-flex;
	margin-bottom: .375em;
	opacity: .85;
}

.sphf-fo-private__title {
	margin: 0 0 .625em !important;
	text-align: center !important;
	font-size: 1.375em !important;
	line-height: 1.25;
	color: inherit !important;
}

.sphf-fo-private__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .625em;
	justify-content: center;
	margin: .25em 0 0;
}

.sphf-fo-hint--private {
	display: flex;
	gap: .375em;
	align-items: flex-start;
	padding: .625em .75em;
	background: #fbe9c6;
	border-radius: var(--sphf-radius-s);
}


/* 1.10.1 : bouton dans un message (connexion sécurisée) */
.sphf-fo-notice__btn {
	display: flex;
	width: fit-content;
	margin-top: .625em;
}
.sphf-fo-notice .sphf-fo-notice__btn { color: #fff !important; text-decoration: none; }
.sphf-fo-hint--2fa { margin-top: .375em; }

/* ====================================================================
   2.0.5 : texte mis en forme — l'éditeur et la mise en page de SIMPLE Agenda
   (assets/agenda.css : « Texte mis en forme » et « .sphf-ag-editor »), repris
   à l'identique, avec les préfixes du forum.
   ================================================================= */

/* Texte mis en forme (messages et zone de saisie). */
.sphf-forum .sphf-fo-prose { line-height: 1.65; overflow-wrap: anywhere; }
.sphf-forum .sphf-fo-prose > :first-child { margin-top: 0; }
.sphf-forum .sphf-fo-prose > :last-child { margin-bottom: 0; }
.sphf-forum .sphf-fo-prose p { margin: 0 0 .9em; }
.sphf-forum .sphf-fo-prose h3 { margin: 1.3em 0 .5em; font-size: 1.2em; font-weight: var(--sphf-bold, 700); line-height: 1.3; color: var(--sphf-text); }
.sphf-forum .sphf-fo-prose h4 { margin: 1.1em 0 .4em; font-size: 1.05em; font-weight: var(--sphf-bold, 700); color: var(--sphf-text); }
.sphf-forum .sphf-fo-prose ul,
.sphf-forum .sphf-fo-prose ol { margin: 0 0 .9em 1.4em !important; padding: 0 !important; }
.sphf-forum .sphf-fo-prose ul li { list-style: disc !important; margin: 0 0 .3em; padding-left: .2em; }
.sphf-forum .sphf-fo-prose ol li { list-style: decimal !important; margin: 0 0 .3em; padding-left: .2em; }
.sphf-forum .sphf-fo-prose li::marker { content: normal; color: var(--sphf-accent); }
.sphf-forum .sphf-fo-prose blockquote { margin: 0 0 .9em; padding: .4em 0 .4em 1em; border-left: 3px solid var(--sphf-accent-ring, #aacdee); color: var(--sphf-muted); font-style: italic; }
.sphf-forum .sphf-fo-prose a { color: var(--sphf-accent); text-decoration: underline; text-underline-offset: 2px; }
.sphf-forum .sphf-fo-prose u { text-decoration: underline; text-underline-offset: 2px; }
.sphf-forum .sphf-fo-prose strong, .sphf-forum .sphf-fo-prose b { font-weight: 700; }
.sphf-forum .sphf-fo-prose em, .sphf-forum .sphf-fo-prose i { font-style: italic; }

/* Éditeur. */
.sphf-forum .sphf-fo-editor [hidden] { display: none !important; }
.sphf-fo-editor.is-rich { border: 1px solid var(--sphf-line); border-radius: var(--sphf-radius-s); background: var(--sphf-card, #fff); overflow: hidden; }
.sphf-fo-editor.is-rich:focus-within { border-color: var(--sphf-accent); box-shadow: 0 0 0 4px var(--sphf-accent-soft); }
.sphf-fo-editor__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: .375em; border-bottom: 1px solid var(--sphf-line); background: var(--sphf-zone, #f3f8fc); }
.sphf-forum .sphf-fo-editor__btn {
	display: inline-grid;
	place-items: center;
	min-width: 2.125em;
	height: 2.125em;
	margin: 0;
	padding: 0 .375em;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	color: var(--sphf-text);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1em;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}
.sphf-forum .sphf-fo-editor__btn:hover { background: var(--sphf-card, #fff); border-color: var(--sphf-line); }
.sphf-forum .sphf-fo-editor__btn:focus-visible { outline: 2px solid var(--sphf-accent); outline-offset: 1px; }
.sphf-forum .sphf-fo-editor__btn.is-on { background: var(--sphf-accent-soft); border-color: var(--sphf-accent-ring, #aacdee); color: var(--sphf-accent-dark); }
.sphf-forum .sphf-fo-editor__btn b, .sphf-forum .sphf-fo-editor__btn i, .sphf-forum .sphf-fo-editor__btn u, .sphf-forum .sphf-fo-editor__btn s { font-family: Georgia, "Times New Roman", serif; }
.sphf-forum .sphf-fo-editor__btn b { font-weight: 700; }
.sphf-forum .sphf-fo-editor__btn i { font-style: italic; }
.sphf-forum .sphf-fo-editor__btn u { text-decoration: underline; }
.sphf-forum .sphf-fo-editor__btn s { text-decoration: line-through; }
.sphf-forum .sphf-fo-editor__btn svg { display: block; }
.sphf-fo-editor__sep { width: 1px; height: 1.375em; margin: 0 .3125em; background: var(--sphf-line); }
.sphf-forum .sphf-fo-editor__area { min-height: 12.5em; max-height: 60vh; overflow-y: auto; padding: .75em .875em; color: var(--sphf-text); outline: 0; cursor: text; }
.sphf-fo-form--reply .sphf-fo-editor__area { min-height: 8em; }
/* Texte d'attente (formulaire de réponse). */
.sphf-fo-editor.is-empty .sphf-fo-editor__area[data-placeholder] { position: relative; }
.sphf-fo-editor.is-empty .sphf-fo-editor__area[data-placeholder]::before {
	content: attr(data-placeholder);
	position: absolute;
	top: .75em;
	left: .875em;
	color: var(--sphf-muted);
	pointer-events: none;
}
.sphf-forum .sphf-fo-editor__error { margin: 0; padding: .5em .875em; font-size: .875em; color: var(--sphf-danger); border-top: 1px solid var(--sphf-line); }
.sphf--theme .sphf-fo-editor.is-rich { background: transparent; }

/* ====================================================================
   2.0.4 : message en calque après un vote (« Votre avis est pris en compte. »)
   ================================================================= */

.sphf-forum .sphf-fo-toast {
	position: fixed;
	left: 50%;
	bottom: 1.5em;
	z-index: 99990;
	width: max-content;
	max-width: calc(100vw - 2em);
	padding: .75em 1.25em;
	font-size: .9375em;
	font-weight: 600;
	line-height: 1.4;
	text-align: center !important;
	color: #14532d;
	background: rgba(231, 247, 238, .92);
	border: 1px solid #b6e3c8;
	border-radius: var(--sphf-radius-s);
	box-shadow: 0 6px 24px rgba(18, 32, 51, .16);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, .75em);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	pointer-events: none;
}
.sphf-forum .sphf-fo-toast.is-open {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.sphf-forum .sphf-fo-toast.is-error {
	color: #7f1d1d;
	background: rgba(253, 236, 236, .94);
	border-color: #f3c2c2;
}
@media (prefers-reduced-motion: reduce) {
	.sphf-fo-toast, .sphf-forum .sphf-fo-toast.is-open { transition: none; transform: translate(-50%, 0); }
}

/* ====================================================================
   2.0.6 : documents joints (PDF, bureautique…) et pièces jointes en modification
   ================================================================= */

.sphf-forum ul.sphf-fo-files { display: flex; flex-direction: column; gap: .375em; margin: .75em 0 0 !important; padding: 0 !important; }
.sphf-forum .sphf-fo-file { list-style: none !important; margin: 0; }
.sphf-forum .sphf-fo-file__link {
	display: inline-flex;
	align-items: center;
	gap: .625em;
	max-width: 100%;
	padding: .5em .75em;
	color: var(--sphf-text);
	background: var(--sphf-zone, #f3f8fc);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-radius-s);
	text-decoration: none !important;
}
.sphf-forum .sphf-fo-file__link:hover { border-color: var(--sphf-accent); background: var(--sphf-accent-soft); }
.sphf-forum .sphf-fo-file__ext {
	flex: 0 0 auto;
	min-width: 3.1em;
	padding: .2em .4em;
	font-size: .6875em;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .03em !important;
	text-align: center !important;
	color: #fff;
	background: var(--sphf-accent);
	border-radius: 4px;
}
.sphf-forum .sphf-fo-file__name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.sphf-forum .sphf-fo-file__size { flex: 0 0 auto; font-size: .8125em; color: var(--sphf-muted); white-space: nowrap; }

.sphf-forum .sphf-fo-current { margin: 1em 0 0; padding: 0; border: 0; min-width: 0; }
.sphf-forum ul.sphf-fo-current__list { display: flex; flex-wrap: wrap; gap: .625em; margin: .375em 0 0 !important; padding: 0 !important; }
.sphf-forum .sphf-fo-current__item {
	list-style: none !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .25em;
	margin: 0;
	padding: .5em;
	background: var(--sphf-zone, #f3f8fc);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-radius-s);
}
.sphf-forum .sphf-fo-current__item--file { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5em .625em; max-width: 100%; }
.sphf-forum .sphf-fo-current__img { display: block; width: 5.5em; height: 5.5em; object-fit: cover; border-radius: 4px; }
.sphf-forum .sphf-fo-current__item .sphf-fo-check { margin-top: 0; }

/* ====================================================================
   2.0.7 : sens interdit des sections privées (le cadenas = discussion close),
   case « prévenir les Super utilisateurs »
   ================================================================= */

.sphf-fo-noentry { display: inline-block; flex: 0 0 auto; vertical-align: -2px; }
.sphf-fo-private__icon { opacity: 1; }
.sphf-forum .sphf-fo-announce { align-items: flex-start; margin: .25em 0 1em; color: var(--sphf-text); font-size: .9375em; }
.sphf-forum .sphf-fo-announce input { margin-top: .2em; }


/* ====================================================================
   2.0.8 : choix de la catégorie (pastilles) et section privée en « tunnel »
   ================================================================= */

.sphf-forum .sphf-fo-catpick { margin: 0 0 .25em; padding: 0; border: 0; min-width: 0; }
.sphf-forum .sphf-fo-catpick__list { display: flex; flex-wrap: wrap; gap: .5em; margin: .375em 0 .5em; }
.sphf-forum .sphf-fo-catpick__item { position: relative; display: inline-flex; margin: 0; cursor: pointer; user-select: none; }
.sphf-forum .sphf-fo-catpick__item input { position: absolute; top: 0; left: 0; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sphf-forum .sphf-fo-catpick__box {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .625em 1em;
	font-size: 1em;
	line-height: 1.3;
	color: var(--sphf-text);
	background: var(--sphf-bg);
	border: 1px solid var(--sphf-line);
	border-radius: var(--sphf-pill);
}
.sphf-forum .sphf-fo-catpick__item:hover .sphf-fo-catpick__box { border-color: var(--sphf-accent); }
.sphf-forum .sphf-fo-catpick__item input:checked + .sphf-fo-catpick__box { color: var(--sphf-accent-dark); background: var(--sphf-accent-soft); border-color: var(--sphf-accent); box-shadow: inset 0 0 0 1px var(--sphf-accent); }
.sphf-forum .sphf-fo-catpick__item input:checked + .sphf-fo-catpick__box::before { content: "\2713"; font-weight: 700; }
.sphf-forum .sphf-fo-catpick__item input:focus-visible + .sphf-fo-catpick__box { outline: 2px solid var(--sphf-accent); outline-offset: 2px; }
.sphf-forum .sphf-fo-catpick__name { font-weight: 600; }
.sphf-forum .sphf-fo-catpick__tag { font-size: .75em; font-weight: 600; color: var(--sphf-muted); }

.sphf-forum .sphf-fo-catpick__group { margin: .5em 0 0; font-size: .8125em; font-weight: 700; color: var(--sphf-muted); }
.sphf-forum .sphf-fo-catpick__item.is-private .sphf-fo-catpick__box {
	color: var(--sphf-private-text, #1f2328);
	background: var(--sphf-private-bg, #fbe9c6);
	border-color: var(--sphf-private-line, rgba(0, 0, 0, .12));
}
.sphf-forum .sphf-fo-catpick__item.is-private:hover .sphf-fo-catpick__box { border-color: var(--sphf-private-ring, #7a5a1e); }
.sphf-forum .sphf-fo-catpick__item.is-private input:checked + .sphf-fo-catpick__box {
	color: var(--sphf-private-text, #1f2328);
	background: var(--sphf-private-bg, #fbe9c6);
	border-color: var(--sphf-private-ring, #7a5a1e);
	box-shadow: inset 0 0 0 1px var(--sphf-private-ring, #7a5a1e);
}
.sphf-forum .sphf-fo-catinfo { margin: .75em 0 1.25em; padding: .75em 1em; border-radius: var(--sphf-radius-s); }
.sphf-forum .sphf-fo-catinfo[hidden] { display: none !important; }
.sphf-forum .sphf-fo-catinfo--private { color: #1f2328; background: #fdf1f1; border: 1px solid #f1c4c4; border-left: 4px solid #d62828; }
.sphf-forum .sphf-fo-catinfo--public { color: #6b3d00; background: #fff4e0; border: 1px solid #f0cf94; border-left: 4px solid #d98a00; }
.sphf-forum .sphf-fo-catinfo__text { display: flex; align-items: flex-start; gap: .45em; margin: 0; font-weight: 600; }
.sphf-forum .sphf-fo-catinfo__text .sphf-fo-noentry { margin-top: .2em; }
.sphf-forum .sphf-fo-catinfo .sphf-fo-announce { margin: .625em 0 0; font-weight: 400; }

/* Menu : le filet de la section privée active suit sa propre couleur (en plus foncé), et non plus la couleur d'accent. */
.sphf-fo-cat.is-private.is-active,
.sphf--theme .sphf-fo-cat.is-private.is-active {
	box-shadow: inset 0 0 0 2px var(--sphf-private-ring, rgba(0, 0, 0, .45));
}
