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

/* ══════════════════════════════════════════
   DENTIKOO — GUIDE D'UTILISATION
   Design System v2.0
══════════════════════════════════════════ */

:root {
  /* Dentikoo Brand Colors */
  --dk-navy: #0d2d6b;
  --dk-navy-deep: #071a42;
  --dk-blue: #1a73e8;
  --dk-blue-mid: #2563c4;
  --dk-cyan: #00c2e0;
  --dk-cyan-lt: #e6f9fc;
  --dk-white: #ffffff;
  --dk-cream: #f4f7fb;
  --dk-gold: #f0a500;

  /* Semantic */
  --success: #10b981;
  --success-lt: #ecfdf5;
  --warning: #f59e0b;
  --warning-lt: #fffbeb;
  --danger: #ef4444;
  --danger-lt: #fef2f2;
  --purple: #8b5cf6;
  --purple-lt: #f5f3ff;

  /* Neutral */
  --g50: #f8fafc;
  --g100: #f1f5f9;
  --g200: #e2e8f0;
  --g300: #cbd5e1;
  --g400: #94a3b8;
  --g500: #64748b;
  --g700: #334155;
  --g900: #0f172a;

  /* Layout */
  --sidebar: 272px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm:
    0 1px 3px rgba(13, 45, 107, 0.08), 0 1px 2px rgba(13, 45, 107, 0.05);
  --shadow: 0 4px 20px rgba(13, 45, 107, 0.1);
  --shadow-lg: 0 16px 48px rgba(13, 45, 107, 0.16);
  --border: 1px solid var(--g200);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--g700);
  display: flex;
  min-height: 100vh;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   ONBOARDING BANNER — GUIDE DE DÉMARRAGE
══════════════════════════════════════════ */
#onboarding-banner {
  position: fixed;
  top: 0;
  left: var(--sidebar); /* après la sidebar sur desktop */
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #071a42 0%, #0d2d6b 60%, #1a3a8f 100%);
  border-bottom: 2px solid var(--dk-cyan);
  box-shadow: 0 8px 40px rgba(7, 26, 66, 0.55);
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;

  left: var(--sidebar); /* ← commence après la sidebar */
  right: 0;
}
#onboarding-banner.hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

/* Décoration lumineuse */
#onboarding-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(0, 194, 224, 0.18) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}
#onboarding-banner::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 200px;
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(26, 115, 232, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.ob-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 22px 36px;
  position: relative;
  z-index: 1;
}

.ob-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ob-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.ob-badge-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: ob-pulse 1.4s ease-in-out infinite;
}
@keyframes ob-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

.ob-title {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--dk-white);
  letter-spacing: -0.3px;
  flex: 1;
}
.ob-title span {
  color: var(--dk-cyan);
}

.ob-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.ob-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.ob-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Steps obligatoires */
.ob-steps {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ob-step {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition:
    border-color 0.2s,
    background 0.2s;
  position: relative;
  overflow: hidden;
}
.ob-step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 194, 224, 0.3);
}
.ob-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--dk-cyan), var(--dk-blue));
  opacity: 0;
  transition: opacity 0.2s;
}
.ob-step:hover::before {
  opacity: 1;
}

.ob-step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--dk-cyan), var(--dk-blue));
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 194, 224, 0.3);
}

.ob-step-content {
}
.ob-step-label {
  font-size: 11px;
  color: var(--dk-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}
.ob-step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dk-white);
  margin-bottom: 4px;
  line-height: 1.3;
}
.ob-step-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.962);
  line-height: 1.5;
}

/* Flèche entre les steps */
.ob-arrow {
  color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  font-size: 22px;
  padding-top: 8px;
  flex-shrink: 0;
}

/* Footer du banner */
.ob-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ob-footer-note {
  font-size: 12px;
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ob-dismiss-btn {
  background: var(--dk-cyan);
  color: var(--dk-navy-deep);
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.3px;
}
.ob-dismiss-btn:hover {
  background: #00dafa;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 194, 224, 0.4);
}

/* Quand le banner est visible, décaler le topbar et le main */
body.ob-visible #main {
  margin-top: var(--ob-height, 0px);
}
body.ob-visible .topbar {
  top: var(--ob-height, 0px);
}
/* Sidebar aussi sur les grands écrans */

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar);
  height: 100vh;
  background: var(--dk-navy-deep);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__logo {
  font-size: 25px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
}
.nav__logo-o {
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--dk-blue);
}

