/*██████╗ ██╗   ██╗██╗      █████╗ ███╗   ██╗   ██████╗ ███████╗██╗   ██╗
  ██╔══██╗╚██╗ ██╔╝██║     ██╔══██╗████╗  ██║   ██╔══██╗██╔════╝██║   ██║
  ██║  ██║ ╚████╔╝ ██║     ███████║██╔██╗ ██║   ██║  ██║█████╗  ██║   ██║
  ██║  ██║  ╚██╔╝  ██║     ██╔══██║██║╚██╗██║   ██║  ██║██╔══╝  ╚██╗ ██╔╝
  ██████╔╝   ██║   ███████╗██║  ██║██║ ╚████║██╗██████╔╝███████╗ ╚████╔╝
  ╚═════╝    ╚═╝   ╚══════╝╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝╚═════╝ ╚══════╝  ╚═══╝
Système développer par dylanpointdev.fr | © DylanPointDev tout droit réservé.*/

/* =========================================================================
   SolutionCC — Thème "Light vert"
   Bootstrap 5.3 + Tabler Icons + Poppins
   ========================================================================= */

/* ---------- 1. Variables ---------- */
:root {
  /* Palette */
  --scc-bg: #FAFAFA;            /* Background principal */
  --scc-bg-menu: #F3F4F6;       /* Background secondaire (menu) */
  --scc-surface: #FFFFFF;       /* Cartes */
  --scc-main: #0E625B;          /* Couleur principale */
  --scc-main-hover: #0B4F49;
  --scc-secondary: #3FA7A0;     /* Couleur secondaire */
  --scc-accent: #14B8A6;        /* Couleur d'actif */
  --scc-main-soft: #E7F3F2;     /* Fond teinté (actif, icônes) */
  --scc-main-soft-2: #D3EAE8;
  --scc-text: #111827;          /* Texte principal */
  --scc-text-2: #6B7280;        /* Texte secondaire */
  --scc-border: #E5E7EB;        /* Bordures / dividers */

  --scc-success: #16A34A;
  --scc-success-soft: #E8F6EC;
  --scc-warning: #D97706;
  --scc-warning-soft: #FEF3E2;
  --scc-danger: #DC2626;
  --scc-danger-soft: #FDECEC;
  --scc-info: #2563EB;
  --scc-info-soft: #E8EFFD;

  --scc-radius: 12px;
  --scc-radius-sm: 8px;
  --scc-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 1px 3px rgba(17, 24, 39, .04);
  --scc-shadow-lg: 0 10px 30px rgba(17, 24, 39, .08);

  --scc-sidebar-w: 264px;
  --scc-sidebar-w-mini: 80px;
  --scc-topbar-h: 76px;

  /* Surcharge Bootstrap */
  --bs-body-font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: .9rem;
  --bs-body-color: var(--scc-text);
  --bs-body-bg: var(--scc-bg);
  --bs-secondary-color: var(--scc-text-2);
  --bs-border-color: var(--scc-border);
  --bs-border-radius: var(--scc-radius-sm);
  --bs-border-radius-lg: var(--scc-radius);
  --bs-primary: var(--scc-main);
  --bs-primary-rgb: 14, 98, 91;
  --bs-link-color: var(--scc-main);
  --bs-link-color-rgb: 14, 98, 91;
  --bs-link-hover-color: var(--scc-main-hover);
  --bs-link-hover-color-rgb: 11, 79, 73;
  --bs-success-rgb: 22, 163, 74;
  --bs-focus-ring-color: rgba(20, 184, 166, .25);
}

/* ---------- 2. Base ---------- */
body {
  font-family: var(--bs-body-font-family);
  background: var(--scc-bg);
  color: var(--scc-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--scc-text); }
.text-muted, .text-secondary { color: var(--scc-text-2) !important; }
.text-main { color: var(--scc-main) !important; }
.text-accent { color: var(--scc-accent) !important; }
.bg-main-soft { background: var(--scc-main-soft) !important; }
.fw-medium { font-weight: 500 !important; }
.fs-xs { font-size: .75rem !important; }
.ti { line-height: 1; vertical-align: -0.125em; }
::selection { background: var(--scc-main-soft-2); }

