/**
 * Tiroir profil représentant + infobulle mandats — partagé (représentants, négociations, recherche, etc.)
 */
.rp-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(12, 21, 41, 0.45);
	z-index: 9998;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}
.rp-drawer-overlay.open {
	opacity: 1;
	pointer-events: all;
	visibility: visible;
}
.rp-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 400px;
	max-width: 95vw;
	background: #fff;
	z-index: 9999;
	transform: translateX(105%);
	visibility: hidden;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
	box-shadow: -20px 0 60px rgba(12, 21, 41, 0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-height: 0;
	--rp-draw-b1: #212e81;
	--rp-draw-b2: #24318a;
	--rp-draw-b3: #0f3f93;
	--rp-draw-off: #f2f6fb;
	--rp-draw-border: #c8daf0;
	--rp-draw-light: #8896a8;
	--rp-draw-mid: #4a5568;
}
.rp-drawer.open {
	transform: translateX(0);
	visibility: visible;
}
.rp-drawer-head {
	background: linear-gradient(135deg, var(--rp-draw-b1), var(--rp-draw-b3));
	padding: 28px;
	position: relative;
	flex-shrink: 0;
}
.rp-drawer-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rp-drawer-close:hover {
	background: rgba(255, 255, 255, 0.28);
}
.rp-drawer-head-main {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding-right: 8px;
}
.rp-drawer-head-text {
	flex: 1;
	min-width: 0;
}
.rp-drawer-av {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
	overflow: hidden;
}
.rp-drawer-av img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}
.rp-drawer-av[data-cftc-lb] {
	cursor: zoom-in;
}
.rp-drawer-av[data-cftc-lb]:hover,
.rp-drawer-av[data-cftc-lb]:focus {
	border-color: rgba(255, 255, 255, 0.85);
	outline: none;
	box-shadow: 0 0 0 2px rgba(32, 178, 158, 0.55);
}
.rp-drawer-nom {
	font-family: var(--global-heading-font-family, "Zeitung", Georgia, serif);
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 4px;
}
.rp-drawer-role {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}
.rp-drawer-dt {
	font-size: 12px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.58);
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.rp-drawer-dt::before {
	content: "📍 ";
	opacity: 0.85;
}
.rp-drawer-bodies {
	flex: 1 1 auto;
	min-height: 0;
	position: relative;
	overflow: hidden;
}
.rp-drawer-body {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 20px;
}
#rp-body-negos {
	padding: 0;
}
.rp-drawer-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	background: var(--rp-draw-off);
	border-radius: 10px;
	margin-bottom: 8px;
}
.rp-drawer-ico {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--rp-draw-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
	color: var(--rp-draw-b3);
}
.rp-drawer-ico--svg {
	font-size: 0;
}
.rp-drawer-ico--svg svg {
	display: block;
}
.rp-drawer-lbl {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--rp-draw-light);
	margin-bottom: 3px;
}
.rp-drawer-val {
	font-size: 13px;
	font-weight: 600;
	color: var(--rp-draw-b1);
}
.rp-drawer-val a {
	color: var(--rp-draw-b3);
	text-decoration: none;
}
.rp-drawer-val a:hover {
	text-decoration: underline;
}
.rp-drawer-negos {
	list-style: disc;
	margin: 4px 0 0;
	padding: 0 0 0 1.15em;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.rp-drawer-negos > li {
	margin: 0;
	padding: 0;
}
.rp-drawer-nego-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	padding: 2px 0;
	color: var(--rp-draw-b3) !important;
	font-weight: 600;
	text-decoration: none !important;
	border-bottom: none !important;
	transition: color 0.15s;
}
.rp-drawer-nego-link:hover {
	color: var(--rp-draw-b1) !important;
}
.rp-drawer-nego-arr {
	margin-left: 0.35em;
	opacity: 0.55;
	font-size: 14px;
	line-height: 1;
}
.rp-drawer-nego-static {
	display: block;
	font-size: 12px;
	padding: 2px 0;
	color: var(--rp-draw-b1);
	font-weight: 600;
}
.rp-drawer-nego-muted {
	font-weight: 500;
	font-size: 11px;
	color: var(--rp-draw-light);
}
.rp-drawer-missions {
	font-size: 12px;
	color: var(--rp-draw-mid);
	line-height: 1.65;
	white-space: pre-line;
	font-weight: 400;
}
.rp-drawer-mandats {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}
.rp-drawer-row--mandats .rp-drawer-mandats-wrap {
	position: relative;
	flex: 1;
	padding-top: 2px;
}
.rp-drawer-mandats-summary {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	display: flex;
	justify-content: flex-end;
}
.rp-drawer-row--mandats .rp-drawer-lbl {
	padding-right: 30px;
}
.rp-tip-mandats-summary {
	width: 22px;
	height: 22px;
	border: 1px solid var(--rp-draw-border);
	background: color-mix(in srgb, var(--rp-draw-b3) 8%, #fff);
	color: var(--rp-draw-b3);
	font-size: 14px;
	font-weight: 700;
	padding: 0;
	border-radius: 50%;
	cursor: pointer;
	font-family: system-ui, sans-serif;
	display: inline-grid;
	place-items: center;
	line-height: 1;
	text-align: center;
	vertical-align: middle;
}
.rp-tip-mandats-summary:hover {
	background: color-mix(in srgb, var(--rp-draw-b3) 16%, #fff);
	color: var(--rp-draw-b3);
	border-color: color-mix(in srgb, var(--rp-draw-b3) 38%, var(--rp-draw-border));
}
.rp-drawer .rp-badge {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 20px;
	background: color-mix(in srgb, var(--rcc, #0f3f93) 12%, white);
	color: var(--rcc, #0f3f93);
	border: 1px solid color-mix(in srgb, var(--rcc, #0f3f93) 22%, white);
	white-space: nowrap;
	cursor: default;
	font-family: "Axiforma", system-ui, sans-serif;
}
.rp-drawer-footer {
	padding: 16px 20px;
	border-top: 1px solid var(--rp-draw-border);
	flex-shrink: 0;
	display: flex;
	gap: 10px;
	background: #fff;
}
.rp-drawer-btn {
	flex: 1;
	padding: 11px;
	border-radius: 10px;
	background: var(--rp-draw-b2);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	font-family: var(--global-body-font-family, system-ui, sans-serif);
}
.rp-drawer-btn:hover {
	background: var(--rp-draw-b3);
}
/* ── Barre de navigation des onglets (retirée : plus d’onglet Négociations) ── */
.rp-drawer-nav {
	display: none !important;
}
.rp-dnav-tab {
	flex: 1;
	padding: 11px 12px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--rp-draw-light);
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
	font-family: var(--global-body-font-family, system-ui, sans-serif);
	position: relative;
}
.rp-dnav-tab.is-active {
	color: var(--rp-draw-b1);
	border-bottom-color: var(--rp-draw-b2);
	background: none;
}
.rp-dnav-tab:hover {
	background: color-mix(in srgb, var(--rp-draw-b1) 6%, var(--rp-draw-off));
	color: var(--rp-draw-b1);
}
.rp-dnav-tab[data-count]::after {
	content: attr(data-count);
	font-size: 9px;
	font-weight: 700;
	background: var(--rp-draw-b2);
	color: #fff;
	border-radius: 99px;
	padding: 1px 5px;
	margin-left: 5px;
	vertical-align: middle;
}
.rp-dnav-tab.is-active[data-count]::after {
	background: var(--rp-draw-b2);
}
.rp-dnav-loader { display: none; }
.rp-dnav-loader.is-spinning {
	display: inline-block;
	width: 10px;
	height: 10px;
	border: 2px solid rgba(33,46,129,.2);
	border-top-color: var(--rp-draw-b2);
	border-radius: 50%;
	animation: rpSpin 0.6s linear infinite;
	vertical-align: middle;
	margin-left: 4px;
}
@keyframes rpSpin { to { transform: rotate(360deg); } }

/* ── Panneaux Articles & Négociations ── */
.rp-act-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 20px;
	text-decoration: none !important;
	border-bottom: 1px solid var(--rp-draw-border);
	transition: background 0.12s;
}
.rp-act-row:last-child { border-bottom: none; }
a.rp-act-row:hover { background: color-mix(in srgb, var(--rp-draw-b3) 5%, #fff); }
.rp-act-ico {
	font-size: 16px;
	flex-shrink: 0;
	margin-top: 2px;
	opacity: 0.75;
}
.rp-act-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.rp-act-arr {
	font-size: 18px;
	color: var(--rp-draw-light);
	flex-shrink: 0;
	align-self: center;
	line-height: 1;
	transition: color 0.12s, transform 0.12s;
}
a.rp-act-row:hover .rp-act-arr { color: var(--rp-draw-b3); transform: translateX(2px); }
.rp-act-date {
	font-size: 10px;
	color: var(--rp-draw-light);
	font-weight: 600;
}
.rp-act-title {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--rp-draw-b1);
	line-height: 1.4;
}
a.rp-act-row:hover .rp-act-title { color: var(--rp-draw-b3); }
.rp-act-st {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 2px 6px;
	border-radius: 99px;
	display: inline-block;
	width: fit-content;
}
.rp-act-st--live  { background: rgba(32,178,158,.12); color: #20B29E; }
.rp-act-st--pause { background: rgba(251,187,29,.15); color: #9a6c00; }
.rp-act-st--done  { background: rgba(33,46,129,.1);  color: #212E81; }
.rp-act-empty {
	font-size: 12px;
	color: var(--rp-draw-light);
	font-style: italic;
	padding: 16px 20px;
	margin: 0;
	text-align: center;
}
.rp-mandats-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}
.rp-mandats-modal[hidden] {
	display: none !important;
}
.rp-mandats-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 21, 41, 0.42);
}
.rp-mandats-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(620px, 94vw);
	max-height: 80vh;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--rp-draw-border);
	border-radius: 14px;
	padding: 16px;
}
.rp-mandats-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	border: 1px solid var(--rp-draw-border);
	background: #fff;
	border-radius: 8px;
	width: 28px;
	height: 28px;
	cursor: pointer;
	color: var(--rp-draw-b1);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	display: inline-grid;
	place-items: center;
	padding: 0;
}
.rp-mandats-modal__close:hover {
	background: #1f2d7a !important;
	color: #ffffff !important;
	border-color: #1f2d7a !important;
}
.rp-mandats-modal .rp-mandats-modal__close:hover,
.rp-mandats-modal .rp-mandats-modal__close:hover:focus-visible {
	background: #1f2d7a !important;
	color: #ffffff !important;
	border-color: #1f2d7a !important;
	box-shadow: 0 0 0 2px rgba(31, 45, 122, 0.18) !important;
}
.rp-mandats-modal__close:focus-visible,
.rp-tip-mandats-summary:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--rp-draw-b3) 55%, #fff);
	outline-offset: 2px;
}
.rp-mandats-modal__title {
	margin: 2px 30px 12px 0;
	font-size: 18px;
	color: var(--rp-draw-b1);
}
.rp-mandats-modal__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.rp-mandats-modal__block {
	border: 1px solid var(--rp-draw-border);
	border-radius: 10px;
	padding: 10px;
	background: var(--rp-draw-off);
}
.rp-mandats-modal__block h4 {
	margin: 0 0 8px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rp-draw-light);
}
.rp-mandats-modal__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.rp-mandats-modal__list {
	margin: 0;
	padding-left: 16px;
}
.rp-mandats-modal__list li {
	font-size: 12px;
	margin: 0 0 4px;
	color: var(--rp-draw-mid);
}
.rp-mandats-modal__all { margin-top: 8px; }
.rp-mandats-modal__all summary {
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	color: var(--rp-draw-b3);
}
.rp-mandats-modal__list--all { margin-top: 8px; max-height: 220px; overflow: auto; }
@media (max-width: 640px) {
	.rp-mandats-modal__grid { grid-template-columns: 1fr; }
}
body.dark .rp-tip-mandats-summary {
	background: color-mix(in srgb, var(--rp-draw-b3) 32%, #0f1419);
	color: #dbe7ff;
	border-color: color-mix(in srgb, var(--rp-draw-b3) 52%, #253757);
}
body.dark .rp-tip-mandats-summary:hover {
	background: color-mix(in srgb, var(--rp-draw-b3) 42%, #0f1419);
	color: #fff;
	border-color: color-mix(in srgb, var(--rp-draw-b3) 72%, #2d3d5c);
}
body.dark .rp-mandats-modal__dialog {
	background: #161d2e;
	border-color: #2d3d5c;
}
body.dark .rp-mandats-modal__title { color: #e8edf5; }
body.dark .rp-mandats-modal__block {
	background: #0f1419;
	border-color: #2d3d5c;
}
body.dark .rp-mandats-modal__block h4 { color: #9fb0ca; }
body.dark .rp-mandats-modal__list li { color: #d6deea; }
body.dark .rp-mandats-modal__all summary { color: #9ec5ff; }
body.dark .rp-mandats-modal__close {
	background: #0f1419;
	border-color: #2d3d5c;
	color: #e8edf5;
}
body.dark .rp-mandats-modal__close:hover {
	background: color-mix(in srgb, #8fb4ff 16%, #0f1419);
	color: #fff;
}
:is(body.dark,body.cftc-theme-dark,body[data-theme="dark"]) .rp-mandats-modal__dialog {
	background: #161d2e;
	border-color: #2d3d5c;
}
:is(body.dark,body.cftc-theme-dark,body[data-theme="dark"]) .rp-mandats-modal__block {
	background: #0f1419;
	border-color: #2d3d5c;
}
:is(body.dark,body.cftc-theme-dark,body[data-theme="dark"]) .rp-mandats-modal__title { color: #e8edf5; }
:is(body.dark,body.cftc-theme-dark,body[data-theme="dark"]) .rp-mandats-modal__list li { color: #d6deea; }
:is(body.dark,body.cftc-theme-dark,body[data-theme="dark"]) .rp-tip-mandats-summary {
	background: color-mix(in srgb, var(--rp-draw-b3) 32%, #0f1419);
	color: #dbe7ff;
	border-color: color-mix(in srgb, var(--rp-draw-b3) 52%, #253757);
}

#rp-badge-tip {
	position: fixed;
	left: -9999px;
	top: -9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #1a2340;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	padding: 8px 12px;
	border-radius: 8px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.12s;
	z-index: 100000;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
	max-width: min(300px, 90vw);
	text-align: center;
	line-height: 1.35;
	white-space: normal;
}
#rp-badge-tip.rp-tip-theme-card{
	font-size:12px!important;
	font-weight:500!important;
	line-height:1.35!important;
}
