/*!
 * Ceramispot Forum — styles.
 * Fond lin, accents argile, Playfair Display (titres) et Raleway (texte), déjà chargées par le site.
 */

/* ======================================================================
   Jetons
   ==================================================================== */
.csf {
	--csf-bg: #F7F3EE;
	--csf-surface: #FFFFFF;
	--csf-sand: #F1E8DE;
	--csf-sand-2: #EADCCD;
	--csf-line: #E8DED4;
	--csf-line-2: #DCCDBF;
	--csf-ink: #2D1810;
	--csf-text: #46362E;
	--csf-muted: #77665C;
	--csf-faint: #857369;
	--csf-field-line: #9C8A7F;
	--csf-clay: #AC5C40;
	--csf-clay-hover: #934A30;
	--csf-clay-ink: #8E4528;
	--csf-clay-wash: #F6E9E1;
	--csf-clay-wash-2: #EFDACD;
	--csf-sage: #3D7553;
	--csf-sage-wash: #E6F0E9;
	--csf-pro: #2F5D7C;
	--csf-pro-wash: #E4EDF4;
	--csf-amber: #8C5F12;
	--csf-amber-wash: #F7EDD8;
	--csf-danger: #A3392B;
	--csf-danger-wash: #F9E5E1;
	--csf-r-xl: 24px;
	--csf-r-lg: 18px;
	--csf-r: 12px;
	--csf-r-sm: 8px;
	--csf-shadow: 0 1px 2px rgba(45, 24, 16, .04), 0 6px 18px rgba(45, 24, 16, .05);
	--csf-shadow-lg: 0 10px 40px rgba(45, 24, 16, .14);
	--csf-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--csf-sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
	--csf-top: 62px;

	background: var(--csf-bg);
	color: var(--csf-text);
	font-family: var(--csf-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.55;
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
	padding: 0 0 72px;
	-webkit-font-smoothing: antialiased;
	min-height: 60vh;
	overflow-wrap: anywhere;
}
.admin-bar .csf { --csf-top: 94px; }
.csf *, .csf *::before, .csf *::after { box-sizing: border-box; }
.csf [hidden] { display: none !important; }
.csf img { max-width: 100%; height: auto; }
.csf a { color: var(--csf-clay-ink); text-decoration: none; }
.csf a:hover { color: var(--csf-clay-hover); }
.csf h1, .csf h2, .csf h3, .csf h4, .csf p, .csf ul, .csf ol, .csf dl, .csf dd, .csf figure { margin: 0; padding: 0; }
.csf ul, .csf ol { list-style: none; }
.csf h1, .csf h2, .csf h3, .csf h4 { color: var(--csf-ink); letter-spacing: normal; text-transform: none; font-weight: 700; line-height: 1.2; }
.csf button { font: inherit; color: inherit; cursor: pointer; }
.csf button:disabled { cursor: not-allowed; }
.csf :focus-visible { outline: 3px solid var(--csf-clay-ink); outline-offset: 2px; border-radius: 6px; }
.csf mark { background: #FBE3C9; color: var(--csf-ink); padding: 0 1px; border-radius: 3px; }
.csf .csf-sr, .csf .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.csf .csf-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.csf-noscroll, .csf-noscroll body { overflow: hidden; }

.csf-ico { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; color: currentColor; }
.csf-ico--sm { width: 14px; height: 14px; }

.csf-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.csf-wrap--narrow { max-width: 860px; }

.csf .csf-h1 { font-family: var(--csf-serif); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; }
.csf .csf-h2 { font-family: var(--csf-serif); font-size: clamp(22px, 2.2vw, 28px); }
.csf .csf-h3 { font-family: var(--csf-serif); font-size: 21px; }
.csf .csf-h4 { font-family: var(--csf-serif); font-size: 18px; }
.csf .csf-muted { color: var(--csf-muted); }
.csf .csf-small { font-size: 13px; }
.csf .csf-pad { padding: 18px; }
.csf .csf-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--csf-faint); vertical-align: middle; margin: 0 2px; }
.csf .csf-link { background: none; border: 0; padding: 0; color: var(--csf-clay-ink); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; cursor: pointer; }
.csf .csf-link:hover { color: var(--csf-clay-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ======================================================================
   Boutons
   ==================================================================== */
.csf .csf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border-radius: 999px;
	border: 1.5px solid transparent; background: var(--csf-sand); color: var(--csf-ink);
	font-family: var(--csf-sans); font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: normal; text-transform: none;
	text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: none;
	transition: background-color .15s, border-color .15s, color .15s;
}
.csf .csf-btn .csf-ico { width: 18px; height: 18px; }
.csf .csf-btn--primary { background: var(--csf-clay); color: #fff; }
.csf .csf-btn--primary:hover { background: var(--csf-clay-hover); color: #fff; }
.csf .csf-btn--ghost { background: var(--csf-surface); border-color: var(--csf-clay); color: var(--csf-clay-ink); }
.csf .csf-btn--ghost:hover { background: var(--csf-clay-wash); color: var(--csf-clay-hover); }
.csf .csf-btn--ghost.is-on { background: var(--csf-clay-wash); border-color: var(--csf-clay-wash-2); }
.csf .csf-btn--quiet { background: transparent; color: var(--csf-muted); border-color: transparent; }
.csf .csf-btn--quiet:hover { background: var(--csf-sand); color: var(--csf-ink); }
.csf .csf-btn--success { background: var(--csf-sage-wash); color: var(--csf-sage); }
.csf .csf-btn--success:hover { background: #d6e8dc; color: var(--csf-sage); }
.csf .csf-btn--danger { background: var(--csf-danger); color: #fff; }
.csf .csf-btn--danger:hover { background: #87291d; color: #fff; }
.csf .csf-btn--sm { min-height: 38px; padding: 7px 15px; font-size: 14px; }
.csf .csf-btn--lg { min-height: 52px; padding: 12px 30px; font-size: 16px; }
.csf .csf-btn--block { width: 100%; }
.csf .csf-btn.is-busy { opacity: .75; }

.csf .csf-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--csf-ink); }
.csf .csf-iconbtn:hover { background: var(--csf-sand); color: var(--csf-ink); }
.csf .csf-iconbtn .csf-ico { width: 22px; height: 22px; }
.csf .csf-iconbtn--av { width: auto; height: auto; padding: 2px; }
.csf .csf-roundbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--csf-line-2); background: var(--csf-surface); color: var(--csf-ink); display: inline-flex; align-items: center; justify-content: center; }
.csf .csf-roundbtn:hover:not(:disabled) { border-color: var(--csf-clay); color: var(--csf-clay); }
.csf .csf-roundbtn:disabled { opacity: .35; }
.csf .csf-roundarrow { width: 36px; height: 36px; border-radius: 50%; background: var(--csf-surface); color: var(--csf-clay); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--csf-shadow); flex: 0 0 auto; }

.csf .csf-dot-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--csf-clay); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.csf .csf-pill { display: inline-flex; align-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--csf-clay-wash); color: var(--csf-clay-ink); font-size: 12px; font-weight: 700; margin-left: auto; }
.csf .csf-pill--danger { background: var(--csf-danger); color: #fff; }

/* ======================================================================
   Pastilles (chips) et badges
   ==================================================================== */
.csf .csf-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--csf-sand); color: var(--csf-text); font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; }
.csf .csf-chip .csf-ico { width: 13px; height: 13px; }
.csf a.csf-chip:hover { background: var(--csf-sand-2); color: var(--csf-ink); }
.csf .csf-chip--cat { background: var(--csf-clay-wash); color: var(--csf-clay-ink); }
.csf a.csf-chip--cat:hover { background: var(--csf-clay-wash-2); color: var(--csf-clay-hover); }
.csf .csf-chip--solved { background: var(--csf-sage-wash); color: var(--csf-sage); }
.csf .csf-chip--question { background: transparent; color: var(--csf-amber); box-shadow: inset 0 0 0 1px #E3CFA9; }
.csf .csf-chip--pin { background: var(--csf-amber-wash); color: var(--csf-amber); }
.csf .csf-chip--tech { background: #F3EEE8; color: var(--csf-muted); }
.csf .csf-chip--warn { background: var(--csf-amber-wash); color: var(--csf-amber); }
.csf .csf-chip--tag { background: var(--csf-surface); color: var(--csf-muted); box-shadow: inset 0 0 0 1px var(--csf-line); }
.csf a.csf-chip--tag:hover { color: var(--csf-clay-ink); box-shadow: inset 0 0 0 1px var(--csf-clay-wash-2); background: var(--csf-surface); }
.csf .csf-chip--soft { background: rgba(255, 255, 255, .7); color: var(--csf-ink); box-shadow: inset 0 0 0 1px rgba(172, 92, 64, .18); height: 30px; padding: 0 13px; font-size: 13px; }
.csf a.csf-chip--soft:hover { background: #fff; color: var(--csf-clay-ink); }

.csf .csf-badge { display: inline-flex; align-items: center; gap: 3px; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; line-height: 1; white-space: nowrap; background: var(--csf-sand); color: var(--csf-muted); }
.csf .csf-badge .csf-ico { width: 12px; height: 12px; }
.csf .csf-badge--pro { background: var(--csf-pro-wash); color: var(--csf-pro); }
.csf .csf-badge--team { background: var(--csf-clay); color: #fff; }
.csf .csf-badge--helper { background: var(--csf-sage-wash); color: var(--csf-sage); }
.csf .csf-badge--op { background: transparent; color: var(--csf-muted); box-shadow: inset 0 0 0 1px var(--csf-line-2); }
.csf .csf-badge--level { background: #F4EFE9; color: var(--csf-muted); font-weight: 600; }

/* Avatars */
.csf .csf-av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; flex: 0 0 auto; font-weight: 700; letter-spacing: .02em; line-height: 1; background: var(--csf-sand); }
.csf .csf-av--team { background: var(--csf-clay); color: #fff; }
.csf .csf-av--team .csf-ico { width: 55%; height: 55%; }

/* ======================================================================
   Barre du forum
   ==================================================================== */
.csf-bar { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--csf-line); position: relative; z-index: 40; }
@media (min-width: 1024px) {
	.csf-bar { position: sticky; top: var(--csf-top); backdrop-filter: saturate(140%) blur(6px); }
}
.csf-bar__in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.csf .csf-bar__home { display: inline-flex; align-items: center; gap: 8px; font-family: var(--csf-serif); font-size: 19px; font-weight: 700; color: var(--csf-ink); }
.csf .csf-bar__home .csf-ico { color: var(--csf-clay); width: 22px; height: 22px; }
.csf-bar__cats, .csf-bar__notif, .csf-bar__me { position: relative; }
.csf .csf-bar__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; color: var(--csf-text); }
.csf .csf-bar__btn:hover, .csf .csf-bar__btn[aria-expanded="true"] { background: var(--csf-sand); color: var(--csf-ink); }
.csf-bar__search { flex: 1 1 auto; max-width: 560px; margin: 0 auto; }
.csf-bar__spacer { flex: 1 1 auto; }
.csf-bar__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* Champ de recherche */
.csf .csf-search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--csf-bg); border: 1px solid var(--csf-line); border-radius: 999px; padding: 0 6px 0 16px; height: 46px; }
.csf .csf-search:focus-within { border-color: var(--csf-clay); background: #fff; box-shadow: 0 0 0 4px rgba(172, 92, 64, .12); }
.csf .csf-search > .csf-ico { color: var(--csf-muted); }
.csf .csf-search input[type=search] { flex: 1 1 auto; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; padding: 0 !important; margin: 0; font: inherit; font-size: 15px; color: var(--csf-ink); -webkit-appearance: none; appearance: none; }
.csf .csf-search input[type=search]::placeholder { color: var(--csf-faint); opacity: 1; }
.csf .csf-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Suggestions */
.csf .csf-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--csf-line); border-radius: var(--csf-r-lg); box-shadow: var(--csf-shadow-lg); padding: 8px; max-height: min(70vh, 520px); overflow: auto; text-align: left; }
.csf .csf-suggest__group + .csf-suggest__group { border-top: 1px solid var(--csf-line); margin-top: 6px; padding-top: 6px; }
.csf .csf-suggest__title { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--csf-muted); padding: 6px 10px; }
.csf .csf-suggest__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border-radius: var(--csf-r-sm); color: var(--csf-ink); font-size: 15px; font-weight: 600; }
.csf .csf-suggest__item:hover, .csf .csf-suggest__item.is-active { background: var(--csf-bg); color: var(--csf-ink); }
.csf .csf-suggest__main { min-width: 0; }
.csf .csf-suggest__meta { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: 12.5px; font-weight: 500; color: var(--csf-muted); }
.csf .csf-suggest__empty { padding: 12px 10px; color: var(--csf-muted); font-size: 14px; }
.csf .csf-suggest__all.is-active, .csf .csf-suggest__all:hover { background: var(--csf-clay-wash-2); box-shadow: inset 0 0 0 2px var(--csf-clay); }
.csf .csf-suggest__clear { justify-content: flex-start; font-size: 13.5px; color: var(--csf-muted); }
.csf .csf-suggest__all { display: block; margin-top: 6px; padding: 10px; border-radius: var(--csf-r-sm); background: var(--csf-clay-wash); color: var(--csf-clay-ink); font-weight: 700; font-size: 14px; text-align: center; }