.brand-text p {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

/* Nav */
.sidebar-nav {
  padding: 14px 12px;
  flex: 1;
}

.nav-group-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  padding: 16px 10px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: rgb(255 255 255 / 85%);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s ease;
  text-decoration: none;
  margin-bottom: 1px;
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.nav-link.active {
  background: linear-gradient(90deg, var(--dk-blue), var(--dk-blue-mid));
  color: var(--dk-white);
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(26, 115, 232, 0.35);
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  font-weight: bolder;
}
.nav-link.active .nav-icon {
  opacity: 1;
}

.nav-pill {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1px 6px;
  font-size: 10px;
  font-family: "Poppins", sans-serif;
}
.nav-link.active .nav-pill {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}
.sidebar-footer strong {
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

#sidebar::-webkit-scrollbar {
  width: 3px;
}
#sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* ══════════════════════════════════════════
   MAIN + TOPBAR
══════════════════════════════════════════ */
#main {
  margin-left: var(--sidebar);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border);
  padding: 0 36px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: var(--dk-navy);
  border: none;
  color: white;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.breadcrumb {
  font-size: 12.5px;
  color: var(--g400);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb span {
  color: var(--dk-navy);
  font-weight: 600;
}
.breadcrumb-sep {
  opacity: 0.4;
}

.topbar-search {
  position: relative;
  width: 280px;
}
.topbar-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--dk-white);
  font-size: 13px;
  font-family: inherit;
  color: var(--g900);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.topbar-search input:focus {
  border-color: var(--dk-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}
.topbar-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  color: var(--g400);
}

/* ══════════════════════════════════════════
   CONTENT
══════════════════════════════════════════ */
.content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 44px 36px 80px;
  width: 100%;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  background: linear-gradient(
    135deg,
    var(--dk-navy-deep) 0%,
    var(--dk-navy) 50%,
    #1a3a8f 100%
  );
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  margin-bottom: 52px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(0, 194, 224, 0.2) 0%,
    transparent 65%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 25%;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(26, 115, 232, 0.18) 0%,
    transparent 65%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 194, 224, 0.15);
  border: 1px solid rgba(0, 194, 224, 0.3);
  color: var(--dk-cyan);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-family: "Poppins", sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--dk-white);
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.hero h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--dk-cyan), var(--dk-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-brand {
  display: inline;
}
.logo-denti-hero {
  color: var(--dk-white);
  font-style: normal;
}
.logo-koo-hero {
  color: var(--dk-cyan);
  font-style: normal;
}

.hero p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.75;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--dk-white);
  line-height: 1;
}

.hero-stat .lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.section {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  /* Espace à gauche pour le numéro filigrane */
  padding-left: 80px;
  position: relative;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   SECTION NUMBER WATERMARK
══════════════════════════════════════════ */
.section-number {
  position: absolute;
  left: -40px;
  top: 0;
  font-family: "Poppins", sans-serif;
  font-size: 100px;
  font-weight: 900;
  color: var(--dk-navy);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -4px;
  line-height: 0.85;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: var(--border);
  position: relative;
  z-index: 1;
}

.section-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-icon svg {
  width: 22px;
  height: 22px;
}

.section-icon.blue {
  background: #dbeafe;
  color: var(--dk-blue);
}
.section-icon.navy {
  background: #e8edf8;
  color: var(--dk-navy);
}
.section-icon.cyan {
  background: var(--dk-cyan-lt);
  color: #0098b2;
}
.section-icon.green {
  background: var(--success-lt);
  color: var(--success);
}
.section-icon.red {
  background: var(--danger-lt);
  color: var(--danger);
}
.section-icon.orange {
  background: var(--warning-lt);
  color: var(--warning);
}
.section-icon.purple {
  background: var(--purple-lt);
  color: var(--purple);
}
.section-icon.gold {
  background: #fef9ec;
  color: var(--dk-gold);
}

.section-title h3 {
  font-family: "Poppins", sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--dk-navy);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.section-title p {
  font-size: 13.5px;
  color: var(--g400);
}

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.card {
  background: var(--dk-white);
  border-radius: var(--radius);
  border: var(--border);
  padding: 22px 24px;
  margin-bottom: 14px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  position: relative;
  z-index: 1;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--g300);
}

.card h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dk-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-chip {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--dk-blue), var(--dk-navy));
  color: white;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: "Poppins", sans-serif;
}

.card p,
.card li {
  font-size: 13.5px;
  color: var(--g500);
  line-height: 1.7;
}
.card ul {
  list-style: none;
  padding: 0;
}
.card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--g50);
}
.card ul li:last-child {
  border-bottom: none;
}

