@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --sidebar: 306px;
  --bg: #f4f8fc;
  --bg-soft: #eef5fb;
  --dark: #07111f;
  --dark-2: #0b1728;
  --dark-3: #101f35;
  --text: #081225;
  --muted: #64748b;
  --muted-2: #8da0b8;
  --line: #dbe7f2;
  --line-soft: #edf3f8;
  --white: #fff;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --cyan: #06b6d4;
  --purple: #7c3aed;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #f97316;
  --shadow: 0 24px 70px rgba(15, 23, 42, .10);
  --shadow-soft: 0 14px 36px rgba(15, 23, 42, .07);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 25% 0%, rgba(37, 99, 235, .09), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, .08), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
  color: var(--text);
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, .18), transparent 26%),
    radial-gradient(circle at 80% 30%, rgba(124, 58, 237, .12), transparent 24%),
    linear-gradient(180deg, #081225 0%, #0a1525 48%, #050a14 100%);
  color: #d9e8fb;
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: 24px 0 60px rgba(2, 8, 23, .20);
}

.brand-zone { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 21px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 52%, var(--purple) 100%);
  box-shadow: 0 18px 42px rgba(37, 99, 235, .36);
}

.brand strong { display: block; color: white; font-size: 17px; letter-spacing: -.03em; }
.brand span { display: block; margin-top: 5px; color: #8da0b8; font-size: 13px; font-weight: 700; }

.sidebar-close {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.07);
  color: white;
  font-size: 22px;
}

.sidebar-card {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.09);
  margin-bottom: 20px;
}

.user-mini { display: flex; align-items: center; gap: 12px; }

.user-avatar, .profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.user-mini strong, .profile-pill strong { display: block; color: white; font-weight: 900; font-size: 14px; }
.user-mini span, .profile-pill span {
  display: block;
  color: #8da0b8;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.nav { display: grid; gap: 7px; overflow: auto; padding-right: 2px; }
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 999px; }

.nav-section {
  margin: 14px 8px 6px;
  color: #69819f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 17px;
  color: #cbdcf2;
  font-weight: 850;
  transition: .18s ease;
}

.nav a:hover { color: white; background: rgba(255,255,255,.07); transform: translateX(2px); }

.nav a.active {
  color: white;
  background: linear-gradient(135deg, rgba(6,182,212,.22), rgba(37,99,235,.24));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 10px 28px rgba(0,0,0,.14);
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.07);
  color: #8beaff;
  font-weight: 900;
}

.nav a.active .nav-icon { background: rgba(255,255,255,.14); color: white; }

.sidebar-bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-status { display: flex; align-items: center; gap: 9px; color: #b7c8df; font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.pulse { width: 9px; height: 9px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 6px rgba(34,197,94,.13); }

.logout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 15px;
  color: white;
  font-weight: 900;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.08);
}

.main { width: calc(100% - var(--sidebar)); margin-left: var(--sidebar); padding: 34px; }

.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.topbar-left { display: flex; align-items: flex-start; gap: 16px; }

.breadcrumb {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.topbar h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.065em;
  font-weight: 950;
}

.topbar p { margin: 13px 0 0; color: #5e7490; font-size: 16px; line-height: 1.65; max-width: 820px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.top-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(37,99,235,.24);
}

.profile-pill {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 7px;
  border-radius: 19px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.profile-pill strong { color: var(--text); }

.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}

.page-wrap { display: grid; gap: 22px; }

.hero-panel, .card, .stat-card, .premium-card, .quick-card {
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(219,231,242,.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  color: white;
  background:
    radial-gradient(circle at top right, rgba(6,182,212,.22), transparent 26%),
    radial-gradient(circle at left center, rgba(124,58,237,.18), transparent 22%),
    linear-gradient(135deg, #07111f, #0d1b31 58%, #102346);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6,182,212,.22), transparent 65%);
}

.hero-panel > * { position: relative; z-index: 1; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.11);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin: 18px 0 10px;
  max-width: 860px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.hero-panel p { margin: 0; max-width: 860px; color: rgba(255,255,255,.74); line-height: 1.75; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

button, .btn {
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}

button:hover, .btn:hover, .top-action:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn.primary, button.primary { color: white; border: 0; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 15px 28px rgba(37,99,235,.24); }
.btn.dark { background: rgba(255,255,255,.11); color: white; border-color: rgba(255,255,255,.15); }
.btn.small { min-height: 38px; padding: 0 13px; border-radius: 13px; font-size: 13px; }
.btn.full { width: 100%; }

.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }

.stat-card { position: relative; overflow: hidden; padding: 22px; }
.stat-card::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6,182,212,.19), transparent 66%);
}