/* ---------- 3. Layout ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--scc-sidebar-w);
  background: var(--scc-bg-menu);
  border-right: 1px solid var(--scc-border);
  display: flex; flex-direction: column;
  z-index: 1040;
  transition: width .2s ease, transform .2s ease;
}
.app-main {
  flex: 1;
  margin-left: var(--scc-sidebar-w);
  min-width: 0;
  transition: margin-left .2s ease;
}
.app-content { padding: 8px 40px 40px; max-width: 1480px; }

/* Brand */
.sidebar-brand {
  height: var(--scc-topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 0 22px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--scc-main); }
.brand-logo {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--scc-main); color: #fff; font-size: 22px;
}
.brand-name { font-weight: 600; font-size: 1.15rem; line-height: 1.1; color: var(--scc-main); }
.brand-name small { display: block; font-size: .68rem; font-weight: 400; color: var(--scc-text-2); letter-spacing: .02em; }
.sidebar-toggle {
  border: 0; background: transparent; color: var(--scc-text-2);
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 18px;
}
.sidebar-toggle:hover { background: #E9EBEE; color: var(--scc-text); }

/* Nav */
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 14px; }
.nav-heading {
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #9CA3AF; padding: 18px 12px 8px;
}
.nav-link-scc {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; margin-bottom: 2px;
  border-radius: 10px;
  color: var(--scc-text); font-weight: 500; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-link-scc .ti { font-size: 21px; color: var(--scc-text); flex: 0 0 21px; }
.nav-link-scc:hover { background: #E9EBEE; color: var(--scc-text); }
.nav-link-scc.active { background: var(--scc-main-soft); color: var(--scc-main); }
.nav-link-scc.active .ti { color: var(--scc-main); }
.nav-link-scc.active::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--scc-main);
}
.nav-link-scc .badge { margin-left: auto; }


/* Sidebar réduite (desktop) */
.sidebar-mini .sidebar { width: var(--scc-sidebar-w-mini); }
.sidebar-mini .app-main { margin-left: var(--scc-sidebar-w-mini); }
.sidebar-mini .brand-name,
.sidebar-mini .nav-link-scc span,
.sidebar-mini .nav-link-scc .badge,
.sidebar-mini .nav-heading { display: none; }
.sidebar-mini .sidebar-brand { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 0; }
.sidebar-mini .sidebar-toggle .ti { transform: rotate(180deg); }
.sidebar-mini .nav-link-scc { justify-content: center; padding: 12px; }
.sidebar-mini .nav-heading { padding: 10px 0; }

/* Topbar */
.topbar {
  height: var(--scc-topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 40px;
  position: sticky; top: 0; z-index: 1020;
  background: rgba(250, 250, 250, .85);
  backdrop-filter: blur(8px);
}
.topbar .topbar-burger { display: none; }
.topbar-search { position: relative; width: 300px; margin-left: auto; }
.topbar-search .form-control { padding-right: 40px; height: 44px; background: var(--scc-surface); }
.topbar-search .ti { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--scc-text-2); }
.icon-btn {
  position: relative;
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  border: 1px solid var(--scc-border); background: var(--scc-surface);
  border-radius: 10px; color: var(--scc-text); font-size: 20px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: #D1D5DB; background: #F9FAFB; color: var(--scc-text); }
.icon-btn .dot {
  position: absolute; top: 10px; right: 11px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--scc-accent); border: 2px solid #fff;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--scc-main); color: #fff; font-weight: 600; font-size: .9rem;
}
.avatar-sm { width: 34px; height: 34px; font-size: .78rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-soft { background: var(--scc-main-soft); color: var(--scc-main); }
.user-btn {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--scc-border); background: var(--scc-surface);
  border-radius: 12px; padding: 4px 12px 4px 4px; color: var(--scc-text);
}
.user-btn .avatar { width: 36px; height: 36px; font-size: .8rem; }
.user-btn .name { font-weight: 500; font-size: .85rem; line-height: 1.1; text-align: left; }
.user-btn .name small { display: block; color: var(--scc-text-2); font-weight: 400; font-size: .72rem; }