/* Menus */
.csf .csf-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; min-width: 250px; background: #fff; border: 1px solid var(--csf-line); border-radius: var(--csf-r-lg); box-shadow: var(--csf-shadow-lg); padding: 8px; }
.csf .csf-menu--cats { left: 0; right: auto; width: min(680px, 92vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; padding: 14px; }
.csf .csf-menu__group { display: flex; flex-direction: column; }
.csf .csf-menu__title { font-size: 12px; font-weight: 700; color: var(--csf-muted); padding: 6px 10px; }
.csf .csf-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: var(--csf-r-sm); background: transparent; color: var(--csf-ink); font-size: 14.5px; font-weight: 600; text-align: left; }
.csf .csf-menu__item .csf-ico { color: var(--csf-clay); width: 18px; height: 18px; }
.csf .csf-menu__item:hover { background: var(--csf-bg); color: var(--csf-ink); }
.csf .csf-menu__item--danger, .csf .csf-menu__item--danger .csf-ico { color: var(--csf-danger); }
.csf .csf-menu__sep { height: 1px; background: var(--csf-line); margin: 6px 4px; }
.csf .csf-menu__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--csf-line); margin-bottom: 4px; color: var(--csf-ink); }
.csf .csf-menu__foot { display: block; padding: 10px; border-top: 1px solid var(--csf-line); margin-top: 4px; text-align: center; font-size: 13.5px; font-weight: 600; }
.csf .csf-menu--notifs { width: min(400px, 92vw); padding: 6px; }
.csf .csf-menu--notifs .csf-notifs { max-height: 420px; overflow: auto; }
.csf .csf-menu--actions { min-width: 230px; }
.csf .csf-menu.is-up { top: auto; bottom: calc(100% + 8px); }

/* Notifications */
.csf .csf-notif { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: var(--csf-r); color: var(--csf-text); font-size: 14px; line-height: 1.45; }
.csf .csf-notif:hover { background: var(--csf-bg); color: var(--csf-text); }
.csf .csf-notif.is-unread { background: var(--csf-clay-wash); }
.csf .csf-notif.is-unread:hover { background: var(--csf-clay-wash-2); }
.csf .csf-notif__ico { width: 32px; height: 32px; border-radius: 50%; background: var(--csf-sand); color: var(--csf-clay); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.csf .csf-notif__txt strong { color: var(--csf-ink); }
.csf .csf-notif__txt em { font-style: normal; color: var(--csf-ink); font-weight: 600; }
.csf .csf-notif__time { display: block; color: var(--csf-muted); font-size: 12.5px; margin-top: 2px; }
.csf .csf-notifs--page .csf-notif { padding: 14px; }

/* ======================================================================
   Accueil : bandeau
   ==================================================================== */
.csf-hero {
	/* Bandeau compact comme la maquette : texte à gauche, la photo entière à droite, fondue dans le lin. */
	position: relative; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: center;
	min-height: 292px; margin: 24px 0 14px; border-radius: var(--csf-r-xl); overflow: hidden; isolation: isolate;
	background: #F1E8DE; border: 1px solid #E8DACB;
}
.csf-hero__text { position: relative; z-index: 2; padding: 30px 8px 30px 44px; min-width: 0; }
.csf .csf-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--csf-clay-ink); margin-bottom: 10px; }
.csf .csf-hero__title { font-family: var(--csf-serif); font-size: clamp(34px, 3.4vw, 48px); line-height: 1.04; font-weight: 700; color: var(--csf-ink); margin-bottom: 8px; }
.csf .csf-hero__lead { font-family: var(--csf-serif); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.3; color: var(--csf-ink); margin-bottom: 10px; }
.csf .csf-hero__desc { font-size: 15px; line-height: 1.55; color: var(--csf-text); max-width: 60ch; margin-bottom: 16px; }
.csf .csf-hero__search { max-width: 560px; height: 52px; background: #fff; border: 1px solid #E5D6C7; padding: 0 5px 0 18px; box-shadow: 0 8px 24px rgba(45, 24, 16, .07); }
.csf .csf-hero__search input[type=search] { font-size: 16px; }
.csf .csf-hero__search .csf-btn { min-height: 42px; padding: 0 22px; }
.csf-hero__media { position: relative; z-index: 1; align-self: stretch; min-height: 100%; }
/* Photo calée à droite : on ne perd que le bord gauche, déjà fondu dans le fond. */
.csf .csf-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.csf-hero__media::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 26%; z-index: 2; background: linear-gradient(90deg, #F1E8DE 0%, rgba(241, 232, 222, .6) 45%, rgba(241, 232, 222, 0) 100%); pointer-events: none; }

/* Grand écran : la photo garde sa proportion d'origine (rien n'est coupé) et se fond sous la fin du texte. */
@media (min-width: 1200px) {
	.csf-hero { display: block; min-height: 0; }
	.csf-hero__text { max-width: 560px; padding: 28px 0 28px 44px; }
	.csf .csf-hero__lead { font-size: 19px; }
	.csf-hero__media { position: absolute; top: 0; right: 0; bottom: 0; height: 100%; width: auto; aspect-ratio: 687 / 262; min-height: 0; }
	.csf .csf-hero__media img { object-position: center; }
	.csf-hero__media::before { width: 34%; background: linear-gradient(90deg, #F1E8DE 0%, #F1E8DE 14%, rgba(241, 232, 222, .78) 42%, rgba(241, 232, 222, 0) 100%); }
}
/* Écran moyen : texte resserré pour garder la photo aussi entière que possible. */
@media (min-width: 900px) and (max-width: 1199px) {
	.csf-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 236px; }
	.csf-hero__text { padding: 24px 4px 24px 32px; }
	.csf .csf-hero__desc { display: none; }
	.csf .csf-hero__lead { margin-bottom: 16px; }
}

/* Recherches fréquentes et chiffres, sous le bandeau */
.csf-popular { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0 0 30px; }
.csf .csf-popular__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.csf .csf-popular__label { color: var(--csf-muted); font-weight: 600; }
.csf .csf-hero__stats { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--csf-muted); }
.csf .csf-hero__stats strong { color: var(--csf-ink); font-size: 16px; }

/* ======================================================================
   Mise en page
   ==================================================================== */
.csf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.csf-layout--topic { grid-template-columns: minmax(0, 1fr) 300px; }
.csf-layout--form { grid-template-columns: minmax(0, 1fr) 320px; }
.csf-main { min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.csf-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (min-width: 1100px) {
	.csf-aside--sticky { position: sticky; top: calc(var(--csf-top) + 82px); }
}

.csf-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.csf-section-head__aside { display: flex; align-items: center; gap: 16px; }
.csf-carousel-nav { display: flex; gap: 8px; }

/* Fil d'Ariane */
.csf .csf-crumbs { margin: 20px 0 14px; font-size: 13.5px; }
.csf .csf-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.csf .csf-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--csf-muted); }
.csf .csf-crumbs li + li::before { content: "›"; color: var(--csf-faint); }
.csf .csf-crumbs a { color: var(--csf-muted); font-weight: 600; }
.csf .csf-crumbs a:hover { color: var(--csf-clay-ink); }
.csf .csf-crumbs [aria-current] { color: var(--csf-text); }

.csf-pagehead { margin: 4px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.csf-pagehead--row { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }

/* ======================================================================
   Catégories
   ==================================================================== */
.csf-carousel {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 6 * 14px) / 7); gap: 14px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 2px 2px 10px; margin: 0 -2px;
	scrollbar-width: none;
}
.csf-carousel::-webkit-scrollbar { display: none; }
.csf .csf-catcard { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--csf-surface); border: 1px solid var(--csf-line); border-radius: 14px; overflow: hidden; color: var(--csf-text); min-width: 0; transition: border-color .15s, box-shadow .15s; }
.csf .csf-catcard:hover { border-color: var(--csf-clay-wash-2); box-shadow: var(--csf-shadow); color: var(--csf-text); }
.csf .csf-catcard__img { display: block; aspect-ratio: 16 / 10.5; background: var(--csf-sand); overflow: hidden; }
.csf .csf-catcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.csf .csf-catcard__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 13px 13px; flex: 1 1 auto; }
.csf .csf-catcard__ico { color: var(--csf-clay); margin-bottom: 2px; }
.csf .csf-catcard__ico .csf-ico { width: 24px; height: 24px; }
.csf .csf-catcard__name { font-family: var(--csf-serif); font-size: 16.5px; font-weight: 700; color: var(--csf-ink); line-height: 1.2; }
.csf .csf-catcard__desc { font-size: 12.5px; line-height: 1.4; color: var(--csf-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.csf .csf-catcard__meta { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--csf-faint); font-weight: 600; }

.csf-catsection + .csf-catsection { margin-top: 30px; }
.csf-catsection h2 { margin-bottom: 12px; }
.csf-catlist { background: var(--csf-surface); border: 1px solid var(--csf-line); border-radius: var(--csf-r-lg); overflow: hidden; }
.csf .csf-catrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; color: var(--csf-text); }
.csf .csf-catrow + .csf-catrow { border-top: 1px solid var(--csf-line); }
.csf .csf-catrow:hover { background: #FCFAF7; color: var(--csf-text); }
.csf .csf-catrow__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--csf-clay-wash); color: var(--csf-clay); display: inline-flex; align-items: center; justify-content: center; }
.csf .csf-catrow__ico .csf-ico { width: 26px; height: 26px; }
.csf .csf-catrow__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.csf .csf-catrow__name { font-family: var(--csf-serif); font-weight: 700; font-size: 18px; color: var(--csf-ink); }
.csf .csf-catrow__desc { font-size: 14px; color: var(--csf-muted); }
.csf .csf-catrow__stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; color: var(--csf-muted); white-space: nowrap; }
.csf .csf-catrow__stats strong { color: var(--csf-ink); }

