/**
 * JCM Theme V8 — CSS frontend premium
 * Chargé après v7-app.css pour overrider sans casser les autres pages.
 * Mobile-first, responsive jusqu'au desktop, respect prefers-reduced-motion.
 */

:root {
	--jcm-v8-primary: #2E86C1;
	--jcm-v8-primary-dark: #1B4F72;
	--jcm-v8-primary-light: #AED6F1;
	--jcm-v8-accent: #c75e3c;
	--jcm-v8-text: #1a2b3c;
	--jcm-v8-text-muted: #5a6b7c;
	--jcm-v8-text-soft: #94a0ad;
	--jcm-v8-bg: #f8fafc;
	--jcm-v8-surface: #ffffff;
	--jcm-v8-surface-soft: #f7f9fc;
	--jcm-v8-border: #eef1f5;
	--jcm-v8-border-strong: #dde2e9;

	--jcm-v8-radius-sm: 10px;
	--jcm-v8-radius: 16px;
	--jcm-v8-radius-pill: 999px;

	--jcm-v8-gap: 18px;

	--jcm-v8-shadow-xs: 0 1px 2px rgba(15, 30, 50, 0.04);
	--jcm-v8-shadow-sm: 0 1px 3px rgba(15, 30, 50, 0.04), 0 0 0 0.5px rgba(15, 30, 50, 0.04);
	--jcm-v8-shadow: 0 4px 16px rgba(15, 30, 50, 0.06), 0 1px 3px rgba(15, 30, 50, 0.04);

	--jcm-v8-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--jcm-v8-dur: 0.22s;
}

/* Le main.jcm-v8-main--full doit prendre toute la largeur, sans le container
   classique du thème qui pourrait limiter à 1200px ou flex en multi-col. */
.jcm-v8-main.jcm-v8-main--full {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: var(--jcm-v8-bg);
	min-height: 60vh;
	-webkit-font-smoothing: antialiased;
}

.jcm-v8-main .jcm-sec {
	display: block !important;
	width: 100% !important;
	float: none !important;
	clear: both !important;
}

.jcm-sec-error {
	background: #fcebeb;
	color: #501313;
	padding: 14px 16px;
	border-radius: 10px;
	margin: 12px 16px;
	font-size: 13px;
	border-left: 3px solid #a32d2d;
}

.jcm-v8-main .jcm-v8-eyebrow {
	font-size: 11px;
	color: var(--jcm-v8-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	font-weight: 700;
	margin: 0 0 6px;
}

.jcm-v8-main .jcm-v8-sec-title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.3px;
	color: var(--jcm-v8-text);
	margin: 0;
}

.jcm-v8-main .jcm-v8-sec-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.jcm-v8-main .jcm-v8-sec-all {
	color: var(--jcm-v8-primary);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	flex-shrink: 0;
	transition: color var(--jcm-v8-dur) var(--jcm-v8-ease);
}
.jcm-v8-main .jcm-v8-sec-all:hover { color: var(--jcm-v8-primary-dark); }

.jcm-v8-main .jcm-v8-empty {
	font-size: 13px;
	color: var(--jcm-v8-text-soft);
	background: var(--jcm-v8-surface-soft);
	padding: 20px 16px;
	border-radius: 10px;
	text-align: center;
	margin: 0;
	border: 1px dashed var(--jcm-v8-border-strong);
	line-height: 1.6;
}

/* ────────────────────────── HERO ORANGE GOMEDINE V8.1 ────────────────────────── */

.jcm-v8-main .jcm-sec--hero { padding: 0 !important; margin: 0 !important; }

.jcm-v8-main .jcm-v81-hero {
	position: relative;
	color: #fff !important;
	padding: 32px 22px 36px;
	overflow: hidden;
	background: linear-gradient(135deg, #d6603a 0%, #b3502d 100%);
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.jcm-v8-main .jcm-v81-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -30%;
	width: 80%;
	height: 200%;
	background: radial-gradient(ellipse at center, rgba(255,255,255,0.10) 0%, transparent 60%);
	pointer-events: none;
}

.jcm-v8-main .jcm-v81-hero::after {
	content: '';
	position: absolute;
	bottom: -40%;
	left: -20%;
	width: 60%;
	height: 150%;
	background: radial-gradient(ellipse at center, rgba(255,200,180,0.10) 0%, transparent 60%);
	pointer-events: none;
}

.jcm-v8-main .jcm-v81-hero__inner {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	text-align: left;
}

.jcm-v8-main .jcm-v81-hero__eyebrow {
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.6px;
	margin: 0 0 16px !important;
	color: #fff !important;
	opacity: 0.95;
	text-transform: none;
}

.jcm-v8-main .jcm-v81-hero__title {
	font-size: clamp(22px, 6vw, 38px) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.5px;
	margin: 0 0 12px !important;
	color: #fff !important;
}

.jcm-v8-main .jcm-v81-hero__sub {
	font-size: clamp(13px, 3.5vw, 16px) !important;
	line-height: 1.5 !important;
	color: rgba(255,255,255,0.92) !important;
	margin: 0 0 20px !important;
	max-width: 520px;
}

.jcm-v8-main .jcm-v81-hero__search {
	background: #fff !important;
	border-radius: 14px;
	padding: 6px 6px 6px 12px !important;
	display: flex !important;
	align-items: center;
	gap: 8px;
	max-width: 560px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	transition: box-shadow var(--jcm-v8-dur) var(--jcm-v8-ease);
	width: 100%;
	box-sizing: border-box;
}

.jcm-v8-main .jcm-v81-hero__search:focus-within {
	box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 0 0 4px rgba(255,255,255,0.35);
}

.jcm-v8-main .jcm-v81-hero__ai {
	background: var(--jcm-v8-primary) !important;
	color: #fff !important;
	font-size: 11px !important;
	padding: 5px 9px !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
	letter-spacing: 0.5px;
	flex-shrink: 0;
	display: inline-block;
	line-height: 1;
}

.jcm-v8-main .jcm-v81-hero__input {
	flex: 1 !important;
	border: 0 !important;
	background: transparent !important;
	font: inherit !important;
	font-size: 14px !important;
	color: var(--jcm-v8-text) !important;
	outline: none !important;
	min-width: 0;
	padding: 9px 4px !important;
	width: auto !important;
	box-shadow: none !important;
}
.jcm-v8-main .jcm-v81-hero__input::placeholder { color: var(--jcm-v8-text-soft) !important; }

.jcm-v8-main .jcm-v81-hero__btn {
	background: var(--jcm-v8-primary) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 10px !important;
	width: 36px !important;
	height: 36px !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0 !important;
	transition: transform var(--jcm-v8-dur) var(--jcm-v8-ease), background-color var(--jcm-v8-dur) var(--jcm-v8-ease);
}
.jcm-v8-main .jcm-v81-hero__btn:hover { background: var(--jcm-v8-primary-dark) !important; }
.jcm-v8-main .jcm-v81-hero__btn:active { transform: scale(0.95); }
.jcm-v8-main .jcm-v81-hero__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.jcm-v8-main .jcm-v81-hero__chips {
	list-style: none !important;
	margin: 16px 0 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
}

.jcm-v8-main .jcm-v81-hero__chips li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.jcm-v8-main .jcm-v81-hero__chip {
	display: inline-block !important;
	background: rgba(255,255,255,0.92) !important;
	color: #4a1b0c !important;
	font: inherit;
	font-size: 12px !important;
	font-weight: 600 !important;
	padding: 8px 14px !important;
	border-radius: 999px !important;
	border: 0 !important;
	cursor: pointer;
	text-decoration: none !important;
	transition: all var(--jcm-v8-dur) var(--jcm-v8-ease);
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
	line-height: 1.3;
}
.jcm-v8-main .jcm-v81-hero__chip:hover {
	background: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	color: #4a1b0c !important;
}
.jcm-v8-main .jcm-v81-hero__chip:active { transform: translateY(0); }
.jcm-v8-main .jcm-v81-hero__chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (min-width: 600px) {
	.jcm-v8-main .jcm-v81-hero { padding: 56px 32px 56px; }
}

@media (min-width: 900px) {
	.jcm-v8-main .jcm-v81-hero { padding: 80px 32px 72px; }
	.jcm-v8-main .jcm-v81-hero__inner { text-align: center; }
	.jcm-v8-main .jcm-v81-hero__sub { margin-left: auto; margin-right: auto; }
	.jcm-v8-main .jcm-v81-hero__search { margin: 0 auto; }
	.jcm-v8-main .jcm-v81-hero__chips { justify-content: center; }
}

/* ────────────────────────── PADDING SECTIONS ────────────────────────── */

.jcm-sec--cats,
.jcm-sec--ad,
.jcm-sec--affluence,
.jcm-sec--stories,
.jcm-sec--carousel,
.jcm-sec--jobs,
.jcm-sec--sister,
.jcm-sec--cta,
.jcm-sec--featured,
.jcm-sec--latest,
.jcm-sec--annonce,
.jcm-sec--guides {
	padding: 0 12px;
	margin-top: var(--jcm-v8-gap);
}

/* V8.1.4 — fix layout PC : on cible précisément le wrapper de chaque section
   au lieu d'utiliser > * qui stylait chaque enfant comme card distincte.
   V8.5.5 — Sélecteurs des sections supprimées retirés (stories/carousel/jobs/featured/latest/guides). */
.jcm-v8-main .jcm-sec--cats > .jcm-v8-cats-wrap {
	background: var(--jcm-v8-surface);
	border-radius: var(--jcm-v8-radius);
	padding: 22px 16px;
	box-shadow: var(--jcm-v8-shadow-sm);
	max-width: 1100px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ────────────────────────── CATÉGORIES ────────────────────────── */

.jcm-v8-cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.jcm-v8-cat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #fff;
	border: 1px solid rgba(15,23,42,0.06);
	border-radius: var(--jcm-v8-radius);
	padding: 14px 12px;
	text-decoration: none;
	color: var(--jcm-v8-text);
	box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 16px rgba(15,23,42,0.06);
	position: relative;
	overflow: hidden;
	min-height: 96px;
	transition: transform var(--jcm-v8-dur) var(--jcm-v8-ease), box-shadow var(--jcm-v8-dur) var(--jcm-v8-ease);
}
.jcm-v8-cat:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(15,23,42,0.06), 0 12px 24px rgba(15,23,42,0.08);
}

