/**
 * Running Easy — BuddyNext custom mode.
 * Generic community styling only: no business component belongs here.
 */
body.running-easy-bn-custom {
	--re-navy: #073b49;
	--re-navy-strong: #052f3a;
	--re-coral: #ee5366;
	--re-canvas: #eef6f8;
	--re-surface: #fff;
	--re-border: #dfe8ea;
	--re-muted: #65767c;
	--re-shadow-sm: 0 1px 2px rgba(7, 59, 73, .04), 0 8px 24px rgba(7, 59, 73, .045);
	--re-shadow-md: 0 16px 42px rgba(7, 59, 73, .08);
}

body.running-easy-bn-custom {
	background-color: var(--re-canvas);
}

body.running-easy-bn-custom .bn-app {
	--bn-accent: var(--re-navy);
	--brand: var(--re-navy);
	--brand-hover: var(--re-navy-strong);
	--brand-light: #e6f1f3;
	--bn-canvas: var(--re-canvas);
	--bn-line: var(--re-border);
	--bn-line-faint: #eaf0f1;
	--bn-shell-sidebar-w: 290px;
	--bn-railw: 236px;
	background: var(--re-canvas);
}

/* Authentification : laisser la zone centrale absorber l'espace disponible
 * sans réserver artificiellement 70vh, ce qui étirait le copyright du thème. */
body.running-easy-bn-custom.bn-hub-auth .bn-app--auth {
	min-height: calc(100svh - 178px) !important;
	flex: 0 0 auto;
}

body.running-easy-bn-custom.bn-hub-auth .bn-auth-aside,
body.running-easy-bn-custom.bn-hub-auth .bn-auth-aside[data-has-image] {
	background-image: url("../images/auth-background.png") !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	color: var(--re-navy) !important;
}

body.running-easy-bn-custom.bn-hub-auth .bn-auth-aside blockquote.bn-auth-aside__quote,
body.running-easy-bn-custom.bn-hub-auth .bn-auth-aside__heading,
body.running-easy-bn-custom.bn-hub-auth .bn-auth-aside__tagline {
	color: var(--re-navy) !important;
	text-shadow: 0 1px 10px rgba(255, 255, 255, .9);
}

html body.running-easy-bn-custom.bn-hub-auth footer#site-footer.site-footer {
	flex: 0 0 auto;
	block-size: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 16px 20px !important;
}

html body.running-easy-bn-custom.bn-hub-auth #site-footer .footer-inner {
	block-size: auto !important;
	min-height: 0 !important;
	margin-block: 0 !important;
	padding-block: 0 !important;
	align-items: center;
	justify-content: center;
}

html body.running-easy-bn-custom.bn-hub-auth #site-footer .copyright,
html body.running-easy-bn-custom.bn-hub-auth #site-footer .copyright p {
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Le texte natif reste dans le DOM et continue de fournir le nom accessible ;
 * l'interface affiche un pictogramme neutre cohérent avec la palette Custom. */
body.running-easy-bn-custom.bn-hub-auth .bn-auth-pw__input {
	padding-inline-end: 3rem;
}

body.running-easy-bn-custom.bn-hub-auth .bn-auth-pw__toggle {
	inset-inline-end: 4px;
	display: grid !important;
	place-items: center;
	box-sizing: border-box !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: var(--re-navy) !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
}

body.running-easy-bn-custom.bn-hub-auth .bn-auth-pw__toggle::before {
	display: block;
	place-self: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	content: "";
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.running-easy-bn-custom.bn-hub-auth .bn-auth-pw__toggle[aria-pressed="true"]::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18'/%3E%3Cpath d='M10.6 10.6a2 2 0 0 0 2.8 2.8'/%3E%3Cpath d='M9.9 4.2A10.8 10.8 0 0 1 12 4c6.5 0 10 8 10 8a18.4 18.4 0 0 1-2 3.2'/%3E%3Cpath d='M6.6 6.6C3.6 8.4 2 12 2 12s3.5 8 10 8a9.8 9.8 0 0 0 4.1-.9'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18'/%3E%3Cpath d='M10.6 10.6a2 2 0 0 0 2.8 2.8'/%3E%3Cpath d='M9.9 4.2A10.8 10.8 0 0 1 12 4c6.5 0 10 8 10 8a18.4 18.4 0 0 1-2 3.2'/%3E%3Cpath d='M6.6 6.6C3.6 8.4 2 12 2 12s3.5 8 10 8a9.8 9.8 0 0 0 4.1-.9'/%3E%3C/svg%3E");
}