/* En-tête de page */
.page-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin: 8px 0 28px;
}
.page-title { font-size: 1.6rem; font-weight: 600; margin: 0; }
.page-subtitle { color: var(--scc-text-2); margin: 4px 0 0; font-size: .88rem; }
.breadcrumb { font-size: .8rem; margin-bottom: 6px; --bs-breadcrumb-divider-color: #9CA3AF; }
.breadcrumb a { color: var(--scc-text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--scc-main); }
.breadcrumb .active { color: var(--scc-text); }

/* ---------- 4. Cartes ---------- */
.card {
  --bs-card-border-color: var(--scc-border);
  --bs-card-border-radius: var(--scc-radius);
  --bs-card-inner-border-radius: calc(var(--scc-radius) - 1px);
  --bs-card-cap-bg: transparent;
  --bs-card-spacer-x: 1.5rem;
  --bs-card-spacer-y: 1.25rem;
  background: var(--scc-surface);
  box-shadow: var(--scc-shadow);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
  border-bottom-color: var(--scc-border);
}
.card-title { font-size: 1.02rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-title .ti { color: var(--scc-main); font-size: 20px; }

/* Statistiques */
.stat-card { padding: 1.4rem 1.5rem; display: flex; flex-direction: row; align-items: center; justify-content: space-between; height: 100%; }
.stat-label { font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--scc-text); }
.stat-value { font-size: 1.9rem; font-weight: 600; line-height: 1.2; margin-top: 6px; }
.stat-trend { font-size: .76rem; font-weight: 500; margin-top: 4px; }
.stat-icon {
  width: 60px; height: 60px; flex: 0 0 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--scc-main-soft); color: var(--scc-main); font-size: 28px;
}
.icon-soft {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--scc-main-soft); color: var(--scc-main); font-size: 19px;
}
.icon-soft.warning { background: var(--scc-warning-soft); color: var(--scc-warning); }
.icon-soft.danger { background: var(--scc-danger-soft); color: var(--scc-danger); }
.icon-soft.info { background: var(--scc-info-soft); color: var(--scc-info); }

/* Liste "Résumé" */
.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--scc-border); }
.summary-list li:last-child { border-bottom: 0; }
.summary-list .value { margin-left: auto; font-weight: 600; font-size: 1.05rem; }

/* Mini graphique CA */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-chart .bar {
  width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px;
  background: var(--scc-main-soft-2); transition: background .15s;
}
.bar-chart .bar-col:hover .bar { background: var(--scc-secondary); }
.bar-chart .bar-col.current .bar { background: var(--scc-main); }
.bar-chart .bar-label { font-size: .7rem; color: var(--scc-text-2); }

/* ---------- 5. Boutons ---------- */
.btn { font-weight: 500; border-radius: 10px; padding: .55rem 1.05rem; font-size: .86rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn .ti { font-size: 18px; }
.btn-sm { padding: .38rem .75rem; font-size: .8rem; border-radius: 8px; }
.btn-sm .ti { font-size: 16px; }
.btn-lg { padding: .8rem 1.4rem; font-size: .95rem; }
.btn-primary {
  --bs-btn-bg: var(--scc-main); --bs-btn-border-color: var(--scc-main);
  --bs-btn-hover-bg: var(--scc-main-hover); --bs-btn-hover-border-color: var(--scc-main-hover);
  --bs-btn-active-bg: #093F3A; --bs-btn-active-border-color: #093F3A;
  --bs-btn-disabled-bg: var(--scc-main); --bs-btn-disabled-border-color: var(--scc-main);
}
.btn-light {
  --bs-btn-bg: var(--scc-surface); --bs-btn-border-color: var(--scc-border); --bs-btn-color: var(--scc-text);
  --bs-btn-hover-bg: #F9FAFB; --bs-btn-hover-border-color: #D1D5DB; --bs-btn-hover-color: var(--scc-text);
  --bs-btn-active-bg: #F3F4F6; --bs-btn-active-border-color: #D1D5DB;
}
.btn-soft {
  --bs-btn-bg: var(--scc-main-soft); --bs-btn-border-color: transparent; --bs-btn-color: var(--scc-main);
  --bs-btn-hover-bg: var(--scc-main-soft-2); --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: var(--scc-main);
  --bs-btn-active-bg: var(--scc-main-soft-2); --bs-btn-active-color: var(--scc-main);
}
.btn-soft-danger {
  --bs-btn-bg: var(--scc-danger-soft); --bs-btn-border-color: transparent; --bs-btn-color: var(--scc-danger);
  --bs-btn-hover-bg: #FBD9D9; --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: var(--scc-danger);
  --bs-btn-active-bg: #FBD9D9; --bs-btn-active-color: var(--scc-danger);
}
.btn-icon { width: 34px; height: 34px; padding: 0; }

/* ---------- 6. Formulaires ---------- */
.form-label { font-weight: 500; font-size: .84rem; margin-bottom: 6px; }
.form-control, .form-select {
  border-color: var(--scc-border); border-radius: 10px;
  padding: .62rem .9rem; font-size: .88rem; color: var(--scc-text);
}
.form-control::placeholder { color: #9CA3AF; }
.form-control:focus, .form-select:focus {
  border-color: var(--scc-accent);
  box-shadow: 0 0 0 .2rem rgba(20, 184, 166, .18);
}
.form-check-input:checked { background-color: var(--scc-main); border-color: var(--scc-main); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(20, 184, 166, .18); border-color: var(--scc-accent); }
.input-group-text { background: var(--scc-bg-menu); border-color: var(--scc-border); color: var(--scc-text-2); border-radius: 10px; }
.input-icon { position: relative; }
.input-icon .ti { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--scc-text-2); font-size: 18px; pointer-events: none; }
.input-icon .form-control { padding-left: 42px; }
.required { color: var(--scc-danger); }
.form-section-title { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--scc-text-2); margin: 8px 0 14px; }