.card ul li::before {
  content: "›";
  color: var(--dk-blue);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ══════════════════════════════════════════
   STEPS FLOW
══════════════════════════════════════════ */
.steps-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.step-row {
  display: flex;
  gap: 18px;
  position: relative;
}

.step-row:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  width: 2px;
  height: calc(100% - 6px);
  background: linear-gradient(to bottom, var(--dk-blue), var(--g200));
}

.step-dot {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--dk-blue), var(--dk-navy));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 5px #dbeafe;
}

.step-body {
  background: var(--dk-white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  flex: 1;
  transition: box-shadow 0.2s;
}
.step-body:hover {
  box-shadow: var(--shadow-sm);
}
.step-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dk-navy);
  margin-bottom: 6px;
}
.step-body p {
  font-size: 13px;
  color: var(--g500);
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   CALLOUTS
══════════════════════════════════════════ */
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 13.5px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.callout-ico {
  flex-shrink: 0;
  margin-top: 1px;
}

.callout.info {
  background: #eff6ff;
  border-left: 3px solid var(--dk-blue);
  color: #1e40af;
}
.callout.cyan {
  background: var(--dk-cyan-lt);
  border-left: 3px solid var(--dk-cyan);
  color: #006f82;
}
.callout.warn {
  background: var(--warning-lt);
  border-left: 3px solid var(--warning);
  color: #92400e;
}
.callout.danger {
  background: var(--danger-lt);
  border-left: 3px solid var(--danger);
  color: #991b1b;
}
.callout.tip {
  background: #fef9ec;
  border-left: 3px solid var(--dk-gold);
  color: #78450f;
}
.callout.purple {
  background: var(--purple-lt);
  border-left: 3px solid var(--purple);
  color: #5b21b6;
}

/* ══════════════════════════════════════════
   BADGES
══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}
.badge.blue {
  background: #dbeafe;
  color: var(--dk-blue-mid);
}
.badge.navy {
  background: #e8edf8;
  color: var(--dk-navy);
}
.badge.cyan {
  background: var(--dk-cyan-lt);
  color: #0098b2;
}
.badge.green {
  background: var(--success-lt);
  color: var(--success);
}
.badge.red {
  background: var(--danger-lt);
  color: var(--danger);
}
.badge.orange {
  background: var(--warning-lt);
  color: var(--warning);
}
.badge.purple {
  background: var(--purple-lt);
  color: var(--purple);
}
.badge.gold {
  background: #fef9ec;
  color: #92400e;
}

/* ══════════════════════════════════════════
   TABLE
══════════════════════════════════════════ */
.tbl-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--dk-white);
}

thead tr {
  background: linear-gradient(90deg, var(--dk-navy-deep), var(--dk-navy));
}
thead th {
  text-align: left;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
}

tbody tr {
  border-bottom: var(--border);
  transition: background 0.15s;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--g50);
}
tbody td {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--g700);
  vertical-align: top;
}
tbody td:first-child {
  font-weight: 500;
  color: var(--dk-navy);
}

/* ══════════════════════════════════════════
   FORMULA BOX
══════════════════════════════════════════ */
.formula-box {
  background: linear-gradient(135deg, var(--dk-navy-deep), var(--dk-navy));
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 16px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.formula-box::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 194, 224, 0.2), transparent 70%);
  border-radius: 50%;
}

.formula-label {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

.formula-main {
  font-size: 22px;
  color: var(--dk-white);
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}
.formula-main .f-cyan {
  color: var(--dk-cyan);
}
.formula-main .f-gold {
  color: var(--dk-gold);
}

.formula-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 10px;
  font-family: "Poppins", sans-serif;
}

/* ══════════════════════════════════════════
   UI MOCK
══════════════════════════════════════════ */
.ui-mock {
  background: var(--g50);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
  position: relative;
  z-index: 1;
}

.ui-mock-bar {
  background: var(--dk-navy);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mock-dot.r {
  background: #ff5f57;
}
.mock-dot.y {
  background: #febc2e;
}
.mock-dot.g {
  background: #28c840;
}
.mock-bar-title {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  margin-left: 8px;
  font-family: "Poppins", sans-serif;
}

.ui-mock-body {
  padding: 16px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--dk-white);
  border: var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--g700);
}
.mock-row:last-child {
  margin-bottom: 0;
}
.mock-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-time {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  color: var(--dk-navy);
  font-weight: 500;
}
.mock-patient {
  flex: 1;
  font-size: 13px;
}
.mock-act {
  font-size: 11.5px;
  color: var(--g400);
}

/* ══════════════════════════════════════════
   ACCORDION
══════════════════════════════════════════ */
.accordion {
  margin: 16px 0;
  position: relative;
  z-index: 1;
}