/* Bandeau de catégorie */
.csf-cathero { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 22px; align-items: center; background: linear-gradient(115deg, #F3EBE1, #EEE2D4); border: 1px solid #E8DACB; border-radius: var(--csf-r-xl); padding: 28px 32px; margin-bottom: 30px; overflow: hidden; }
.csf .csf-cathero__ico { width: 76px; height: 76px; border-radius: 22px; background: #fff; color: var(--csf-clay); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--csf-shadow); }
.csf .csf-cathero__ico .csf-ico { width: 40px; height: 40px; }
.csf .csf-cathero__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.csf .csf-cathero__desc { font-size: 16.5px; max-width: 62ch; }
.csf .csf-cathero__stats { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--csf-muted); }
.csf .csf-cathero__stats strong { color: var(--csf-ink); }
.csf .csf-cathero__actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.csf .csf-cathero__deco { position: absolute; right: -24px; bottom: -30px; width: 220px; opacity: .35; pointer-events: none; z-index: 0; }

/* ======================================================================
   Listes de sujets
   ==================================================================== */
.csf-listbox__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.csf .csf-listbox__head .csf-h2 { white-space: nowrap; }
.csf .csf-tabs { display: flex; gap: 2px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.csf .csf-tabs::-webkit-scrollbar { display: none; }
.csf .csf-tabs__item { position: relative; display: inline-flex; align-items: center; height: 42px; padding: 0 14px; color: var(--csf-muted); font-size: 15px; font-weight: 600; white-space: nowrap; border-radius: 10px 10px 0 0; }
.csf .csf-tabs__item:hover { color: var(--csf-ink); }
.csf .csf-tabs__item.is-active { color: var(--csf-ink); font-weight: 700; }
.csf .csf-tabs__item.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px; background: var(--csf-clay); }

.csf .csf-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.csf .csf-select { position: relative; display: inline-flex; }
.csf .csf-select select { height: 38px; padding: 0 34px 0 14px; border: 1px solid var(--csf-field-line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2377665C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center; font: inherit; font-size: 14px; font-weight: 600; color: var(--csf-ink); -webkit-appearance: none; appearance: none; box-shadow: none; margin: 0; cursor: pointer; width: auto; line-height: 1; }
.csf .csf-select select:hover { border-color: var(--csf-clay); }
.csf .csf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--csf-text); cursor: pointer; }
.csf .csf-check input { width: 18px; height: 18px; accent-color: var(--csf-clay); margin: 0; }
.csf .csf-filters__count { margin-left: auto; font-size: 13.5px; color: var(--csf-muted); }
.csf .csf-filters__reset { font-size: 13.5px; }

.csf-rows { background: var(--csf-surface); border: 1px solid var(--csf-line); border-radius: var(--csf-r-lg); overflow: hidden; }
.csf-rows:empty { display: none; }
.csf-rows > .csf-empty { border: 0; border-radius: 0; }
.csf .csf-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 128px 92px; gap: 6px 16px; align-items: center; padding: 16px 20px; position: relative; }
.csf .csf-row + .csf-row { border-top: 1px solid var(--csf-line); }
.csf .csf-row:hover { background: #FCFAF7; }
.csf .csf-row.is-pinned { background: #FDFAF4; }
.csf .csf-row__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.csf .csf-row__title { font-family: var(--csf-sans); font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--csf-ink); display: flex; align-items: baseline; gap: 8px; }
.csf .csf-row__title a { color: var(--csf-ink); }
.csf .csf-row__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.csf .csf-row__title a:hover { color: var(--csf-clay-ink); }
.csf .csf-row__excerpt { font-size: 14px; color: var(--csf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csf .csf-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--csf-muted); margin-top: 2px; }
.csf .csf-row__meta a, .csf .csf-row__thumb { position: relative; z-index: 1; }
.csf .csf-row__author { font-weight: 600; color: var(--csf-text); }
.csf .csf-unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--csf-clay); flex: 0 0 auto; transform: translateY(-1px); }
.csf .csf-row.is-new .csf-unread-dot { background: var(--csf-sage); }
.csf .csf-row__thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; position: relative; background: var(--csf-sand); }
.csf .csf-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csf .csf-row__thumb span { position: absolute; right: 4px; bottom: 4px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(45, 24, 16, .72); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.csf .csf-row__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: center; grid-column: 4; grid-row: 1; }
.csf .csf-row__thumb { grid-column: 3; grid-row: 1; }
.csf .csf-row__last { grid-column: 5; grid-row: 1; }
.csf .csf-row__guide { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--csf-sand); color: var(--csf-clay-ink); font-size: 13px; font-weight: 700; }
.csf .csf-row__guide .csf-ico { width: 16px; height: 16px; }
.csf .csf-row__stat { display: flex; flex-direction: column; line-height: 1.15; }
.csf .csf-row__stat strong { font-size: 16px; color: var(--csf-ink); }
.csf .csf-row__stat small { font-size: 12px; color: var(--csf-muted); font-weight: 500; }
.csf .csf-row__stat:not(.csf-row__stat--views).is-zero strong { color: var(--csf-clay-ink); }
.csf .csf-row__last { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 12px; color: var(--csf-muted); white-space: nowrap; }
.csf .csf-row__av, .csf .csf-row__last .csf-av { position: relative; z-index: 1; }
.csf .csf-rows--compact .csf-row { grid-template-columns: 36px minmax(0, 1fr) auto 128px; padding: 12px 16px; }
.csf .csf-rows--compact .csf-row__last { display: none; }
.csf .csf-rows--compact .csf-av { width: 36px !important; height: 36px !important; }

.csf .csf-loadmore { margin-top: 14px; }
.csf .csf-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; }
.csf .csf-pager--js { display: none; }
.csf .csf-pager__num, .csf .csf-pager__nav { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: #fff; border: 1px solid var(--csf-line); color: var(--csf-ink); font-weight: 600; font-size: 14px; }
.csf .csf-pager__num:hover, .csf .csf-pager__nav:hover { border-color: var(--csf-clay); color: var(--csf-clay-ink); }
.csf .csf-pager__num.is-current { background: var(--csf-clay); border-color: var(--csf-clay); color: #fff; }
.csf .csf-pager__gap { color: var(--csf-faint); padding: 0 4px; }

/* Sujets épinglés */
.csf .csf-pinned { background: #FDF8F0; border: 1px solid #EEDFC7; border-radius: var(--csf-r-lg); padding: 18px 20px; }
.csf .csf-pinned__title { display: flex; align-items: center; gap: 8px; font-family: var(--csf-serif); font-size: 19px; margin-bottom: 10px; }
.csf .csf-pinned__title .csf-ico { color: var(--csf-amber); }
.csf .csf-pinned__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.csf .csf-pinned__list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--csf-r); background: #fff; border: 1px solid #F1E6D6; height: 100%; }
.csf .csf-pinned__list a:hover { border-color: #E3CFA9; }
.csf .csf-pinned__name { font-weight: 700; font-size: 15px; color: var(--csf-ink); line-height: 1.35; }
.csf .csf-pinned__ex { font-size: 13px; color: var(--csf-muted); line-height: 1.4; }

/* États vides */
.csf .csf-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 44px 24px; background: var(--csf-surface); border: 1px dashed var(--csf-line-2); border-radius: var(--csf-r-lg); }
.csf .csf-empty--small { padding: 26px 20px; }
.csf .csf-empty--page { margin: 40px 0; padding: 56px 28px; }
.csf .csf-empty__ico { width: 58px; height: 58px; border-radius: 50%; background: var(--csf-clay-wash); color: var(--csf-clay); display: inline-flex; align-items: center; justify-content: center; }
.csf .csf-empty__ico .csf-ico { width: 28px; height: 28px; }
.csf .csf-empty__title { font-family: var(--csf-serif); font-size: 21px; font-weight: 700; color: var(--csf-ink); }
.csf .csf-empty__text { max-width: 52ch; color: var(--csf-muted); }

/* Comment ça marche */
.csf .csf-howto { background: var(--csf-surface); border: 1px solid var(--csf-line); border-radius: var(--csf-r-lg); padding: 26px; }
.csf .csf-howto h2 { margin-bottom: 16px; }
.csf .csf-howto__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.csf .csf-howto__steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--csf-muted); }
.csf .csf-howto__steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--csf-clay-wash); color: var(--csf-clay-ink); font-family: var(--csf-serif); font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }
.csf .csf-howto__steps strong { color: var(--csf-ink); font-size: 16px; }