.dropzone {
  border: 1.5px dashed #CBD5E1; border-radius: var(--scc-radius);
  background: #FCFCFD; padding: 28px; text-align: center; color: var(--scc-text-2);
  transition: border-color .15s, background .15s; cursor: pointer;
}
.dropzone:hover { border-color: var(--scc-accent); background: var(--scc-main-soft); }
.dropzone .ti { font-size: 32px; color: var(--scc-main); display: block; margin: 0 auto 8px; }

/* ---------- 7. Tableaux ---------- */
.table {
  --bs-table-color: var(--scc-text);
  --bs-table-border-color: var(--scc-border);
  --bs-table-hover-bg: #F9FAFB;
  margin: 0; font-size: .86rem;
}
.table > thead th {
  font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--scc-text-2); background: #FBFBFC;
  padding: 12px 16px; border-bottom-width: 1px; white-space: nowrap;
}
.table > tbody td { padding: 14px 16px; vertical-align: middle; }
.table > tbody tr:last-child td { border-bottom: 0; }
.table .cell-main { font-weight: 500; }
.table .cell-sub { display: block; color: var(--scc-text-2); font-size: .76rem; }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 1rem 1.5rem; border-bottom: 1px solid var(--scc-border); }
.table-toolbar .input-icon { width: 280px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.5rem; border-top: 1px solid var(--scc-border); color: var(--scc-text-2); font-size: .8rem; }
.pagination { --bs-pagination-color: var(--scc-text); --bs-pagination-border-color: var(--scc-border); --bs-pagination-active-bg: var(--scc-main); --bs-pagination-active-border-color: var(--scc-main); --bs-pagination-hover-color: var(--scc-main); --bs-pagination-focus-box-shadow: none; --bs-pagination-font-size: .8rem; margin: 0; }

/* ---------- 8. Badges ---------- */
.badge-soft {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 500; padding: 4px 10px; border-radius: 6px;
  background: var(--scc-main-soft); color: var(--scc-main); white-space: nowrap;
}
.badge-soft .ti { font-size: 14px; }
.badge-soft.success { background: var(--scc-success-soft); color: var(--scc-success); }
.badge-soft.warning { background: var(--scc-warning-soft); color: var(--scc-warning); }
.badge-soft.danger  { background: var(--scc-danger-soft);  color: var(--scc-danger); }
.badge-soft.info    { background: var(--scc-info-soft);    color: var(--scc-info); }
.badge-soft.neutral { background: #F3F4F6; color: var(--scc-text-2); }
.badge-count { background: #E5E7EB; color: var(--scc-text-2); font-weight: 600; font-size: .7rem; border-radius: 20px; padding: 2px 8px; }
.nav-link-scc.active .badge-count, .subnav .active .badge-count { background: var(--scc-main); color: #fff; }

/* ---------- 9. Fiche client ---------- */
.profile-card { text-align: center; padding: 1.8rem 1.5rem 1.4rem; }
.profile-card .avatar { margin: 0 auto 12px; }
.profile-meta { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; }
.profile-meta li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .84rem; color: var(--scc-text-2); }
.profile-meta .ti { font-size: 18px; color: var(--scc-text-2); }

.subnav { list-style: none; padding: 8px; margin: 0; }
.subnav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--scc-text); text-decoration: none; font-weight: 500; font-size: .87rem;
}
.subnav a .ti { font-size: 19px; color: var(--scc-text-2); }
.subnav a:hover { background: #F3F4F6; }
.subnav a.active { background: var(--scc-main-soft); color: var(--scc-main); }
.subnav a.active .ti { color: var(--scc-main); }
.subnav .badge-count { margin-left: auto; }

.tool-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--scc-border); }
.tool-row:last-child { border-bottom: 0; }

