/* ==========================================================================
   Bloc : Catégories
   ========================================================================== */
.subroca-post-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

.subroca-category {
	--subroca-cat-color: #6c5ce7;
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #fff;
	background: var(--subroca-cat-color);
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.subroca-category:hover,
.subroca-category:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
	color: #fff;
	opacity: 0.95;
}

/* Palette cyclée automatiquement selon l'ordre d'affichage (8 couleurs) */
.subroca-category:nth-of-type(8n+1) { --subroca-cat-color: #6c5ce7; }
.subroca-category:nth-of-type(8n+2) { --subroca-cat-color: #00b894; }
.subroca-category:nth-of-type(8n+3) { --subroca-cat-color: #e17055; }
.subroca-category:nth-of-type(8n+4) { --subroca-cat-color: #0984e3; }
.subroca-category:nth-of-type(8n+5) { --subroca-cat-color: #d63031; }
.subroca-category:nth-of-type(8n+6) { --subroca-cat-color: #fdcb6e; }
.subroca-category:nth-of-type(8n+7) { --subroca-cat-color: #00cec9; }
.subroca-category:nth-of-type(8n+8) { --subroca-cat-color: #e84393; }

/* Pour forcer manuellement la couleur d'une catégorie précise, ex :
.subroca-category--actualites { --subroca-cat-color: #ff4757; }
*/

/* ==========================================================================
   Bloc : Partage social
   ========================================================================== */
.subroca-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
	padding: 0.9rem 1.1rem;
	border-radius: 14px;
	background: #f5f6fa;
}

.subroca-share__label {
	font-weight: 600;
	font-size: 0.85rem;
	color: #2d3436;
	margin-right: 0.25rem;
}

.subroca-share__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.subroca-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	width: 38px;
	height: 38px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #2d3436;
	cursor: pointer;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, width 0.2s ease, border-radius 0.2s ease;
	text-decoration: none;
}

.subroca-share__btn:hover,
.subroca-share__btn:focus-visible {
	transform: translateY(-2px);
}

.subroca-share__btn--facebook:hover { background: #1877f2; color: #fff; }
.subroca-share__btn--x:hover        { background: #000; color: #fff; }
.subroca-share__btn--linkedin:hover { background: #0a66c2; color: #fff; }
.subroca-share__btn--whatsapp:hover { background: #25d366; color: #fff; }
.subroca-share__btn--email:hover    { background: #636e72; color: #fff; }

.subroca-share__btn--copy {
	width: auto;
	border-radius: 999px;
	padding: 0 0.9rem;
	gap: 0.4rem;
}

.subroca-share__btn--copy.is-copied {
	background: #00b894;
	color: #fff;
}

.subroca-share__copy-text {
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
}