/* ======================================================================
   Colonne latérale
   ==================================================================== */
.csf .csf-card { position: relative; display: block; background: var(--csf-surface); border: 1px solid var(--csf-line); border-radius: var(--csf-r-lg); padding: 20px; color: var(--csf-text); overflow: hidden; }
.csf .csf-card--flat { padding: 24px; }
.csf .csf-card--flat + .csf-card--flat { margin-top: 18px; }
.csf .csf-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.csf .csf-card .csf-h4 { margin-bottom: 0; }
.csf .csf-card--join { background: linear-gradient(160deg, #F6EEE5, #F1E6DA); border-color: #EADBCB; padding-right: 110px; }
.csf .csf-card--join p { font-size: 14px; margin: 8px 0 16px; }
.csf .csf-card--join .csf-btn + .csf-btn { margin-top: 10px; }
.csf .csf-card--join .csf-card__deco { position: absolute; right: -6px; top: 10px; width: 112px; height: auto; opacity: .9; pointer-events: none; }
.csf .csf-card--me .csf-card__me { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.csf .csf-card--me .csf-btn { margin-bottom: 10px; }
.csf .csf-links { display: flex; flex-direction: column; gap: 2px; }
.csf .csf-links a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--csf-r-sm); color: var(--csf-ink); font-size: 14.5px; font-weight: 600; }
.csf .csf-links a:hover { background: var(--csf-bg); color: var(--csf-ink); }
.csf .csf-links .csf-ico { color: var(--csf-clay); width: 18px; height: 18px; }
.csf .csf-card .csf-links + .csf-link { margin-top: 8px; }
.csf .csf-links--cats a { min-height: 36px; font-size: 14px; }
.csf .csf-avstack { display: flex; align-items: center; flex-wrap: wrap; }
.csf .csf-avstack li { margin-right: -8px; }
.csf .csf-avstack .csf-av { box-shadow: 0 0 0 3px #fff; }
.csf .csf-avstack__more { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--csf-sand); color: var(--csf-muted); font-weight: 700; font-size: 13px; box-shadow: 0 0 0 3px #fff; }
.csf .csf-avstack--sm li { margin-right: -6px; }
.csf .csf-qlist { display: flex; flex-direction: column; }
.csf .csf-qlist li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 9px 0; }
.csf .csf-qlist li + li { border-top: 1px solid var(--csf-line); }
.csf .csf-qlist a { display: flex; gap: 9px; color: var(--csf-ink); font-size: 14px; font-weight: 600; line-height: 1.4; min-width: 0; }
.csf .csf-qlist a:hover { color: var(--csf-clay-ink); }
.csf .csf-qlist .csf-ico { color: var(--csf-muted); width: 17px; height: 17px; margin-top: 1px; }
.csf .csf-qlist__n { flex: 0 0 auto; font-size: 12px; color: var(--csf-muted); white-space: nowrap; padding-top: 2px; }
.csf .csf-qlist__n.is-zero { color: var(--csf-clay); font-weight: 600; }
.csf .csf-card--share { display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, #F1E5D8, #E9D9C7); border-color: #E3D2BF; padding: 18px 16px 18px 20px; }
.csf .csf-card--share:hover { color: var(--csf-text); border-color: var(--csf-clay-wash-2); }
.csf .csf-card--share__txt { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; flex: 1 1 auto; }
.csf .csf-card--share img { width: 78px; flex: 0 0 78px; height: auto; border-radius: 10px; }
.csf .csf-card--cta { display: flex; gap: 14px; background: linear-gradient(140deg, #EEF4EF, #E5EEE7); border-color: #D7E5DA; }
.csf .csf-card--cta:hover { color: var(--csf-text); border-color: #BFD6C5; }
.csf .csf-card--cta > span:last-child { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.csf .csf-card--cta__ico { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--csf-sage); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.csf .csf-card--cta .csf-link { color: var(--csf-sage); margin-top: 2px; }
.csf .csf-card--quiet { background: transparent; border-style: dashed; }
.csf .csf-card--check .csf-checklist { margin: 12px 0 10px; }
.csf .csf-checklist { display: flex; flex-direction: column; gap: 9px; }
.csf .csf-checklist li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; }
.csf .csf-checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--csf-sage-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D7553' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") no-repeat center / 11px; }

/* ======================================================================
   Sujet
   ==================================================================== */
.csf-topichead { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.csf .csf-topichead__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.csf .csf-topichead__title { font-family: var(--csf-serif); font-size: clamp(27px, 3vw, 38px); line-height: 1.15; max-width: 30ch; }
.csf .csf-topichead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--csf-muted); }

.csf .csf-post { background: var(--csf-surface); border: 1px solid var(--csf-line); border-radius: var(--csf-r-lg); padding: 20px 24px 14px; transition: background-color .8s, box-shadow .8s; scroll-margin-top: calc(var(--csf-top) + 90px); }
.csf .csf-post--first { padding: 26px 30px 16px; box-shadow: var(--csf-shadow); }
.csf .csf-post.is-solution { border-color: #BFD8C7; box-shadow: inset 4px 0 0 var(--csf-sage); }
.csf .csf-post.is-pending { border-style: dashed; border-color: #E3CFA9; }
.csf .csf-post.is-csf_hidden { opacity: .75; border-style: dashed; border-color: #E9B8AF; }
.csf .csf-post.is-flash, .csf .csf-reply.is-flash { background: #FFF8EC; box-shadow: 0 0 0 3px rgba(172, 92, 64, .18); }
.csf .csf-post__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.csf .csf-post__who { min-width: 0; flex: 1 1 auto; }
.csf .csf-post__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.csf .csf-post__name a, .csf .csf-post__name strong { color: var(--csf-ink); font-size: 15.5px; font-weight: 700; }
.csf .csf-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--csf-muted); margin-top: 1px; }
.csf .csf-post__time { color: var(--csf-muted); }
.csf .csf-post__time:hover { color: var(--csf-clay-ink); }
.csf .csf-post__atelier { display: inline-flex; align-items: center; gap: 4px; color: var(--csf-pro); font-weight: 600; }
.csf .csf-post__atelier .csf-ico { width: 15px; height: 15px; }
.csf .csf-post__solbadge { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--csf-sage-wash); color: var(--csf-sage); font-weight: 700; font-size: 13.5px; }
.csf .csf-post__solbadge .csf-ico { width: 17px; height: 17px; }
.csf .csf-post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--csf-line); }
.csf .csf-post__spacer { flex: 1 1 auto; }
.csf .csf-act { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--csf-muted); font-size: 14px; font-weight: 600; }
.csf .csf-act .csf-ico { width: 18px; height: 18px; }
.csf .csf-act:hover:not(:disabled) { background: var(--csf-bg); color: var(--csf-ink); }
.csf .csf-act:disabled { opacity: .55; }
.csf .csf-act.is-on { color: var(--csf-clay-ink); background: var(--csf-clay-wash); }
.csf .csf-act__n:empty { display: none; }
.csf .csf-act__n { font-variant-numeric: tabular-nums; }
.csf .csf-act--solve { color: var(--csf-sage); }
.csf .csf-act--solve:hover:not(:disabled) { background: var(--csf-sage-wash); color: var(--csf-sage); }
.csf .csf-act--solve.is-on { background: var(--csf-sage-wash); color: var(--csf-sage); }
.csf .csf-act--icon { width: 38px; padding: 0; justify-content: center; }
.csf .csf-more { position: relative; }

/* Texte d'un message */
.csf .csf-prose { font-size: 17px; line-height: 1.72; color: var(--csf-text); max-width: 72ch; font-weight: 500; }
.csf .csf-prose > * + * { margin-top: .85em; }
.csf .csf-prose p { margin: 0; }
.csf .csf-prose strong { color: var(--csf-ink); font-weight: 700; }
.csf .csf-prose a { color: var(--csf-clay-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; }
.csf .csf-prose a.csf-mention { text-decoration: none; background: var(--csf-clay-wash); padding: 1px 6px; border-radius: 6px; }
.csf .csf-prose h3 { font-family: var(--csf-serif); font-size: 21px; margin-top: 1.3em; }
.csf .csf-prose h4 { font-size: 17px; margin-top: 1.1em; }
.csf .csf-prose ul, .csf .csf-prose ol { padding-left: 1.3em; }
.csf .csf-prose ul { list-style: disc; }
.csf .csf-prose ol { list-style: decimal; }
.csf .csf-prose li + li { margin-top: .35em; }
.csf .csf-prose li::marker { color: var(--csf-clay); }
.csf .csf-prose blockquote { margin: 0; padding: 10px 16px; background: var(--csf-bg); border-left: 3px solid var(--csf-clay-wash-2); border-radius: 0 10px 10px 0; color: var(--csf-muted); font-size: 16px; }
.csf .csf-prose blockquote > * + * { margin-top: .5em; }
.csf .csf-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--csf-sand); padding: 1px 6px; border-radius: 5px; }
.csf .csf-prose pre { background: var(--csf-sand); padding: 12px 14px; border-radius: 10px; overflow: auto; }
.csf .csf-prose pre code { background: none; padding: 0; }
.csf .csf-prose hr { border: 0; border-top: 1px solid var(--csf-line); margin: 1.4em 0; }
.csf .csf-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.csf .csf-prose th, .csf .csf-prose td { padding: 9px 12px; border-bottom: 1px solid var(--csf-line); text-align: left; vertical-align: top; min-width: 90px; }
.csf .csf-prose td:first-child, .csf .csf-prose th:first-child { white-space: nowrap; }
.csf .csf-prose th { background: var(--csf-bg); color: var(--csf-ink); font-weight: 700; }
.csf .csf-prose--page { font-size: 17px; }

/* Vidéo */
.csf .csf-yt { position: relative; aspect-ratio: 16 / 9; max-width: 640px; border-radius: 14px; overflow: hidden; background: #2b1d16; }
.csf .csf-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.csf .csf-yt__btn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; background: radial-gradient(circle at 50% 45%, #4a3328, #2b1d16); color: #fff; font-weight: 700; font-size: 16px; }
.csf .csf-yt__btn small { font-weight: 500; font-size: 12.5px; opacity: .75; }
.csf .csf-yt__play { width: 64px; height: 64px; border-radius: 50%; background: var(--csf-clay); position: relative; }
.csf .csf-yt__play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }

/* Photos */
.csf .csf-gallery { display: grid; gap: 8px; margin-top: 16px; max-width: 680px; }
.csf .csf-gallery--1 { grid-template-columns: minmax(0, 520px); }
.csf .csf-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.csf .csf-gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.csf .csf-gallery--3 .csf-gallery__item:first-child { grid-row: span 2; }
.csf .csf-gallery--4 { grid-template-columns: repeat(2, 1fr); }
.csf .csf-gallery__item { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--csf-sand); aspect-ratio: 4 / 3; }
.csf .csf-gallery--1 .csf-gallery__item { aspect-ratio: auto; max-height: 480px; }
.csf .csf-gallery--3 .csf-gallery__item:first-child { aspect-ratio: auto; }
.csf .csf-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.csf .csf-gallery--1 .csf-gallery__item img { object-fit: contain; height: auto; max-height: 480px; background: var(--csf-sand); }
.csf .csf-gallery__item:hover img { transform: scale(1.02); }
.csf .csf-gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(45, 24, 16, .5); color: #fff; font-size: 24px; font-weight: 700; }

.csf .csf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* Fiche technique */
.csf .csf-tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--csf-line); border: 1px solid var(--csf-line); border-radius: 14px; overflow: hidden; margin: 0 0 18px; }
.csf .csf-tech__row { background: #FBF8F4; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.csf .csf-tech dt { font-size: 12px; color: var(--csf-muted); font-weight: 600; }
.csf .csf-tech dd { font-size: 14.5px; color: var(--csf-ink); font-weight: 700; }

/* Solution */
.csf .csf-solution { background: var(--csf-sage-wash); border: 1px solid #CFE2D5; border-radius: var(--csf-r-lg); padding: 18px 22px; }
.csf .csf-solution__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--csf-sage); margin-bottom: 10px; font-size: 14px; }
.csf .csf-solution__head strong { font-size: 16px; }
.csf .csf-solution__body { display: flex; gap: 12px; align-items: flex-start; }
.csf .csf-solution__who { font-size: 14px; color: var(--csf-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.csf .csf-solution__text { font-size: 15.5px; color: var(--csf-text); margin: 4px 0 8px; line-height: 1.6; }
.csf .csf-solution .csf-link { color: var(--csf-sage); }

/* Notes */
.csf .csf-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--csf-r); background: var(--csf-sand); color: var(--csf-text); font-size: 14.5px; line-height: 1.5; }
.csf .csf-note .csf-ico { margin-top: 1px; }
.csf .csf-note--info { background: #EEF3F7; color: #2F4F66; }
.csf .csf-note--warn { background: var(--csf-amber-wash); color: #6B4A0F; }
.csf .csf-note--danger { background: var(--csf-danger-wash); color: #7F2A1F; }
.csf .csf-post > .csf-note { margin-bottom: 14px; }

/* Réponses */
.csf .csf-replies { display: flex; flex-direction: column; gap: 14px; }
.csf .csf-replies__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.csf .csf-replies__list { display: flex; flex-direction: column; gap: 14px; }
.csf .csf-divider { display: flex; align-items: center; gap: 12px; color: var(--csf-clay-ink); font-size: 13px; font-weight: 700; scroll-margin-top: calc(var(--csf-top) + 90px); }
.csf .csf-divider::before, .csf .csf-divider::after { content: ""; flex: 1; height: 1px; background: var(--csf-clay-wash-2); }
.csf .csf-newreplies { align-self: center; height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--csf-ink); color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--csf-shadow-lg); }
.csf .csf-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--csf-sand); }
.csf .csf-seg a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; color: var(--csf-muted); font-size: 13.5px; font-weight: 600; }
.csf .csf-seg a.is-active { background: #fff; color: var(--csf-ink); box-shadow: 0 1px 3px rgba(45, 24, 16, .1); }

/* Zone de réponse */
.csf .csf-reply { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: calc(var(--csf-top) + 80px); }
.csf .csf-replyform__row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.csf .csf-replyform__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-left: 52px; flex-wrap: wrap; }
.csf .csf-replyform__note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--csf-muted); }
.csf .csf-replyform__note .csf-ico { width: 16px; height: 16px; }
.csf .csf-joinbox { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--csf-r-lg); background: linear-gradient(120deg, #F6EEE5, #F0E4D8); border: 1px solid #E9D9C8; }
.csf .csf-joinbox__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.csf .csf-joinbox--big { margin-bottom: 8px; }
.csf .csf-related { display: flex; flex-direction: column; gap: 12px; }

/* Résumé (colonne du sujet) */
.csf .csf-card--summary { display: flex; flex-direction: column; gap: 12px; }
.csf .csf-summary { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.csf .csf-summary div + div { border-left: 1px solid var(--csf-line); }
.csf .csf-summary dt { font-size: 12px; color: var(--csf-muted); font-weight: 600; }
.csf .csf-summary dd { font-size: 20px; font-weight: 700; color: var(--csf-ink); font-family: var(--csf-serif); }

/* Bouton flottant mobile */
.csf .csf-fab { display: none; }

/* ======================================================================
   Éditeur
   ==================================================================== */
.csf .csf-editor { position: relative; background: #fff; border: 1.5px solid var(--csf-field-line); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.csf .csf-editor:focus-within { border-color: var(--csf-clay); box-shadow: 0 0 0 4px rgba(172, 92, 64, .1); }
.csf .csf-editor.is-drop { border-style: dashed; border-color: var(--csf-clay); background: var(--csf-clay-wash); }
.csf .csf-editor__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--csf-line); flex-wrap: wrap; }
.csf .csf-editor__tabs { display: inline-flex; gap: 2px; }
.csf .csf-editor__tabs button { height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--csf-muted); font-size: 14px; font-weight: 600; }
.csf .csf-editor__tabs button.is-active { background: var(--csf-sand); color: var(--csf-ink); }
.csf .csf-editor__tools { display: inline-flex; align-items: center; gap: 2px; }
.csf .csf-editor__tools button, .csf .csf-editor__photo { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--csf-muted); cursor: pointer; font-size: 14px; font-weight: 600; }
.csf .csf-editor__tools button:hover, .csf .csf-editor__photo:hover { background: var(--csf-bg); color: var(--csf-ink); }
.csf .csf-editor__photo { color: var(--csf-clay-ink); background: var(--csf-clay-wash); margin-left: 4px; }
.csf .csf-editor__photo:hover { background: var(--csf-clay-wash-2); color: var(--csf-clay-hover); }
.csf .csf-editor textarea { display: block; width: 100%; min-height: 120px; padding: 14px 16px; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; resize: vertical; font: inherit; font-size: 16px; line-height: 1.6; color: var(--csf-ink); margin: 0; border-radius: 0 0 16px 16px; }
.csf .csf-editor textarea::placeholder { color: var(--csf-faint); opacity: 1; }
.csf .csf-editor__preview { padding: 14px 16px; min-height: 120px; }
.csf .csf-uploads { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px; }
.csf .csf-editor.has-uploads .csf-uploads { padding-bottom: 12px; }
.csf .csf-upload { position: relative; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--csf-sand); }
.csf .csf-upload img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csf .csf-upload.is-loading { display: flex; align-items: center; justify-content: center; }
.csf .csf-upload__x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(45, 24, 16, .75); color: #fff; font-size: 18px; line-height: 26px; padding: 0; }
.csf .csf-editor__drop { padding: 0 16px 10px; font-size: 12.5px; color: var(--csf-faint); }
.csf .csf-editor.has-uploads .csf-editor__drop { display: none; }
.csf .csf-editor__hint { padding: 8px 16px 10px; border-top: 1px dashed var(--csf-line); font-size: 12.5px; color: var(--csf-faint); }
.csf .csf-spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--csf-clay-wash-2); border-top-color: var(--csf-clay); animation: csf-spin .8s linear infinite; }
@keyframes csf-spin { to { transform: rotate(360deg); } }
.csf .csf-mention-list { position: absolute; left: 12px; bottom: calc(100% - 8px); z-index: 30; min-width: 240px; background: #fff; border: 1px solid var(--csf-line); border-radius: 14px; box-shadow: var(--csf-shadow-lg); padding: 6px; }
.csf .csf-mention-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; text-align: left; font-size: 14px; font-weight: 600; color: var(--csf-ink); }
.csf .csf-mention-list button small { color: var(--csf-muted); font-weight: 500; margin-left: auto; }
.csf .csf-mention-list button.is-active, .csf .csf-mention-list button:hover { background: var(--csf-bg); }
.csf .csf-inline-edit { margin-top: 4px; }
.csf .csf-inline-edit__btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* ======================================================================
   Formulaires
   ==================================================================== */
