/* ================================================================
   tally.css — LionTech Business Manager
   Design technologique · Mobile-first · Font Awesome icons
   Inspiré ServiRapide · Version finale
   ================================================================ */

/* ── GOOGLE FONTS + FONT AWESOME ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&family=Sora:wght@700;800;900&display=swap');

/* ── VARIABLES ── */
:root {
  --navy:    #0B1F3A;
  --navy-2:  #132840;
  --navy-3:  #1E3A5F;
  --gold:    #D4A017;
  --gold-2:  #F0C040;
  --teal:    #1A9E7A;
  --teal-2:  #22C9A0;
  --red:     #EF4444;
  --orange:  #F59E0B;
  --blue:    #3B82F6;
  --bg:      #F0F4F8;
  --card:    #FFFFFF;
  --border:  #E2E8F0;
  --text:    #0F172A;
  --text-2:  #334155;
  --muted:   #64748B;
  --light:   #94A3B8;

  /* Shadows */
  --sh-sm:  0 4px 12px rgba(11,31,58,.08);
  --sh-md:  0 10px 30px rgba(11,31,58,.12);
  --sh-lg:  0 20px 50px rgba(11,31,58,.16);
  --sh-gold: 0 8px 24px rgba(212,160,23,.35);
  --sh-teal: 0 8px 24px rgba(26,158,122,.30);

  /* Geometry */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Motion */
  --ease:   cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --fast:   150ms;
  --mid:    260ms;
  --slow:   420ms;

  /* Layout */
  --sidebar-w:  268px;
  --topbar-h:   64px;
  --bnav-h:     66px;
  --safe-b:     env(safe-area-inset-bottom, 0px);
}

/* ── BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* Fix SVG : ne jamais laisser un SVG devenir immense */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Fix Font Awesome : taille cohérente */
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-brands {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: inherit;
  line-height: 1;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-pill); }
::selection { background: rgba(212,160,23,.2); color: var(--navy); }

/* ================================================================
   LAYOUT SHELL
   ================================================================ */
.od-layout, .ed-layout, .em-layout, .rp-layout,
.ca-layout, .si-layout, .so-layout, .ab-layout,
.lt-layout, .sa-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── SIDEBAR ── */
.od-sidebar, .ed-sidebar, .em-sidebar, .rp-sidebar,
.ca-sidebar, .ab-sidebar, .lt-sidebar, .sa-sidebar {
  width: var(--sidebar-w) !important;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 60%, #0D2A4A 100%) !important;
  position: fixed !important;
  top: 0; left: 0; bottom: 0;
  z-index: 300;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
  transition: transform var(--slow) var(--ease);
  will-change: transform;
  /* Deco : ligne dorée gauche */
  border-right: 1px solid rgba(212,160,23,.12);
}

/* Fond déco sidebar */
.od-sidebar::before, .ed-sidebar::before, .em-sidebar::before,
.rp-sidebar::before, .ca-sidebar::before, .ab-sidebar::before,
.lt-sidebar::before, .sa-sidebar::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.od-sidebar::after, .ed-sidebar::after, .em-sidebar::after,
.rp-sidebar::after, .ca-sidebar::after, .ab-sidebar::after,
.lt-sidebar::after, .sa-sidebar::after {
  content: '';
  position: absolute;
  bottom: 60px; left: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,158,122,.09), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Logo pulse */
.od-logo-icon, .ed-logo, .ab-logo-icon, .lt-brand-icon, .sa-logo img {
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,160,23,.3); }
  50%      { box-shadow: 0 0 0 6px rgba(212,160,23,.0); }
}

/* ── MAIN CONTENT ── */
.od-main, .ed-main, .em-main, .rp-main,
.ca-main, .ab-main, .lt-main, .sa-main {
  margin-left: var(--sidebar-w) !important;
  flex: 1;
  min-width: 0;
  transition: margin-left var(--slow) var(--ease);
}

/* ── TOPBAR ── */
.od-topbar, .ed-topbar, .em-topbar > div, .rp-topbar,
.ca-topbar, .ab-topbar, .lt-topbar, .sa-topbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border) !important;
  z-index: 100;
}

/* ================================================================
   MOBILE BOTTOM NAV — comme ServiRapide
   ================================================================ */
