/* ==========================================================================
   BATIMART DESIGN SYSTEM — COMPOSANTS & STYLES GLOBAUX
   Strictement basé sur static/css/tokens.css
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-main);
  background-color: var(--bg-app);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-default);
}

a:hover {
  color: var(--color-primary-hover);
}

/* --- TYPOGRAPHIE & HIÉRARCHIE --- */
h1, .h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-main);
  line-height: 1.3;
}

h3, .h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-main);
}

p {
  color: var(--text-muted);
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-xs {
  font-size: var(--font-size-xs);
}

.text-muted {
  color: var(--text-muted);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

/* --- BOUTONS (LE PRINCIPAL GRAND ET VIF, LES AUTRES DISCRETS) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: inherit;
  font-weight: var(--font-weight-semibold);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-default);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(0, 119, 182, 0.22);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.32);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-medium);
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
}

.btn-ghost:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.btn-danger {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: var(--color-danger-border);
  padding: var(--space-3) var(--space-5);
}

.btn-danger:hover {
  background-color: var(--color-danger);
  color: #FFFFFF;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* --- FORMULAIRES SIMPLES (MAX 8 CHAMPS VISIBLES) --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: var(--transition-default);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18);
}

.form-input::placeholder {
  color: var(--text-subtle);
}

.form-error-msg {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  margin-top: var(--space-1);
}

/* --- CARTES & CONTENEURS --- */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  transition: var(--transition-default);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

/* Cartes de statistiques avec gros indicateurs */
.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: var(--transition-default);
}

.stat-card:hover {
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-main);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.stat-currency {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--text-muted);
  letter-spacing: normal;
}

/* --- BADGES DE STATUT SOBRES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
}

.badge-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.badge-warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-danger {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.badge-info {
  background-color: var(--color-info-bg);
  color: var(--color-info);
}

.badge-neutral {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

/* --- ALERTES & NOTIFICATIONS (TOASTS) --- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
}

.alert-danger {
  background-color: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  color: var(--color-danger);
}

.alert-warning {
  background-color: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning);
}

.alert-success {
  background-color: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success);
}

.alert-info {
  background-color: var(--color-info-bg);
  border: 1px solid var(--color-info-border);
  color: var(--color-info);
}

/* --- ÉCRAN DE CONNEXION SCINDÉ (SPLIT-SCREEN) --- */
.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.auth-visual {
  flex: 1.1;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #00364d 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-10);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.auth-visual::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.auth-visual-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 2;
}

.auth-visual-content {
  max-width: 480px;
  z-index: 2;
}

.auth-visual-content h2 {
  color: #FFFFFF;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.auth-visual-content p {
  color: #94A3B8;
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.auth-cmyk-strip {
  display: flex;
  height: 6px;
  width: 120px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: var(--space-6);
}

.auth-cmyk-strip span {
  flex: 1;
}

.auth-visual-footer {
  font-size: var(--font-size-xs);
  color: #64748B;
  z-index: 2;
}

.auth-form-side {
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background-color: var(--bg-app);
}

.auth-box {
  width: 100%;
  max-width: 400px;
  background: var(--bg-surface);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin: auto;
  animation: authSlideUp 350ms var(--ease-smooth);
}

.auth-box-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-box-header .logo-img {
  max-width: 190px;
  height: auto;
  margin-bottom: var(--space-3);
}

.auth-box-header h1 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}

.auth-box-footer {
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
  font-size: var(--font-size-sm);
}

@keyframes authSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MISE EN PAGE PRINCIPALE (APP SHELL) --- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-header {
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.sidebar-header img {
  max-width: 140px;
  height: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
  transition: var(--transition-default);
}

.nav-item .nav-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: var(--transition-default);
}

.nav-item:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.nav-item:hover .nav-icon {
  color: var(--color-primary);
}

.nav-item.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.nav-item.active .nav-icon {
  color: var(--color-primary);
}

.sidebar-user {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.main-content {
  flex: 1;
  padding: var(--space-8);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

/* --- ÉTATS VIDES (AUCUNE PAGE VIDE SANS CONSIGNE) --- */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  color: var(--text-subtle);
  margin-bottom: var(--space-2);
}

.empty-state-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-main);
}

.empty-state-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  max-width: 380px;
}

/* --- BOUTON MENU MOBILE TOGGLE (MASQUÉ SUR DESKTOP & TABLETTE) --- */
.sidebar-toggle-btn {
  display: none;
}

/* --- ADAPTATION MOBILE (390PX) ET TABLETTE --- */
@media (max-width: 900px) {
  .auth-visual {
    display: none;
  }
  .auth-form-side {
    padding: var(--space-4);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sidebar-toggle-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
  }
  .app-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-3) var(--space-4);
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-xs);
  }
  .sidebar-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .sidebar-nav,
  .sidebar-user {
    display: none;
  }
  .sidebar.is-open .sidebar-header {
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-light);
  }
  .sidebar.is-open .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
    animation: fadeInMenu 0.18s ease-out;
  }
  .sidebar.is-open .sidebar-user {
    display: flex;
    padding-top: var(--space-3);
    animation: fadeInMenu 0.18s ease-out;
  }
  @keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .main-content {
    padding: var(--space-4);
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  .page-header .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .auth-form-side {
    padding: var(--space-2);
  }
  .auth-box {
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 320px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
  }
  .auth-box-header .logo-img {
    max-width: 140px;
  }
  .auth-box-header h1 {
    font-size: var(--font-size-lg);
  }
  .auth-box-header p {
    font-size: var(--font-size-xs);
  }
  .auth-box-footer p {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    align-items: center;
    font-size: var(--font-size-xs);
  }
  .btn-lg {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
  }
}