.csf .csf-form { display: flex; flex-direction: column; gap: 18px; }
.csf .csf-step { background: var(--csf-surface); border: 1px solid var(--csf-line); border-radius: var(--csf-r-lg); padding: 22px 24px; margin: 0; min-width: 0; }
.csf fieldset.csf-step { min-inline-size: auto; }
.csf .csf-step__title { display: flex; align-items: center; gap: 8px; font-family: var(--csf-serif); font-size: 19px; font-weight: 700; color: var(--csf-ink); padding: 0; margin: 0 0 12px; float: none; width: auto; }
.csf fieldset.csf-step > legend.csf-step__title { float: left; width: 100%; }
.csf fieldset.csf-step > legend.csf-step__title + * { clear: both; }
.csf .csf-step__title .csf-ico { color: var(--csf-clay); }
.csf .csf-step__help { font-size: 14px; color: var(--csf-muted); margin: -6px 0 12px; }
.csf .csf-step__group { font-size: 12.5px; font-weight: 700; color: var(--csf-muted); margin: 12px 0 8px; }
.csf .csf-step__group:first-of-type { margin-top: 0; }
.csf .csf-step__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.csf .csf-step__row .csf-step__title { margin: 0; }

.csf .csf-typecards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.csf .csf-typecard { position: relative; cursor: pointer; }
.csf .csf-typecard input { position: absolute; opacity: 0; pointer-events: none; }
.csf .csf-typecard__in { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px; border: 1.5px solid var(--csf-line-2); border-radius: 14px; background: #fff; transition: border-color .15s, background-color .15s; }
.csf .csf-typecard:hover .csf-typecard__in { border-color: var(--csf-clay-wash-2); }
.csf .csf-typecard input:checked + .csf-typecard__in { border-color: var(--csf-clay); background: var(--csf-clay-wash); box-shadow: inset 0 0 0 1px var(--csf-clay); }
.csf .csf-typecard input:focus-visible + .csf-typecard__in { outline: 3px solid var(--csf-clay-ink); outline-offset: 2px; }
.csf .csf-typecard__ico { width: 38px; height: 38px; border-radius: 12px; background: var(--csf-clay-wash); color: var(--csf-clay); display: inline-flex; align-items: center; justify-content: center; }
.csf .csf-typecard input:checked + .csf-typecard__in .csf-typecard__ico { background: #fff; }
.csf .csf-typecard__label { font-weight: 700; color: var(--csf-ink); font-size: 15px; line-height: 1.3; }
.csf .csf-typecard__hint { font-size: 12.5px; color: var(--csf-muted); line-height: 1.4; }

.csf .csf-catpick { display: flex; flex-wrap: wrap; gap: 8px; }
.csf .csf-catpick__item { position: relative; cursor: pointer; }
.csf .csf-catpick__item input { position: absolute; opacity: 0; pointer-events: none; }
.csf .csf-catpick__item span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1.5px solid var(--csf-line-2); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 600; color: var(--csf-ink); }
.csf .csf-catpick__item span .csf-ico { color: var(--csf-clay); width: 18px; height: 18px; }
.csf .csf-catpick__item:hover span { border-color: var(--csf-clay-wash-2); }
.csf .csf-catpick__item input:checked + span { border-color: var(--csf-clay); background: var(--csf-clay-wash); box-shadow: inset 0 0 0 1px var(--csf-clay); }
.csf .csf-catpick__item input:focus-visible + span { outline: 3px solid var(--csf-clay-ink); outline-offset: 2px; }
.csf .csf-catpick--links .csf-catpick__item span:hover { border-color: var(--csf-clay); }

.csf .csf-field { display: flex; flex-direction: column; gap: 6px; position: relative; margin: 0; border: 0; padding: 0; min-width: 0; }
.csf .csf-field__label { font-size: 13.5px; font-weight: 700; color: var(--csf-ink); padding: 0; }
.csf .csf-field__help { font-size: 12.5px; color: var(--csf-muted); }
.csf .csf-field__error { color: var(--csf-danger); font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.csf .csf-field__count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--csf-muted); pointer-events: none; }
.csf .csf-field input[type=text], .csf .csf-field input[type=number], .csf .csf-field input[type=email], .csf .csf-field select, .csf .csf-field textarea {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--csf-field-line); border-radius: 12px; background: #fff;
	font: inherit; font-size: 16px; color: var(--csf-ink); box-shadow: none; margin: 0; line-height: 1.4; -webkit-appearance: none; appearance: none;
}
.csf .csf-field select { padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2377665C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.csf .csf-field input:focus, .csf .csf-field select:focus, .csf .csf-field textarea:focus { border-color: var(--csf-clay); outline: none; box-shadow: 0 0 0 4px rgba(172, 92, 64, .1); }
.csf .csf-field--title input[type=text] { font-size: 18px; font-weight: 600; padding-right: 120px; min-height: 54px; }
.csf .csf-field input::placeholder, .csf .csf-field textarea::placeholder { color: var(--csf-faint); opacity: 1; font-weight: 500; }

.csf .csf-similar { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: #EEF3F7; color: #2F4F66; }
.csf .csf-similar__title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.csf .csf-similar li { padding: 4px 0; font-size: 14.5px; }
.csf .csf-similar a { color: #234560; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.csf .csf-techbox > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.csf .csf-techbox > summary::-webkit-details-marker { display: none; }
.csf .csf-techbox > summary .csf-step__title { margin: 0; }
.csf .csf-techbox > summary .csf-step__title::after { content: "+"; margin-left: auto; font-family: var(--csf-sans); font-size: 22px; color: var(--csf-clay); }
.csf .csf-techbox[open] > summary .csf-step__title::after { content: "–"; }
.csf .csf-techbox__hint { font-size: 14px; color: var(--csf-muted); }
.csf .csf-techgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.csf .csf-field--wide { grid-column: span 2; }

.csf .csf-tagpick { display: flex; flex-wrap: wrap; gap: 8px; }
.csf .csf-tagpick__item { position: relative; cursor: pointer; }
.csf .csf-tagpick__item input { position: absolute; opacity: 0; pointer-events: none; }
.csf .csf-tagpick__item span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 1.5px dashed var(--csf-line-2); background: #fff; font-size: 14px; font-weight: 600; color: var(--csf-muted); }
.csf .csf-tagpick__item input:checked + span { border-style: solid; border-color: var(--csf-clay); background: var(--csf-clay-wash); color: var(--csf-clay-ink); }
.csf .csf-tagpick__item input:focus-visible + span { outline: 3px solid var(--csf-clay-ink); outline-offset: 2px; }

.csf .csf-formfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.csf .csf-formfoot__note { font-size: 13.5px; max-width: 54ch; }
.csf .csf-formfoot__btns { display: flex; gap: 10px; }

.csf .csf-radios { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 14px 0; }
.csf .csf-radio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--csf-line); cursor: pointer; font-weight: 600; font-size: 15px; color: var(--csf-ink); }
.csf .csf-radio:hover { border-color: var(--csf-clay-wash-2); }
.csf .csf-radio input { width: 18px; height: 18px; accent-color: var(--csf-clay); margin: 0; }
.csf .csf-radio:has(input:checked) { border-color: var(--csf-clay); background: var(--csf-clay-wash); }

.csf .csf-chipradios { display: flex; flex-wrap: wrap; gap: 8px; }
.csf .csf-chipradios label { position: relative; cursor: pointer; }
.csf .csf-chipradios input { position: absolute; opacity: 0; pointer-events: none; }
.csf .csf-chipradios span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--csf-line-2); background: #fff; font-weight: 600; font-size: 14px; color: var(--csf-ink); }
.csf .csf-chipradios input:checked + span { border-color: var(--csf-clay); background: var(--csf-clay-wash); color: var(--csf-clay-ink); }
.csf .csf-chipradios input:focus-visible + span { outline: 3px solid var(--csf-clay-ink); outline-offset: 2px; }