.acc-item {
  background: var(--dk-white);
  border: var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.acc-item:has(.acc-header.open) {
  box-shadow: var(--shadow-sm);
  border-color: var(--dk-blue);
}

.acc-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  color: var(--dk-navy);
  user-select: none;
  transition:
    background 0.15s,
    color 0.15s;
  gap: 12px;
}
.acc-header:hover {
  background: var(--g50);
}
.acc-header.open {
  color: var(--dk-blue);
}

.acc-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
  color: var(--g400);
  flex-shrink: 0;
}
.acc-header.open .acc-arrow {
  transform: rotate(180deg);
  color: var(--dk-blue);
}

.acc-body {
  display: none;
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--g500);
  line-height: 1.7;
  border-top: var(--border);
}
.acc-body.open {
  display: block;
}
.acc-body p {
  margin-top: 12px;
}
.acc-body ul {
  margin-top: 8px;
  list-style: none;
  padding: 0;
}
.acc-body ul li {
  padding: 4px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.acc-body ul li::before {
  content: "›";
  color: var(--dk-blue);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   GRID
══════════════════════════════════════════ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0;
}

/* KPI cards */
.kpi-card {
  padding: 18px 20px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--dk-white);
  transition: box-shadow 0.2s;
}
.kpi-card:hover {
  box-shadow: var(--shadow-sm);
}
.kpi-label {
  font-size: 11px;
  color: var(--g400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Poppins", sans-serif;
}
.kpi-value {
  font-family: "Poppins", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dk-navy);
  margin: 6px 0;
}
.kpi-value.danger {
  color: var(--danger);
}
.kpi-meta {
  font-size: 12px;
  color: var(--g400);
  display: flex;
  align-items: center;
  gap: 5px;
}
.kpi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.kpi-dot.green {
  background: var(--success);
}
.kpi-dot.red {
  background: var(--danger);
}

/* Pricing cards */
.price-mode-cards {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.price-mode {
  flex: 1;
  min-width: 200px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--g200);
  background: var(--dk-white);
  transition: border-color 0.2s;
}
.price-mode.highlight {
  border-color: var(--dk-blue);
  background: #eff6ff;
}
.price-mode-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.price-mode-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dk-navy);
  margin-bottom: 4px;
}
.price-mode-desc {
  font-size: 12.5px;
  color: var(--g500);
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   TEMPLATES SHOWCASE
══════════════════════════════════════════ */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
  position: relative;
  z-index: 1;
}

.tpl-card {
  background: var(--dk-white);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.tpl-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tpl-preview {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.tpl-info {
  padding: 12px 14px;
}
.tpl-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dk-navy);
  margin-bottom: 2px;
  font-family: "Poppins", sans-serif;
}
.tpl-style {
  font-size: 11.5px;
  color: var(--g400);
  margin-bottom: 8px;
}
.tpl-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════ */
.progress-wrap {
  margin: 20px 0;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--g400);
  margin-bottom: 8px;
}
.progress-track {
  height: 7px;
  background: var(--g100);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dk-blue), var(--dk-cyan));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.doc-footer {
  border-top: var(--border);
  padding-top: 32px;
  margin-top: 16px;
  text-align: center;
  color: var(--g400);
  font-size: 12.5px;
}
.doc-footer p + p {
  margin-top: 4px;
}
.doc-footer strong {
  color: var(--dk-navy);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .section {
    padding-left: 60px;
  }
  .section-number {
    font-size: 80px;
    left: -8px;
  }
}

@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
  }
  #sidebar.open {
    transform: translateX(0);
  }
  #main {
    margin-left: 0;
  }
  .content {
    padding: 24px 20px 60px;
  }
  .hero {
    padding: 32px 28px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .topbar {
    padding: 0 20px;
  }
  .topbar-search {
    display: none;
  }
  .grid-2,
  .grid-3,
  .tpl-grid {
    grid-template-columns: 1fr;
  }
  .mobile-toggle {
    display: flex;
  }
  .price-mode-cards {
    flex-direction: column;
  }
  /* Sur mobile : numéro plus petit, padding réduit */
  .section {
    padding-left: 44px;
  }
  .section-number {
    font-size: 60px;
    left: -4px;
    opacity: 0.06;
  }
}

@media (max-width: 480px) {
  .section {
    padding-left: 36px;
  }
  .section-number {
    font-size: 48px;
    left: -2px;
  }
}

@media print {
  #sidebar,
  .topbar {
    display: none;
  }
  #main {
    margin-left: 0;
  }
  .section {
    opacity: 1;
    transform: none;
  }
  .section-number {
    display: none;
  }
}

@media (max-width: 768px) {
  #onboarding-banner {
    left: 0;
  }
}