/* --- TABLEAUX ÉPURÉS (MAX 6 COLONNES) --- */
.table-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
  margin-bottom: var(--space-6);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-medium);
}

.table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background-color: var(--bg-hover);
}

/* --- BARRES D'ACTIONS & OUTILS (TOOLBAR) --- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-3);
  max-width: 360px;
  width: 100%;
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--font-size-sm);
  width: 100%;
  color: var(--text-main);
}

/* --- SAISIE COMMANDE EN 2 ZONES (GRID FLUIDE) --- */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-6);
  align-items: start;
}

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

.order-sticky-summary {
  position: sticky;
  top: var(--space-5);
}

.order-line-item {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  position: relative;
  transition: var(--transition-default);
}

.order-line-item:hover {
  border-color: var(--border-medium);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.summary-row.total-row {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-main);
  border-top: 2px solid var(--border-medium);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
}

.summary-row.reste-row {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-danger);
  border-top: 1px dashed var(--border-light);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
}

/* --- TABLEAU KANBAN DE PRODUCTION --- */
.kanban-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  align-items: start;
}

@media (max-width: 1080px) {
  .kanban-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.kanban-column {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  min-height: 400px;
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 2px solid var(--border-medium);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

.kanban-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-default);
}

.kanban-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-medium);
}

/* --- BOUTONS D'ACTION DIRECTE (CLICK-TO-ACTION) --- */
.action-btn-group {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  color: #FFFFFF;
}

/* --- DOCUMENTS OFFICIELS & IMPRESSION A4 --- */
.doc-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.doc-paper {
  background-color: #FFFFFF;
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  color: #0F172A;
  font-family: var(--font-family);
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--space-6);
  border-bottom: 2px solid #00AEEF;
  margin-bottom: var(--space-6);
}

.doc-header-logo img {
  max-height: 55px;
  width: auto;
}

.doc-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

.doc-table th {
  background-color: #F8FAFC;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.doc-table td {
  border: 1px solid #E2E8F0;
  padding: 10px 12px;
  font-size: 13px;
}

.doc-totals {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-6);
}

.doc-totals-box {
  width: 300px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  background-color: #F8FAFC;
}

.doc-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-4);
  text-align: center;
}

.doc-signature-single {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-10);
  padding-top: var(--space-4);
}

.doc-signature-box {
  min-width: 260px;
  max-width: 320px;
  text-align: center;
}

.doc-signature-line {
  margin-top: 60px;
  border-top: 1px dashed #94A3B8;
  padding-top: var(--space-2);
  font-size: 12px;
  color: #64748B;
}

.no-print-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

@media print {
  body {
    background-color: #FFFFFF !important;
    color: #000000 !important;
  }
  .sidebar, .no-print-bar, .no-print, header, nav, .mobile-bottom-nav {
    display: none !important;
  }
  .app-layout {
    display: block !important;
  }
  .main-content {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .doc-wrapper {
    max-width: 100% !important;
    margin: 0 !important;
  }
  .doc-paper {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* --- BARRE DE NAVIGATION INFÉRIEURE MOBILE --- */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 16px rgba(15, 27, 45, 0.06);
    z-index: 1000;
    padding: 0 var(--space-2);
    align-items: center;
    justify-content: space-around;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    min-height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    transition: var(--transition-default);
  }

  .bottom-nav-item svg {
    color: var(--text-muted);
    transition: var(--transition-default);
  }

  .bottom-nav-item:hover,
  .bottom-nav-item.active {
    color: var(--color-primary);
  }

  .bottom-nav-item.active svg {
    color: var(--color-primary);
  }

  .bottom-nav-cta {
    position: relative;
    top: -10px;
    padding: 0;
  }

  .bottom-nav-cta-circle {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.35);
    transition: var(--transition-default);
  }

  .bottom-nav-cta:active .bottom-nav-cta-circle {
    transform: scale(0.92);
  }

  .bottom-nav-cta span {
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
  }
}

/* ==========================================================================
   MODAL DE CONFIRMATION MODERNE & ÉLÉGANT BATIMART
   ========================================================================== */
.bm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4, 16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.bm-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
}

.bm-modal-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 440px;
  padding: 28px 24px 24px;
  text-align: center;
  transform: scale(0.92) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.bm-modal-backdrop.is-active .bm-modal-card {
  transform: scale(1) translateY(0);
}

.bm-modal-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.15), rgba(8, 145, 178, 0.05));
  border: 1px solid rgba(8, 145, 178, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.15);
}

.bm-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.bm-modal-message {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted, #475569);
  margin: 0 0 24px;
  word-break: break-word;
}

.bm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.bm-modal-btn {
  flex: 1;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md, 10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 10px 18px;
}

.bm-modal-btn.btn-primary {
  background: var(--color-primary, #0891b2);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.bm-modal-btn.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.bm-modal-btn.btn-secondary {
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #334155);
  border: 1px solid var(--border-medium, #cbd5e1);
}

.bm-modal-btn.btn-secondary:hover {
  background: var(--bg-subtle, #f8fafc);
  border-color: var(--text-muted, #94a3b8);
}