.csf .csf-toggles { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 18px; }
.csf .csf-toggle { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 0; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--csf-ink); }
.csf .csf-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.csf .csf-toggle__ui { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--csf-line-2); flex: 0 0 auto; transition: background-color .15s; }
.csf .csf-toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.csf .csf-toggle input:checked + .csf-toggle__ui { background: var(--csf-sage); }
.csf .csf-toggle input:checked + .csf-toggle__ui::after { transform: translateX(18px); }
.csf .csf-toggle input:focus-visible + .csf-toggle__ui { outline: 3px solid var(--csf-clay-ink); outline-offset: 2px; }
.csf .csf-toggle--danger input:checked + .csf-toggle__ui { background: var(--csf-danger); }
.csf .csf-followlist { display: flex; flex-direction: column; margin: 12px 0; }
.csf .csf-followlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.csf .csf-followlist li + li { border-top: 1px solid var(--csf-line); }
.csf .csf-followlist li > span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--csf-ink); }
.csf .csf-followlist .csf-ico { color: var(--csf-clay); }
.csf .csf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Recherche */
.csf .csf-searchpage { margin-bottom: 26px; }
.csf .csf-searchpage__box { height: 62px; background: #fff; border: 1.5px solid var(--csf-line-2); padding: 0 7px 0 20px; margin-bottom: 14px; }
.csf .csf-searchpage__box input[type=search] { font-size: 17px; }
.csf .csf-searchpage__box .csf-btn { min-height: 48px; }
.csf .csf-results-count { font-size: 15px; color: var(--csf-muted); margin-bottom: -16px; }

/* Profil */
.csf .csf-profile { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: start; background: var(--csf-surface); border: 1px solid var(--csf-line); border-radius: var(--csf-r-xl); padding: 28px; margin-bottom: 22px; }
.csf .csf-profile__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.csf .csf-profile__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.csf .csf-profile__badges:empty { display: none; }
.csf .csf-profile__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--csf-muted); }
.csf .csf-profile__meta > * { display: inline-flex; align-items: center; gap: 5px; }
.csf .csf-profile__meta .csf-ico { width: 16px; height: 16px; }
.csf .csf-profile__bio { max-width: 62ch; }
.csf .csf-profile .csf-tags { margin-top: 0; }
.csf .csf-profile .csf-btn { align-self: flex-start; }
.csf .csf-profile__stats { display: grid; grid-template-columns: repeat(2, minmax(90px, 1fr)); gap: 10px; }
.csf .csf-profile__stats div { background: var(--csf-bg); border-radius: 14px; padding: 12px 14px; text-align: center; }
.csf .csf-profile__stats dt { font-size: 12px; color: var(--csf-muted); font-weight: 600; }
.csf .csf-profile__stats dd { font-family: var(--csf-serif); font-size: 24px; font-weight: 700; color: var(--csf-ink); }
.csf .csf-editprofile { margin-bottom: 26px; padding: 0; }
.csf .csf-editprofile > summary { list-style: none; cursor: pointer; padding: 18px 22px; }
.csf .csf-editprofile > summary::-webkit-details-marker { display: none; }
.csf .csf-editprofile > summary .csf-h4 { display: inline-flex; align-items: center; gap: 8px; }
.csf .csf-editprofile > summary .csf-ico { color: var(--csf-clay); }
.csf .csf-editprofile .csf-form { padding: 0 22px 22px; }
.csf .csf-avedit { display: flex; align-items: center; gap: 16px; }
.csf .csf-avedit > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.csf .csf-avedit .is-loading { opacity: .5; }

