/* Mosolo Coop CRM — Design System, Animations & Composants Modernes */

:root {
  --color-1: #000;
  --color-2: #FA8200;
  --color-3: #FA8200;
  --color-4: #FA8200;
  --color-5: #FA8200;
  --primary: #FA8200;
  --primary-hover: #e07500;
  --primary-active: #cc6900;
  --primary-rgb: 250, 130, 0;
  --dark-navy: #000000;
  --hero-bg: linear-gradient(145deg, #000000 0%, #141416 45%, #232326 100%);
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 10px 24px -4px rgba(250, 130, 0, 0.35);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(250, 130, 0, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(250, 130, 0, 0);
  }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.anim-fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ==========================================================================
   AUTHENTICATION SPLIT SCREEN
   ========================================================================== */
body[data-page="connexion"] {
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.auth-split-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Panneau Gauche (Hero Showcase) */
.auth-hero-pane {
  flex: 1 1 50%;
  max-width: 50%;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 64px;
  color: #ffffff;
}

.auth-hero-pane::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(250, 130, 0, 0.3) 0%, rgba(250, 130, 0, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
}

.auth-hero-pane::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -15%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(250, 130, 0, 0.18) 0%, rgba(250, 130, 0, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
}

.auth-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.auth-brand-emblem {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-container {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-main {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-badge-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 9px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.auth-hero-body {
  margin: auto 0;
  max-width: 520px;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  background: rgba(250, 130, 0, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 130, 0, 0.3);
  border-radius: 30px;
  color: #ffb86c;
}

.hero-heading {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-top: 14px;
  margin-bottom: 16px;
}

.hero-subtext {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
}

.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(250, 130, 0, 0.4);
  transform: translateX(4px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(250, 130, 0, 0.2);
  color: #FA8200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.feature-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-dots-slider {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 28px;
  border-radius: 8px;
  background: var(--primary);
}

.auth-hero-footer {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* Panneau Droit (Formulaire de Connexion) */
.auth-form-pane {
  flex: 1 1 50%;
  max-width: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  overflow-y: auto;
}

.auth-form-container {
  width: 100%;
  max-width: 440px;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-form-header .auth-title {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-form-header .auth-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 0;
}

/* Bouton Google SSO */
.btn-google-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-google-sso:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-google-sso .google-icon {
  margin-right: 10px;
}

/* Séparateur 'ou' */
.auth-separator {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.auth-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.auth-separator span {
  position: relative;
  background: #ffffff;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

/* Inputs modernes avec icônes intégrées */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 3;
}

.input-icon-wrap .form-control {
  padding-left: 44px;
  padding-right: 44px;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background-color: #f8fafc;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.2s ease;
}

.input-icon-wrap .form-control:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(250, 130, 0, 0.18);
  outline: none;
}

.input-icon-wrap:focus-within .input-icon {
  color: var(--primary);
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 15px;
  transition: color 0.2s;
  z-index: 4;
}

.btn-toggle-password:hover {
  color: var(--primary);
}

.btn-auth-submit {
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FA8200 0%, #e07500 100%);
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(250, 130, 0, 0.45);
  background: linear-gradient(135deg, #e07500 0%, #cc6900 100%);
  color: #ffffff !important;
}

.btn-auth-submit:active {
  transform: translateY(0);
}

/* Boîte Démonstration / Aperçu rapide */
.auth-demo-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 14px;
}

/* ==========================================================================
   AMÉLIORATION DU DESIGN DES FORMULAIRES & DES CARTES
   ========================================================================== */
.card {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: visible;
  background: #ffffff;
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card:hover {
  border-color: rgba(250, 130, 0, 0.35) !important;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08) !important;
}

.card-header {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 18px 24px !important;
  background: #ffffff;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
}

.card-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(250, 130, 0, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-control {
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: #f8fafc;
}

.form-control:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(250, 130, 0, 0.18);
}

/* ==========================================================================
   PORTAIL PUBLIC D'ADHÉSION
   ========================================================================== */
body.public-portal-bg {
  background-color: #f8fafc !important;
  color: #1e293b;
}

.public-navbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.public-brand .brand-logo-img {
  height: 42px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
}

.public-brand .brand-title-main {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.public-brand .brand-title-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  background: rgba(250, 130, 0, 0.12);
  color: #FA8200;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.public-portal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.portal-category-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #FA8200;
  background: rgba(250, 130, 0, 0.1);
  padding: 6px 14px;
  border-radius: 30px;
}

.portal-timer-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 30px;
}

.portal-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a !important;
  letter-spacing: -0.5px;
  margin-top: 14px;
  margin-bottom: 8px;
  line-height: 1.25;
}

.portal-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 22px;
}

.portal-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.portal-trust-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.portal-trust-card:hover {
  border-color: rgba(250, 130, 0, 0.35);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.trust-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.trust-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trust-card-info strong {
  font-size: 13px;
  color: #1e293b;
  font-weight: 700;
  white-space: nowrap;
}

.trust-card-info span {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
}

.portal-notice-bar {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #475569;
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 6px;
}

/* ==========================================================================
   KPI CARDS MODERNES & GRAPHIQUES PREMIUM
   ========================================================================== */
.kpi-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  background: #ffffff !important;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.08) !important;
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-card.kpi-primary .kpi-icon { background: rgba(250, 130, 0, 0.12); color: #FA8200; }
.kpi-card.kpi-warning .kpi-icon { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.kpi-card.kpi-info .kpi-icon { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.kpi-card.kpi-success .kpi-icon { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.kpi-card.kpi-secondary .kpi-icon { background: rgba(100, 116, 139, 0.12); color: #64748b; }
.kpi-card.kpi-danger .kpi-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.25s ease;
}

.kpi-card:hover .kpi-icon {
  transform: scale(1.1);
}

.kpi-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.kpi-note {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.crm-chart {
  position: relative;
  height: 310px;
  min-width: 0;
  padding: 10px 0;
}

/* ==========================================================================
   NAVIGATION, HEADER & RESPONSIVITÉ
   ========================================================================== */
.brand-title { white-space: nowrap; font-weight: 800; }
.nav-header .brand-logo {
  display: flex;
  align-items: center;
}
.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
}
.sidebar-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.nav-control button { padding: 10px; }
.nav-control button:focus-visible { outline: 2px solid var(--primary); }
[hidden] { display: none !important; }
td, dd { overflow-wrap: anywhere; }
details summary { cursor: pointer; font-weight: 600; }
details summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.crm-header-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 10px; }
.header .header-right { gap: 8px; }

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGlow 2s infinite;
}

@media (max-width: 991px) {
  .auth-split-wrapper {
    flex-direction: column;
  }
  .auth-hero-pane {
    max-width: 100%;
    flex: none;
    padding: 36px 24px;
  }
  .auth-hero-body {
    margin: 24px 0;
  }
  .hero-heading {
    font-size: 28px;
  }
  .auth-form-pane {
    max-width: 100%;
    flex: none;
    padding: 36px 20px;
  }
}

/* ==========================================================================
   RESPONSIVE & MOBILE NAVBAR OPTIMIZATIONS
   ========================================================================== */

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .crm-header-action {
    padding: 0 10px !important;
    gap: 6px !important;
    font-size: 13px !important;
    min-height: 40px !important;
  }
  .crm-action-label {
    font-size: 13px !important;
  }
  .header .header-right {
    gap: 6px !important;
  }
  .header .header-content {
    padding-left: 1.5rem !important;
    padding-right: 1.25rem !important;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767.98px) {
  :root {
    --dz-header-height: 64px;
  }

  /* 1. Header principal */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 64px !important;
    padding-left: 92px !important; /* Espace réservé pour le logo + bouton hamburger */
    padding-right: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eef2f6 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    z-index: 9 !important;
    transition: all 0.2s ease !important;
  }

  .header .header-content {
    height: 100% !important;
    padding-left: 4px !important;
    padding-right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .header .navbar {
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .header .navbar-collapse {
    height: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }

  /* Masquer le libellé de page dans le header sur mobile pour aérer la barre */
  .header .header-left,
  .dashboard_bar {
    display: none !important;
  }

  /* 2. Nav Header (Bloc Logo + Hamburger côte à côte à gauche) */
  .nav-header {
    width: 92px !important;
    height: 64px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eef2f6 !important;
    border-right: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 6px 0 10px !important;
    z-index: 10 !important;
  }

  .nav-header .brand-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    width: auto !important;
    text-decoration: none !important;
  }

  .nav-header .brand-title {
    display: none !important;
  }

  .brand-logo-img {
    height: 34px !important;
    width: 34px !important;
    max-width: 34px !important;
    object-fit: contain !important;
    margin: 0 !important;
  }

  /* Positionnement propre du bouton hamburger à côté du logo */
  .nav-header .nav-control {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 34px !important;
    height: 34px !important;
    z-index: auto !important;
  }

  .nav-control button.hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .nav-control button.hamburger:active {
    background: #f1f5f9 !important;
    transform: scale(0.95);
  }

  .hamburger .line {
    width: 16px !important;
    height: 2px !important;
    background: #334155 !important;
    border-radius: 2px !important;
    margin: 0 !important;
    transition: all 0.2s ease-in-out !important;
  }

  .hamburger.is-active .line:nth-child(1) {
    transform: translateY(6px) rotate(45deg) !important;
  }
  .hamburger.is-active .line:nth-child(2) {
    opacity: 0 !important;
  }
  .hamburger.is-active .line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg) !important;
  }

  /* 3. Boutons d'actions à droite (.header-right) */
  .header .header-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .header-right .nav-item {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
  }

  .header-right > li:not(:first-child) {
    padding-left: 0 !important;
  }

  /* Masquer le texte verbeux sur mobile pour garder des boutons icônes épurés */
  .crm-header-action .crm-action-label {
    display: none !important;
  }

  /* Format compact, tactile et moderne des boutons d'en-tête */
  .crm-header-action {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 8px !important;
    gap: 4px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Badges de comptage bien proportionnés */
  .crm-header-action .badge {
    font-size: 10px !important;
    padding: 1px 5px !important;
    min-width: 17px !important;
    height: 17px !important;
    line-height: 15px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
  }

  /* Bouton profil / dropdown */
  .crm-header-action.dropdown-toggle {
    padding: 0 8px !important;
  }

  .crm-header-action.dropdown-toggle::after {
    margin-left: 3px !important;
    vertical-align: 1px !important;
    border-top-width: 4px !important;
    border-right-width: 3.5px !important;
    border-left-width: 3.5px !important;
  }

  /* Menu déroulant responsive */
  .header-right .dropdown-menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: calc(100% + 6px) !important;
    min-width: 210px !important;
    max-width: calc(100vw - 20px) !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
    z-index: 1050 !important;
  }

  /* 4. Barre latérale (Sidebar) en mode tiroir sur mobile */
  .dlabnav {
    top: 64px !important;
    height: calc(100vh - 64px) !important;
    z-index: 100 !important;
    left: -100% !important;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  #main-wrapper.menu-toggle .dlabnav {
    left: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  }

  /* Voile d'obscurcissement élégant quand le menu mobile est ouvert */
  #main-wrapper.menu-toggle::after {
    content: "" !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    z-index: 90 !important;
    animation: fadeInBackdrop 0.22s ease !important;
  }

  /* 5. Ajustement de l'espacement du contenu sous l'en-tête fixe */
  [data-header-position="fixed"] .content-body,
  .content-body {
    padding-top: 72px !important;
    margin-left: 0 !important;
  }

  .content-body .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-top: 14px !important;
  }
}

/* Très petits écrans (< 360px) */
@media (max-width: 360px) {
  .header {
    padding-left: 84px !important;
  }
  .nav-header {
    width: 84px !important;
    padding: 0 4px 0 8px !important;
  }
  .brand-logo-img {
    height: 30px !important;
    width: 30px !important;
  }
  .crm-header-action {
    padding: 0 6px !important;
    gap: 3px !important;
  }
}

@media print {
  .nav-header, .header, .dlabnav, .footer, .page-titles, button, .btn, #feedback { display: none !important; }
  .content-body { margin: 0 !important; padding: 0 !important; }
  .card { box-shadow: none; break-inside: avoid; }
  .table-responsive { overflow: visible; }
}

/* ==========================================================================
   DROPDOWNS & SELECTS MODERNES HAUT DE GAMME (STYLE FINTECH PREMIUM)
   ========================================================================== */

/* Élévation prioritaire z-index pour le conteneur quand un select est ouvert */
.has-open-select,
.card:has(.custom-select-wrap.is-open),
.col-md-6:has(.custom-select-wrap.is-open),
.col-12:has(.custom-select-wrap.is-open),
.row:has(.custom-select-wrap.is-open),
.input-icon-wrap:has(.custom-select-wrap.is-open) {
  z-index: 1050 !important;
  position: relative !important;
  transform: none !important;
}

.custom-select-wrap {
  position: relative;
  width: 100%;
  font-family: inherit;
  user-select: none;
  z-index: 2;
}

.custom-select-wrap.is-open {
  z-index: 1060 !important;
  position: relative !important;
}

.custom-select-native-hidden {
  position: absolute !important;
  opacity: 0.0001 !important;
  width: 100% !important;
  height: 48px !important;
  top: 0 !important;
  left: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-select-trigger {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background-color: #f8fafc;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px;
  color: #1e293b;
  text-align: left;
  outline: none;
}

/* Évite l'icône double : masque l'icône statique de l'input-wrap quand le custom select est initialisé */
.input-icon-wrap:has(.custom-select-wrap) > .input-icon,
.input-icon-wrap.has-custom-select > .input-icon {
  display: none !important;
}

.input-icon-wrap .custom-select-wrap .custom-select-trigger,
.input-icon-wrap > .custom-select-wrap .custom-select-trigger,
.input-icon-wrap.has-custom-select .custom-select-trigger {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.custom-select-trigger:hover {
  background-color: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.custom-select-wrap.is-open .custom-select-trigger,
.custom-select-trigger:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(250, 130, 0, 0.18);
}

.custom-select-val-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.custom-select-val-text {
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-caret {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.custom-select-wrap.is-open .custom-select-caret {
  transform: rotate(180deg);
  color: var(--primary);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999 !important;
  background: #ffffff;
  border: 1px solid rgba(250, 130, 0, 0.25);
  border-radius: 14px;
  box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.28), 0 10px 20px -5px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(250, 130, 0, 0.15) !important;
  padding: 6px;
  max-height: 360px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s ease;
  pointer-events: none;
}

.custom-select-wrap.custom-select-dropup .custom-select-dropdown {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(8px) scale(0.98);
}

.custom-select-wrap.is-open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-select-dropdown::-webkit-scrollbar {
  width: 5px;
}
.custom-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(250, 130, 0, 0.25);
  border-radius: 10px;
}
.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(250, 130, 0, 0.5);
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: #334155;
  transition: all 0.16s ease;
}

.custom-select-option:hover {
  background: rgba(250, 130, 0, 0.08);
  color: #FA8200;
  transform: translateX(3px);
}

.custom-select-option.is-selected {
  background: linear-gradient(135deg, rgba(250, 130, 0, 0.14) 0%, rgba(250, 130, 0, 0.05) 100%);
  color: #d97000;
  font-weight: 700;
}

.custom-select-opt-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.custom-select-opt-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.custom-select-trigger .custom-select-opt-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
}

.custom-select-option:hover .custom-select-opt-badge {
  transform: scale(1.1);
}

.custom-select-opt-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-opt-check {
  color: var(--primary);
  font-size: 12px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
  margin-left: 8px;
}

.custom-select-option.is-selected .custom-select-opt-check {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   STYLISATION DES SOUS-MENUS ET DROPDOWNS BOOTSTRAP (.dropdown-menu)
   ========================================================================== */
.dropdown-menu {
  background: #ffffff !important;
  border: 1px solid rgba(250, 130, 0, 0.25) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.16), 0 8px 16px -4px rgba(15, 23, 42, 0.08) !important;
  padding: 8px !important;
  min-width: 220px !important;
  animation: dropdownFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.dropdown-menu .dropdown-item {
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin-bottom: 2px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 0.18s ease !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background: rgba(250, 130, 0, 0.08) !important;
  color: #FA8200 !important;
  transform: translateX(3px) !important;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background: linear-gradient(135deg, #FA8200 0%, #e07500 100%) !important;
  color: #ffffff !important;
}

.dropdown-divider {
  border-top: 1px solid #f1f5f9 !important;
  margin: 6px 0 !important;
}

/* Fallback moderne pour tout <select> natif non converti */
select.form-control {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FA8200' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px !important;
  padding-right: 36px !important;
  cursor: pointer;
}

/* ==========================================================================
   THEME BRAND OVERRIDES (ORANGE & NOIR MOSOLO)
   ========================================================================== */
.text-primary {
  color: #FA8200 !important;
}

.bg-primary {
  background-color: #FA8200 !important;
}

.btn-primary {
  background-color: #FA8200 !important;
  border-color: #FA8200 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(250, 130, 0, 0.3) !important;
  font-weight: 600 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #e07500 !important;
  border-color: #e07500 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(250, 130, 0, 0.42) !important;
  transform: translateY(-1px);
}

.btn-primary:active {
  background-color: #cc6900 !important;
  border-color: #cc6900 !important;
  transform: translateY(0);
}

.btn-outline-primary {
  color: #FA8200 !important;
  border-color: #FA8200 !important;
  background-color: transparent !important;
  font-weight: 600 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #FA8200 !important;
  border-color: #FA8200 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(250, 130, 0, 0.28) !important;
}

.badge-primary {
  background-color: #FA8200 !important;
  color: #ffffff !important;
}

.badge-primary.light {
  background-color: rgba(250, 130, 0, 0.12) !important;
  color: #FA8200 !important;
  font-weight: 600 !important;
}

.metismenu li.mm-active > a {
  color: #FA8200 !important;
  background: rgba(250, 130, 0, 0.1) !important;
  font-weight: 700;
}

.metismenu li.mm-active > a i {
  color: #FA8200 !important;
}

.metismenu a:hover {
  color: #FA8200 !important;
}

.metismenu a:hover i {
  color: #FA8200 !important;
}

.breadcrumb-item a {
  color: #FA8200;
}

.breadcrumb-item a:hover {
  color: #e07500;
}

.public-form-link {
  display: inline-flex;
  align-items: center;
  color: #FA8200;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.public-form-link:hover {
  color: #e07500;
  text-decoration: underline;
}

/* ==========================================================================
   Détails Dynamiques & Calculateurs Intelligents (Besoin Express)
   ========================================================================== */
.besoin-details-container {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.besoin-subcard {
  background: #ffffff;
  border: 1.5px solid rgba(250, 130, 0, 0.22);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 32px -4px rgba(250, 130, 0, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: visible;
  animation: besoinFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.besoin-subcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FA8200 0%, #ffaa40 100%);
  border-radius: 16px 16px 0 0;
}

@keyframes besoinFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.besoin-subcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.besoin-subcard-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
}

.simulator-calc-box {
  background: linear-gradient(135deg, rgba(250, 130, 0, 0.07) 0%, rgba(250, 130, 0, 0.02) 100%);
  border: 1.5px solid rgba(250, 130, 0, 0.28);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.simulator-calc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FA8200;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(250, 130, 0, 0.35);
}

.simulator-calc-content {
  flex: 1;
  min-width: 0;
}

.simulator-calc-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.simulator-calc-val {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.simulator-calc-hint {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

@media (max-width: 575.98px) {
  .besoin-subcard {
    padding: 16px;
  }
  .simulator-calc-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ========================================================================== 
   MOSOLO REFINEMENT — SOBER, INSTITUTIONAL, CONTENT-FIRST
   ========================================================================== */

:root {
  --primary: #f27a00;
  --primary-hover: #d96800;
  --primary-active: #bd5c00;
  --primary-rgb: 242, 122, 0;
  --surface-alt: #f5f5f7;
  --border-color: #e3e4e8;
  --text-main: #17181a;
  --text-muted: #62666d;
  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 15, 15, 0.06);
}

body {
  color: var(--text-main);
  background: var(--surface-alt);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.dashboard_bar,
.brand-title {
  letter-spacing: -0.02em;
}

.content-body .container-fluid {
  max-width: 1480px;
  margin-inline: auto;
}

.page-heading h1 {
  color: #17181a;
  font-weight: 700;
}

.page-titles {
  margin-bottom: 12px !important;
}

.breadcrumb {
  font-size: 13px;
}

.card,
.kpi-card {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  animation: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease !important;
}

.card:hover,
.kpi-card:hover {
  border-color: #d4d6db !important;
  box-shadow: var(--shadow-sm) !important;
  transform: none !important;
}

.kpi-card::before {
  display: none;
}

.card-header {
  min-height: 64px;
  padding: 16px 20px !important;
  border-bottom-color: #ececef !important;
}

.card-body {
  padding: 20px !important;
}

.card-title {
  color: #202124;
  font-size: 15px;
  font-weight: 700;
}

.card-icon-badge,
.kpi-icon {
  border: 0;
  border-radius: 8px;
  box-shadow: none !important;
}

.kpi-icon,
.kpi-card:hover .kpi-icon {
  width: 42px;
  height: 42px;
  transform: none;
}

.kpi-label {
  color: #73777f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.kpi-value {
  color: #17181a;
  font-size: 30px;
  font-weight: 700;
}

.btn {
  min-height: 42px;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 100ms ease !important;
}

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

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-image: none !important;
  box-shadow: none !important;
}

.btn-outline-primary {
  background: #fff !important;
  border-color: #d7d8dd !important;
  color: #33363b !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: #f7f7f8 !important;
  border-color: #bfc1c7 !important;
  color: #17181a !important;
  box-shadow: none !important;
}

.form-label {
  color: #3f4248;
  font-size: 13px;
  font-weight: 600;
}

.form-control,
.input-icon-wrap .form-control,
.custom-select-trigger {
  min-height: 46px;
  border: 1px solid #d9dbe0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #202124;
  box-shadow: none !important;
}

.form-control:focus,
.input-icon-wrap .form-control:focus,
.custom-select-trigger:focus,
.custom-select-wrap.is-open .custom-select-trigger {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.13) !important;
}

.table {
  color: #34373c;
}

.table thead th {
  color: #666a72;
  background: #fafafa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav-header,
.header,
.dlabnav {
  box-shadow: none !important;
}

.header,
.nav-header {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header {
  border-bottom: 1px solid rgba(221, 222, 226, 0.9);
}

.dlabnav {
  background: #fff !important;
  border-right: 1px solid #e7e7ea;
}

.metismenu li > a {
  min-height: 44px;
  margin: 2px 12px;
  border-radius: 8px;
  color: #51555c !important;
  font-weight: 500;
}

.metismenu li.mm-active > a {
  color: #b95700 !important;
  background: #fff3e8 !important;
  font-weight: 650;
}

.metismenu a:hover {
  color: #202124 !important;
  background: #f5f5f7 !important;
}

.copyright {
  border-top: 1px solid #ececef;
}

.dropdown-menu,
.custom-select-dropdown {
  border: 1px solid #dedfe3 !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.12) !important;
  animation: none !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.custom-select-option:hover {
  transform: none !important;
}

/* Connexion */
body[data-page="connexion"] {
  background: #f5f5f7;
}

.auth-split-wrapper {
  align-items: stretch;
}

.auth-hero-pane {
  flex-basis: 42%;
  max-width: 42%;
  padding: clamp(36px, 5vw, 72px);
  background: #17181a;
}

.auth-hero-pane::before,
.auth-hero-pane::after {
  display: none;
}

.brand-logo-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
}

.brand-main {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.brand-badge-pill {
  border-radius: 5px;
}

.auth-hero-body {
  max-width: 480px;
  animation: none;
}

.auth-eyebrow,
.portal-eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-heading {
  max-width: 460px;
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-subtext {
  max-width: 450px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.auth-capabilities {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  list-style: none;
}

.auth-capabilities li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-capabilities i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.16);
  color: #ff9d3d;
  font-size: 11px;
}

.auth-form-pane {
  flex-basis: 58%;
  max-width: 58%;
  background: #f5f5f7;
}

.auth-form-container {
  max-width: 430px;
  padding: 36px;
  border: 1px solid #e1e2e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 18, 20, 0.08);
  animation: none;
}

.auth-form-header .auth-title {
  color: #17181a;
  font-size: 30px;
  font-weight: 700;
}

.btn-auth-submit,
.btn-auth-submit:hover {
  background: var(--primary) !important;
  box-shadow: none !important;
  transform: none;
}

/* Formulaire public */
body.public-portal-bg {
  background: #f5f5f7 !important;
}

.public-navbar {
  padding: 12px 0;
  border-bottom-color: #e4e5e8;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.public-portal-card {
  padding: 32px;
  border-color: #e1e2e6;
  border-radius: 12px;
  box-shadow: none;
}

.portal-title {
  max-width: 620px;
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.portal-desc {
  max-width: 660px;
  margin-bottom: 22px;
  color: #5e6269;
  font-size: 15px;
}

.portal-notice-bar {
  border: 0;
  border-radius: 8px;
  background: #f5f5f7;
}

body[data-page="formulaire-public"] form > .card {
  box-shadow: none !important;
}

body[data-page="formulaire-public"] .card-header {
  background: #fff;
}

body[data-page="formulaire-public"] .card-icon-badge {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

@media (max-width: 991px) {
  .auth-hero-pane,
  .auth-form-pane {
    max-width: 100%;
  }

  .auth-hero-pane {
    min-height: auto;
    padding: 32px 24px 40px;
  }

  .auth-hero-body {
    margin: 64px 0 0;
  }

  .auth-form-pane {
    padding: 24px 16px 40px;
  }
}

@media (max-width: 575.98px) {
  .auth-form-container,
  .public-portal-card {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .hero-heading {
    font-size: 34px;
  }

  .public-navbar .container {
    gap: 12px;
  }

  .public-brand .brand-title-badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .header,
  .nav-header,
  .public-navbar {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