.jcm-v8-cat::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--jcm-v8-primary);
}
.jcm-v8-cat--health::before     { background: #FECACA; }
.jcm-v8-cat--food::before       { background: #FED7AA; }
.jcm-v8-cat--commerce::before   { background: #FDE68A; }
.jcm-v8-cat--kids::before       { background: #FBCFE8; }
.jcm-v8-cat--school::before     { background: #C7D2FE; }
.jcm-v8-cat--sport::before      { background: #A7F3D0; }
.jcm-v8-cat--admin::before      { background: #BAE6FD; }
.jcm-v8-cat--visa::before       { background: #BBF7D0; }
.jcm-v8-cat--housing::before    { background: #FDE68A; }
.jcm-v8-cat--translator::before { background: #FECDD3; }

.jcm-v8-cat__icon {
	font-size: 22px;
	margin-bottom: 2px;
}
.jcm-v8-cat__name {
	font-size: 13px;
	font-weight: 700;
	color: var(--jcm-v8-text);
}
.jcm-v8-cat__count {
	font-size: 11px;
	color: var(--jcm-v8-text-soft);
	font-weight: 500;
}

.jcm-v8-cats__empty {
	font-size: 13px;
	color: var(--jcm-v8-text-soft);
	background: var(--jcm-v8-surface-soft);
	padding: 20px 16px;
	border-radius: 10px;
	text-align: center;
	margin: 0;
	border: 1px dashed var(--jcm-v8-border-strong);
}

/* ────────────────────────── AD BANNER (supprimé v8.5.5) ────────────────────────── */
/* V8.5.5 — Bloc retiré : section JCM_Section_AdBanner supprimée et CPT jcm_ad supprimé. */

/* ────────────────────────── CTA ────────────────────────── */

.jcm-sec--cta > .jcm-v8-cta {
	max-width: 1100px;
	margin: 0 auto;
}

.jcm-v8-cta {
	background: linear-gradient(135deg, #1B4F72 0%, #2E86C1 100%);
	color: #fff;
	border-radius: var(--jcm-v8-radius);
	padding: 26px 22px;
	text-align: center;
	box-shadow: 0 8px 24px rgba(46,134,193,0.18);
}

.jcm-v8-cta__eyebrow {
	font-size: 10px;
	opacity: 0.85;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 600;
	margin: 0;
}

.jcm-v8-cta__title {
	font-size: 20px;
	font-weight: 700;
	margin: 8px 0;
	line-height: 1.25;
	letter-spacing: -0.3px;
	color: #fff;
}

.jcm-v8-cta__desc {
	font-size: 13px;
	opacity: 0.92;
	margin: 0 0 16px;
	line-height: 1.5;
}

.jcm-v8-cta__btn {
	background: #fff;
	color: #1B4F72;
	padding: 12px 24px;
	border-radius: var(--jcm-v8-radius-pill);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	display: inline-block;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transition: all var(--jcm-v8-dur) var(--jcm-v8-ease);
}
.jcm-v8-cta__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
	color: #1B4F72;
}

/* ────────────────────────── RESPONSIVE SCALE UP ────────────────────────── */
/* V8.5.5 — Allégé : références aux sections supprimées retirées. */

@media (min-width: 600px) {
	.jcm-v8-cats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (min-width: 900px) {
	.jcm-v8-cats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
	.jcm-v8-cat { padding: 18px 14px; min-height: 110px; }
	.jcm-v8-cat__icon { font-size: 26px; }
	.jcm-v8-main .jcm-sec--cats > .jcm-v8-cats-wrap {
		padding: 32px 28px;
	}
}

/* ────────────────────────── A11Y ────────────────────────── */

.jcm-v8-main button:focus-visible,
.jcm-v8-main a:focus-visible,
.jcm-v8-main input:focus-visible {
	outline: 2px solid var(--jcm-v8-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.jcm-v8-main *,
	.jcm-v8-main *::before,
	.jcm-v8-main *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ════════════════════════════════════════════════════════════════════
   V8.2.0 — Section "Aujourd'hui à Médine"
   Section unifiée compacte ~400px : Hub temps réel + Halaqat
   ════════════════════════════════════════════════════════════════════ */

.jcm-v8-main .jcm-sec--today > .jcm-today {
	background: var(--jcm-v8-surface);
	border-radius: var(--jcm-v8-radius);
	padding: 18px;
	box-shadow: var(--jcm-v8-shadow-sm);
	max-width: 1100px;
	margin: 0 auto;
	box-sizing: border-box;
}

.jcm-today {
	font-family: inherit;
}

/* Header */
.jcm-today__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 0.5px solid #e8e3da;
	gap: 12px;
}
.jcm-today__title {
	font-size: 16px;
	font-weight: 500;
	color: #1a2b3c;
	margin: 0 0 2px;
	line-height: 1.2;
}
.jcm-today__sub {
	font-size: 11px;
	color: #5a6b7c;
	margin: 0;
}
.jcm-today__pulse {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #FCEBEB;
	color: #501313;
	font-size: 9px;
	font-weight: 500;
	padding: 3px 8px;
	border-radius: 999px;
	flex-shrink: 0;
	letter-spacing: 0.5px;
}
.jcm-today__pulse-dot {
	width: 5px;
	height: 5px;
	background: #A32D2D;
	border-radius: 50%;
	animation: jcm-today-pulse 2s ease-in-out infinite;
}
@keyframes jcm-today-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

/* Persona tabs */
.jcm-today__tabs {
	display: inline-flex;
	gap: 2px;
	background: #f4f1ec;
	padding: 3px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.jcm-today__tab {
	padding: 5px 12px;
	font-size: 11px;
	border-radius: 999px;
	color: #5a6b7c;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: transparent;
	border: 0;
	font-family: inherit;
	transition: all 0.15s;
}
.jcm-today__tab:hover {
	color: #b3502d;
}
.jcm-today__tab.is-active {
	background: #fff;
	color: #b3502d;
	font-weight: 500;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.jcm-today__tab-icon {
	flex-shrink: 0;
}

/* Hub : 2 cards côte à côte */
.jcm-today__hub {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 14px;
}
.jcm-today-card {
	background: #faf6f0;
	border: 0.5px solid #d6603a25;
	border-radius: 12px;
	padding: 12px;
}
.jcm-today-card__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.jcm-today-card__eye {
	font-size: 9px;
	font-weight: 500;
	color: #5a6b7c;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Card prière */
.jcm-today-card__pr-now {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}
.jcm-today-card__pr-name {
	font-size: 16px;
	font-weight: 500;
	color: #042C53;
	margin: 0;
}
.jcm-today-card__pr-l {
	font-size: 10px;
	color: #5a6b7c;
}
.jcm-today-card__pr-cd {
	font-size: 13px;
	color: #185FA5;
	margin: 0;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}
.jcm-today-card__pr-list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 2px;
}
.jcm-today-card__pr-item {
	padding: 4px 1px;
	text-align: center;
	border-radius: 4px;
}
.jcm-today-card__pr-item.is-passed {
	opacity: 0.4;
}
.jcm-today-card__pr-item.is-next {
	background: #fff;
	border: 0.5px solid #185FA5;
}
.jcm-today-card__pr-pn {
	font-size: 8px;
	color: #5a6b7c;
	margin: 0;
	text-transform: uppercase;
}
.jcm-today-card__pr-pt {
	font-size: 10px;
	font-weight: 500;
	color: #1a2b3c;
	margin: 1px 0 0;
	font-variant-numeric: tabular-nums;
}

/* Card météo */
.jcm-today-card__we-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}
.jcm-today-card__we-icon {
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, #FAEEDA, #FAC775);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #854F0B;
	flex-shrink: 0;
}
.jcm-today-card__we-temp {
	font-size: 22px;
	font-weight: 500;
	color: #1a2b3c;
	line-height: 1;
	margin: 0;
	font-variant-numeric: tabular-nums;
}
.jcm-today-card__we-desc {
	font-size: 10px;
	color: #5a6b7c;
	margin: 1px 0 0;
}
.jcm-today-card__we-meta {
	display: flex;
	gap: 8px;
	font-size: 9px;
	color: #5a6b7c;
	padding-top: 6px;
	border-top: 0.5px dashed #d6603a30;
	flex-wrap: wrap;
}
.jcm-today-card__we-meta span {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}
.jcm-today-card__we-meta strong {
	color: #BA7517;
	font-weight: 500;
}
.jcm-today-card__we-fallback {
	font-size: 11px;
	color: #5a6b7c;
	margin: 0;
	padding: 8px 0;
}

/* Halaqat */
.jcm-today__h-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	flex-wrap: wrap;
	gap: 8px;
}
.jcm-today__h-title {
	font-size: 13px;
	font-weight: 500;
	color: #1a2b3c;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}
.jcm-today__h-title svg {
	color: #534AB7;
	flex-shrink: 0;
}
.jcm-today__h-filters {
	display: flex;
	gap: 3px;
}
.jcm-today__h-filter {
	padding: 3px 8px;
	border-radius: 999px;
	background: #f4f1ec;
	color: #5a6b7c;
	font-size: 10px;
	cursor: pointer;
	border: 0;
	font-family: inherit;
	transition: all 0.15s;
}
.jcm-today__h-filter:hover {
	background: #e9e2d0;
}
.jcm-today__h-filter.is-active {
	background: #534AB7;
	color: #fff;
	font-weight: 500;
}

.jcm-today__h-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.jcm-today__h-row {
	display: flex;
	gap: 9px;
	padding: 8px 10px;
	background: #faf8ff;
	border-radius: 8px;
	border: 0.5px solid #534AB715;
	align-items: center;
	transition: all 0.15s;
}
.jcm-today__h-row:hover {
	border-color: #534AB740;
	background: #f5f3ff;
}
.jcm-today__h-row.is-live {
	background: linear-gradient(90deg, #fff5f5, #faf8ff);
	border-color: #A32D2D40;
}

.jcm-today__h-time {
	width: 40px;
	flex-shrink: 0;
	text-align: center;
	padding-right: 8px;
	border-right: 0.5px solid #CECBF6;
}
.jcm-today__h-time-h {
	font-size: 12px;
	font-weight: 500;
	color: #534AB7;
	line-height: 1;
	margin: 0;
	font-variant-numeric: tabular-nums;
}
.jcm-today__h-time-d {
	font-size: 8px;
	color: #5a6b7c;
	margin: 2px 0 0;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.jcm-today__h-info {
	flex: 1;
	min-width: 0;
}
.jcm-today__h-savant {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 2px;
}
.jcm-today__h-photo {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	color: #fff;
	font-size: 7px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.jcm-today__h-savant-name {
	font-size: 10px;
	font-weight: 500;
	margin: 0;
	line-height: 1.1;
}
.jcm-today__h-cname {
	font-size: 11px;
	font-weight: 500;
	color: #1a2b3c;
	margin: 0 0 2px;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
}
.jcm-today__h-cmeta {
	font-size: 9px;
	color: #5a6b7c;
	margin: 0;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
}
.jcm-today__h-tag {
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 8px;
	font-weight: 500;
}
.jcm-today__h-tag--fr {
	background: #E6F1FB;
	color: #042C53;
}
.jcm-today__h-tag--live {
	background: #FCEBEB;
	color: #A32D2D;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}
.jcm-today__h-tag--book {
	background: #FAEEDA;
	color: #412402;
}
.jcm-today__h-tag-dot {
	width: 5px;
	height: 5px;
	background: #A32D2D;
	border-radius: 50%;
	display: inline-block;
}
.jcm-today__h-go {
	color: #b3502d;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	transition: all 0.15s;
}
.jcm-today__h-go:hover {
	background: #faf6f0;
}

.jcm-today__h-empty {
	font-size: 11px;
	color: #5a6b7c;
	margin: 0;
	padding: 14px 12px;
	text-align: center;
	background: #faf8ff;
	border-radius: 8px;
	border: 0.5px dashed #CECBF6;
}

.jcm-today__h-foot {
	text-align: center;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 0.5px solid #e8e3da;
}
.jcm-today__h-all {
	font-size: 11px;
	color: #b3502d;
	font-weight: 500;
	text-decoration: none;
}
.jcm-today__h-all:hover {
	text-decoration: underline;
}

/* Mobile : empile les 2 cards Hub */
@media (max-width: 600px) {
	.jcm-today__hub {
		grid-template-columns: 1fr;
	}
}

/* === Admin Today : styles spécifiques pour les rows savants/cours === */
.jcm-savant-row__color {
	display: flex;
	align-items: center;
}
.jcm-savant-row__color input[type="color"] {
	width: 40px;
	height: 40px;
	border: 1px solid #dde2e9;
	border-radius: 8px;
	padding: 2px;
	cursor: pointer;
	background: #fff;
}
.jcm-course-row {
	grid-template-columns: 24px 1fr auto;
}
.jcm-course-row__main {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.jcm-course-row__line1 {
	display: grid;
	grid-template-columns: 1fr 100px 80px;
	gap: 6px;
}
.jcm-course-row__line1 select,
.jcm-course-row__line1 input {
	font-size: 12px !important;
	padding: 5px 8px !important;
	border: 1px solid #dde2e9 !important;
	border-radius: 5px !important;
	height: 32px;
}
.jcm-course-title-input {
	font-weight: 500;
	font-size: 13px !important;
}
.jcm-course-row__main input,
.jcm-course-row__main select {
	font-size: 12px !important;
	padding: 5px 8px !important;
	border: 1px solid #eef1f5 !important;
	border-radius: 5px !important;
	width: 100%;
	box-sizing: border-box;
}
.jcm-course-row__schedule {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	font-size: 11px;
}
.jcm-course-row__rec {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	font-size: 11px;
	color: #5a6b7c;
	cursor: pointer;
}
.jcm-course-row__days,
.jcm-course-row__langs {
	display: inline-flex;
	gap: 2px;
}
.jcm-day-toggle {
	cursor: pointer;
	user-select: none;
}
.jcm-day-toggle input {
	display: none;
}
.jcm-day-toggle span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 5px;
	background: #f4f1ec;
	color: #5a6b7c;
	font-size: 10px;
	font-weight: 500;
	transition: all 0.15s;
}
.jcm-day-toggle:hover span {
	background: #e9e2d0;
}
.jcm-day-toggle input:checked + span {
	background: #534AB7;
	color: #fff;
}
.jcm-course-row__schedule input[type="date"],
.jcm-course-row__schedule input[type="url"] {
	max-width: 180px;
	width: auto;
	padding: 4px 6px !important;
	height: 26px;
}

/* ════════════════════════════════════════════════════════════════════
   V8.3.0 — Section "Aujourd'hui à Médine" (squelette responsive premium)
   Identité GoMedine orange #d6603a → #b3502d
   Mobile-first, breakpoints 480 / 768 / 1024
   ════════════════════════════════════════════════════════════════════ */

.jcm-sec--today-madinah {
	padding: 16px;
	max-width: 1080px;
	margin: 0 auto;
}
.jcm-today {
	background: #fff;
	border: 0.5px solid #e8e3d8;
	border-radius: 16px;
	padding: 16px;
	box-sizing: border-box;
}

/* ─── Header ──────────────────────────────────────────────────────── */
.jcm-today__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.jcm-today__title {
	font-size: 18px;
	font-weight: 500;
	color: #1f1d1a;
	line-height: 1.2;
	margin: 0;
}
.jcm-today__date {
	font-size: 12px;
	color: #8a857d;
	margin-top: 4px;
}
.jcm-today__date-sep { color: #c4beb1; }
.jcm-today__live {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fdecea;
	color: #c4322a;
	font-size: 10px;
	font-weight: 500;
	padding: 4px 8px;
	border-radius: 999px;
	flex-shrink: 0;
	white-space: nowrap;
}
.jcm-today__live-dot {
	width: 6px;
	height: 6px;
	background: #c4322a;
	border-radius: 50%;
	display: inline-block;
	animation: jcm-today-pulse 2s ease-in-out infinite;
}
@keyframes jcm-today-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(0.85); }
}

/* V8.4.5 — Bloc "Persona switcher" supprimé (orphelin, nav non-fonctionnelle). */

/* ─── Hubs (Prière + Météo) ───────────────────────────────────────── */
.jcm-today__hubs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 14px;
}
.jcm-today__hub {
	display: block; /* V8.4.25 — Reset display : écrase l'ancienne règle ligne ~1392 qui forçait display:grid 2-col (vestige v7). NE PAS SUPPRIMER : sans cette ligne, la 3ème colonne "Taux de change" éclate en sous-colonnes internes. */
	background: #fef6f0;
	border: 0.5px solid #f3e0d0;
	border-radius: 12px;
	padding: 12px;
	min-width: 0;
}
.jcm-today__hub-label {
	font-size: 10px;
	color: #8a857d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Hub Prière */
.jcm-today__prayer-next {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.jcm-today__prayer-name {
	font-size: 24px;
	font-weight: 500;
	color: #d6603a;
}
.jcm-today__prayer-in {
	font-size: 12px;
	color: #6b6760;
}
.jcm-today__prayer-countdown {
	font-size: 14px;
	font-weight: 500;
	color: #1f1d1a;
}
.jcm-today__prayer-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 4px;
	font-size: 9px;
	text-align: center;
}
.jcm-today__prayer-slot {
	padding: 6px 2px;
	border-radius: 6px;
	border: 1px solid transparent;
}
.jcm-today__prayer-slot.is-active {
	background: #fff;
	border-color: #d6603a;
}
.jcm-today__prayer-slot-name {
	color: #8a857d;
	font-weight: 500;
	margin-bottom: 2px;
}
.jcm-today__prayer-slot.is-active .jcm-today__prayer-slot-name { color: #d6603a; }
.jcm-today__prayer-slot-time {
	color: #1f1d1a;
	font-size: 11px;
}
.jcm-today__prayer-slot.is-active .jcm-today__prayer-slot-time {
	color: #d6603a;
	font-weight: 500;
}

/* Hub Météo */
.jcm-today__weather-main {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 8px;
}
.jcm-today__weather-emoji { font-size: 24px; }
.jcm-today__weather-temp {
	font-size: 24px;
	font-weight: 500;
	color: #1f1d1a;
}
.jcm-today__weather-condition {
	font-size: 11px;
	color: #6b6760;
	margin-bottom: 8px;
}
.jcm-today__weather-feelslike { color: #8a857d; }
.jcm-today__weather-meta {
	display: flex;
	gap: 12px;
	font-size: 11px;
	color: #8a857d;
	flex-wrap: wrap;
}
.jcm-today__weather-uv {
	color: #d6603a;
	font-weight: 500;
}

/* V8.4.21 ─── Hub Taux de change ──────────────────────────────────── */
.jcm-today__hub--exchange {
	background: #f0f7ff;
	border-color: #d6e4f5;
}
.jcm-today__exchange-rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 8px 0 10px;
}
.jcm-today__exchange-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 15px;
}
.jcm-today__exchange-from {
	font-weight: 500;
	color: #475569;
	min-width: 26px;
}
.jcm-today__exchange-arrow {
	color: #94a3b8;
	font-size: 13px;
}
.jcm-today__exchange-value {
	font-size: 18px;
	font-weight: 500;
	color: #1e3a8a;
}
.jcm-today__exchange-currency {
	font-size: 12px;
	font-weight: 400;
	color: #64748b;
	margin-left: 2px;
}
.jcm-today__exchange-meta {
	font-size: 11px;
	color: #64748b;
	margin-top: 6px;
	line-height: 1.4;
}

/* V8.4.22 — Convertisseur interactif */
.jcm-today__converter {
	background: #ffffff;
	border: 0.5px solid #d6e4f5;
	border-radius: 8px;
	padding: 10px;
	margin: 10px 0 8px;
}
.jcm-today__converter-label {
	font-size: 11px;
	font-weight: 500;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
}
.jcm-today__converter-row {
	display: flex;
	gap: 6px;
	margin-bottom: 6px;
}
.jcm-today__converter-input {
	flex: 1;
	min-width: 0;
	padding: 6px 8px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #1e3a8a;
	background: #fff;
	box-sizing: border-box;
}
.jcm-today__converter-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.jcm-today__converter-select {
	padding: 6px 6px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13px;
	background: #fff;
	cursor: pointer;
	box-sizing: border-box;
}
.jcm-today__converter-result {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 6px 8px;
	background: #f0f7ff;
	border-radius: 6px;
}
.jcm-today__converter-arrow {
	color: #94a3b8;
	font-size: 14px;
	font-weight: 500;
}
.jcm-today__converter-output {
	font-size: 15px;
	font-weight: 500;
	color: #1e3a8a;
}

/* ─── Halaqat & cours ─────────────────────────────────────────────── */
.jcm-today__halaqat-section { margin-top: 4px; }
.jcm-today__halaqat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	gap: 8px;
	flex-wrap: wrap;
}
.jcm-today__halaqat-title {
	font-size: 13px;
	font-weight: 500;
	color: #1f1d1a;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.jcm-today__halaqat-filters { display: flex; gap: 4px; }
.jcm-today__halaqat-filter {
	font-size: 10px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #fff;
	border: 0.5px solid #d8d4cc;
	color: #8a857d;
}
.jcm-today__halaqat-filter.is-active {
	background: linear-gradient(135deg, #d6603a 0%, #b3502d 100%);
	color: #fff;
	border-color: #b3502d;
}
.jcm-today__halaqat-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Carte halaqa */
.jcm-today__halaqa {
	border-left: 3px solid #d6603a;
	background: #fef6f0;
	padding: 10px 12px;
	border-radius: 0 10px 10px 0;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jcm-today__halaqa:hover {
	transform: translateX(2px);
	box-shadow: 0 2px 8px rgba(214, 96, 58, 0.08);
}
.jcm-today__halaqa--green {
	border-left-color: #2d8659;
	background: #f0f7f3;
}
.jcm-today__halaqa--amber {
	border-left-color: #b67528;
	background: #fdf6e7;
}
.jcm-today__halaqa-time {
	text-align: center;
	flex-shrink: 0;
	min-width: 44px;
}
.jcm-today__halaqa-hour {
	font-size: 14px;
	font-weight: 500;
	color: #d6603a;
}
.jcm-today__halaqa--green .jcm-today__halaqa-hour { color: #2d8659; }
.jcm-today__halaqa--amber .jcm-today__halaqa-hour { color: #b67528; }
.jcm-today__halaqa-day {
	font-size: 9px;
	color: #8a857d;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.jcm-today__halaqa-body {
	flex: 1;
	min-width: 0;
}
.jcm-today__halaqa-savant {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
	flex-wrap: wrap;
}
.jcm-today__halaqa-initials {
	background: #d6603a;
	color: #fff;
	font-size: 8px;
	font-weight: 500;
	padding: 2px 5px;
	border-radius: 999px;
	flex-shrink: 0;
	letter-spacing: 0.3px;
}
.jcm-today__halaqa--green .jcm-today__halaqa-initials { background: #2d8659; }
.jcm-today__halaqa--amber .jcm-today__halaqa-initials { background: #b67528; }
.jcm-today__halaqa-name {
	font-size: 12px;
	font-weight: 500;
	color: #1f1d1a;
}
.jcm-today__halaqa-subject {
	font-size: 11px;
	color: #1f1d1a;
	margin-bottom: 3px;
	line-height: 1.3;
}
.jcm-today__halaqa-meta {
	font-size: 10px;
	color: #8a857d;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
}
.jcm-today__halaqa-place { margin-right: 2px; }
.jcm-today__halaqa-badge {
	padding: 1px 5px;
	border-radius: 4px;
	font-size: 9px;
	background: #fff;
	border: 0.5px solid #d8d4cc;
	color: #6b6760;
}
.jcm-today__halaqa-badge--lang {
	border-color: #d6603a;
	color: #d6603a;
	background: #fff;
}
.jcm-today__halaqa-badge--urgent {
	background: #fdecea;
	color: #c4322a;
	border-color: transparent;
}
.jcm-today__halaqa-badge--frequency {
	background: #fff8e6;
	color: #8a6500;
	border-color: transparent;
}
.jcm-today__halaqa-badge--inscription {
	background: #fdecea;
	color: #c4322a;
	border-color: transparent;
}
/* V8.4.8 — Badge "Source officielle" pour cartes al-badr.net */
.jcm-today__halaqa-badge--source {
	background: #e8f4ec;
	color: #1f6e3f;
	border-color: transparent;
	font-weight: 600;
}
/* V8.4.8 — Badge "En direct" pour cours en cours (al-badr.net + Telegram) */
.jcm-today__halaqa-badge--live {
	background: #fdecea;
	color: #c4322a;
	border-color: transparent;
	font-weight: 600;
}
.jcm-today__halaqa-badge--live::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	background: #c4322a;
	border-radius: 50%;
	margin-right: 4px;
	vertical-align: middle;
	animation: jcm-today-pulse 1.4s ease-in-out infinite;
}
/* V8.4.5 — .jcm-today__halaqa-arrow supprimé : le span décoratif n'existe plus en PHP. */

/* v8.7.4 — Empty-state quand aucun cours détecté (au lieu de fallback démos trompeurs) */
.jcm-today__halaqat-empty {
	text-align: center;
	padding: 32px 20px;
	background: linear-gradient(135deg, #fafafa 0%, #f5f3ef 100%);
	border-radius: 12px;
	border: 1px dashed #e5dcd0;
	margin-top: 8px;
}
.jcm-today__halaqat-empty-icon {
	font-size: 36px;
	line-height: 1;
	margin-bottom: 10px;
	opacity: 0.6;
}
.jcm-today__halaqat-empty-title {
	font-size: 14px;
	font-weight: 600;
	color: #4a4338;
	margin-bottom: 6px;
}
.jcm-today__halaqat-empty-sub {
	font-size: 12px;
	color: #8a7e6e;
	line-height: 1.55;
	max-width: 480px;
	margin: 0 auto;
}
@media (max-width: 480px) {
	.jcm-today__halaqat-empty { padding: 24px 14px; }
	.jcm-today__halaqat-empty-icon { font-size: 30px; }
	.jcm-today__halaqat-empty-title { font-size: 13px; }
	.jcm-today__halaqat-empty-sub { font-size: 11.5px; }
}

/* CTA voir tous les cours */
.jcm-today__halaqat-cta {
	text-align: center;
	padding: 12px 8px 4px;
}
.jcm-today__halaqat-link {
	font-size: 12px;
	color: #d6603a;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s ease;
}
.jcm-today__halaqat-link:hover { color: #b3502d; text-decoration: underline; }

/* ─── Breakpoint tablette : ≥ 768px ─────────────────────────────── */
@media (min-width: 768px) {
	.jcm-sec--today-madinah { padding: 24px 16px; }
	.jcm-today { padding: 24px; border-radius: 20px; }
	.jcm-today__title { font-size: 22px; }
	.jcm-today__date { font-size: 13px; }
	.jcm-today__hubs {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 14px;
	}
	.jcm-today__halaqa-name { font-size: 13px; }
	.jcm-today__halaqa-subject { font-size: 12px; }
}

/* ─── Breakpoint desktop : ≥ 1024px ─────────────────────────────── */
@media (min-width: 1024px) {
	.jcm-today { padding: 28px; }
	.jcm-today__title { font-size: 24px; }
	.jcm-today__prayer-name { font-size: 28px; }
	.jcm-today__weather-temp { font-size: 28px; }
}

/* ─── Accessibilité : motion réduit ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.jcm-today__live-dot { animation: none; }
	.jcm-today__halaqa { transition: none; }
}

/* V8.4.5 — .jcm-today__halaqat-empty supprimé : ce message d'état vide n'est plus utilisé (filtrage persona supprimé). */

/* ════════════════════════════════════════════════════════════════════
   V8.4.0 — Affichage bilingue AR+FR pour halaqat Telegram
   ════════════════════════════════════════════════════════════════════ */

/* Container subject bilingue */
.jcm-today__halaqa-subject-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 6px;
}

/* Texte arabe RTL */
.jcm-today__halaqa-subject-ar,
.jcm-today__halaqa-name-ar {
	font-size: 12px;
	color: #6b6760;
	font-family: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
	direction: rtl;
	text-align: right;
	line-height: 1.5;
}

.jcm-today__halaqa-name-ar {
	font-size: 11px;
	color: #8a857d;
	margin-right: 6px;
}

/* Heure relative (sous le lieu) */
.jcm-today__halaqa-time-rel {
	background: #fef6f0;
	border: 0.5px solid #d6603a;
	color: #d6603a;
	font-size: 9px;
	padding: 1px 5px;
	border-radius: 4px;
	font-weight: 500;
}

/* Halaqa LIVE — pulse + badge rouge */
.jcm-today__halaqa.is-live {
	border-left-width: 4px;
	box-shadow: 0 0 0 1px rgba(196, 50, 42, 0.15);
}
.jcm-today__halaqa-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: #c4322a;
	color: #fff;
	font-size: 9px;
	font-weight: 500;
	padding: 2px 6px;
	border-radius: 999px;
	letter-spacing: 0.5px;
	margin-top: 2px;
}
.jcm-today__halaqa-live-badge .jcm-today__live-dot {
	background: #fff;
	width: 5px;
	height: 5px;
}

/* Halaqa source Telegram — petit indicateur visuel */
.jcm-today__halaqa.is-telegram .jcm-today__halaqa-name::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	background: #2196f3;
	border-radius: 50%;
	margin-left: 5px;
	vertical-align: middle;
	opacity: 0.6;
}

/* V8.4.5 — a.jcm-today__halaqa-arrow supprimé : aucune occurrence dans le PHP. */

/* ════════════════════════════════════════════════════════════════════
   V8.4.6 — Flèche cliquable Telegram (mode démo)
   Lien vers le live des cours : https://linkjar.co/drosalmadina (par défaut).
   Zone tactile minimum 44×44px (recommandation iOS HIG / Material Design).
   ════════════════════════════════════════════════════════════════════ */
.jcm-today__halaqa-arrow-link {
	color: #d6603a;
	font-size: 18px;
	line-height: 1;
	font-weight: 600;
	align-self: center;
	margin-left: auto;
	flex-shrink: 0;
	text-decoration: none;
	padding: 12px 14px;
	border-radius: 8px;
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.jcm-today__halaqa-arrow-link:hover,
.jcm-today__halaqa-arrow-link:focus-visible {
	transform: translateX(3px);
	background-color: rgba(214, 96, 58, 0.10);
	color: #b3502d;
	text-decoration: none;
	outline: none;
}
.jcm-today__halaqa-arrow-link:focus-visible {
	box-shadow: 0 0 0 2px rgba(214, 96, 58, 0.45);
}
.jcm-today__halaqa-arrow-link:active {
	transform: translateX(2px) scale(0.97);
}
.jcm-today__halaqa--green .jcm-today__halaqa-arrow-link {
	color: #2d8659;
}
.jcm-today__halaqa--green .jcm-today__halaqa-arrow-link:hover,
.jcm-today__halaqa--green .jcm-today__halaqa-arrow-link:focus-visible {
	background-color: rgba(45, 134, 89, 0.10);
	color: #246d49;
}
.jcm-today__halaqa--green .jcm-today__halaqa-arrow-link:focus-visible {
	box-shadow: 0 0 0 2px rgba(45, 134, 89, 0.45);
}
.jcm-today__halaqa--amber .jcm-today__halaqa-arrow-link {
	color: #b67528;
}
.jcm-today__halaqa--amber .jcm-today__halaqa-arrow-link:hover,
.jcm-today__halaqa--amber .jcm-today__halaqa-arrow-link:focus-visible {
	background-color: rgba(182, 117, 40, 0.10);
	color: #94601f;
}
.jcm-today__halaqa--amber .jcm-today__halaqa-arrow-link:focus-visible {
	box-shadow: 0 0 0 2px rgba(182, 117, 40, 0.45);
}

/* Responsive : sur mobile, l'AR passe sous le FR au lieu de côté */
@media (max-width: 480px) {
	.jcm-today__halaqa-subject-ar {
		font-size: 11px;
		padding-top: 2px;
		border-top: 0.5px dashed rgba(214, 96, 58, 0.2);
	}
}

/* ════════════════════════════════════════════════════════════════════
   V8.4.1 — Layout PREMIUM des halaqat Telegram
   V8.5.3 — Compactage : -40% volume vertical pour aligner visuellement avec
            les cartes compactes des halaqat manuelles (mais garde la richesse
            bilingue + avatar + CTA premium).
   ════════════════════════════════════════════════════════════════════ */

.jcm-today__halaqa--premium {
	display: block;
	padding: 10px 12px; /* V8.5.3 — était 16px 18px */
	margin-bottom: 8px; /* V8.5.3 — était 12px */
	background: #ffffff;
	border: 0.5px solid #e8e3db;
	border-left-width: 3px;
	border-radius: 10px; /* V8.5.3 — était 12px */
	box-shadow: 0 1px 2px rgba(20, 14, 8, 0.04);
	transition: all 0.2s ease;
}
.jcm-today__halaqa--premium:hover {
	box-shadow: 0 3px 12px rgba(214, 96, 58, 0.08);
	transform: translateY(-1px);
}
.jcm-today__halaqa--premium.is-live {
	background: linear-gradient(180deg, #fff8f5 0%, #ffffff 60%);
	border-left-color: #c4322a;
	border-left-width: 4px;
}

/* ── Bandeau supérieur ── */
.jcm-today__halaqa-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px; /* V8.5.3 — était 8px */
	margin-bottom: 6px; /* V8.5.3 — était 12px */
	font-size: 11px; /* V8.5.3 — était 11.5px */
	color: #6b6760;
}

.jcm-today__halaqa-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2px;
}
.jcm-today__halaqa-status.is-live {
	background: #c4322a;
	color: #fff;
}
.jcm-today__halaqa-status.is-live .jcm-today__live-dot {
	background: #fff;
	width: 5px;
	height: 5px;
	animation: jcm-live-pulse 1.4s ease-in-out infinite;
}
.jcm-today__halaqa-status.is-upcoming {
	background: #faf6f0;
	color: #6b6760;
	border: 0.5px solid #e8e3db;
}
.jcm-today__halaqa-status.is-upcoming strong {
	color: #d6603a;
	font-weight: 600;
}
.jcm-today__halaqa-status .jcm-today__icon {
	flex-shrink: 0;
	color: #8a857d;
}

.jcm-today__halaqa-countdown {
	color: #d6603a;
	font-size: 10.5px;
	font-weight: 500;
	margin-left: 3px;
}

.jcm-today__halaqa-source {
	margin-left: auto;
	color: #2196f3;
	display: inline-flex;
	align-items: center;
	opacity: 0.7;
}

@keyframes jcm-live-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.4; }
}

/* ── Header savant ── */
.jcm-today__halaqa-savant-row {
	display: flex;
	align-items: center; /* V8.5.3 — était flex-start */
	gap: 8px; /* V8.5.3 — était 10px */
	margin-bottom: 6px; /* V8.5.3 — était 12px */
}
.jcm-today__halaqa-savant-row .jcm-today__halaqa-initials {
	width: 24px; /* V8.5.3 — était 32px */
	height: 24px; /* V8.5.3 — était 32px */
	border-radius: 50%;
	background: #fef6f0;
	color: #d6603a;
	font-size: 10px; /* V8.5.3 — était 11px */
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 0.5px solid rgba(214, 96, 58, 0.2);
}
.jcm-today__halaqa--green .jcm-today__halaqa-savant-row .jcm-today__halaqa-initials {
	background: #f0f7f3;
	color: #2d8659;
	border-color: rgba(45, 134, 89, 0.2);
}
.jcm-today__halaqa--amber .jcm-today__halaqa-savant-row .jcm-today__halaqa-initials {
	background: #fdf6ec;
	color: #b67528;
	border-color: rgba(182, 117, 40, 0.2);
}

.jcm-today__halaqa-savant-names {
	display: flex;
	flex-direction: column;
	gap: 0; /* V8.5.3 — était 2px */
	min-width: 0;
	flex: 1;
}
.jcm-today__halaqa-savant-row .jcm-today__halaqa-name {
	font-size: 13px; /* V8.5.3 — était 14px */
	font-weight: 600;
	color: #1a1612;
	letter-spacing: -0.1px;
	line-height: 1.25; /* V8.5.3 — était 1.3 */
}
.jcm-today__halaqa-savant-row .jcm-today__halaqa-name-ar {
	font-size: 11px; /* V8.5.3 — était 12px */
	color: #8a857d;
	font-family: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
	font-weight: 400;
	direction: rtl;
	text-align: right;
	line-height: 1.4; /* V8.5.3 — était 1.5 */
}

/* ── Bloc sujet ── */
.jcm-today__halaqa-subject-block {
	margin-bottom: 6px; /* V8.5.3 — était 10px */
	padding-bottom: 6px; /* V8.5.3 — était 10px */
	border-bottom: 0.5px dashed #e8e3db;
}
.jcm-today__halaqa-subject-fr {
	font-size: 12.5px; /* V8.5.3 — était 13.5px */
	color: #1a1612;
	font-weight: 500;
	line-height: 1.35; /* V8.5.3 — était 1.45 */
	margin-bottom: 2px; /* V8.5.3 — était 4px */
}
.jcm-today__halaqa-subject-ar {
	font-size: 12.5px; /* V8.5.3 — était 14px */
	color: #4a423c;
	font-family: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
	direction: rtl;
	text-align: right;
	line-height: 1.45; /* V8.5.3 — était 1.6 */
}
.jcm-today__halaqa-subject-ar.is-primary {
	font-size: 13.5px; /* V8.5.3 — était 15px */
	color: #1a1612;
	font-weight: 500;
	line-height: 1.5; /* V8.5.3 — était 1.7 */
}

/* ── Bloc lieu ── */
.jcm-today__halaqa-place-block {
	display: flex;
	align-items: flex-start;
	gap: 5px; /* V8.5.3 — était 6px */
	margin-bottom: 6px; /* V8.5.3 — était 12px */
	color: #6b6760;
}
.jcm-today__halaqa-place-block .jcm-today__icon {
	flex-shrink: 0;
	margin-top: 1px; /* V8.5.3 — était 2px */
	color: #8a857d;
}
.jcm-today__halaqa-place-text {
	display: flex;
	flex-direction: column;
	gap: 0; /* V8.5.3 — était 2px */
	flex: 1;
	min-width: 0;
}
.jcm-today__halaqa-place-fr {
	font-size: 11.5px; /* V8.5.3 — était 12px */
	color: #4a423c;
	line-height: 1.35;
}
.jcm-today__halaqa-place-ar {
	font-size: 11.5px; /* V8.5.3 — était 12.5px */
	color: #6b6760;
	font-family: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
	direction: rtl;
	text-align: right;
	line-height: 1.4; /* V8.5.3 — était 1.5 */
}
.jcm-today__halaqa-place-ar.is-primary {
	font-size: 12px; /* V8.5.3 — était 13px */
	color: #4a423c;
}

/* ── CTA bouton ── */
.jcm-today__halaqa-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px; /* V8.5.3 — était 6px */
	padding: 5px 10px; /* V8.5.3 — était 7px 14px */
	background: #d6603a;
	color: #fff !important;
	font-size: 11.5px; /* V8.5.3 — était 12px */
	font-weight: 500;
	border-radius: 6px; /* V8.5.3 — était 8px */
	text-decoration: none !important;
	transition: all 0.15s ease;
}
.jcm-today__halaqa-cta-btn:hover {
	background: #b3502d;
	transform: translateX(2px);
	color: #fff !important;
	text-decoration: none !important;
}
.jcm-today__halaqa-cta-btn svg {
	transition: transform 0.15s ease;
}
.jcm-today__halaqa-cta-btn:hover svg {
	transform: translateX(2px);
}
.jcm-today__halaqa--green .jcm-today__halaqa-cta-btn { background: #2d8659; }
.jcm-today__halaqa--green .jcm-today__halaqa-cta-btn:hover { background: #246d49; }
.jcm-today__halaqa--amber .jcm-today__halaqa-cta-btn { background: #b67528; }
.jcm-today__halaqa--amber .jcm-today__halaqa-cta-btn:hover { background: #976220; }

.jcm-today__halaqa--premium.is-live .jcm-today__halaqa-cta-btn {
	background: #c4322a;
	animation: jcm-cta-glow 2s ease-in-out infinite;
}
.jcm-today__halaqa--premium.is-live .jcm-today__halaqa-cta-btn:hover {
	background: #a02921;
}

@keyframes jcm-cta-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(196, 50, 42, 0); }
	50%      { box-shadow: 0 0 0 4px rgba(196, 50, 42, 0.18); }
}

/* ── Mobile ── */
@media (max-width: 480px) {
	.jcm-today__halaqa--premium {
		padding: 14px;
	}
	.jcm-today__halaqa-banner {
		gap: 6px;
		font-size: 11px;
	}
	.jcm-today__halaqa-savant-row .jcm-today__halaqa-name {
		font-size: 13.5px;
	}
	.jcm-today__halaqa-subject-ar.is-primary {
		font-size: 14px;
	}
}

/* ════════════════════════════════════════════════════════════════════
   V8.4.2 — Affichage AR/FR clarifié + statut récurrent
   ════════════════════════════════════════════════════════════════════ */

/* ── Bloc sujet : FR au-dessus, AR dans sub-container distinct ── */
.jcm-today__halaqa-subject-block {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 0.5px solid #f0ece4;
}
.jcm-today__halaqa-subject-fr {
	font-size: 14px;
	color: #1a1612;
	font-weight: 500;
	line-height: 1.45;
	margin-bottom: 6px;
}
.jcm-today__halaqa-subject-ar {
	font-size: 12.5px;
	color: #6b6760;
	font-family: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
	direction: rtl;
	text-align: right;
	line-height: 1.6;
	padding: 6px 10px;
	background: #fbf8f4;
	border-right: 2px solid #e8e3db;
	border-radius: 0 6px 6px 0;
}
.jcm-today__halaqa-subject-ar.is-primary {
	font-size: 14.5px;
	color: #2a2520;
	font-weight: 500;
	line-height: 1.7;
	background: #faf6f0;
	border-right-color: #d6603a;
	padding: 8px 12px;
}

/* ── Bloc lieu : pareil, FR puis AR avec marqueur visuel ── */
.jcm-today__halaqa-place-block {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 14px;
	color: #6b6760;
}
.jcm-today__halaqa-place-block .jcm-today__icon {
	flex-shrink: 0;
	margin-top: 3px;
	color: #8a857d;
}
.jcm-today__halaqa-place-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}
.jcm-today__halaqa-place-fr {
	font-size: 12.5px;
	color: #4a423c;
	line-height: 1.4;
}
.jcm-today__halaqa-place-ar {
	font-size: 12px;
	color: #6b6760;
	font-family: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
	direction: rtl;
	text-align: right;
	line-height: 1.5;
	padding: 4px 8px;
	background: #fbf8f4;
	border-right: 2px solid #e8e3db;
	border-radius: 0 4px 4px 0;
}
.jcm-today__halaqa-place-ar.is-primary {
	font-size: 13px;
	color: #2a2520;
	font-weight: 500;
	background: #faf6f0;
	border-right-color: #d6603a;
}

/* ── Statut RECURRING (cours hebdomadaire) ── */
.jcm-today__halaqa-status.is-recurring {
	background: #f0f7f3;
	color: #2d8659;
	border: 0.5px solid rgba(45, 134, 89, 0.25);
}
.jcm-today__halaqa-status.is-recurring .jcm-today__icon {
	color: #2d8659;
}
.jcm-today__halaqa-status.is-recurring strong {
	color: #2d8659;
	font-weight: 600;
}

/* ── Variantes par couleur d'accent ── */
.jcm-today__halaqa--green .jcm-today__halaqa-subject-ar.is-primary { border-right-color: #2d8659; background: #f0f7f3; }
.jcm-today__halaqa--green .jcm-today__halaqa-place-ar.is-primary   { border-right-color: #2d8659; background: #f0f7f3; }
.jcm-today__halaqa--amber .jcm-today__halaqa-subject-ar.is-primary { border-right-color: #b67528; background: #fdf6ec; }
.jcm-today__halaqa--amber .jcm-today__halaqa-place-ar.is-primary   { border-right-color: #b67528; background: #fdf6ec; }

/* V8.4.3 — Statut RECENT (cours récent < 7j) */
.jcm-today__halaqa-status.is-recent {
	background: #fef6f0;
	color: #b3502d;
	border: 0.5px solid rgba(214, 96, 58, 0.25);
}
.jcm-today__halaqa-status.is-recent .jcm-today__icon {
	color: #b3502d;
}
.jcm-today__halaqa-status.is-recent strong {
	color: #b3502d;
	font-weight: 600;
}
