/* ============================================================
   crm-landing.css — Landing « logiciel CRM » (design v2)
   Source : Design System « LGDF Design System — Bootstrap »,
   ui_kits/marketing/crm.html (bloc <style> de l'entete).

   DELTA UNIQUEMENT : le kit reprend le vocabulaire editorial de la
   home v2 (display-mega, display-big, kicker, tricolor-strip-thick,
   tricolor-rule, section-head, cta-final, foot-kicker, keyframes
   pulseDot) qui vit deja dans marketing-v2.css — ces regles ne sont
   PAS redupliquees ici. Charger marketing-v2.css AVANT ce fichier.
   ============================================================ */

/* Le header v2 est en sticky-top : sans marge de scroll, les ancres
   #sync et #demo passent sous la barre de navigation. */
#sync,
#demo {
	scroll-margin-top: 90px;
}

/* ============== HERO ============== */
.hero-crm {
	padding: 56px 0 32px;
	position: relative;
}
.hero-crm .corner-meta {
	position: absolute;
	top: 24px;
	right: 0;
	font-family: var(--lgdf-font-mono);
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lgdf-stone-400);
}

/* ============== SURFACES « APPLICATION » (mockups) ============== */
.app-card {
	background: var(--lgdf-paper-0);
	border: 1px solid var(--lgdf-stone-200);
	border-radius: 18px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 30px 80px -28px rgba(11, 42, 107, .25), 0 2px 0 rgba(11, 42, 107, .04);
}
.app-head {
	padding: 13px 18px;
	border-bottom: 1px solid var(--lgdf-stone-100);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: linear-gradient(180deg, var(--lgdf-paper-50), var(--lgdf-paper-0));
}
.app-head .stamp {
	font-family: var(--lgdf-font-mono);
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lgdf-stone-500);
}
.app-body { padding: 20px 22px 22px; }
.app-foot {
	padding: 12px 18px;
	background: var(--lgdf-ink-900);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--lgdf-font-mono);
	font-size: .74rem;
	letter-spacing: .04em;
}
.app-foot .grn { color: #58d49b; }

/* -------- Pastilles de statut -------- */
.st-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--lgdf-font-mono);
	font-size: .66rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 999px;
	font-weight: 500;
}
.st-chip .ic { width: 12px; height: 12px; }
.st-chip.gu   { background: #E6F6EE; color: #056647; border: 1px solid rgba(5, 102, 71, .18); }
.st-chip.int  { background: var(--lgdf-ink-50); color: var(--lgdf-ink-700); border: 1px solid rgba(11, 42, 107, .16); }
.st-chip.wait { background: #FDF3E2; color: #9A6700; border: 1px solid rgba(154, 103, 0, .18); }
.st-chip.live { background: var(--lgdf-paper-0); color: var(--lgdf-stone-500); border: 1px solid var(--lgdf-stone-200); }
.st-chip.live .pip {
	width: 7px; height: 7px; border-radius: 999px;
	background: #0E9F6E;
	animation: pulseDot 1.6s infinite;
}

/* -------- Badge epingle sur une carte -------- */
.pin-badge {
	position: absolute;
	top: -14px;
	right: 18px;
	z-index: 3;
	font-family: var(--lgdf-font-mono);
	font-size: .62rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	background: var(--lgdf-ink-900);
	color: #fff;
	padding: 7px 12px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	box-shadow: 0 12px 28px -10px rgba(11, 42, 107, .6);
}
.pin-badge .pip {
	width: 7px; height: 7px; border-radius: 999px;
	background: #58d49b;
	animation: pulseDot 1.6s infinite;
}

/* -------- Lignes d'un dossier -------- */
.dossier-line {
	display: grid;
	grid-template-columns: 22px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 11px 0;
	border-bottom: 1px dashed var(--lgdf-stone-200);
	font-size: .9rem;
}
.dossier-line:last-of-type { border-bottom: 0; }
.dossier-line .ic-wrap {
	width: 22px; height: 22px;
	border-radius: 6px;
	background: var(--lgdf-paper-50);
	border: 1px solid var(--lgdf-stone-200);
	color: var(--lgdf-ink-700);
	display: flex; align-items: center; justify-content: center;
}
.dossier-line .ic-wrap svg { width: 13px; height: 13px; }
.dossier-line .lab { color: var(--lgdf-ink-800); font-weight: 500; }
.dossier-line .meta {
	font-family: var(--lgdf-font-mono);
	color: var(--lgdf-stone-500);
	font-size: .74rem;
}

/* -------- Avatars -------- */
.ava {
	width: 28px; height: 28px;
	border-radius: 999px;
	flex: none;
	display: flex; align-items: center; justify-content: center;
	font-size: .68rem; font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, var(--lgdf-ink-500), var(--lgdf-ink-800));
}
.ava.sm { width: 22px; height: 22px; font-size: .6rem; }

/* ============== SECTION 01 — SYNCHRO GUICHET UNIQUE ============== */
.sync-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	align-items: stretch;
}
@media (min-width: 980px) {
	.sync-grid { grid-template-columns: 1fr 64px 1fr; gap: 0; align-items: center; }
}

