/*
 * CLECOD — Écran 21 « Activité » (client-space-activity.js) et la cloche de l'accueil (téléphone).
 * Thème HighRev : angles droits, titres en capitales serrées, rouge #e20100, filets #e2e2e2,
 * bandeau gris #f4f4f4. Une colonne centrée au-dessus de 768 px, la maquette 390 px en dessous.
 */

.clecod-client-space .cc-mod--activity {
	max-width: 720px;
	margin: 0 auto;
	padding-bottom: 28px;
}

/* ---------- En-tête ---------- */
.clecod-client-space .cc-mod--activity .cc-act__head {
	padding: 22px 0 16px;
}

.clecod-client-space .cc-mod--activity .cc-act__overline {
	margin: 0;
	color: #e20100;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--activity .cc-act__bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
}

.clecod-client-space .cc-mod--activity h2.cc-act__title {
	margin: 0;
	color: #111;
	font-size: 29px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	outline: none;
}

.clecod-client-space .cc-mod--activity button.cc-act__markall {
	flex-shrink: 0;
	min-height: 44px;
	margin-bottom: -12px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #e20100;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--activity button.cc-act__markall:hover {
	background: transparent;
	color: #111;
}

.clecod-client-space .cc-mod--activity button.cc-act__markall[disabled] {
	opacity: 1;
	color: #9a9a9a;
	cursor: default;
}

.clecod-client-space .cc-mod--activity .cc-act__summary {
	min-height: 1.4em;
	margin: 10px 0 0;
	color: #686868;
	font-size: 14px;
	line-height: 1.4;
}

/* ---------- Filtres ---------- */
.clecod-client-space .cc-mod--activity .cc-act__chips {
	display: flex;
	gap: 8px;
	padding: 0 0 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.clecod-client-space .cc-mod--activity .cc-act__chips::-webkit-scrollbar {
	display: none;
}

.clecod-client-space .cc-mod--activity button.cc-act__chip {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	height: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid #d9d9d9;
	background: #fff;
	color: #111;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.clecod-client-space .cc-mod--activity button.cc-act__chip:hover {
	border-color: #111;
	background: #fff;
}

.clecod-client-space .cc-mod--activity button.cc-act__chip[aria-pressed="true"] {
	border-color: #111;
	background: #111;
	color: #fff;
}

.clecod-client-space .cc-mod--activity .cc-act__chip b {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	background: #e20100;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
}

/* ---------- Fil, par jour ---------- */
.clecod-client-space .cc-mod--activity .cc-act__day {
	margin-top: 22px;
}

.clecod-client-space .cc-mod--activity h3.cc-act__daytitle {
	margin: 0;
	padding-bottom: 8px;
	border-bottom: 1px solid #e2e2e2;
	color: #686868;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--activity .cc-act__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.clecod-client-space .cc-mod--activity .cc-act__list > li {
	margin: 0;
	padding: 0;
}

.clecod-client-space .cc-mod--activity .cc-act__list > li::before {
	content: none;
}

.clecod-client-space .cc-mod--activity a.cc-act__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid #e2e2e2;
	color: #111;
	text-decoration: none;
}

.clecod-client-space .cc-mod--activity a.cc-act__item:hover {
	color: #111;
}

.clecod-client-space .cc-mod--activity a.cc-act__item:hover .cc-act__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.clecod-client-space .cc-mod--activity a.cc-act__item:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.clecod-client-space .cc-mod--activity .cc-act__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #d9d9d9;
	background: #fff;
	color: #111;
}

.clecod-client-space .cc-mod--activity .is-unread .cc-act__icon {
	border-color: #e20100;
	background: #e20100;
	color: #fff;
}

.clecod-client-space .cc-mod--activity .cc-act__body {
	flex: 1;
	min-width: 0;
}

.clecod-client-space .cc-mod--activity .cc-act__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.clecod-client-space .cc-mod--activity .cc-act__cat {
	color: #686868;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--activity .is-unread .cc-act__cat {
	color: #e20100;
}

.clecod-client-space .cc-mod--activity .cc-act__time {
	flex-shrink: 0;
	color: #686868;
	font-size: 12px;
	line-height: 1.3;
}