body.running-easy-bn-custom.bn-hub-auth .bn-auth-pw__toggle:hover {
	background: rgba(7, 59, 73, .08) !important;
	color: var(--re-navy-strong) !important;
	text-decoration: none !important;
}

@media (max-width: 860px) {
	body.running-easy-bn-custom.bn-hub-auth .bn-app--auth {
		min-height: 0 !important;
	}
}

/* La valeur Custom du rail ouvert ne doit pas gagner sur l'état compact
 * piloté par BuddyNext sur l'élément html. */
html[data-bn-rail="collapsed"] body.running-easy-bn-custom .bn-app {
	--bn-railw: 72px;
}

/* Header public compact sur les surfaces communautaires. */
body.running-easy-bn-custom #site-header.site-header {
	min-height: 0;
	padding-block: 7px;
	border-bottom: 1px solid rgba(7, 59, 73, .07);
	background: #fff;
	box-shadow: 0 5px 18px rgba(7, 59, 73, .035);
}

body.running-easy-bn-custom #site-header .header-inner {
	min-height: 76px;
	align-items: center;
	flex-wrap: nowrap;
}

body.running-easy-bn-custom #site-header .site-branding,
body.running-easy-bn-custom #site-header .site-logo,
body.running-easy-bn-custom #site-header .custom-logo-link {
	line-height: 0;
}

body.running-easy-bn-custom #site-header .site-logo img,
body.running-easy-bn-custom #site-header img.custom-logo {
	width: auto !important;
	max-width: 145px !important;
	height: auto !important;
	max-height: 76px !important;
	object-fit: contain;
}

/* Structure : largeur confortable, colonnes plus aérées et séparateurs doux. */
body.running-easy-bn-custom .bn-app__shell {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

body.running-easy-bn-custom .bn-app__main {
	padding: 28px clamp(20px, 2vw, 34px) 56px;
}

body.running-easy-bn-custom .bn-app__rail {
	padding: 24px 12px;
	border-inline-end-color: rgba(255, 255, 255, .1);
	background: linear-gradient(180deg, var(--re-navy) 0%, var(--re-navy-strong) 100%);
	color: rgba(255, 255, 255, .84);
	backdrop-filter: blur(14px);
	border-start-end-radius: 18px;
}

html[data-bn-rail="collapsed"] body.running-easy-bn-custom .bn-app__rail {
	padding-inline: 8px;
}

body.running-easy-bn-custom .bn-app__right {
	gap: 16px;
	padding: 20px 20px 40px 0;
	border-inline-start: 0;
	background: transparent;
}

/* Navigation latérale : état actif immédiatement identifiable. */
body.running-easy-bn-custom .bn-rail__item,
body.running-easy-bn-custom .bn-rail__spaces-toggle {
	min-height: 44px;
	margin-block: 2px;
	padding-inline: 13px;
	border-radius: 11px;
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, .82);
}

body.running-easy-bn-custom .bn-rail__item:hover,
body.running-easy-bn-custom .bn-rail__spaces-toggle:hover {
	background: rgba(255, 255, 255, .1);
	color: #fff;
}

body.running-easy-bn-custom .bn-rail__item[aria-current="page"] {
	background: #fff;
	color: var(--re-navy);
	box-shadow: 0 10px 24px rgba(1, 25, 31, .24);
}

html[data-bn-rail="collapsed"] body.running-easy-bn-custom .bn-rail__item {
	width: 48px;
	min-width: 48px;
	margin-inline: auto;
	padding-inline: 0;
	gap: 0;
	justify-content: center;
	border-radius: 12px;
}

html[data-bn-rail="collapsed"] body.running-easy-bn-custom .bn-rail__item .bn-rail__icon {
	margin: 0;
	transform: none;
}

html[data-bn-rail="collapsed"] body.running-easy-bn-custom .bn-rail__head {
	align-items: center;
}

body.running-easy-bn-custom .bn-rail__heading {
	color: rgba(255, 255, 255, .48);
}