.sync-col {
	background: var(--lgdf-paper-0);
	border: 1px solid var(--lgdf-stone-200);
	border-radius: 18px;
	padding: 22px 22px 18px;
	position: relative;
	box-shadow: var(--bs-box-shadow-sm);
}
.sync-col .col-tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--lgdf-font-mono);
	font-size: .66rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 16px;
}
.sync-col.crm .col-tag { background: var(--lgdf-ink-50); color: var(--lgdf-ink-700); }
.sync-col.gu .col-tag  { background: #E6F6EE; color: #056647; }
.sync-col h6 {
	font-weight: 700;
	color: var(--lgdf-ink-900);
	margin: 0 0 14px;
	font-size: 1.02rem;
}
.sync-col .doc-row {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 0;
	border-bottom: 1px solid var(--lgdf-stone-100);
	font-size: .86rem;
}
.sync-col .doc-row:last-child { border-bottom: 0; }
.sync-col .doc-row .fic {
	width: 26px; height: 30px;
	border-radius: 4px;
	border: 1px solid var(--lgdf-stone-300);
	background: var(--lgdf-paper-50);
	position: relative;
	flex: none;
}
.sync-col .doc-row .fic::after {
	content: "";
	position: absolute;
	left: 5px; right: 5px; top: 8px;
	height: 2px;
	background: var(--lgdf-stone-300);
	box-shadow: 0 5px 0 var(--lgdf-stone-300), 0 10px 0 var(--lgdf-stone-300);
}
.sync-col .doc-row .nm { color: var(--lgdf-ink-800); font-weight: 500; }
.sync-col .doc-row .nm small {
	display: block;
	font-family: var(--lgdf-font-mono);
	font-size: .68rem;
	color: var(--lgdf-stone-500);
	font-weight: 400;
	margin-top: 2px;
}

.sync-connector { display: none; }
@media (min-width: 980px) {
	.sync-connector {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 8px;
		position: relative;
	}
	.sync-connector .wire {
		width: 100%; height: 2px;
		background: repeating-linear-gradient(to right, var(--lgdf-ink-300) 0 6px, transparent 6px 12px);
	}
	.sync-connector .badge-sync {
		position: absolute;
		width: 46px; height: 46px;
		border-radius: 999px;
		background: var(--lgdf-ink-900);
		color: #fff;
		display: flex; align-items: center; justify-content: center;
		box-shadow: 0 12px 28px -10px rgba(11, 42, 107, .6);
	}
	.sync-connector .badge-sync svg {
		width: 20px; height: 20px;
		animation: crmSpin 4s linear infinite;
	}
}
@keyframes crmSpin { to { transform: rotate(360deg); } }

/* ============== CARTES DE FONCTIONNALITES ============== */
.feat-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}
@media (min-width: 620px)  { .feat-grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px)  { .feat-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feat-grid.three { grid-template-columns: repeat(3, 1fr); } }