/* Charte */
.csf .csf-rules { background: var(--csf-surface); border: 1px solid var(--csf-line); border-radius: var(--csf-r-xl); padding: 34px 40px; margin-bottom: 30px; }
.csf .csf-rules__intro { font-size: 18px; color: var(--csf-text); max-width: 62ch; }
.csf .csf-rules__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* ======================================================================
   Fenêtres, visionneuse, messages
   ==================================================================== */
.csf .csf-dialog { border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); background: #fff; color: var(--csf-text); box-shadow: var(--csf-shadow-lg); }
.csf .csf-dialog::backdrop { background: rgba(45, 24, 16, .45); backdrop-filter: blur(2px); }
.csf .csf-dialog__in { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.csf .csf-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
/* Navigateurs sans <dialog> natif : la fenêtre reste masquée tant qu'elle n'est pas ouverte, puis se centre. */
.csf dialog.csf-dialog:not([open]) { display: none; }
.csf .csf-dialog--poly { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; z-index: 100002; overflow: auto; box-shadow: 0 0 0 100vmax rgba(45, 24, 16, .45), var(--csf-shadow-lg); }
.csf .csf-dialog--login .csf-dialog__in { align-items: center; text-align: center; padding: 28px 24px 22px; }
.csf .csf-dialog__ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--csf-clay-wash); color: var(--csf-clay-ink); }
.csf .csf-dialog__ico .csf-ico { width: 26px; height: 26px; }
.csf .csf-dialog__actions--stack { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
.csf .csf-dialog__actions--stack .csf-link { align-self: center; min-height: 44px; border: 0; background: none; font-weight: 600; }

.csf .csf-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(28, 18, 13, .93); padding: 24px 70px; }
.csf .csf-lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.csf .csf-lightbox__fig img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; border-radius: 8px; }
.csf .csf-lightbox__fig figcaption { color: rgba(255, 255, 255, .8); font-size: 14px; }
.csf .csf-lightbox__close, .csf .csf-lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.csf .csf-lightbox__close:hover, .csf .csf-lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.csf .csf-lightbox__close { top: 16px; right: 16px; }
.csf .csf-lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.csf .csf-lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }
.csf .csf-lightbox .csf-ico { width: 24px; height: 24px; }