body.running-easy-bn-custom .bn-rail__toggle {
	border-color: rgba(255, 255, 255, .24);
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

body.running-easy-bn-custom .bn-rail__toggle:hover {
	border-color: rgba(255, 255, 255, .42);
	background: rgba(255, 255, 255, .15);
}

body.running-easy-bn-custom .bn-rail__spaces-count {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

body.running-easy-bn-custom .bn-rail__spaces-link {
	color: rgba(255, 255, 255, .72);
}

body.running-easy-bn-custom .bn-rail__spaces-link:hover {
	background: rgba(255, 255, 255, .1);
	color: #fff;
}

body.running-easy-bn-custom .bn-rail__item[aria-current="page"] .bn-rail__badge,
body.running-easy-bn-custom .bn-rail__item[aria-current="page"] .bn-badge {
	background: #e6f1f3;
	color: var(--re-navy);
}

/* Le mode Custom repose sur le menu du site et la navigation latérale BuddyNext. */
body.running-easy-bn-custom .bn-community-menu {
	display: none !important;
}

/* Contrôle d’avatar de l’édition de profil : neutralise les styles génériques
   du thème qui transformaient le bouton circulaire en rectangle corail. */
body.running-easy-bn-custom .bn-ep-avatar-wrap .bn-ep-avatar-btn {
	display: inline-grid !important;
	box-sizing: border-box !important;
	inset-block-end: 2px !important;
	inset-inline-end: 2px !important;
	width: 30px !important;
	min-width: 30px !important;
	height: 30px !important;
	min-height: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 3px solid #fff !important;
	border-radius: 50% !important;
	background: var(--re-navy) !important;
	color: #fff !important;
	box-shadow: 0 3px 10px rgba(7, 59, 73, .22) !important;
	place-items: center;
}

body.running-easy-bn-custom .bn-ep-avatar-wrap .bn-ep-avatar-btn:hover,
body.running-easy-bn-custom .bn-ep-avatar-wrap .bn-ep-avatar-btn:focus-visible {
	background: var(--re-navy-strong) !important;
	transform: translateY(-1px);
}

body.running-easy-bn-custom .bn-ep-avatar-wrap .bn-ep-avatar-btn svg {
	display: block;
	width: 13px !important;
	height: 13px !important;
	margin: 0 !important;
	stroke: currentColor !important;
}

/* Menu utilisateur natif BuddyNext, placé à droite du header Hello/Elementor. */
body.running-easy-bn-custom .running-easy-bn-header-user {
	display: flex;
	align-items: center;
	margin-inline-start: 14px;
}

body.running-easy-bn-custom .running-easy-bn-header-user[hidden] {
	display: none;
}

body.running-easy-bn-custom .running-easy-bn-header-user .bn-header-user-section {
	gap: 5px;
}

body.running-easy-bn-custom .running-easy-bn-header-user .bn-notification-bell-link,
body.running-easy-bn-custom .running-easy-bn-header-user .bn-header-msg {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	color: var(--re-navy);
}

body.running-easy-bn-custom .running-easy-bn-header-user .bn-header-user__avatar {
	box-shadow: 0 0 0 3px #e6f1f3;
}

body.running-easy-bn-custom .running-easy-bn-header-user .bn-header-user {
	gap: 4px;
	padding: 3px 4px 3px 3px;
	border: 1px solid #cfe0e4;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 3px 12px rgba(7, 59, 73, .08);
}

body.running-easy-bn-custom .running-easy-bn-header-user button.bn-header-user__caret {
	display: inline-grid !important;
	box-sizing: border-box;
	width: 28px !important;
	min-width: 28px !important;
	height: 28px !important;
	min-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #edf5f6 !important;
	color: var(--re-navy) !important;
	box-shadow: none !important;
	place-items: center;
	transform: none !important;
	transition: background-color .18s ease, color .18s ease !important;
}

body.running-easy-bn-custom .running-easy-bn-header-user button.bn-header-user__caret:hover,
body.running-easy-bn-custom .running-easy-bn-header-user button.bn-header-user__caret:focus-visible,
body.running-easy-bn-custom .running-easy-bn-header-user .bn-header-user.is-open button.bn-header-user__caret {
	background: #dcebed !important;
	color: var(--re-navy-strong) !important;
}

body.running-easy-bn-custom .running-easy-bn-header-user button.bn-header-user__caret svg,
body.running-easy-bn-custom .running-easy-bn-header-user button.bn-header-user__caret .bn-icon {
	display: block !important;
	width: 15px !important;
	height: 15px !important;
	margin: 0 !important;
	color: currentColor !important;
	stroke: currentColor !important;
	transform: rotate(0deg);
	transform-origin: center;
	transition: transform .18s ease;
}

body.running-easy-bn-custom .running-easy-bn-header-user .bn-header-user.is-open button.bn-header-user__caret svg,
body.running-easy-bn-custom .running-easy-bn-header-user .bn-header-user.is-open button.bn-header-user__caret .bn-icon {
	transform: rotate(180deg);
}

body.running-easy-bn-custom .running-easy-bn-header-user .bn-header-user__dropdown {
	border-color: var(--re-border);
	border-radius: 14px;
	box-shadow: 0 18px 45px rgba(7, 59, 73, .16);
}

@media (max-width: 768px) {
	body.running-easy-bn-custom #site-header.site-header {
		padding-block: 5px;
	}

	body.running-easy-bn-custom #site-header .header-inner {
		min-height: 62px;
	}

	body.running-easy-bn-custom #site-header .site-logo img,
	body.running-easy-bn-custom #site-header img.custom-logo {
		max-width: 116px !important;
		max-height: 58px !important;
	}

	body.running-easy-bn-custom .running-easy-bn-header-user {
		margin-inline-start: auto;
	}

	body.running-easy-bn-custom .running-easy-bn-header-user .bn-header-user {
		gap: 2px;
		padding: 2px 3px 2px 2px;
	}

	body.running-easy-bn-custom .running-easy-bn-header-user button.bn-header-user__caret {
		position: static !important;
		width: 26px !important;
		min-width: 26px !important;
		height: 34px !important;
		min-height: 34px !important;
		align-items: center !important;
		justify-content: center !important;
	}

	body.running-easy-bn-custom .running-easy-bn-header-user button.bn-header-user__caret svg,
	body.running-easy-bn-custom .running-easy-bn-header-user button.bn-header-user__caret .bn-icon {
		width: 14px !important;
		height: 14px !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	body.running-easy-bn-custom .running-easy-bn-header-user .bn-header-msg,
	body.running-easy-bn-custom .running-easy-bn-header-user .bn-block-notification-bell {
		display: none;
	}
}