/* Équipements */
.equip-card { padding: 1.2rem; display: flex; flex-direction: row; gap: 14px; align-items: flex-start; height: 100%; transition: border-color .15s, box-shadow .15s; text-decoration: none; color: inherit; }
.equip-card:hover { border-color: var(--scc-secondary); box-shadow: var(--scc-shadow-lg); color: inherit; }
.equip-card .icon-soft { width: 46px; height: 46px; flex-basis: 46px; font-size: 24px; border-radius: 12px; }
.photo-thumb {
  aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--scc-border);
  background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
  display: grid; place-items: center; color: #9CA3AF; font-size: 30px;
}
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.info-grid dt { font-size: .74rem; font-weight: 500; color: var(--scc-text-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.info-grid dd { margin: 0; font-weight: 500; }

/* Fichiers */
.file-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--scc-border); border-radius: 10px; background: var(--scc-surface); }
.file-item + .file-item { margin-top: 8px; }
.file-item .name { font-weight: 500; font-size: .85rem; }
.file-item .meta { font-size: .74rem; color: var(--scc-text-2); }
.folder-card { padding: 1rem 1.1rem; display: flex; flex-direction: row; align-items: center; gap: 12px; cursor: pointer; transition: border-color .15s; }
.folder-card:hover, .folder-card.active { border-color: var(--scc-secondary); }
.folder-card.active { background: var(--scc-main-soft); }

/* ---------- 10. Document devis / facture ---------- */
.doc-paper { background: #fff; border: 1px solid var(--scc-border); border-radius: var(--scc-radius); box-shadow: var(--scc-shadow); padding: 48px 56px; }
.doc-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.doc-number { font-size: 1.5rem; font-weight: 600; color: var(--scc-main); }
.doc-party { font-size: .85rem; line-height: 1.65; color: var(--scc-text-2); }
.doc-party strong { color: var(--scc-text); font-size: .95rem; }
.doc-table th { background: var(--scc-main) !important; color: #fff !important; }
.doc-table td.text-end, .doc-table td.text-center { white-space: nowrap; }
.doc-table th:first-child { border-top-left-radius: 8px; }
.doc-table th:last-child { border-top-right-radius: 8px; }
.doc-totals { width: 300px; margin-left: auto; font-size: .88rem; }
.doc-totals .row-t { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--scc-border); }
.doc-totals .row-t.grand { border: 0; background: var(--scc-main-soft); color: var(--scc-main); font-weight: 600; font-size: 1rem; padding: 12px 14px; border-radius: 8px; margin-top: 8px; }
.doc-foot { border-top: 1px solid var(--scc-border); margin-top: 40px; padding-top: 16px; font-size: .74rem; color: var(--scc-text-2); text-align: center; }

.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 12px; padding-bottom: 18px; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--scc-border); }
.steps .step-dot { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: #F3F4F6; color: #9CA3AF; }
.steps li.done .step-dot { background: var(--scc-main); color: #fff; }
.steps li.done:not(:last-child)::after { background: var(--scc-secondary); }
.steps .step-title { font-weight: 500; font-size: .86rem; }
.steps .step-sub { font-size: .75rem; color: var(--scc-text-2); }

/* ---------- 11. Divers ---------- */
.nav-tabs-scc { border-bottom: 1px solid var(--scc-border); gap: 4px; }
.nav-tabs-scc .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--scc-text-2); font-weight: 500; padding: 12px 14px; border-radius: 0; }
.nav-tabs-scc .nav-link:hover { color: var(--scc-text); }
.nav-tabs-scc .nav-link.active { color: var(--scc-main); border-bottom-color: var(--scc-main); background: transparent; }