.csf .csf-toast { position: fixed; left: 50%; bottom: 28px; z-index: 100001; transform: translate(-50%, 20px); opacity: 0; max-width: min(560px, calc(100vw - 32px)); padding: 13px 20px; border-radius: 14px; background: var(--csf-ink); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.45; box-shadow: var(--csf-shadow-lg); transition: opacity .2s, transform .2s; text-align: center; }
.csf .csf-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.csf .csf-toast--success { background: #2F5E42; }
.csf .csf-toast--error { background: var(--csf-danger); }

/* ======================================================================
   Onglets mobiles
   ==================================================================== */
.csf .csf-tabs-mobile { display: none; }

/* ======================================================================
   Adaptation aux écrans
   ==================================================================== */
@media (max-width: 1280px) {
	.csf-carousel { grid-auto-columns: calc((100% - 4 * 14px) / 5); }
}
@media (max-width: 1100px) {
	.csf-layout, .csf-layout--topic, .csf-layout--form { grid-template-columns: minmax(0, 1fr); }
	.csf-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.csf-aside--sticky { position: static; }
	.csf-layout--topic .csf-aside { order: 2; }
	.csf .csf-row { grid-template-columns: 44px minmax(0, 1fr) auto 120px; }
	.csf .csf-row__last { display: none; }
	.csf .csf-typecards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.csf-bar__search { max-width: none; }
}
@media (max-width: 1023px) {
	.csf .csf-bar__cats { display: none; }
}
@media (max-width: 899px) {
	.csf-wrap { padding: 0 16px; }
	.csf { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
	.csf-bar__in { min-height: 56px; gap: 8px; }
	.csf .csf-bar__home span { font-size: 17px; }
	.csf .csf-bar__search, .csf .csf-bar__actions .csf-btn { display: none; }
	.csf .csf-menu--me { position: fixed; top: auto; right: 12px; left: 12px; margin-top: 8px; min-width: 0; max-height: 70vh; overflow: auto; }
	.csf .csf-bar__home { white-space: nowrap; }
	.csf-bar__actions { margin-left: auto; }
	.csf-bar__spacer { display: none; }

	.csf-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; margin: 14px 0 12px; border-radius: 20px; }
	.csf .csf-eyebrow { letter-spacing: .1em; font-size: 11px; line-height: 1.6; }
	/* La photo entière, à sa proportion : rien n'est coupé, quelle que soit la largeur. */
	.csf-hero__media { order: -1; height: auto; aspect-ratio: 687 / 262; min-height: 0; }
	.csf .csf-hero__media img { object-position: center; }
	.csf-hero__media::before { inset: auto 0 0 0; width: 100%; height: 34%; background: linear-gradient(0deg, #F1E8DE 0%, rgba(241, 232, 222, 0) 100%); }
	.csf-hero__text { padding: 4px 18px 22px; margin-top: -14px; }
	.csf .csf-hero__desc { font-size: 15.5px; margin-bottom: 16px; }
	.csf .csf-hero__search { height: 54px; padding: 0 5px 0 14px; }
	.csf .csf-hero__search .csf-btn { padding: 0 16px; min-height: 44px; }
	.csf-popular { margin: 0 0 24px; }
	.csf .csf-popular__chips { gap: 6px; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; width: calc(100% + 32px); }
	.csf .csf-popular__chips::-webkit-scrollbar { display: none; }
	.csf .csf-popular__chips > * { flex: 0 0 auto; }
	.csf .csf-popular__chips .csf-chip--soft { height: 38px; padding: 0 14px; }

	.csf-carousel { grid-auto-columns: 42%; margin-right: -16px; padding-right: 16px; }
	.csf-carousel-nav { display: none; }
	.csf .csf-catcard__desc { -webkit-line-clamp: 3; }

	.csf-aside { grid-template-columns: minmax(0, 1fr); }
	.csf .csf-pinned__list { grid-template-columns: minmax(0, 1fr); }
	.csf .csf-howto__steps { grid-template-columns: minmax(0, 1fr); }

	.csf-listbox__head { align-items: stretch; flex-direction: column; gap: 6px; }
	.csf .csf-tabs { margin: 0 -16px; padding: 0 12px; border-bottom: 1px solid var(--csf-line); }
	.csf .csf-tabs__item { height: 46px; padding: 0 12px; }
	.csf .csf-filters { gap: 8px; }
	.csf .csf-filters__count { width: 100%; margin-left: 0; order: -1; }

	.csf-rows { border-radius: 16px; }
	.csf .csf-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "av main thumb" "av stats stats"; gap: 4px 12px; padding: 14px 14px 12px; align-items: start; }
	.csf .csf-row__av { grid-area: av; }
	.csf .csf-row__av .csf-av { width: 36px !important; height: 36px !important; font-size: 13px !important; }
	.csf .csf-row__main { grid-area: main; }
	.csf .csf-row__thumb { grid-area: thumb; width: 56px; height: 56px; }
	.csf .csf-row__stats { grid-area: stats; display: flex; gap: 14px; text-align: left; }
	.csf .csf-row__stat { flex-direction: row; align-items: baseline; gap: 4px; }
	.csf .csf-row__stat strong { font-size: 13.5px; }
	.csf .csf-row__stat small { font-size: 13px; }
	.csf .csf-row__stat--views.is-zero { display: none; }
	.csf .csf-row__title { font-size: 15.5px; }
	.csf .csf-row__excerpt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13.5px; }
	.csf .csf-rows--compact .csf-row { grid-template-columns: 36px minmax(0, 1fr) auto; }

	.csf-cathero { grid-template-columns: 56px minmax(0, 1fr); padding: 20px 18px; gap: 14px 16px; border-radius: 20px; }
	.csf .csf-cathero__ico { width: 56px; height: 56px; border-radius: 16px; }
	.csf .csf-cathero__ico .csf-ico { width: 30px; height: 30px; }
	.csf .csf-cathero__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
	.csf .csf-cathero__actions .csf-btn { flex: 1 1 auto; }
	.csf .csf-cathero__desc { font-size: 15px; }

	.csf .csf-topichead__title { font-size: 26px; }
	.csf .csf-post { padding: 16px 16px 10px; border-radius: 16px; }
	.csf .csf-post--first { padding: 18px 16px 12px; }
	.csf .csf-prose { font-size: 16.5px; }
	.csf .csf-post__actions { gap: 0; margin-left: -6px; margin-right: -6px; }
	.csf .csf-post__actions { row-gap: 2px; }
	.csf .csf-act { padding: 0 9px; height: 42px; font-size: 13.5px; gap: 5px; }
	.csf .csf-post__solbadge { height: 26px; padding: 0 9px; font-size: 12.5px; }
	.csf .csf-tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.csf .csf-gallery--3 { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
	.csf .csf-gallery--3 .csf-gallery__item:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 4 / 3; }
	.csf .csf-replyform__row { grid-template-columns: minmax(0, 1fr); }
	.csf .csf-replyform__av { display: none; }
	.csf .csf-replyform__foot { padding-left: 0; }
	.csf .csf-replyform__foot .csf-btn { width: 100%; }
	.csf .csf-joinbox { grid-template-columns: minmax(0, 1fr); text-align: left; padding: 20px; }
	.csf .csf-joinbox > img { display: none; }
	.csf .csf-joinbox__actions .csf-btn { flex: 1 1 auto; }
	.csf .csf-editor__bar { padding: 6px; }
	.csf .csf-editor__photo span { display: none; }
	.csf .csf-summary dd { font-size: 18px; }

	.csf .csf-step { padding: 18px 16px; }
	.csf .csf-techgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.csf .csf-field--title input[type=text] { font-size: 17px; padding-right: 14px; }
	.csf .csf-field__count { position: static; transform: none; text-align: right; }
	.csf .csf-formfoot__btns { width: 100%; }
	.csf .csf-formfoot__btns .csf-btn { flex: 1 1 auto; }

	.csf .csf-profile { grid-template-columns: 72px minmax(0, 1fr); padding: 20px 16px; gap: 16px; }
	.csf .csf-profile__av .csf-av { width: 72px !important; height: 72px !important; }
	.csf .csf-profile__stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.csf .csf-profile__stats div { padding: 10px 6px; }
	.csf .csf-profile__stats dd { font-size: 20px; }
	.csf .csf-grid2 { grid-template-columns: minmax(0, 1fr); }
	.csf .csf-rules { padding: 22px 18px; }
	.csf .csf-catrow { grid-template-columns: 44px minmax(0, 1fr); padding: 14px 16px; }
	.csf .csf-catrow__ico { width: 44px; height: 44px; }
	.csf .csf-catrow__stats { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
	.csf .csf-searchpage__box { height: 56px; padding-left: 14px; }
	.csf .csf-searchpage__box .csf-btn { padding: 0 14px; }
	.csf .csf-results-count { margin-bottom: -10px; }
	.csf .csf-lightbox { padding: 16px 8px; }
	.csf .csf-lightbox__nav { top: auto; bottom: 18px; transform: none; }
	.csf .csf-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }

	/* Barre d'onglets en bas d'écran */
	.csf .csf-tabs-mobile { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: rgba(255, 255, 255, .98); border-top: 1px solid var(--csf-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(45, 24, 16, .06); }
	.csf .csf-tabs-mobile__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--csf-muted); font-size: 11.5px; font-weight: 600; border-radius: 12px; }
	.csf .csf-tabs-mobile__ico { position: relative; display: inline-flex; }
	.csf .csf-tabs-mobile__ico .csf-ico { width: 24px; height: 24px; }
	.csf .csf-tabs-mobile__ico .csf-dot-count { top: -6px; right: -10px; }
	.csf .csf-tabs-mobile__item.is-active { color: var(--csf-clay-ink); }
	.csf .csf-tabs-mobile__item--new .csf-tabs-mobile__ico { width: 44px; height: 32px; border-radius: 12px; background: var(--csf-clay); color: #fff; align-items: center; justify-content: center; }
	.csf .csf-tabs-mobile__item--new { color: var(--csf-ink); }

	.csf .csf-fab { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 9989; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 999px; background: var(--csf-clay); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(172, 92, 64, .35); transition: transform .2s, opacity .2s; }
	.csf .csf-fab:hover { color: #fff; }
	.csf .csf-fab.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
}
@media (max-width: 560px) {
	.csf .csf-typecards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.csf .csf-typecard__in { padding: 12px; }
	.csf .csf-typecard__hint { display: none; }
	.csf .csf-typecard__label { font-size: 14px; }
	.csf .csf-techgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.csf .csf-field--wide { grid-column: 1 / -1; }
	.csf .csf-hero__search .csf-btn { display: none; }
	.csf .csf-searchpage__box .csf-btn { display: none; }
	.csf-carousel { grid-auto-columns: 46%; }
	.csf .csf-menu--cats { grid-template-columns: 1fr; }
	.csf .csf-card--join { padding-right: 20px; }
	.csf .csf-card--join .csf-card__deco { display: none; }
	.csf .csf-dialog__actions .csf-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.csf *, .csf *::before, .csf *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* ======================================================================
   Accessibilité et confort (ajouts après relecture)
   ==================================================================== */
/* Le lien d'évitement peut être placé tout en haut de la page, hors du conteneur du forum. */
.csf-skip { position: absolute; left: 16px; top: -100px; z-index: 100003; padding: 10px 16px; border-radius: 10px; background: #2D1810; color: #fff !important; font-family: "Raleway", "Helvetica Neue", Arial, sans-serif; font-size: 15px; font-weight: 700; text-decoration: none; }
.csf-skip:focus { top: 12px; outline: 3px solid #8E4528; outline-offset: 2px; }
.csf [tabindex="-1"]:focus { outline: none; }
.csf [aria-invalid="true"] { border-color: var(--csf-danger) !important; box-shadow: 0 0 0 3px var(--csf-danger-wash) !important; }

/* Raccourcis sous le titre d'un sujet : seulement quand la colonne passe sous la discussion. */
.csf .csf-topichead__actions { display: none; }

/* Fiche technique repliable */
.csf .csf-techsheet { margin: 0 0 18px; }
.csf .csf-techsheet > .csf-tech { margin: 0; }
.csf .csf-techsheet__sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--csf-ink); }
.csf .csf-techsheet__sum::-webkit-details-marker { display: none; }
.csf .csf-techsheet__sum .csf-ico { color: var(--csf-clay); }
.csf .csf-techsheet__n { font-weight: 600; color: var(--csf-muted); }
.csf .csf-techsheet__sum::after { content: "+"; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--csf-sand); color: var(--csf-clay-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.csf .csf-techsheet[open] > .csf-techsheet__sum::after { content: "–"; }

/* Catégorie encore vide */
.csf .csf-catrow__open { color: var(--csf-sage); font-weight: 700; }

/* Bouton « Citer » sur une sélection de texte */
.csf .csf-selquote { position: fixed; z-index: 9996; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--csf-ink); color: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--csf-shadow-lg); }
.csf .csf-selquote:hover { background: var(--csf-clay-ink); }

@media (max-width: 1100px) {
	.csf .csf-topichead__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
	.csf .csf-topichead__actions .csf-btn { min-height: 40px; }
}
@media (max-width: 899px) {
	/* La barre d'onglets fixe ne doit pas cacher le pied de page du site. */
	body.csf-body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.csf { padding-bottom: 32px; }
	.csf .csf-hide-mobile { display: none !important; }
	.csf .csf-crumbs { margin: 14px 0 10px; }
	.csf .csf-crumbs li:last-child:not(:first-child) { display: none; }
	.csf .csf-selquote { height: 44px; padding: 0 20px; }
}
@media (max-width: 560px) {
	/* Bandeau d'accueil compact : le titre et la recherche tout de suite visibles. */
	.csf .csf-hero__desc { display: none; }
	.csf .csf-hero__lead { margin-bottom: 14px; }

	/* Choix de catégorie sur deux colonnes */
	.csf .csf-catpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.csf .csf-catpick__item span { width: 100%; min-height: 48px; border-radius: 14px; padding: 8px 12px; font-size: 14px; line-height: 1.25; }

	/* Cibles tactiles d'au moins 44 px */
	.csf .csf-editor__tools button, .csf .csf-editor__photo { min-width: 44px; height: 44px; }
	.csf .csf-editor__tabs button { height: 44px; }
	.csf .csf-seg a { height: 44px; }
	.csf .csf-act--icon { width: 44px; }
	.csf .csf-act { height: 44px; }
	.csf .csf-iconbtn { width: 44px; height: 44px; }
	.csf .csf-menu__item { min-height: 48px; }
	.csf .csf-upload__x { width: 32px; height: 32px; line-height: 32px; }

	/* Sur la question, « Répondre » fait doublon avec le bouton flottant : on garde la ligne d'actions sur une ligne. */
	.csf .csf-post--first .csf-post__actions [data-csf-quote] { display: none; }
	/* Quand « C'est la solution » est proposé, « Répondre » passe en icône seule (nom conservé pour les lecteurs d'écran). */
	.csf .csf-post__actions:has(.csf-act--solve) [data-csf-quote] { width: 44px; padding: 0; justify-content: center; }
	.csf .csf-post__actions:has(.csf-act--solve) [data-csf-quote] span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

	/* Menu « Plus d'actions » en panneau du bas, au-dessus de la barre d'onglets */
	.csf .csf-menu--actions, .csf .csf-menu--actions.is-up { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); min-width: 0; max-height: 70vh; overflow: auto; z-index: 9995; padding: 10px; border-radius: 20px; box-shadow: 0 -10px 40px rgba(45, 24, 16, .2); }
}

/* ======================================================================
   Doublons, sujet supprimé, saisie sur mobile, cibles tactiles
   ==================================================================== */
.csf .csf-dupnote { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 16px 18px; border-radius: var(--csf-r-lg); background: var(--csf-pro-wash); border: 1px solid #CFDDE8; color: var(--csf-text); }
.csf .csf-dupnote__ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--csf-pro); display: inline-flex; align-items: center; justify-content: center; }
.csf .csf-dupnote__txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; font-size: 14.5px; }
.csf .csf-dupnote__txt strong { color: var(--csf-ink); font-size: 15.5px; }
.csf .csf-dupnote__txt a { font-weight: 700; }
.csf .csf-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.csf .csf-search--page { width: 100%; max-width: 520px; height: 52px; background: #fff; margin: 6px 0; }

@media (max-width: 899px) {
	/* Le bouton visé au clavier ne passe jamais sous la barre d'onglets. */
	:root:has(body.csf-body) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
	/* Pendant la saisie (clavier ouvert), la barre d'onglets et le bouton flottant s'effacent. */
	body.csf-typing .csf .csf-tabs-mobile, body.csf-typing .csf .csf-fab { display: none; }
	.csf .csf-dupnote { flex-wrap: wrap; }
	.csf .csf-dupnote .csf-btn { width: 100%; }
	.csf .csf-crumbs a { display: inline-flex; align-items: center; min-height: 36px; }
}
.csf .csf-show-mobile { display: none; }
@media (max-width: 899px) {
	.csf .csf-show-mobile { display: inline; }
}
@media (max-width: 560px) {
	.csf .csf-eyebrow { letter-spacing: .06em; font-size: 10.5px; }
	.csf .csf-select select { height: 44px; }
	.csf [data-csf-follow], .csf [data-csf-follow-cat] { min-height: 44px; }
	.csf .csf-card .csf-link, .csf .csf-filters__reset { min-height: 44px; }
	.csf .csf-bar__me .csf-iconbtn--av { min-width: 44px; min-height: 44px; justify-content: center; }
}

@media print {
	.csf-bar, .csf-aside, .csf-tabs-mobile, .csf-fab, .csf-reply, .csf-post__actions { display: none !important; }
	.csf-layout { display: block; }
}