/* Composer : plus compact et davantage perçu comme point de départ du fil. */
body.running-easy-bn-custom .bn-composer {
	padding: 18px 20px 13px;
	border-color: var(--re-border);
	border-radius: 16px;
	background: var(--re-surface);
	box-shadow: var(--re-shadow-sm);
}

body.running-easy-bn-custom .bn-composer__avatar {
	box-shadow: 0 0 0 3px #e6f1f3;
}

body.running-easy-bn-custom .bn-composer__prompt {
	font-size: 15px;
}

body.running-easy-bn-custom .bn-composer__tools {
	padding-top: 10px;
	border-top-color: #edf2f3;
}

body.running-easy-bn-custom .bn-composer__tool {
	border-radius: 9px;
	color: var(--re-navy) !important;
}

body.running-easy-bn-custom .bn-composer__tool:hover,
body.running-easy-bn-custom .bn-composer__tool:focus-visible,
body.running-easy-bn-custom .bn-composer__tool[aria-pressed="true"] {
	background: #e6f1f3 !important;
	color: var(--re-navy) !important;
}

body.running-easy-bn-custom .bn-composer__tool svg,
body.running-easy-bn-custom .bn-composer__tool .bn-icon {
	color: var(--re-navy) !important;
	stroke: var(--re-navy) !important;
}

body.running-easy-bn-custom .bn-composer__tool svg :is(path, circle, rect, line, polyline, polygon) {
	stroke: var(--re-navy) !important;
}

body.running-easy-bn-custom .bn-composer__submit,
body.running-easy-bn-custom .bn-btn[data-variant="primary"] {
	border-color: var(--re-navy) !important;
	background: var(--re-navy) !important;
	box-shadow: 0 7px 16px rgba(7, 59, 73, .14);
}