.clecod-client-space .cc-mod--activity .cc-act__title {
	display: block;
	margin-top: 4px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}

.clecod-client-space .cc-mod--activity .is-unread .cc-act__title {
	font-weight: 700;
}

.clecod-client-space .cc-mod--activity .cc-act__detail {
	display: block;
	margin-top: 4px;
	color: #3a3a3a;
	font-size: 13px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.clecod-client-space .cc-mod--activity .cc-act__tag {
	display: inline-block;
	margin-top: 8px;
	padding: 3px 7px;
	border: 1px solid #e20100;
	color: #e20100;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---------- À jour, erreurs, suite ---------- */
.clecod-client-space .cc-mod--activity .cc-act__empty {
	margin-top: 22px;
	padding: 26px 20px;
	background: #f4f4f4;
	text-align: center;
}

.clecod-client-space .cc-mod--activity .cc-act__empty p {
	margin: 8px 0 0;
	color: #3a3a3a;
	font-size: 14px;
	line-height: 1.5;
}

.clecod-client-space .cc-mod--activity .cc-act__empty p.cc-act__hand {
	margin: 0;
	color: #e20100;
	font-family: "Indie Flower", cursive;
	font-size: 23px;
	line-height: 1.1;
}

.clecod-client-space .cc-mod--activity button.cc-act__again,
.clecod-client-space .cc-mod--activity button.cc-act__more {
	height: 44px;
	min-height: 44px;
	margin-top: 14px;
	padding: 0 16px;
	border: 1px solid #111;
	background: #fff;
	color: #111;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--activity button.cc-act__more {
	display: block;
	width: 100%;
	margin-top: 18px;
}

.clecod-client-space .cc-mod--activity button.cc-act__again:hover,
.clecod-client-space .cc-mod--activity button.cc-act__more:hover {
	background: #111;
	color: #fff;
}

.clecod-client-space .cc-mod--activity .cc-act__error {
	margin: 22px 0 0;
}

/* ---------- Être prévenu ailleurs ---------- */
.clecod-client-space .cc-mod--activity a.cc-act__elsewhere {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 64px;
	margin-top: 26px;
	padding: 0 16px;
	background: #f4f4f4;
	color: #111;
	text-decoration: none;
}

.clecod-client-space .cc-mod--activity a.cc-act__elsewhere:hover {
	background: #ebebeb;
	color: #111;
}

.clecod-client-space .cc-mod--activity a.cc-act__elsewhere > span {
	flex: 1;
	min-width: 0;
}

.clecod-client-space .cc-mod--activity a.cc-act__elsewhere strong {
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.clecod-client-space .cc-mod--activity a.cc-act__elsewhere small {
	display: block;
	margin-top: 3px;
	color: #686868;
	font-size: 13px;
	line-height: 1.35;
}

/* ---------- Téléphone ---------- */
@media (max-width: 768px) {
	/* The chips scroll from edge to edge of the screen. */
	.clecod-client-space .cc-mod--activity .cc-act__chips {
		margin: 0 -18px;
		padding: 0 18px 4px;
		scroll-padding: 0 18px;
	}

	/* La cloche de l'accueil, en haut à droite du bonjour (balise posée par client-space.js). */
	.clecod-client-space .cc-m-hello {
		position: relative;
	}

	.clecod-client-space .cc-m-hello > .cc-m-hello__hand {
		padding-right: 48px;
	}

	.clecod-client-space button.cc-m-bell {
		position: absolute;
		top: 13px;
		right: -11px;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		min-height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #111;
	}

	.clecod-client-space button.cc-m-bell:hover {
		background: #f4f4f4;
		color: #111;
	}

	.clecod-client-space button.cc-m-bell .cc-icon {
		width: 24px;
		height: 24px;
	}

	.clecod-client-space .cc-m-bell__count {
		position: absolute;
		top: 5px;
		right: 3px;
		min-width: 17px;
		height: 17px;
		padding: 0 4px;
		background: #e20100;
		color: #fff;
		font-size: 10px;
		font-weight: 700;
		line-height: 17px;
		letter-spacing: 0;
		text-align: center;
	}
}