.modal-content { border: 0; border-radius: 16px; box-shadow: var(--scc-shadow-lg); }
.modal-header { border-bottom-color: var(--scc-border); padding: 1.2rem 1.5rem; }
.modal-title { font-weight: 600; font-size: 1.05rem; }
.modal-body { padding: 1.5rem; }
.modal-footer { border-top-color: var(--scc-border); padding: 1rem 1.5rem; }
.dropdown-menu { border-color: var(--scc-border); border-radius: 12px; box-shadow: var(--scc-shadow-lg); padding: 6px; font-size: .86rem; }
.dropdown-item { border-radius: 8px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; }
.dropdown-item .ti { font-size: 18px; color: var(--scc-text-2); }
.dropdown-item:active { background: var(--scc-main); }
.alert { border-radius: 10px; font-size: .86rem; display: flex; gap: 10px; align-items: flex-start; }
.alert .ti { font-size: 20px; }
.alert-scc { background: var(--scc-main-soft); border-color: var(--scc-main-soft-2); color: var(--scc-main); }
.alert-warning { background: var(--scc-warning-soft); border-color: #FBE3BF; color: #92400E; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--scc-text-2); }
.empty-state .ti { font-size: 40px; color: #CBD5E1; }
.divider { height: 1px; background: var(--scc-border); margin: 20px 0; }
/* Footer */
.app-footer {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 22px;
  padding: 22px 40px; border-top: 1px solid var(--scc-border);
  color: var(--scc-text-2); font-size: .85rem;
}
.footer-divider { width: 1px; height: 26px; background: var(--scc-border); }
.footer-dev {
  display: inline-flex; align-items: center; gap: 7px; line-height: 1;
  color: var(--scc-text-2); font-weight: 600; text-decoration: none;
  transition: color .15s;
}
.footer-dev:hover { color: var(--scc-text); }
.footer-dev-logo { width: 18px; height: 18px; border-radius: 4px; display: block; flex: 0 0 18px; }

/* ---------- 12. Page de connexion ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--scc-surface); }
.auth-aside {
  position: relative; overflow: hidden;
  background: var(--scc-main); color: #fff;
  padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside::before, .auth-aside::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, .55), rgba(20, 184, 166, 0) 70%);
}
.auth-aside::before { width: 520px; height: 520px; right: -160px; top: -140px; }
.auth-aside::after { width: 420px; height: 420px; left: -140px; bottom: -160px; background: radial-gradient(circle, rgba(63, 167, 160, .5), rgba(63, 167, 160, 0) 70%); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand-logo { background: rgba(255, 255, 255, .14); }
.auth-aside .brand-name, .auth-aside .brand-name small { color: #fff; }
.auth-aside .brand-name small { opacity: .7; }
.auth-aside h2 { color: #fff; font-size: 2.1rem; line-height: 1.25; font-weight: 600; max-width: 460px; }
.auth-aside p { color: rgba(255, 255, 255, .75); max-width: 440px; }
.auth-features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-features li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .9); font-size: .9rem; }
.auth-features .ti { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 19px; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--scc-bg); }
.auth-form { width: 100%; max-width: 400px; }
.auth-form .form-control { height: 50px; }
.auth-form .btn-primary { height: 50px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--scc-text-2); width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.password-toggle:hover { background: #F3F4F6; }

/* ---------- 12b. Appli hors ligne ---------- */
/* Indicateur de synchronisation (barre du haut) */
.sync-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px;
  padding: 0 14px; border-radius: 10px; border: 1px solid var(--scc-border);
  background: var(--scc-surface); font-size: .82rem; font-weight: 500; color: var(--scc-text);
}
.sync-btn .ti { font-size: 19px; }
.sync-btn.success .ti { color: var(--scc-success); }
.sync-btn.warning .ti { color: var(--scc-warning); }
.sync-btn.danger { border-color: #F5C2C2; background: var(--scc-danger-soft); color: var(--scc-danger); }
.sync-btn.info .ti { color: var(--scc-info); }
.sync-btn.spinning .ti { animation: scc-spin 1s linear infinite; }
.sync-count { background: var(--scc-warning); color: #fff; font-size: .7rem; font-weight: 600; border-radius: 20px; padding: 1px 7px; }
@keyframes scc-spin { to { transform: rotate(360deg); } }
.sync-facts, .sync-issues { list-style: none; padding: 0; margin: 0 0 12px; font-size: .82rem; }
.sync-facts li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--scc-border); color: var(--scc-text-2); }
.sync-facts li strong { color: var(--scc-text); font-weight: 500; }
.sync-issues li { display: flex; gap: 8px; padding: 6px 0; }

/* Notifications (toasts) */
.toast-zone { position: fixed; right: 24px; bottom: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast-scc {
  display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px;
  background: var(--scc-text); color: #fff; padding: 12px 16px; border-radius: 12px;
  box-shadow: var(--scc-shadow-lg); font-size: .86rem;
  animation: scc-toast-in .2s ease-out; transition: opacity .3s, transform .3s;
}
.toast-scc .ti { font-size: 20px; }
.toast-scc.success .ti { color: #5EEAD4; }
.toast-scc.error { background: var(--scc-danger); }
.toast-scc.hide { opacity: 0; transform: translateY(8px); }
@keyframes scc-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Chargement */
.skeleton { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #F3F4F6, #E9EBEE, #F3F4F6); background-size: 200% 100%; animation: scc-shimmer 1.2s infinite; }
@keyframes scc-shimmer { to { background-position: -200% 0; } }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--scc-danger); box-shadow: none; }

/* Signature au stylet */
.signature-pad {
  display: block; width: 100%; height: 190px; touch-action: none; cursor: crosshair;
  background: #fff; border: 1.5px dashed #CBD5E1; border-radius: var(--scc-radius-sm);
}
.signature-pad.locked { cursor: default; border-style: solid; }
.signature-img { display: block; width: 100%; height: 190px; object-fit: contain; background: #fff; border: 1px solid var(--scc-border); border-radius: var(--scc-radius-sm); }
.signature-label { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; font-weight: 500; margin-bottom: 6px; }
.print-only { display: none; }
.doc-section-title { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--scc-main); margin: 22px 0 8px; }
.doc-text { white-space: pre-wrap; font-size: .88rem; line-height: 1.6; min-height: 40px; }
.doc-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.doc-signatures img { width: 100%; height: 120px; object-fit: contain; border-bottom: 1px solid var(--scc-border); }

/* Surface Pro en mode tablette (doigt / stylet) : cibles plus grandes */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; padding: .45rem .85rem; }
  .btn-icon.btn-sm { width: 38px; height: 38px; }
  .form-control, .form-select { min-height: 46px; font-size: .95rem; }
  .nav-link-scc { padding: 13px 14px; }
  .table > tbody td { padding: 16px; }
  .dropdown-item { padding: 11px 12px; }
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1199.98px) {
  .app-content { padding: 8px 24px 32px; }
  .topbar { padding: 0 24px; }
}
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); width: var(--scc-sidebar-w) !important; box-shadow: var(--scc-shadow-lg); }
  .app-main { margin-left: 0 !important; }
  .sidebar-open .sidebar { transform: none; }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .35); z-index: 1035; display: none; }
  .sidebar-open .sidebar-backdrop { display: block; }
  .topbar .topbar-burger { display: grid; }
  .topbar-search { width: auto; flex: 1; max-width: 300px; }
  .user-btn .name, .user-btn .ti-chevron-down { display: none; }
  .user-btn { padding: 3px; border-radius: 50%; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .doc-paper { padding: 28px 22px; }
}
@media (max-width: 575.98px) {
  .topbar-search { display: none; }
  .sync-label { display: none; }
  .topbar-burger { margin-right: auto; }
  .app-content { padding: 4px 16px 24px; }
  .topbar { padding: 0 16px; }
  .table-toolbar .input-icon { width: 100%; }
  .doc-totals { width: 100%; }
}

@media (max-width: 767.98px) {
  .footer-divider { display: none; }
  .app-footer { flex-direction: column; padding: 18px 16px; }
}

/* Impression des devis / factures */
@media print {
  .print-only { display: block !important; }
  .sidebar, .topbar, .page-header, .no-print, .app-footer { display: none !important; }
  .app-main { margin: 0 !important; }
  .app-content { padding: 0; }
  .doc-paper { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; }
}