.feat-card {
	background: var(--lgdf-paper-0);
	border: 1px solid var(--lgdf-stone-200);
	border-radius: 16px;
	padding: 24px 24px 22px;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
	display: flex;
	flex-direction: column;
}
.feat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 48px -26px rgba(11, 42, 107, .35);
	border-color: var(--lgdf-stone-300);
}
.feat-card .ic-tile {
	width: 42px; height: 42px;
	border-radius: 11px;
	background: var(--lgdf-ink-50);
	color: var(--lgdf-ink-700);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 18px;
}
.feat-card .ic-tile svg { width: 20px; height: 20px; stroke-width: 1.75; }
.feat-card h5 {
	font-weight: 700;
	color: var(--lgdf-ink-900);
	margin: 0 0 8px;
	font-size: 1.08rem;
	letter-spacing: -.01em;
}
.feat-card p {
	color: var(--lgdf-stone-600);
	font-size: .9rem;
	margin: 0;
	line-height: 1.5;
}
.feat-card .tagline {
	font-family: var(--lgdf-font-mono);
	font-size: .64rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lgdf-stone-400);
	margin-top: 16px;
}

/* ============== SECTION 04 — EQUIPE & MULTI-SOCIETES ============== */
.site-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}
.site-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--lgdf-stone-200);
	background: var(--lgdf-paper-0);
	font-size: .84rem;
	font-weight: 500;
	color: var(--lgdf-stone-600);
}
.site-tab .pin { width: 8px; height: 8px; border-radius: 999px; background: var(--lgdf-stone-300); }
.site-tab.active {
	background: var(--lgdf-ink-900);
	color: #fff;
	border-color: var(--lgdf-ink-900);
}
.site-tab.active .pin { background: #58d49b; }

.team-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .88rem;
}
.team-table th {
	font-family: var(--lgdf-font-mono);
	font-size: .64rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lgdf-stone-400);
	font-weight: 500;
	text-align: left;
	padding: 0 0 12px;
}
.team-table td {
	padding: 13px 0;
	border-top: 1px solid var(--lgdf-stone-100);
	vertical-align: middle;
}
.team-table .who { display: flex; align-items: center; gap: 10px; }
.team-table .who .nm { font-weight: 600; color: var(--lgdf-ink-900); }
.team-table .who .ro {
	font-family: var(--lgdf-font-mono);
	font-size: .66rem;
	color: var(--lgdf-stone-400);
}
.team-table .bar {
	height: 7px;
	border-radius: 999px;
	background: var(--lgdf-stone-100);
	overflow: hidden;
	min-width: 80px;
}
.team-table .bar > i {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(to right, var(--lgdf-ink-500), var(--lgdf-ink-700));
}
.team-table .num {
	font-family: var(--lgdf-font-mono);
	font-weight: 600;
	color: var(--lgdf-ink-900);
	font-variant-numeric: tabular-nums;
}

/* ============== SECTION 05 — TABLEAU DE BORD ============== */
.dash {
	background: var(--lgdf-paper-0);
	border: 1px solid var(--lgdf-stone-200);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 80px -34px rgba(11, 42, 107, .3);
}
.dash-head {
	padding: 16px 22px;
	border-bottom: 1px solid var(--lgdf-stone-100);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(180deg, var(--lgdf-paper-50), var(--lgdf-paper-0));
}
.dash-head .ttl { font-weight: 700; color: var(--lgdf-ink-900); }
.dash-head .ttl small {
	display: block;
	font-family: var(--lgdf-font-mono);
	font-size: .66rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lgdf-stone-400);
	font-weight: 400;
	margin-top: 2px;
}
.dash-body {
	padding: 22px;
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr;
}
@media (min-width: 860px) { .dash-body { grid-template-columns: 1.4fr 1fr; } }

