/* CI-Clean UX — fil « réseau social » + barre d'onglets mobile */
:root {
	--ciux-green: #0F5C36;
	--ciux-green-600: #13804a;
	--ciux-green-50: #e7f4ec;
	--ciux-bg: #F0F2F5;
	--ciux-card: #ffffff;
	--ciux-text: #1c1e21;
	--ciux-muted: #65676b;
	--ciux-line: #e4e6eb;
	--ciux-hover: #f2f3f5;
	--ciux-orange: #b45309;
	--ciux-orange-50: #fef3e2;
	--ciux-blue: #1d4ed8;
	--ciux-blue-50: #e8efff;
	--ciux-radius: 12px;
	--ciux-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 1px 1px rgba(0, 0, 0, .04);
	--ciux-font: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
	--ciux-tabbar-h: 64px;
}

/* Fond gris clair uniquement sur la page du fil */
body.ciux-page { background: var(--ciux-bg); }
body.ciux-page .wp-site-blocks { background: transparent; }
body.ciux-page .entry-content,
body.ciux-page .wp-block-post-content { max-width: none !important; }
body.ciux-page .wp-block-post-title,
body.ciux-page header.wp-block-template-part,
body.ciux-page footer.wp-block-template-part,
body.ciux-page .wp-block-spacer { display: none !important; }
body.ciux-page .wp-site-blocks, body.ciux-page main, body.ciux-page .wp-block-group { padding: 0 !important; margin: 0 !important; max-width: none !important; }
body.ciux-page { --wp--style--global--content-size: 100%; --wp--style--global--wide-size: 100%; }
.ciux-topbar {
	position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
	height: 56px; padding: 0 16px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-family: var(--ciux-font);
}
.ciux-brand { display: flex; align-items: center; gap: 8px; color: var(--ciux-green) !important; font-weight: 800; font-size: 18px; text-decoration: none; }
.ciux-brand img { height: 32px; width: auto; }
.ciux-top-me img { border-radius: 50%; display: block; }
.ciux-topbar .ciux-btn { min-height: 36px; text-decoration: none; }

.ciux, .ciux *, .ciux-tabbar, .ciux-tabbar * { box-sizing: border-box; }
.ciux {
	font-family: var(--ciux-font);
	color: var(--ciux-text);
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 12px 24px;
	font-size: 15px;
	line-height: 1.45;
}
.ciux a { color: inherit; text-decoration: none; }
.ciux-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Colonnes */
.ciux-left, .ciux-right { display: none; }
.ciux-center { min-width: 0; width: 100%; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 900px) {
	.ciux { grid-template-columns: minmax(0, 1fr) 300px; padding-top: 20px; }
	.ciux-right { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; align-self: start; }
}
@media (min-width: 1200px) {
	.ciux { grid-template-columns: 260px minmax(0, 1fr) 300px; }
	.ciux-left { display: block; position: sticky; top: 20px; align-self: start; }
}

/* Navigation gauche */
.ciux-me, .ciux-nav a {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 12px; border-radius: 10px; font-weight: 600;
}
.ciux-me img { border-radius: 50%; }
.ciux-nav { list-style: none; margin: 4px 0 0; padding: 0; }
.ciux-nav a:hover, .ciux-me:hover { background: rgba(0, 0, 0, .05); }
.ciux-nav .ciux-ic { color: var(--ciux-green); width: 24px; height: 24px; }

/* Cartes */
.ciux-card {
	background: var(--ciux-card);
	border-radius: var(--ciux-radius);
	box-shadow: var(--ciux-shadow);
	overflow: hidden;
}