/* Certains thèmes forcent color:#fff sur :hover pour tous les boutons. La
 * couleur du libellé doit dépendre de la surface réelle du bouton BuddyNext. */
body.running-easy-bn-custom .bn-btn:not([data-variant]):not(.bn-btn-primary):not(.bn-btn-danger):hover,
body.running-easy-bn-custom .bn-btn:not([data-variant]):not(.bn-btn-primary):not(.bn-btn-danger):focus-visible,
body.running-easy-bn-custom .bn-btn[data-variant="secondary"]:hover,
body.running-easy-bn-custom .bn-btn[data-variant="secondary"]:focus-visible,
body.running-easy-bn-custom .bn-btn[data-variant="ghost"]:hover,
body.running-easy-bn-custom .bn-btn[data-variant="ghost"]:focus-visible,
body.running-easy-bn-custom .bn-btn-ghost:hover,
body.running-easy-bn-custom .bn-btn-ghost:focus-visible {
	color: var(--re-navy) !important;
}

body.running-easy-bn-custom .bn-btn[data-variant="primary"],
body.running-easy-bn-custom .bn-btn[data-variant="primary"]:hover,
body.running-easy-bn-custom .bn-btn[data-variant="primary"]:focus-visible,
body.running-easy-bn-custom .bn-btn[data-variant="ai"],
body.running-easy-bn-custom .bn-btn[data-variant="ai"]:hover,
body.running-easy-bn-custom .bn-btn[data-variant="ai"]:focus-visible,
body.running-easy-bn-custom .bn-btn-primary,
body.running-easy-bn-custom .bn-btn-primary:hover,
body.running-easy-bn-custom .bn-btn-primary:focus-visible {
	color: #fff !important;
}

body.running-easy-bn-custom .bn-btn-danger:hover,
body.running-easy-bn-custom .bn-btn-danger:focus-visible {
	color: #b4232f !important;
}

body.running-easy-bn-custom .bn-btn[data-variant="danger"],
body.running-easy-bn-custom .bn-btn[data-variant="danger"]:hover,
body.running-easy-bn-custom .bn-btn[data-variant="danger"]:focus-visible {
	color: #fff !important;
}

/* Le thème public applique ses styles de boutons aux options de visibilité.
 * On restitue ici un vrai menu BuddyNext, compact et sans cadres parasites. */
body.running-easy-bn-custom .bn-composer__privacy-wrap {
	position: relative;
	width: auto;
	max-width: 100%;
}

body.running-easy-bn-custom button.bn-composer__privacy-chip {
	box-sizing: border-box;
	width: auto !important;
	min-width: 0 !important;
	min-height: 38px;
	margin: 0 !important;
	padding: 8px 11px !important;
	border: 1px solid #d4e1e3 !important;
	border-radius: 9px !important;
	background: #f5f9f9 !important;
	color: var(--re-muted) !important;
	font-size: 12px !important;
	line-height: 1.2;
	box-shadow: none !important;
}

body.running-easy-bn-custom button.bn-composer__privacy-chip:hover,
body.running-easy-bn-custom button.bn-composer__privacy-chip[aria-expanded="true"] {
	border-color: #9fb9be !important;
	background: #edf5f6 !important;
}

body.running-easy-bn-custom .bn-composer__privacy-chip strong {
	min-inline-size: 72px;
	color: var(--re-navy);
	font-size: 12px;
	font-weight: 750;
}

body.running-easy-bn-custom .bn-composer__privacy-pop {
	box-sizing: border-box;
	width: min(310px, calc(100vw - 24px));
	min-width: 0;
	padding: 7px;
	border: 1px solid #d9e5e7;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(7, 59, 73, .16);
}

body.running-easy-bn-custom .bn-composer__privacy-pop > li {
	border: 0 !important;
	border-bottom: 1px solid #edf2f3 !important;
	background: transparent !important;
}

body.running-easy-bn-custom .bn-composer__privacy-pop > li:last-child {
	border-bottom: 0 !important;
}

body.running-easy-bn-custom button.bn-composer__privacy-opt {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	box-sizing: border-box;
	width: 100% !important;
	min-height: 58px !important;
	margin: 0 !important;
	gap: 11px !important;
	padding: 9px 11px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: #385158 !important;
	font-size: 13px !important;
	line-height: 1.3;
	box-shadow: none !important;
	text-align: left !important;
}