.kpi-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.kpi {
	border: 1px solid var(--lgdf-stone-200);
	border-radius: 12px;
	padding: 15px 16px;
	background: var(--lgdf-paper-50);
}
.kpi .n {
	font-size: 1.7rem;
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--lgdf-ink-900);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.kpi .n .u {
	font-size: .42em;
	font-weight: 500;
	color: var(--lgdf-stone-500);
	margin-left: 3px;
}
.kpi .lb {
	font-family: var(--lgdf-font-mono);
	font-size: .62rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lgdf-stone-500);
	margin-top: 8px;
}
.kpi .dl {
	font-family: var(--lgdf-font-mono);
	font-size: .66rem;
	color: #0c7a52;
	margin-top: 6px;
}

/* -------- Histogramme CSS -------- */
.chart {
	border: 1px solid var(--lgdf-stone-200);
	border-radius: 12px;
	padding: 16px;
	margin-top: 14px;
}
.chart .ttl {
	font-family: var(--lgdf-font-mono);
	font-size: .64rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lgdf-stone-400);
	margin-bottom: 14px;
}
.bars {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	height: 96px;
}
.bars .b {
	flex: 1;
	background: var(--lgdf-ink-100);
	border-radius: 6px 6px 0 0;
	position: relative;
}
.bars .b.peak { background: var(--lgdf-ink-700); }
.bars .b::after {
	content: attr(data-m);
	position: absolute;
	bottom: -20px;
	left: 0; right: 0;
	text-align: center;
	font-family: var(--lgdf-font-mono);
	font-size: .6rem;
	color: var(--lgdf-stone-400);
}

/* -------- Liste d'evenements / taches -------- */
.evt-feed {
	border: 1px solid var(--lgdf-stone-200);
	border-radius: 12px;
	padding: 16px 18px;
}
.evt-feed .ttl {
	font-family: var(--lgdf-font-mono);
	font-size: .64rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lgdf-stone-400);
	margin-bottom: 12px;
}
.evt {
	display: grid;
	grid-template-columns: 20px 1fr auto;
	gap: 11px;
	align-items: center;
	padding: 9px 0;
	border-bottom: 1px dashed var(--lgdf-stone-200);
	font-size: .82rem;
}
.evt:last-child { border-bottom: 0; }
.evt .dt {
	width: 20px; height: 20px;
	border-radius: 6px;
	display: flex; align-items: center; justify-content: center;
	background: var(--lgdf-ink-50);
	color: var(--lgdf-ink-700);
}
.evt .dt svg { width: 12px; height: 12px; }
.evt .lab { color: var(--lgdf-ink-800); }
.evt .lab b { color: var(--lgdf-ink-900); font-weight: 600; }
.evt .tm {
	font-family: var(--lgdf-font-mono);
	font-size: .66rem;
	color: var(--lgdf-stone-400);
}

/* ============== BANDE CHIFFREE (fond encre) ============== */
.stat-band {
	background: var(--lgdf-ink-900);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.stat-band .stat-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
	align-items: center;
	padding: 44px 0;
}
@media (min-width: 860px) {
	.stat-band .stat-card { grid-template-columns: auto 1fr; gap: 52px; }
}
.stat-band .stat-card .big {
	font-size: clamp(3.2rem, 8vw, 5.4rem);
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: .9;
	color: #fff;
	white-space: nowrap;
}
.stat-band .stat-card .big .u {
	display: block;
	font-family: var(--lgdf-font-mono);
	font-size: .12em;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
	margin-top: 14px;
}
.stat-band .stat-card h3 {
	color: #fff;
	font-weight: 700;
	letter-spacing: -.02em;
	margin: 0 0 10px;
	font-size: clamp(1.4rem, 3vw, 2rem);
	text-wrap: balance;
}
.stat-band .stat-card p {
	color: rgba(255, 255, 255, .78);
	margin: 0;
	line-height: 1.55;
	max-width: 56ch;
}
.stat-band .stat-card p b { color: #fff; }

/* ============== BANDE « OFFERT » ============== */
.offer-band {
	background: var(--lgdf-paper-0);
	border-top: 1px solid var(--lgdf-stone-200);
	border-bottom: 1px solid var(--lgdf-stone-200);
}

@media (prefers-reduced-motion: reduce) {
	.st-chip.live .pip,
	.pin-badge .pip,
	.sync-connector .badge-sync svg {
		animation: none !important;
	}
}