/* Composer « Signaler » */
.ciux-composer { padding: 12px 16px; }
.ciux-composer-row { display: flex; gap: 10px; align-items: center; }
.ciux-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.ciux-avatar--ph { display: inline-flex; align-items: center; justify-content: center; background: var(--ciux-line); color: var(--ciux-muted); }
.ciux-composer-input {
	flex: 1; min-height: 44px; display: flex; align-items: center;
	padding: 0 16px; border-radius: 999px; background: var(--ciux-bg);
	color: var(--ciux-muted) !important;
}
.ciux-composer-input:hover { background: #e4e6e9; }
.ciux-composer-actions { display: flex; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--ciux-line); }
.ciux-composer-actions a {
	flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 40px; border-radius: 8px; font-weight: 600; white-space: nowrap; color: var(--ciux-muted) !important;
}
.ciux-composer-actions a:hover { background: var(--ciux-hover); }
.ciux-composer-actions a.ciux-btn { color: #fff !important; }

.ciux-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px;
	background: var(--ciux-green); color: #fff !important; font-weight: 700; cursor: pointer;
}
.ciux-btn:hover { background: var(--ciux-green-600) !important; }
.ciux-btn--block { width: 100%; }

/* Filtres */
.ciux-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ciux-filters::-webkit-scrollbar { display: none; }
.ciux-filters button {
	flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--ciux-line); background: #fff; color: var(--ciux-text);
	font: 600 14px var(--ciux-font); cursor: pointer;
}
.ciux-filters button.is-active { background: var(--ciux-green); border-color: var(--ciux-green); color: #fff; }

/* Publication */
.ciux-feed { display: flex; flex-direction: column; gap: 12px; }
.ciux-post-head { display: flex; gap: 10px; align-items: center; padding: 12px 16px 8px; }
.ciux-post-meta { min-width: 0; flex: 1; }
.ciux-post-author { font-weight: 700; display: block; }
.ciux-post-sub { color: var(--ciux-muted); font-size: 13px; }
.ciux-status {
	flex: none; display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.ciux-status--a_traiter { background: var(--ciux-orange-50); color: var(--ciux-orange); }
.ciux-status--en_cours { background: var(--ciux-blue-50); color: var(--ciux-blue); }
.ciux-status--resolu, .ciux-status--action_positive { background: var(--ciux-green-50); color: var(--ciux-green); }
.ciux-post-body { padding: 0 16px 10px; }
.ciux-post-title { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.ciux-post-desc { margin: 0; color: var(--ciux-text); }
.ciux-post-desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ciux-chip { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: var(--ciux-bg); color: var(--ciux-muted); font-size: 12px; font-weight: 600; }
.ciux-post-photo { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 420px; object-fit: cover; background: var(--ciux-line); }
.ciux-post-counts { display: flex; justify-content: space-between; padding: 8px 16px; color: var(--ciux-muted); font-size: 13px; }
.ciux-post-actions { display: flex; gap: 4px; margin: 0 12px; padding: 4px 0; border-top: 1px solid var(--ciux-line); }
.ciux-post-actions button, .ciux-post-actions a {
	flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; border: 0; border-radius: 8px; background: none;
	color: var(--ciux-muted); font: 600 14px var(--ciux-font); cursor: pointer;
}
.ciux-post-actions button:hover, .ciux-post-actions a:hover { background: var(--ciux-hover); }
.ciux-post-actions .is-on { color: var(--ciux-green); }
.ciux-post-actions .is-on .ciux-ic { fill: var(--ciux-green-50); }
.ciux-pop { animation: ciux-pop .35s ease; }
@keyframes ciux-pop { 40% { transform: scale(1.25); } }

.ciux-empty { padding: 32px 20px; text-align: center; color: var(--ciux-muted); }
.ciux-empty strong { display: block; color: var(--ciux-text); font-size: 17px; margin-bottom: 6px; }
.ciux-more {
	min-height: 44px; border: 0; border-radius: 10px; background: #fff; box-shadow: var(--ciux-shadow);
	font: 700 15px var(--ciux-font); color: var(--ciux-green); cursor: pointer;
}

/* Widgets droite */
.ciux-widget { padding: 14px 16px; }
.ciux-widget h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; }
.ciux-widget h3 .ciux-ic { color: var(--ciux-green); }
.ciux-widget p { margin: 0 0 12px; color: var(--ciux-muted); }
.ciux-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.ciux-stat b { display: block; font-size: 22px; color: var(--ciux-green); line-height: 1.1; }
.ciux-stat span { font-size: 12px; color: var(--ciux-muted); }
.ciux-rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ciux-rank li { counter-increment: r; display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ciux-line); }
.ciux-rank li:first-child { border-top: 0; }
.ciux-rank li::before {
	content: counter(r); flex: none; width: 26px; height: 26px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ciux-bg); font-weight: 700; font-size: 13px;
}
.ciux-rank li:nth-child(1)::before { background: #fde68a; }
.ciux-rank li:nth-child(2)::before { background: #e5e7eb; }
.ciux-rank li:nth-child(3)::before { background: #fed7aa; }
.ciux-rank-name { flex: 1; min-width: 0; font-weight: 600; }
.ciux-rank-name small { display: block; color: var(--ciux-muted); font-weight: 400; font-size: 12px; }
.ciux-rank-score { font-weight: 700; color: var(--ciux-green); }

/* Squelettes de chargement */
.ciux-skel { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ciux-skel-head { display: flex; gap: 10px; align-items: center; }
.ciux-skel-c, .ciux-skel-l, .ciux-skel-img {
	display: block; border-radius: 6px;
	background: linear-gradient(90deg, #eceef1 25%, #f6f7f9 50%, #eceef1 75%);
	background-size: 200% 100%; animation: ciux-shimmer 1.2s infinite linear;
}
.ciux-skel-c { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.ciux-skel-l { height: 12px; width: 70%; }
.ciux-skel-l--s { width: 40%; }
.ciux-skel-img { height: 220px; width: 100%; }
@keyframes ciux-shimmer { to { background-position: -200% 0; } }

/* Toast */
.ciux-toast {
	position: fixed; left: 50%; bottom: calc(var(--ciux-tabbar-h) + 16px); transform: translate(-50%, 20px);
	background: #1c1e21; color: #fff; padding: 10px 16px; border-radius: 10px;
	font: 600 14px var(--ciux-font); opacity: 0; pointer-events: none; transition: .25s; z-index: 10000;
}
.ciux-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Barre d'onglets mobile */
.ciux-tabbar { display: none; }
@media (max-width: 899px) {
	.ciux-tabbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
		height: calc(var(--ciux-tabbar-h) + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: #fff; border-top: 1px solid var(--ciux-line);
		box-shadow: 0 -2px 10px rgba(0, 0, 0, .05);
		font-family: var(--ciux-font);
	}
	body.ciux-site { padding-bottom: calc(var(--ciux-tabbar-h) + env(safe-area-inset-bottom)); }
	.ciux-tab {
		position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		color: var(--ciux-muted); text-decoration: none; font-size: 11px; font-weight: 600;
	}
	.ciux-tab .ciux-ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
	.ciux-tab.is-active { color: var(--ciux-green); }
	.ciux-tab--fab .ciux-ic {
		width: 46px; height: 46px; padding: 11px; margin-top: -22px; border-radius: 50%;
		background: var(--ciux-green); color: #fff; stroke-width: 2.5;
		box-shadow: 0 4px 12px rgba(15, 92, 54, .35);
	}
	.ciux-badge {
		position: absolute; top: 8px; left: 50%; margin-left: 4px;
		min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
		background: #e41e3f; color: #fff; font-size: 11px; line-height: 18px; text-align: center;
	}
	.ciux { padding-left: 8px; padding-right: 8px; }
	/* Toasts et bas de page de l'app ci-clean-core au-dessus de la barre */
	body.ciux-site .cc-toast-wrap { bottom: calc(var(--ciux-tabbar-h) + 16px + env(safe-area-inset-bottom)) !important; }
	body.ciux-site .cc-root { padding-bottom: 24px; }
	/* Correctif : le titre collant du fil chevauchait les filtres sur mobile */
	body.ciux-site .cc-shell-main .cc-h1 { position: static !important; }
	.ciux-card { border-radius: 10px; }
}

.ciux :focus-visible, .ciux-tabbar :focus-visible { outline: 3px solid var(--ciux-green-600); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.ciux *, .ciux-toast { animation: none !important; transition: none !important; }
}
.ciux-ic--xs { width: 13px; height: 13px; vertical-align: -2px; }

/* ---- Finitions de l'app ci-clean-core (v1.2) ---- */
/* Titre du fil aligné avec les publications, au lieu d'un bandeau fixe pleine largeur */
body.ciux-site .cc-shell-main .cc-h1 {
	position: static !important; background: none !important; border: 0 !important; box-shadow: none !important;
	width: auto !important; max-width: none !important; margin: 0 0 2px !important; padding: 24px 0 0 !important;
}
body.ciux-site .cc-fil-wrap { padding-top: 0 !important; }
body.ciux-site .cc-fil-wrap .cc-sub { margin-top: 0; }
/* Barre de défilement discrète dans la colonne centrale */
body.ciux-site .cc-shell-main { scrollbar-width: thin; scrollbar-color: transparent transparent; }
body.ciux-site .cc-shell-main:hover { scrollbar-color: rgba(0, 0, 0, .2) transparent; }
/* Cartes légèrement en relief */
body.ciux-site .cc-post { box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }

/* ---- v1.6 : typo uniforme et barre du haut pleine largeur ---- */
.ciux h1, .ciux h2, .ciux h3, .ciux h4, .ciux-topbar, .ciux-post-title { font-family: var(--ciux-font) !important; letter-spacing: 0; }
.ciux-post-title { font-size: 17px !important; font-weight: 700 !important; line-height: 1.3; }
.ciux-widget h3 { font-size: 16px !important; font-weight: 700 !important; }
body.ciux-page .ciux-topbar, body.ciux-page .ciux, body.ciux-page .is-layout-constrained > * { max-width: none !important; }
body.ciux-page .ciux { max-width: 1280px !important; }
body.ciux-page .ciux-topbar { width: auto; margin: 0 !important; border-radius: 0; }

/* ---- v1.7 : icônes en couleur dans le menu de gauche ---- */
.ciux-nav-emoji { width: 24px; flex: none; text-align: center; font-size: 18px; line-height: 1; }
.ciux-nav-emoji img.emoji { width: 20px !important; height: 20px !important; margin: 0 !important; }

/* ---- v1.8 : barre du haut complète (comme celle de l'app) ---- */
.ciux-topbar { display: grid !important; grid-template-columns: 1fr auto 1fr; gap: 12px; height: 64px !important; }
.ciux-brand img { height: 44px !important; width: auto; display: block; }
.ciux-toplinks { display: flex; gap: 24px; justify-content: center; }
.ciux-toplink {
	display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 16px; border-radius: 8px;
	color: var(--ciux-green) !important; font-size: 12px; font-weight: 700; text-decoration: none;
}
.ciux-toplink span { font-size: 18px; line-height: 1; }
.ciux-toplink:hover { background: rgba(0, 0, 0, .04); }
.ciux-toplink.is-active { background: var(--ciux-green-50); }
.ciux-topright { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ciux-theme-toggle, .ciux-bell {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border: 0; border-radius: 50%; background: none; font-size: 20px; cursor: pointer; text-decoration: none;
}
.ciux-theme-toggle:hover, .ciux-bell:hover { background: rgba(0, 0, 0, .05); }
.ciux-bell .ciux-badge { position: absolute; top: 2px; right: 0; left: auto; margin: 0; }
.ciux-topbar .ciux-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e41e3f; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
.ciux-btn--ghost { background: #fff !important; color: var(--ciux-green) !important; border: 1px solid var(--ciux-line); }
@media (max-width: 899px) {
	.ciux-topbar { grid-template-columns: auto 1fr; }
	.ciux-toplinks { display: none; }
	.ciux-brand img { height: 36px !important; }
}
@media (max-width: 480px) { .ciux-topright .ciux-btn:not(.ciux-btn--ghost) { display: none; } }

/* ---- Mode sombre pour le nouveau fil ---- */
body[data-cc-theme="dark"] {
	--ciux-bg: #0F1A14; --ciux-card: #16241C; --ciux-text: #E6EFE9; --ciux-muted: #9FB3A7;
	--ciux-line: #24362B; --ciux-hover: #1d2e24; --ciux-green-50: #1b3a29;
}
body[data-cc-theme="dark"].ciux-page, body[data-cc-theme="dark"] .ciux { background: var(--ciux-bg) !important; color: var(--ciux-text); }
body[data-cc-theme="dark"] .ciux-topbar, body[data-cc-theme="dark"] .ciux-tabbar { background: var(--ciux-card) !important; border-color: var(--ciux-line); }
body[data-cc-theme="dark"] .ciux-toplink, body[data-cc-theme="dark"] .ciux-tab.is-active { color: #6FD39A !important; }
body[data-cc-theme="dark"] .ciux-filters button, body[data-cc-theme="dark"] .ciux-more, body[data-cc-theme="dark"] .ciux-btn--ghost { background: var(--ciux-card) !important; color: var(--ciux-text) !important; border-color: var(--ciux-line); }
body[data-cc-theme="dark"] .ciux-filters button.is-active { background: var(--ciux-green) !important; color: #fff !important; }
body[data-cc-theme="dark"] .ciux-composer-input:hover { background: var(--ciux-hover); }
body[data-cc-theme="dark"] .ciux-skel-c, body[data-cc-theme="dark"] .ciux-skel-l, body[data-cc-theme="dark"] .ciux-skel-img { background: linear-gradient(90deg, #1d2e24 25%, #243a2d 50%, #1d2e24 75%); background-size: 200% 100%; }
body[data-cc-theme="dark"] .ciux-rank-score, body[data-cc-theme="dark"] .ciux-stat b, body[data-cc-theme="dark"] .ciux-nav .ciux-ic, body[data-cc-theme="dark"] .ciux-widget h3 .ciux-ic { color: #6FD39A; }
body[data-cc-theme="dark"] .ciux-nav a:hover, body[data-cc-theme="dark"] .ciux-me:hover, body[data-cc-theme="dark"] .ciux-toplink:hover { background: rgba(255, 255, 255, .06); }

/* Correctif de l'app : liens Accueil / Carte / Stats illisibles en mode sombre */
body[data-cc-theme="dark"] .cc-navbar-link { color: #CFE9D6 !important; }
body[data-cc-theme="dark"] .cc-navbar-link.active { color: #fff !important; background: rgba(255, 255, 255, .12) !important; }
body[data-cc-theme="dark"] .ciux-rank li::before { color: #14241C; }
body[data-cc-theme="dark"] .ciux-rank li:nth-child(n+4)::before { background: #24362B; color: var(--ciux-text); }

/* v1.10 : pas d espace vide au-dessus du titre de la carte */
body.ciux-site .cc-shell-main .cc-carte-wrap { padding-top: 0 !important; }

/* ---- v1.12 : colonne de droite identique aux autres écrans ---- */
.ciux-rp h3 { margin: 0 0 8px !important; }
.ciux-rp .ciux-rp-sub { margin-top: 16px !important; }
.ciux-rp-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ciux-line); font-size: 14px; }
.ciux-rp-row:last-of-type { border-bottom: 0; }
.ciux-rp-row strong { color: var(--ciux-green); }
.ciux-rp-group { display: flex; gap: 10px; align-items: center; padding: 8px 0; text-decoration: none; color: inherit !important; border-radius: 8px; }
.ciux-rp-group:hover { background: rgba(0, 0, 0, .04); }
.ciux-rp-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--ciux-line); font-weight: 700; }
.ciux-rp-av img { width: 100%; height: 100%; object-fit: cover; }
.ciux-rp-gtxt { min-width: 0; display: flex; flex-direction: column; }
.ciux-rp-gtxt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ciux-rp-gtxt small { font-size: 11px; color: var(--ciux-green); font-weight: 700; }
.ciux-pub { display: block; background: linear-gradient(135deg, #0F5C36, #14713F); border-radius: 12px; padding: 14px; text-decoration: none; color: #fff !important; transition: transform .15s; }
.ciux-pub:hover { transform: translateY(-2px); }
.ciux-pub-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #CDEBD1; margin-bottom: 8px; }
.ciux-pub-row { display: flex; gap: 10px; align-items: center; }
.ciux-pub-row img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; flex: none; }
.ciux-pub-sponsor { font-size: 11px; color: #CDEBD1; font-weight: 600; }
.ciux-pub-titre { font-size: 14px; font-weight: 700; }
.ciux-pub-cta { font-size: 12px; font-weight: 600; margin-top: 10px; text-align: right; }
body[data-cc-theme="dark"] .ciux-rp-row strong, body[data-cc-theme="dark"] .ciux-rp-gtxt small { color: #6FD39A; }
body[data-cc-theme="dark"] .ciux-rp-group:hover { background: rgba(255, 255, 255, .06); }
@media (min-width: 900px) { .ciux-right { max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: transparent transparent; top: 80px !important; } .ciux-right:hover { scrollbar-color: rgba(0,0,0,.2) transparent; } }
#ciux-pub:empty { display: none; }

/* ---- v1.13 : le fil occupe toute la largeur, comme les autres écrans ---- */
body.ciux-page .entry-content,
body.ciux-page .wp-block-post-content,
body.ciux-page .has-global-padding,
body.ciux-page .is-layout-constrained,
body.ciux-page .wp-site-blocks > * {
	padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important;
	margin-block-start: 0 !important; max-width: none !important; width: 100% !important;
}
body.ciux-page .ciux-topbar { position: sticky; top: 0; width: 100% !important; padding: 0 20px !important; box-sizing: border-box; }
body.admin-bar.ciux-page .ciux-topbar { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar.ciux-page .ciux-topbar { top: 46px; } }
body.ciux-page .ciux { max-width: none !important; width: 100%; margin: 0 !important; padding: 16px 16px 24px !important; gap: 24px; }
@media (min-width: 900px) { body.ciux-page .ciux { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (min-width: 1200px) { body.ciux-page .ciux { grid-template-columns: 300px minmax(0, 1fr) 340px; } }
body.ciux-page .ciux-center { max-width: 760px; }

/* ---------- v2.5 : Actions positives, menu du compte, déconnexion ---------- */
.ciux-composer-actions a.ciux-composer-good { color: var(--ciux-green) !important; }
.ciux-composer-actions a.ciux-composer-good:hover { background: var(--ciux-green-50); }

.ciux-hero {
	display: grid; grid-template-columns: 1fr; gap: 16px; padding: 22px 22px 18px; overflow: hidden; position: relative;
	background: linear-gradient(135deg, #0F5C36 0%, #1f8a55 60%, #4cb37a 100%); color: #fff; border: 0;
}
.ciux-hero::after { content: "🌳"; position: absolute; right: -10px; bottom: -24px; font-size: 130px; opacity: .14; pointer-events: none; }
.ciux-hero-kicker { display: inline-block; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; }
.ciux-hero h1 { margin: 10px 0 6px; font: 800 26px/1.2 var(--ciux-font); color: #fff !important; }
.ciux-hero p { margin: 0; max-width: 520px; color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.5; }
.ciux-hero-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ciux-hero .ciux-btn { background: #fff; color: var(--ciux-green) !important; }
.ciux-hero .ciux-btn:hover { background: #f0fff6 !important; }
.ciux-hero .ciux-btn--ghost { background: rgba(255,255,255,.14) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.4) !important; }
.ciux-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.ciux-hero-stats div { background: rgba(255,255,255,.14); border-radius: 10px; padding: 10px 12px; }
.ciux-hero-stats strong { display: block; font-size: 22px; font-weight: 800; }
.ciux-hero-stats span { font-size: 12px; opacity: .9; }
.ciux-empty-ico { display: block; font-size: 40px; margin-bottom: 6px; }
.ciux-notice { padding: 12px 16px; background: var(--ciux-green-50); color: var(--ciux-green); font-weight: 600; }

/* Menu du compte (clic sur l'avatar) */
.ciux-me { position: relative; }
.ciux-me > summary { list-style: none; cursor: pointer; border-radius: 50%; }
.ciux-me > summary::-webkit-details-marker { display: none; }
.ciux-me[open] > summary { box-shadow: 0 0 0 3px var(--ciux-green-50); }
.ciux-me-menu {
	position: absolute; right: 0; top: calc(100% + 8px); width: 260px; z-index: 60; padding: 8px;
	background: var(--ciux-card); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.08);
	font-family: var(--ciux-font);
}
.ciux-me-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--ciux-line); color: var(--ciux-text); }
.ciux-me-head img { border-radius: 50%; }
.ciux-me-menu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: var(--ciux-text) !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.ciux-me-menu a:hover { background: var(--ciux-hover); }
.ciux-me-menu a span { width: 22px; text-align: center; }
.ciux-me-menu a.ciux-me-logout { margin-top: 4px; border-top: 1px solid var(--ciux-line); border-radius: 0 0 8px 8px; color: #b91c1c !important; }
.ciux-nav a[href*="ciux_logout"] { color: #b91c1c !important; }
.cc-sidebar .ciux-cc-logout, .ciux-cc-logout { color: #b91c1c !important; }

@media (max-width: 599px) {
	.ciux-hero { padding: 18px 16px 14px; }
	.ciux-hero h1 { font-size: 22px; }
	.ciux-hero-stats strong { font-size: 18px; }
	.ciux-composer-actions a { font-size: 13px; padding: 0 4px; }
	.ciux-composer-actions a[href*="vue=carte"] { display: none; }
}
body[data-cc-theme="dark"] .ciux-me-menu { background: var(--ciux-card); }
body[data-cc-theme="dark"] .ciux-notice { background: rgba(111,211,154,.12); color: #6FD39A; }
body[data-cc-theme="dark"] .ciux-composer-actions a.ciux-composer-good { color: #6FD39A !important; }


/* ==================== v2.6 : icônes dessinées, accueil, encart, compteurs ==================== */
/* Menu de gauche : icône sur pastille de couleur */
.ciux-nav-ico {
	width: 34px; height: 34px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
	color: var(--c, var(--ciux-green)); background: color-mix(in srgb, var(--c, #0F5C36) 13%, transparent);
}
.ciux-nav .ciux-nav-ico .ciux-ic { width: 19px; height: 19px; color: inherit; }
.ciux-nav a.is-active { background: var(--ciux-green-50); color: var(--ciux-green) !important; }
/* Barre du haut */
.ciux-toplink .ciux-ic { width: 22px; height: 22px; }
.ciux-theme-toggle .ciux-ic, .ciux-bell .ciux-ic { width: 22px; height: 22px; color: var(--ciux-text); }
.ciux-th-sun { display: none; }
body[data-cc-theme="dark"] .ciux-th-sun { display: inline-flex; }
body[data-cc-theme="dark"] .ciux-th-moon { display: none; }
body[data-cc-theme="dark"] .ciux-theme-toggle .ciux-ic, body[data-cc-theme="dark"] .ciux-bell .ciux-ic { color: #e4e6eb; }
.ciux-me-menu a .ciux-ic { width: 18px; height: 18px; color: var(--ciux-green); }
/* Icônes dans les boutons, badges, filtres */
.ciux-btn .ciux-ic, .ciux-composer-good .ciux-ic, .ciux-hero-kicker .ciux-ic, .ciux-notice .ciux-ic { width: 17px; height: 17px; }
.ciux-btn, .ciux-hero-kicker, .ciux-notice { display: inline-flex; align-items: center; gap: 7px; }
.ciux-notice { display: flex; }
.ciux-filters button .ciux-ic { width: 15px; height: 15px; vertical-align: -2px; }
.ciux-composer-good .ciux-ic { color: #2E9E5B; }
.ciux-status { display: inline-flex; align-items: center; gap: 5px; }
.ciux-ic--xs { width: 14px; height: 14px; }
.ciux-post-counts [data-rcount] { display: inline-flex; align-items: center; gap: 4px; }
.ciux-empty-ico .ciux-ic { width: 40px; height: 40px; color: #2E9E5B; }

/* Accueil des visiteurs non connectés */
.ciux-welcome {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: center;
	padding: 26px 26px 24px; border: 0; color: #fff;
	background: radial-gradient(circle at 92% 8%, rgba(255,255,255,.14) 0, transparent 40%), linear-gradient(135deg, #0F5C36 0%, #17784a 55%, #2E9E5B 100%);
}
.ciux-welcome h1 { margin: 10px 0 8px; font: 800 27px/1.15 var(--ciux-font); color: #fff !important; letter-spacing: -.01em; }
.ciux-welcome p { margin: 0; color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.55; }
.ciux-welcome .ciux-btn { background: #fff !important; color: var(--ciux-green) !important; }
.ciux-welcome .ciux-btn--ghost { background: rgba(255,255,255,.12) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.45) !important; }
.ciux-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ciux-steps li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.35; }
.ciux-steps strong { display: block; font-size: 15px; }
.ciux-steps .ciux-step-ico { background: rgba(255,255,255,.18); color: #fff; }
.ciux-step-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--ciux-green-50); color: var(--ciux-green); }
.ciux-step-ico .ciux-ic { width: 21px; height: 21px; }

/* Encart sous un fil encore peu fourni */
.ciux-onboard { padding: 22px; }
.ciux-onboard h3 { margin: 0 0 6px !important; font: 800 19px/1.25 var(--ciux-font); color: var(--ciux-text); }
.ciux-onboard > p { margin: 0 0 16px; color: var(--ciux-muted); font-size: 14.5px; line-height: 1.5; }
.ciux-onboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ciux-onboard-grid > div { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; background: var(--ciux-hover); border: 1px solid var(--ciux-line); }
.ciux-onboard-grid strong { font-size: 14px; color: var(--ciux-text); }
.ciux-onboard-grid small { font-size: 12.5px; color: var(--ciux-muted); line-height: 1.4; }
.ciux-onboard .ciux-btn--ghost .ciux-ic { color: var(--ciux-green); }

@media (max-width: 760px) {
	.ciux-welcome { grid-template-columns: 1fr; padding: 20px 16px; }
	.ciux-welcome h1 { font-size: 23px; }
	.ciux-onboard-grid { grid-template-columns: 1fr; }
}
body[data-cc-theme="dark"] .ciux-onboard-grid > div { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
/* Mobile : le badge de statut passe sous l'auteur pour ne pas écraser son nom */
@media (max-width: 600px) {
	.ciux-post-head { flex-wrap: wrap; row-gap: 8px; }
	.ciux-post-head .ciux-status { order: 3; margin-left: 50px; }
	.ciux-post-meta { flex: 1 1 calc(100% - 60px); }
}
/* Barre du haut alignée sur les 3 colonnes du fil : les onglets se placent au-dessus du bloc central */
@media (min-width: 1200px) {
	body.ciux-page .ciux-topbar { grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 24px; padding: 0 16px !important; }
	body.ciux-page .ciux-toplinks { width: 100%; max-width: 760px; margin: 0 auto; justify-content: stretch; gap: 8px; }
	body.ciux-page .ciux-toplink { flex: 1 1 0; }
}

/* ==================== v2.6 : pages de l'app ci-clean-core ==================== */
/* Barre du haut de l'app alignée sur ses 3 colonnes : onglets au-dessus du bloc central */
@media (min-width: 1200px) {
	body.ciux-site .cc-navbar-inner { display: grid !important; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 24px; padding: 0 16px !important; max-width: 1600px; margin: 0 auto; box-sizing: border-box; }
	body.ciux-site .cc-navbar-links { width: 100%; padding: 0 16px; box-sizing: border-box; justify-content: stretch !important; gap: 8px !important; }
	body.ciux-site .cc-navbar-links .cc-navbar-link { flex: 1 1 0; }
	body.ciux-site .cc-navbar-right { justify-content: flex-end; }
}
body.ciux-site a.cc-navbar-link { text-decoration: none; color: inherit; display: inline-flex; flex-direction: column; align-items: center; }
body.ciux-site .cc-navbar-icon .ciux-ic { width: 22px; height: 22px; color: var(--ciux-green); }
/* Menu de gauche de l'app : mêmes pastilles d'icônes que le fil */
body.ciux-site .cc-sidebar-icon.ciux-cc-ico, body.ciux-site .ciux-cc-extra .ciux-cc-ico {
	width: 34px; height: 34px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
	color: var(--c, #0F5C36); background: color-mix(in srgb, var(--c, #0F5C36) 13%, transparent); margin-right: 4px;
}
body.ciux-site .ciux-cc-ico .ciux-ic { width: 19px; height: 19px; color: inherit; }