.stat-icon { width: 38px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--blue)); margin-bottom: 20px; }
.stat-card span { display: block; color: #617896; font-size: 13px; font-weight: 900; }
.stat-card strong { display: block; margin-top: 12px; color: var(--text); font-size: clamp(28px, 2.4vw, 38px); line-height: 1; letter-spacing: -.06em; font-weight: 950; }
.stat-card small { display: block; margin-top: 11px; color: #8293aa; font-weight: 700; }

.card, .premium-card, .quick-card { padding: 24px; }
.card h2, .premium-card h2, .quick-card h2 { margin: 0 0 18px; color: var(--text); font-size: 22px; letter-spacing: -.04em; font-weight: 950; }
.card-subtitle { margin: -8px 0 18px; color: var(--muted); line-height: 1.6; }

.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: 1.35fr .9fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.equal { grid-template-columns: 1fr 1fr; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quick-card strong { display: block; font-size: 18px; letter-spacing: -.03em; }
.quick-card p { color: var(--muted); line-height: 1.65; margin: 10px 0 18px; }

.actions-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.search-form { display: flex; gap: 12px; flex: 1; }
.search-form input { max-width: 430px; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--text);
  outline: none;
  font-size: 15px;
  transition: .18s ease;
}

textarea { min-height: 115px; padding-top: 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(37,99,235,.48); box-shadow: 0 0 0 5px rgba(37,99,235,.10); }
label { display: block; margin-bottom: 8px; color: #27415f; font-weight: 900; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.table-shell { overflow: hidden; padding: 0; }
.table-header { padding: 24px 24px 0; }
.table-wrap { width: 100%; overflow-x: auto; }

table { width: 100%; border-collapse: separate; border-spacing: 0; }
th {
  padding: 16px 18px;
  text-align: left;
  color: #7187a2;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 950;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

td { padding: 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr { transition: .16s ease; }
tbody tr:hover td { background: #f9fcff; }
td strong, .cell-title { color: var(--text); font-weight: 950; }
td small, .cell-sub { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4fb;
  color: #304963;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -.01em;
}

.badge-active, .badge-traite, .badge-converti, .badge-done, .badge-open { background: #dcfce7; color: #166534; }
.badge-urgent, .badge-urgente, .badge-perdu, .badge-inactive { background: #fee2e2; color: #991b1b; }
.badge-haute, .badge-a_rappeler, .badge-pending, .badge-draft { background: #ffedd5; color: #9a3412; }
.badge-business, .badge-Business, .badge-neutral, .badge-Essentiel, .badge-Premium, .badge-nouveau, .badge-transmis { background: #e0f2fe; color: #075985; }

.clean-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.clean-list li { padding: 16px; border-radius: 18px; border: 1px solid var(--line-soft); background: #f9fcff; }
.clean-list strong { color: var(--text); font-weight: 950; }
.clean-list small { display: block; color: var(--muted); margin-top: 6px; font-weight: 650; }

.alert {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow-soft);
  font-weight: 850;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.alert.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert.danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.empty-state { padding: 36px; text-align: center; display: grid; place-items: center; gap: 12px; color: var(--muted); }
.empty-mark { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), var(--blue)); color: white; font-weight: 950; }
.empty-state strong { color: var(--text); font-size: 20px; letter-spacing: -.03em; }
.empty-state p { margin: 0 0 6px; max-width: 420px; line-height: 1.65; }

.bar-row { display: grid; grid-template-columns: 120px 1fr 50px; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.bar-row div { height: 12px; background: #edf4fb; border-radius: 999px; overflow: hidden; }
.bar-row b { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); border-radius: 999px; }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(circle at 20% 10%, rgba(6,182,212,.22), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(37,99,235,.20), transparent 24%),
    linear-gradient(135deg, #07111f 0%, #0d1b31 55%, #030712 100%);
}

.login-card {
  width: min(470px, 100%);
  padding: 38px;
  border-radius: 30px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 35px 90px rgba(0,0,0,.32);
}

.login-logo { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), var(--blue)); color: white; font-weight: 950; margin-bottom: 22px; }
.login-card h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.05em; }
.login-card p { color: var(--muted); margin: 0 0 24px; line-height: 1.65; }

.mobile-backdrop { position: fixed; inset: 0; background: rgba(2, 8, 23, .55); z-index: 40; opacity: 0; pointer-events: none; transition: .2s ease; }

@media (max-width: 1280px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: 1fr; }
  .grid.two, .grid.three, .grid.equal { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: .22s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .mobile-backdrop { opacity: 1; pointer-events: auto; }
  .sidebar-close { display: grid; place-items: center; }
  .main { width: 100%; margin-left: 0; padding: 22px; }
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-right { justify-content: space-between; }
  .top-action { flex: 1; justify-content: center; }
  .profile-pill { display: none; }
  .search-form { width: 100%; }
  .actions-bar { flex-direction: column; align-items: stretch; }
  .search-form input { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 14px; }
  .main { padding: 16px; }
  .topbar h1 { font-size: 30px; }
  .topbar p { font-size: 14px; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-panel, .card, .premium-card, .quick-card { border-radius: 22px; padding: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  table { min-width: 820px; }
  .table-wrap { overflow-x: auto; }
  th, td { padding: 14px; }
}

@media (max-width: 420px) {
  .sidebar { width: 88vw; }
  .topbar-left { gap: 10px; }
  .top-action { width: 100%; }
}

/* =========================================================
   PATCH PREMIUM SOBRE — moins gras, plus élégant
   ========================================================= */

body {
  font-weight: 400;
  letter-spacing: -0.01em;
}

.topbar h1 {
  font-weight: 750 !important;
  letter-spacing: -0.045em !important;
  color: #101828 !important;
}

.topbar p {
  font-weight: 400 !important;
  color: #667085 !important;
}

.breadcrumb {
  font-weight: 700 !important;
  letter-spacing: .10em !important;
  color: #3b82f6 !important;
}

.hero-panel h2 {
  font-weight: 740 !important;
  letter-spacing: -0.045em !important;
}

.hero-panel p {
  font-weight: 400 !important;
  color: rgba(255,255,255,.70) !important;
}

.hero-label {
  font-weight: 650 !important;
  letter-spacing: .08em !important;
}

.brand strong {
  font-weight: 700 !important;
}

.brand span {
  font-weight: 500 !important;
}

.nav a {
  font-weight: 600 !important;
  color: #cbd5e1 !important;
}

.nav a.active {
  font-weight: 700 !important;
}

.nav-section {
  font-weight: 650 !important;
  color: #718096 !important;
}

.user-mini strong,
.profile-pill strong {
  font-weight: 650 !important;
}

.user-mini span,
.profile-pill span,
.sidebar-status {
  font-weight: 500 !important;
}

.logout {
  font-weight: 650 !important;
}

.stat-card span {
  font-weight: 600 !important;
  color: #667085 !important;
}

.stat-card strong {
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  color: #101828 !important;
}

.stat-card small {
  font-weight: 400 !important;
  color: #8a97a8 !important;
}

.card h2,
.premium-card h2,
.quick-card h2 {
  font-weight: 720 !important;
  letter-spacing: -0.035em !important;
  color: #101828 !important;
}

.quick-card strong {
  font-weight: 650 !important;
}

.quick-card p,
.card-subtitle {
  font-weight: 400 !important;
  color: #667085 !important;
}

button,
.btn,
.top-action {
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
}

th {
  font-weight: 650 !important;
  color: #7b8ba1 !important;
  letter-spacing: .07em !important;
}

td strong,
.cell-title {
  font-weight: 650 !important;
  color: #101828 !important;
}

td small,
.cell-sub {
  font-weight: 400 !important;
  color: #667085 !important;
}

.badge {
  font-weight: 600 !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 11.5px !important;
}

.clean-list strong {
  font-weight: 650 !important;
}

.clean-list small {
  font-weight: 400 !important;
}

.empty-state strong {
  font-weight: 650 !important;
}

label {
  font-weight: 600 !important;
  color: #344054 !important;
}

input,
select,
textarea {
  font-weight: 400 !important;
}

/* Cards plus fines */
.hero-panel,
.card,
.stat-card,
.premium-card,
.quick-card {
  box-shadow: 0 18px 48px rgba(15, 23, 42, .075) !important;
  border-color: rgba(220, 230, 241, .95) !important;
}

/* Sidebar plus chic */
.sidebar {
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, .12), transparent 24%),
    linear-gradient(180deg, #08111f 0%, #091426 48%, #050b15 100%) !important;
}

/* Boutons plus premium, moins flashy */
.btn.primary,
button.primary,
.top-action {
  background: linear-gradient(135deg, #0891b2, #2563eb) !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .18) !important;
}

/* Titres dashboard moins massifs */
.stat-card strong {
  font-size: clamp(25px, 2.1vw, 32px) !important;
}

/* Tableaux plus sobres */
td {
  color: #344054 !important;
}

tbody tr:hover td {
  background: #f9fbfe !important;
}

/* Moins d’effet “gras” sur les gros textes */
.hero-panel h2,
.topbar h1 {
  text-wrap: balance;
}


/* =========================================================
   PATCH FORMULAIRE APPELS — CHECKBOX + DATES + LAYOUT
   ========================================================= */

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.checkbox-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .03);
  font-weight: 500 !important;
  color: #344054 !important;
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  flex: 0 0 20px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid #b7c4d6 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  position: relative;
}

.checkbox-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #0891b2, #2563eb) !important;
  border-color: #2563eb !important;
}

.checkbox-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-item:hover {
  border-color: #c8d6e5;
  background: #fbfdff;
}

.date-hint {
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 400;
}

@media (max-width: 980px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   V2.3 — DETAIL CLIENT / DETAIL APPEL / ACCES
   ========================================================= */

.detail-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
}

.detail-stack {
  display: grid;
  gap: 22px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-item {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fbfdff;
}

.info-item span {
  display: block;
  color: #7b8ba1;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}

.info-item strong {
  display: block;
  color: #101828;
  font-weight: 600;
  word-break: break-word;
}

.section-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section-tabs a {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  font-weight: 600;
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  position: relative;
  padding: 16px 16px 16px 42px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fbfdff;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 6px rgba(37,99,235,.08);
}

.timeline-item strong {
  display: block;
  font-weight: 600;
  color: #101828;
}

.timeline-item small {
  display: block;
  margin-top: 6px;
  color: #667085;
  line-height: 1.5;
}

.secret-box {
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px dashed #b9c9dc;
}

.secret-box code {
  display: block;
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #07111f;
  color: #dff8ff;
  white-space: normal;
  word-break: break-word;
}

.danger-zone {
  border-color: #fecaca !important;
  background: #fffafa !important;
}

.danger-zone h2 {
  color: #991b1b !important;
}

.btn.danger {
  background: #fff;
  color: #991b1b;
  border-color: #fecaca;
}

.btn.danger:hover {
  background: #fef2f2;
}

.inline-form {
  display: inline;
}

.progress-line {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #edf3f8;
  overflow: hidden;
  margin-top: 10px;
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

@media (max-width: 1100px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .section-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .section-tabs a {
    white-space: nowrap;
  }
}

/* =========================================================
   FIX GLOBAL CHECKBOX — évite les énormes cases
   ========================================================= */

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid #b7c4d6 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #0891b2, #2563eb) !important;
  border-color: #2563eb !important;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #344054 !important;
  font-weight: 500 !important;
}

.delete-warning {
  padding: 16px;
  border-radius: 18px;
  background: #fff7f7;
  border: 1px solid #fecaca;
  color: #991b1b;
  line-height: 1.6;
}


/* =========================================================
   V2.4 — COCKPIT AUJOURD’HUI
   ========================================================= */

.today-layout {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 22px;
}

.today-stack {
  display: grid;
  gap: 22px;
}

.call-card {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #fbfdff;
  display: grid;
  gap: 14px;
}

.call-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.call-card-title strong {
  display: block;
  font-weight: 650;
  color: #101828;
  font-size: 16px;
}

.call-card-title small {
  display: block;
  margin-top: 5px;
  color: #667085;
  line-height: 1.4;
}

.call-card-message {
  color: #344054;
  line-height: 1.65;
  font-size: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line-soft);
}

.call-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.phone {
  background: #ecfeff;
  border-color: #bae6fd;
  color: #075985;
}

.btn.whatsapp {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.btn.done {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.btn.remind {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.priority-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.priority-chip {
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef4fb;
  color: #344054;
}

.priority-chip.urgent {
  background: #fee2e2;
  color: #991b1b;
}

.priority-chip.open {
  background: #e0f2fe;
  color: #075985;
}

.priority-chip.late {
  background: #ffedd5;
  color: #9a3412;
}

.today-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.today-section-title h2 {
  margin: 0;
}

.today-section-title span {
  color: #667085;
  font-size: 13px;
  font-weight: 500;
}

.reminder-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: #fbfdff;
  display: grid;
  gap: 10px;
}

.reminder-card strong {
  font-weight: 650;
  color: #101828;
}

.reminder-card small {
  color: #667085;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .today-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .call-card-head {
    flex-direction: column;
  }

  .call-actions .btn {
    width: 100%;
  }
}