body.running-easy-bn-custom button.bn-composer__privacy-opt:hover {
	background: #f1f6f7 !important;
	color: var(--re-navy) !important;
}

body.running-easy-bn-custom .bn-composer__privacy-pop li[aria-selected="true"] > .bn-composer__privacy-opt {
	background: #e7f2f4 !important;
	color: var(--re-navy) !important;
	box-shadow: inset 3px 0 0 var(--re-navy) !important;
}

body.running-easy-bn-custom .bn-composer__privacy-pop li[aria-selected="true"] > .bn-composer__privacy-opt::after {
	content: "\2713";
	display: grid;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	align-self: center;
	margin-inline-start: auto;
	border-radius: 50%;
	background: var(--re-navy);
	place-items: center;
	box-sizing: border-box;
	padding-bottom: 1px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}

body.running-easy-bn-custom .bn-composer__privacy-opt .bn-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin: 0;
	color: var(--re-navy);
}

body.running-easy-bn-custom .bn-composer__privacy-opt-label {
	flex: 1;
	min-width: 0;
	gap: 2px;
}

body.running-easy-bn-custom .bn-composer__privacy-opt-label strong {
	color: #173b44;
	font-size: 13px;
	font-weight: 750;
}

body.running-easy-bn-custom .bn-composer__privacy-opt-label small {
	color: #728187;
	font-size: 11px;
	line-height: 1.35;
}

/* Filtres : barre légère en pilules, sans lourde ligne horizontale. */
body.running-easy-bn-custom .bn-feed-filter-tabs {
	gap: 5px;
	padding: 5px;
	border: 1px solid var(--re-border);
	border-radius: 13px;
	background: rgba(255, 255, 255, .72);
}

body.running-easy-bn-custom .bn-feed-filter-tabs .bn-tab {
	min-height: 34px;
	padding: 7px 13px;
	border: 0;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 650;
}

body.running-easy-bn-custom .bn-feed-filter-tabs .bn-tab[aria-current="true"] {
	background: var(--re-surface);
	color: var(--re-navy);
	box-shadow: 0 2px 10px rgba(7, 59, 73, .1);
}

/* Publications : hiérarchie plus nette et profondeur très mesurée. */
body.running-easy-bn-custom .bn-feed-stack,
body.running-easy-bn-custom .bn-feed-list {
	gap: 18px;
}