.tally-bnav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--bnav-h) + var(--safe-b));
  background: var(--navy);
  z-index: 400;
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -6px 28px rgba(11,31,58,.18);
  padding-bottom: var(--safe-b);
}
.tally-bnav-inner {
  height: var(--bnav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.tally-bni {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255,255,255,.45);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: color var(--fast);
  text-decoration: none;
  border: none;
  background: none;
  font-family: inherit;
  padding: 8px 4px;
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: .3px;
}
.tally-bni i {
  font-size: 20px;
  line-height: 1;
  transition: transform var(--spring);
}
.tally-bni.on {
  color: var(--gold-2);
}
.tally-bni.on i {
  transform: translateY(-2px);
}
.tally-bni.on::before {
  content: '';
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-radius: 0 0 3px 3px;
}

/* Badge sur bnav */
.tally-bni-badge {
  position: absolute;
  top: 6px; right: calc(50% - 20px);
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--r-pill);
  min-width: 16px;
  text-align: center;
  line-height: 1.5;
  border: 1.5px solid var(--navy);
}

/* ================================================================
   CARDS & STATS
   ================================================================ */
.od-card, .stat-card, .panel, .em-card,
.ab-card, .rp-card, .rp-filter-card {
  background: var(--card) !important;
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--sh-sm) !important;
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.od-card:hover, .stat-card:hover, .em-card:hover { 
  transform: translateY(-3px);
  box-shadow: var(--sh-md) !important;
}

/* Stat cards — ligne colorée en haut */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.stat-card.blue::before   { background: linear-gradient(90deg, var(--blue), #60A5FA); }
.stat-card.green::before  { background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.stat-card.amber::before  { background: linear-gradient(90deg, var(--orange), #FCD34D); }
.stat-card.purple::before { background: linear-gradient(90deg, #8B5CF6, #C4B5FD); }
.stat-card.red::before    { background: linear-gradient(90deg, var(--red), #FCA5A5); }
.stat-card.navy::before   { background: linear-gradient(90deg, var(--navy), var(--navy-3)); }

/* Icônes stats — taille fixe */
.stat-icon, .sa-stat-icon, .od-action span,
.em-card-icon, .ico {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-size: 20px !important;
}
/* Fix : empêcher les SVG dans les icônes de déborder */
.stat-icon svg, .sa-stat-icon svg, .od-action svg,
.em-card-icon svg, .ico svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}
.stat-icon i, .sa-stat-icon i {
  font-size: 20px !important;
}

/* ================================================================
   BOUTONS
   ================================================================ */
/* Base button */
button, .btn, [class*="btn-"] {
  font-family: 'DM Sans', inherit !important;
}

/* Ripple effect sur tous les boutons */
.od-primary, .primary-btn, .sa-btn, .ab-btn,
.em-primary, .rp-btn.primary, .lt-btn-login,
.lt-btn-create-business, .lt-btn-client-portal {
  position: relative;
  overflow: hidden;
  transition: transform var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease),
              background var(--fast) var(--ease) !important;
}
.od-primary::after, .primary-btn::after, .sa-btn::after,
.lt-btn-login::after, .lt-btn-create-business::after,
.lt-btn-client-portal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  border-radius: inherit;
  transform: scale(0);
  opacity: 0;
  transition: transform .4s, opacity .4s;
}
.od-primary:active::after, .primary-btn:active::after,
.lt-btn-login:active::after, .lt-btn-client-portal:active::after {
  transform: scale(1);
  opacity: 1;
  transition: 0s;
}

/* Bouton Espace Client — style technologique pill */
.lt-btn-client-portal {
  width: 100%;
  padding: 14px 20px;
  border: none !important;
  border-radius: var(--r-pill) !important;
  background: linear-gradient(135deg, var(--teal), var(--teal-2)) !important;
  color: #fff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  box-shadow: var(--sh-teal) !important;
  letter-spacing: .2px;
}
.lt-btn-client-portal:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(26,158,122,.45) !important;
}
.lt-btn-client-portal:active { transform: translateY(0) !important; }
.lt-btn-client-portal i {
  font-size: 18px;
  opacity: .9;
}
/* Supprimer les SVG dans le bouton client — on utilise FA */
.lt-btn-client-portal svg { display: none !important; }

/* ================================================================
   BADGES & PILLS
   ================================================================ */
.od-badge, .badge, .em-chip, .em-status {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 4px 12px !important;
  border-radius: var(--r-pill) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

/* ================================================================
   TABLES
   ================================================================ */
.od-table-wrap, .em-table-wrap, .rp-table-wrap,
.sa-table-wrap, .table-wrap, [class*="table-wrap"] {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--border) !important;
}
.od-table th, .em-table th, .rp-table th,
.sa-table th, table th {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .6px !important;
  color: var(--muted) !important;
  background: #F8FAFC !important;
  white-space: nowrap;
  padding: 12px 14px !important;
}
.od-table td, .em-table td, .rp-table td,
.sa-table td, table td {
  padding: 12px 14px !important;
  vertical-align: middle !important;
  font-size: 13.5px !important;
  border-bottom: 1px solid #F1F5F9 !important;
}
table tbody tr {
  transition: background var(--fast) !important;
}
table tbody tr:hover { background: #F8FAFC !important; }
table tbody tr:last-child td { border-bottom: none !important; }

/* ================================================================
   FORMS — inputs stylés
   ================================================================ */
input:not([type="checkbox"]):not([type="radio"]),
select, textarea {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  font-family: 'DM Sans', inherit !important;
  background: var(--card) !important;
  color: var(--text) !important;
  outline: none !important;
  transition: border-color var(--fast), box-shadow var(--fast) !important;
  min-height: 44px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(26,158,122,.10) !important;
}
input::placeholder, textarea::placeholder {
  color: var(--light) !important;
}

/* ================================================================
   ANIMATIONS & DÉCO
   ================================================================ */

/* Fade in depuis le bas */
.tally-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tally-fade.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger enfants */
.tally-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  animation: tallyFadeUp .5s var(--ease) both;
}
.tally-stagger > *:nth-child(1) { animation-delay: 0ms; }
.tally-stagger > *:nth-child(2) { animation-delay: 60ms; }
.tally-stagger > *:nth-child(3) { animation-delay: 120ms; }
.tally-stagger > *:nth-child(4) { animation-delay: 180ms; }
.tally-stagger > *:nth-child(5) { animation-delay: 240ms; }
.tally-stagger > *:nth-child(6) { animation-delay: 300ms; }
.tally-stagger > *:nth-child(7) { animation-delay: 360ms; }
.tally-stagger > *:nth-child(8) { animation-delay: 420ms; }

@keyframes tallyFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Skeleton loader */
.tally-skel {
  background: linear-gradient(90deg, #E2E8F0 25%, #EEF2F7 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: tallySkel 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes tallySkel {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Pulse dot live */
.tally-live {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
}
.tally-live::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  opacity: .5;
  animation: tallyPulse 1.5s ease-out infinite;
}
@keyframes tallyPulse {
  0%   { transform: scale(.8); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Gradient text */
.tally-grad {
  background: linear-gradient(135deg, var(--gold), var(--teal-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================================
   FOND DÉCO TOPBAR — ligne de couleur en bas
   ================================================================ */
.od-topbar, .ed-topbar, .ca-topbar, .rp-topbar, .em-topbar {
  border-bottom: 1px solid var(--border) !important;
}

/* ================================================================
   OVERLAY MOBILE
   ================================================================ */
.tally-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,.5);
  backdrop-filter: blur(3px);
  z-index: 299;
  opacity: 0;
  transition: opacity var(--mid) var(--ease);
}
.tally-overlay.on { opacity: 1; }

/* ================================================================
   LOGO HERO STRIP
   ================================================================ */
.tally-hero-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  border-radius: var(--r-xl);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.tally-hero-strip::before {
  content: '';
  position: absolute;
  top: -40px; right: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.12), transparent 70%);
  pointer-events: none;
}
.tally-hero-strip img {
  width: 46px; height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 2.5px rgba(212,160,23,.5);
  animation: logoPulse 3s ease-in-out infinite;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.tally-hero-strip-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  font-family: 'Sora', sans-serif;
  position: relative; z-index: 1;
}
.tally-hero-strip-tag {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: .8px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
  position: relative; z-index: 1;
}

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
#tally-toast-zone {
  position: fixed;
  bottom: calc(var(--bnav-h) + var(--safe-b) + 12px);
  right: 16px;
  z-index: 9000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}
.tally-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(11,31,58,.97);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 13px 16px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  font-size: 13.5px;
  max-width: 340px;
  min-width: 230px;
  pointer-events: all;
  border-left: 3px solid var(--teal);
  animation: toastIn .35s var(--spring) both;
}
.tally-toast.out { animation: toastOut .2s var(--ease) both; }
.tally-toast.error   { border-color: var(--red); }
.tally-toast.warning { border-color: var(--orange); }
.tally-toast.success { border-color: var(--teal); }
.tally-toast i { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.tally-toast-title { font-weight: 700; font-size: 13px; }
.tally-toast-msg   { font-size: 12px; opacity: .8; margin-top: 2px; }
@keyframes toastIn  { from { opacity:0; transform:translateX(110%) scale(.85); } to { opacity:1; transform:none; } }
@keyframes toastOut { from { opacity:1; transform:none; } to { opacity:0; transform:translateX(110%) scale(.85); } }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.tally-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
.tally-empty i {
  font-size: 48px;
  opacity: .25;
  margin-bottom: 14px;
  display: block;
}
.tally-empty h3 { font-size: 16px; color: var(--text-2); margin-bottom: 6px; }

/* ================================================================
   RESPONSIVE — comme ServiRapide : simple et efficace
   ================================================================ */

/* ── Tablet ≤ 1100px ── */
@media (max-width: 1100px) {
  :root { --sidebar-w: 240px; }
}

/* ── Mobile ≤ 920px ── */
@media (max-width: 1366px) {
  :root { --sidebar-w: 0px; --topbar-h: 58px; }

  /* Sidebar → drawer */
  .od-sidebar, .ed-sidebar, .em-sidebar, .rp-sidebar,
  .ca-sidebar, .ab-sidebar, .lt-sidebar, .sa-sidebar {
    width: 280px !important;
    transform: translateX(-100%);
    box-shadow: none;
  }
  .od-sidebar.open, .ed-sidebar.open, .em-sidebar.open,
  .rp-sidebar.open, .ca-sidebar.open, .ab-sidebar.open,
  .lt-sidebar.open, .sa-sidebar.open, .sidebar-open .ca-sidebar,
  .sidebar-open .ed-sidebar {
    transform: translateX(0) !important;
    box-shadow: var(--sh-lg) !important;
  }

  /* Main : plus de marge gauche */
  .od-main, .ed-main, .em-main, .rp-main,
  .ca-main, .ab-main, .lt-main, .sa-main {
    margin-left: 0 !important;
    width: 100% !important;
    padding-bottom: calc(var(--bnav-h) + var(--safe-b) + 16px) !important;
  }

  /* Bottom nav visible */
  .tally-bnav { display: block; }

  /* Toast au dessus du bottom nav */
  #tally-toast-zone {
    right: 8px; left: 8px;
    bottom: calc(var(--bnav-h) + var(--safe-b) + 8px);
  }
  .tally-toast { max-width: 100%; }

  /* Grilles */
  .cards-grid, .em-cards, .sa-cards-grid,
  .od-quick-actions, .od-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .od-grid, .od-bottom-grid, .content-grid,
  .rp-grid, .ab-grid, .sub-model-grid {
    grid-template-columns: 1fr !important;
  }

  /* Topbar */
  .od-topbar, .ed-topbar, .ca-topbar, .rp-topbar { padding: 0 14px !important; }
}

/* ── Petit mobile ≤ 560px ── */
@media (max-width: 560px) {
  .cards-grid, .em-cards, .od-quick-actions, .od-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .od-card, .stat-card, .panel { padding: 14px !important; }
  .od-main, .ed-main, .em-main, .rp-main, .ca-main, .sa-main {
    padding: 12px 12px calc(var(--bnav-h) + var(--safe-b) + 12px) !important;
  }
  /* Tables : scroll horizontal */
  table { min-width: 540px; }
  .tally-bni span { font-size: 9px; }
  .stat-icon, .sa-stat-icon { width: 38px !important; height: 38px !important; font-size: 16px !important; }
  .stat-icon i, .sa-stat-icon i { font-size: 16px !important; }
}

/* ── Très petit ≤ 375px ── */
@media (max-width: 375px) {
  .tally-bni span { display: none; }
  .tally-bni { padding: 10px 4px; }
  .tally-bni i { font-size: 22px; }
  .od-main, .ed-main, .em-main, .rp-main, .ca-main, .sa-main {
    padding: 10px 10px calc(var(--bnav-h) + var(--safe-b) + 10px) !important;
  }
  .stat-card strong, .sa-stat-val { font-size: 20px !important; }
}

/* ── Print ── */
@media print {
  .od-sidebar, .ed-sidebar, .em-sidebar, .sa-sidebar,
  .tally-bnav, #tally-toast-zone, #lt-lion { display: none !important; }
  .od-main, .ed-main, .em-main { margin: 0 !important; padding: 0 !important; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── Hover : désactiver transforms sur touch ── */
@media (hover: none) {
  .od-card:hover, .stat-card:hover, .em-card:hover { transform: none !important; }
  .lt-btn-client-portal:hover { transform: none !important; }
}