body.running-easy-bn-custom .bn-post-card {
	padding: 20px;
	border-color: var(--re-border);
	border-radius: 16px;
	background: var(--re-surface);
	box-shadow: var(--re-shadow-sm);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.running-easy-bn-custom .bn-post-card:hover {
	border-color: #cbdadd;
	box-shadow: var(--re-shadow-md);
	transform: translateY(-1px);
}

body.running-easy-bn-custom .bn-post-card__author,
body.running-easy-bn-custom .bn-post-card__author-name {
	font-weight: 750;
}

body.running-easy-bn-custom .bn-post-card__body {
	color: #24373d;
}

body.running-easy-bn-custom .bn-post-card__actions {
	border-top-color: #edf2f3;
}

body.running-easy-bn-custom button.bn-post-card__action-btn {
	color: var(--re-navy) !important;
}

body.running-easy-bn-custom button.bn-post-card__action-btn:hover,
body.running-easy-bn-custom button.bn-post-card__action-btn:focus-visible,
body.running-easy-bn-custom button.bn-post-card__action-btn.is-reacted,
body.running-easy-bn-custom button.bn-post-card__action-btn.is-bookmarked,
body.running-easy-bn-custom button.bn-post-card__action-btn.is-shared {
	background: #e6f1f3 !important;
	color: var(--re-navy) !important;
}

body.running-easy-bn-custom .bn-post-card__action-btn .bn-post-card__action-count,
body.running-easy-bn-custom .bn-post-card__action-btn--react.is-reacted .bn-post-card__action-label {
	color: inherit !important;
}

/* Menu d'actions des publications : le thème public applique aux boutons son
 * contour corail. On restaure un menu compact dont seul l'item dangereux
 * utilise une couleur d'alerte. */
body.running-easy-bn-custom button.bn-post-card__menu {
	box-sizing: border-box;
	width: 36px !important;
	height: 34px !important;
	min-width: 36px !important;
	min-height: 34px !important;
	padding: 0 !important;
	border: 1px solid #cbdadd !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--re-navy) !important;
	box-shadow: none !important;
}

body.running-easy-bn-custom button.bn-post-card__menu:hover,
body.running-easy-bn-custom button.bn-post-card__menu[aria-expanded="true"] {
	border-color: #9fb9be !important;
	background: #eaf3f4 !important;
}

body.running-easy-bn-custom .bn-post-card__options-menu {
	min-width: 176px;
	padding: 6px;
	border-color: #d8e5e7;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 14px 36px rgba(7, 59, 73, .16);
	overflow: visible;
}

body.running-easy-bn-custom button.bn-post-card__menu-item,
body.running-easy-bn-custom .bn-post-card__menu-item {
	box-sizing: border-box;
	width: 100% !important;
	min-height: 36px !important;
	margin: 0 !important;
	padding: 8px 10px !important;
	border: 0 !important;
	border-radius: 7px !important;
	background: transparent !important;
	color: var(--re-navy) !important;
	box-shadow: none !important;
	font-size: 13px !important;
}

body.running-easy-bn-custom button.bn-post-card__menu-item:hover,
body.running-easy-bn-custom button.bn-post-card__menu-item:focus-visible {
	background: #edf5f6 !important;
}

body.running-easy-bn-custom button.bn-post-card__menu-item--danger {
	color: #b4232f !important;
}

body.running-easy-bn-custom button.bn-post-card__menu-item--danger:hover,
body.running-easy-bn-custom button.bn-post-card__menu-item--danger:focus-visible {
	background: #fff1f2 !important;
}

/* Colonne contextuelle : cartes homogènes, titres plus lisibles. */
body.running-easy-bn-custom .bn-sidebar-card {
	border-color: var(--re-border);
	border-radius: 15px;
	background: rgba(255, 255, 255, .88);
	box-shadow: var(--re-shadow-sm);
}

body.running-easy-bn-custom .bn-sidebar-card:hover {
	box-shadow: var(--re-shadow-md);
}

body.running-easy-bn-custom .bn-sidebar-card__header {
	padding: 13px 15px;
	border-bottom-color: #edf2f3;
	color: var(--re-navy);
	font-size: 11px;
	letter-spacing: .07em;
}

body.running-easy-bn-custom .bn-sidebar-card__body {
	padding-inline: 15px;
}

@media (max-width: 1180px) {
	body.running-easy-bn-custom .bn-app {
		--bn-shell-sidebar-w: 270px;
		--bn-railw: 216px;
	}

	body.running-easy-bn-custom .bn-app__main {
		padding-inline: 20px;
	}
}

@media (max-width: 1180px) {
	html[data-bn-rail="collapsed"] body.running-easy-bn-custom .bn-app {
		--bn-railw: 72px;
	}
}

@media (max-width: 1024px) {
	body.running-easy-bn-custom .bn-app__shell:has(.bn-app__right) {
		grid-template-columns: var(--bn-railw) minmax(0, 1fr);
	}

	body.running-easy-bn-custom .bn-app__right {
		display: none;
	}
}

@media (max-width: 768px) {
	/* La surcharge tablette ci-dessus conservait le rail dans la grille alors
	 * que BuddyNext le remplace par sa navigation basse sur mobile. Le rail
	 * invisible réservait encore 216px et comprimait tout le fil. */
	body.running-easy-bn-custom .bn-app {
		--bn-railw: 0px;
		box-sizing: border-box;
		width: 100%;
		max-width: none;
	}

	body.running-easy-bn-custom .bn-app__shell,
	body.running-easy-bn-custom .bn-app__shell:has(.bn-app__right),
	body.running-easy-bn-custom .bn-app__shell--no-rail,
	body.running-easy-bn-custom .bn-app__shell--no-rail:has(.bn-app__right) {
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		max-width: none;
	}

	body.running-easy-bn-custom .bn-app__rail,
	body.running-easy-bn-custom .bn-app__right {
		display: none;
	}

	body.running-easy-bn-custom .bn-app__main {
		box-sizing: border-box;
		grid-column: 1;
		width: 100%;
		max-width: none;
		min-width: 0;
		padding: 14px 12px var(--bn-mobile-nav-clearance);
	}

	body.running-easy-bn-custom .bn-app__main > *,
	body.running-easy-bn-custom .bn-feed-stack,
	body.running-easy-bn-custom .bn-feed-list {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.running-easy-bn-custom .bn-composer,
	body.running-easy-bn-custom .bn-post-card {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		border-radius: 14px;
	}

	body.running-easy-bn-custom .bn-composer__input,
	body.running-easy-bn-custom .bn-composer__prompt,
	body.running-easy-bn-custom .bn-post-card__body {
		min-width: 0;
		max-width: 100%;
	}
}

@media (max-width: 520px) {
	body.running-easy-bn-custom .bn-ep-wrap {
		padding-block-end: var(--bn-mobile-nav-clearance);
	}

	body.running-easy-bn-custom .bn-ep-shell {
		gap: 12px;
		padding: 10px 2px 20px;
	}

	body.running-easy-bn-custom .bn-ep-title-row {
		margin: 2px 0 10px;
	}

	body.running-easy-bn-custom .bn-ep-title {
		font-size: 22px;
		line-height: 1.18;
	}

	body.running-easy-bn-custom .bn-ep-subtitle {
		font-size: 12px;
		line-height: 1.4;
	}

	body.running-easy-bn-custom .bn-ep-form {
		gap: 12px;
	}

	body.running-easy-bn-custom .bn-ep-hero {
		border-radius: 12px;
	}

	body.running-easy-bn-custom .bn-ep-hero .bn-pf-cover {
		height: 112px;
		border-radius: 12px 12px 0 0;
	}

	body.running-easy-bn-custom .bn-ep-hero .bn-pf-cover__actions {
		inset-block-end: 10px;
		inset-inline-end: 10px;
	}

	body.running-easy-bn-custom .bn-ep-hero .bn-pf-cover__edit {
		min-height: 36px;
		padding: 7px 10px;
		font-size: 12px;
	}

	body.running-easy-bn-custom .bn-ep-hero-head {
		gap: 10px;
		padding: 0 15px 16px;
	}

	body.running-easy-bn-custom .bn-ep-avatar-wrap {
		margin-block-start: -34px;
	}

	body.running-easy-bn-custom .bn-ep-avatar-wrap .bn-avatar[data-size="2xl"] {
		width: 84px;
		height: 84px;
	}

	body.running-easy-bn-custom .bn-ep-avatar-wrap .bn-ep-avatar-btn {
		width: 28px !important;
		min-width: 28px !important;
		height: 28px !important;
		min-height: 28px !important;
	}

	body.running-easy-bn-custom .bn-ep-hero-id {
		gap: 9px;
		padding-block-start: 0;
	}

	body.running-easy-bn-custom .bn-ep-hero-field {
		gap: 4px;
	}

	body.running-easy-bn-custom .bn-ep-hero-field .bn-input {
		min-height: 42px;
		padding: 8px 10px;
	}

	body.running-easy-bn-custom .bn-composer {
		padding: 14px 13px 10px;
		gap: 10px;
	}

	body.running-easy-bn-custom .bn-composer__prompt {
		padding-inline: 6px;
		font-size: 14px;
	}

	body.running-easy-bn-custom .bn-composer__tools {
		gap: 4px;
	}

	body.running-easy-bn-custom .bn-post-card {
		padding: 15px 13px;
	}

	body.running-easy-bn-custom .bn-composer__privacy-wrap {
		flex: 1 1 145px;
		min-width: 0;
	}

	body.running-easy-bn-custom button.bn-composer__privacy-chip {
		justify-content: space-between;
		width: 100% !important;
		max-width: 100%;
		white-space: nowrap;
	}

	body.running-easy-bn-custom .bn-composer__privacy-chip strong {
		min-inline-size: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	body.running-easy-bn-custom .bn-composer__submit {
		flex: 0 0 auto;
	}

	body.running-easy-bn-custom .bn-feed-stack,
	body.running-easy-bn-custom .bn-feed-list {
		gap: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.running-easy-bn-custom .bn-post-card {
		transition: none;
	}
}
