/* ==========================================================================
   MECAVOICE™ · DESIGN SYSTEM & RESPONSIVE MASTER STYLESHEET
   Style: Céramique Pro, Stripe / Apple / Eplaque UI, 100% Mobile First & Responsive
   ========================================================================== */

:root {
  /* --- PALETTE MAÎTRESSE OFFICIELLE MECAVOICE™ --- */
  --blue-electric: #2B66FE;       /* Bleu Électrique Boutons & CTAs */
  --blue-hover: #1D4ED8;          /* Bleu Électrique Hover */
  --blue-subtle: rgba(43, 102, 254, 0.1); /* Voile Bleu léger */

  --noir-profond: #000000;        /* Noir Profond Master (Footer & Fond Sombre) */
  --noir-carte: #0B0F19;          /* Noir Écrin Cartes Sombres */
  --dark-main: #0F172A;           /* Ardoise Navigation Pro */
  --dark-card: #1E293B;           /* Ardoise Carte Pro */

  --bg-ceramic: #F8FAFC;          /* Blanc Céramique Pro (Canvas Principal) */
  --bg-white: #FFFFFF;            /* Blanc Pur Cartes */
  --bg-subtle: #F1F5F9;           /* Gris Clair Subtil */

  --text-primary: #0F172A;        /* Texte Noir Ardoise Lisible */
  --text-secondary: #475569;      /* Texte Gris Moyen */
  --text-muted: #64748B;          /* Texte Gris Atténué */
  --text-footer: #9CA3AF;         /* Texte Footer Gris Pro */

  --border-color: #E2E8F0;        /* Bordure Grise Discrète */
  --border-dark: #1F2937;         /* Bordure Sombre Footer */

  /* Statuts Métier */
  --green-success: #16A34A;
  --amber-alert: #D97706;
  --red-accent: #DC2626;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-ceramic);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.mainWidth, .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION (EPLAUQUE / PRO SIV 1:1)
   ========================================================================== */
header, #header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

#mainHeader, .nav-wrapper {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

#mainMenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--dark-main);
  flex-shrink: 0;
}

.brand-logo .tag-pro, .brand-logo .brand-tag {
  background: var(--dark-main);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#menuContainer, .nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menuHoverItem {
  position: relative;
}

.menuLink, .nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* SKELLO / MECAVOICE MASTER DROPDOWN */
.mv-dropdown {
  position: relative;
}
.mv-dropdown:hover .mv-dropdown-menu,
.mv-dropdown:focus-within .mv-dropdown-menu,
.mv-dropdown.open .mv-dropdown-menu {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mv-dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.mv-dropdown-item {
  transition: all 0.15s ease;
}
.mv-dropdown-item:hover {
  background: #F1F5F9 !important;
  transform: translateX(3px);
}
.mv-dropdown-item:hover .mv-dropdown-title {
  color: #2B66FE !important;
}

.menuLink:hover, .nav-link:hover {
  color: var(--blue-electric);
  background: var(--blue-light);
}

/* Dropdown Menu */
.dropdownMenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  z-index: 1001;
}

.menuHoverItem:hover .dropdownMenu,
.menuHoverItem:focus-within .dropdownMenu {
  display: block;
}

.dropdownItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.dropdownItem:hover {
  background: var(--bg-ceramic);
}

.dropdownIcon {
  width: 32px;
  height: 32px;
  background: var(--blue-light);
  color: var(--blue-electric);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.dropdownText .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-main);
}

.dropdownText .desc {
  font-size: 12px;
  color: var(--text-muted);
}

#rightContainer, .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.telSupport {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.telSupport .telNum {
  font-weight: 800;
  color: var(--dark-main);
}

.telSupport .telLabel {
  font-size: 11px;
  color: var(--green-success);
  font-weight: 700;
}

/* Boutons */
.btn-primary, .ctaBlue {
  background: var(--blue-electric);
  color: #FFF;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 102, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover, .ctaBlue:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-secondary, .ctaBlack {
  background: var(--dark-main);
  color: #FFF;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover, .ctaBlack:hover {
  background: #1E293B;
}

.ctaSecondary {
  background: var(--bg-subtle);
  color: var(--dark-main);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ctaSecondary:hover {
  background: var(--border-color);
}

/* Mobile Menu Toggle */
.mobileMenuToggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark-main);
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.heroSection, .section-padding {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-ceramic) 100%);
  border-bottom: 1px solid var(--border-color);
}

.heroContent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.reassuranceBadges {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badgeItem {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 6px;
}

.heroTitle, .section-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--dark-main);
  margin-bottom: 20px;
  word-break: break-word;
}

.heroTitle .blue, .section-title .blue {
  color: var(--blue-electric);
}

.heroDesc, .section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.heroCtas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.heroMediaMockup {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockupHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.mockupStatus {
  background: var(--green-badge);
  color: var(--dark-main);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
}

/* ==========================================================================
   PREUVE SOCIALE
   ========================================================================== */
.socialProofSection {
  padding: 40px 0;
  text-align: center;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.proofGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.proofCard {
  background: var(--bg-ceramic);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: left;
}

.stars {
  color: #F59E0B;
  font-size: 18px;
  margin-bottom: 6px;
}

/* ==========================================================================
   BENTO GRID
   ========================================================================== */
.bentoSection {
  padding: 80px 0;
}

.sectionHeader {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.sectionTitle {
  font-size: 34px;
  font-weight: 800;
  color: var(--dark-main);
  letter-spacing: -0.5px;
}

.sectionSub {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 12px;
}

.bentoGrid, .wf-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.bentoCard, .wf-box {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.bentoCard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-electric);
}

.bentoIcon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  color: var(--blue-electric);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.bentoTitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-main);
  margin-bottom: 10px;
}

.bentoDesc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   SIMULATEUR DE CALCUL
   ========================================================================== */
.calcSection {
  padding: 60px 24px;
  background: var(--dark-main);
  color: #FFF;
  border-radius: var(--radius-xl);
  margin: 40px auto;
  max-width: 960px;
}

.calcWrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.calcCard {
  background: var(--dark-card);
  border: 1px solid var(--border-focus);
  padding: 32px;
  border-radius: var(--radius-lg);
  margin-top: 28px;
}

.calcSlider {
  width: 100%;
  margin: 20px 0;
}

.calcResGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.resBox {
  padding: 20px;
  border-radius: var(--radius-md);
}

.resBox.bad {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--red-accent);
}

.resBox.good {
  background: rgba(0, 240, 118, 0.15);
  border: 1px solid var(--green-badge);
}

/* ==========================================================================
   GRILLE TARIFAIRE
   ========================================================================== */
.pricingSection {
  padding: 80px 0;
}

.pricingGrid, .wf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pricingCard, .wf-box.solid {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricingCard.popular {
  border: 2px solid var(--blue-electric);
  box-shadow: var(--shadow-lg);
}

.popBadge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-electric);
  color: #FFF;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 12px;
  text-transform: uppercase;
}

.planName {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-main);
}

.planPrice {
  font-size: 38px;
  font-weight: 900;
  color: var(--dark-main);
  margin: 16px 0;
}

.planPrice span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.planFeatures {
  list-style: none;
  margin: 24px 0;
  flex-grow: 1;
}

.planFeatures li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.planFeatures li::before {
  content: "✓";
  color: var(--green-success);
  font-weight: 900;
}

/* ==========================================================================
   STICKY BOTTOM BAR
   ========================================================================== */
#scrolledMenu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFF;
  padding: 12px 0;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#scrolledMenu.active {
  transform: translateY(0);
}

/* ==========================================================================
   COMPOSANTS WIREFRAME & SOUS-PAGES
   ========================================================================== */
.wf-pill-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-electric);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wf-pill-tag.dark {
  background: var(--dark-main);
  color: #FFF;
}

.wf-pill-tag.success {
  background: #E8F5E9;
  color: #2E7D32;
}

.media-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.media-slot {
  background: var(--bg-subtle);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.media-slot .ms-kind {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue-electric);
  text-transform: uppercase;
}

.media-slot .ms-title {
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0;
}

.media-slot .ms-brief {
  font-size: 13px;
  color: var(--text-secondary);
}

.media-slot .ms-specs {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 8px;
}

/* Footer */
footer {
  background: var(--dark-main);
  color: #94A3B8;
  padding: 40px 0;
  margin-top: 60px;
  font-size: 13.5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-link {
  color: #CBD5E1;
}

.footer-link:hover {
  color: #FFF;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (100% BULLETPROOF)
   ========================================================================== */

/* TABLETTE (max 1024px) */
@media (max-width: 1024px) {
  .heroContent {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .bentoGrid, .wf-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricingGrid, .wf-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .proofGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE LARGE & MOYEN (max 768px) */
@media (max-width: 768px) {
  #mainHeader, .nav-wrapper {
    height: 64px;
  }

  .brand-logo {
    font-size: 18px;
  }

  #menuContainer, .nav-links, .telSupport, .ctaBlack, .btn-secondary {
    display: none !important;
  }

  .mobileMenuToggle {
    display: block;
  }

  .heroTitle, .section-title {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .heroDesc, .section-desc {
    font-size: 15.5px;
  }

  .bentoGrid, .wf-grid-4, .pricingGrid, .wf-grid-3, .proofGrid, .calcResGrid {
    grid-template-columns: 1fr;
  }

  .heroCtas {
    flex-direction: column;
    align-items: stretch;
  }

  .heroCtas a, .heroCtas button {
    width: 100%;
    text-align: center;
  }

  .calcSection {
    padding: 36px 16px;
    border-radius: var(--radius-lg);
  }

  .calcCard {
    padding: 20px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  #scrolledMenu {
    padding: 10px 16px;
  }

  #scrolledMenu .mainWidth {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================================================
   APP SAAS DASHBOARD ARCHITECTURE (FIXED SIDEBAR + INDEPENDENT SCROLL)
   ========================================================================== */
.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  max-height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #F8FAFC;
  transition: grid-template-columns 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-layout.sidebar-collapsed {
  grid-template-columns: 64px 1fr;
}

.app-sidebar {
  background: #0B0F19;
  color: #FFFFFF;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1E293B;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 50;
  box-sizing: border-box;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand-box {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.sidebar-brand-logo {
  width: 30px;
  height: 30px;
  background: #2B66FE;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 2px 8px rgba(43, 102, 254, 0.35);
  flex-shrink: 0;
}

.sidebar-brand-title {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
}

.sidebar-brand-badge {
  font-size: 9.5px;
  color: #60A5FA;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-collapse-btn {
  background: #151E2E;
  border: 1px solid #243044;
  color: #94A3B8;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  background: #2B66FE;
  color: #FFFFFF;
  border-color: #2B66FE;
}

/* SLEEK ROLE SWITCHER */
.sidebar-role-container {
  margin-bottom: 12px;
  padding: 0 2px;
}

.sidebar-role-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #151E2E;
  border: 1px solid #243044;
  border-radius: 8px;
  padding: 5px 8px;
  transition: border-color 0.15s;
}

.sidebar-role-badge:focus-within,
.sidebar-role-badge:hover {
  border-color: #3B82F6;
}

.mv-role-selector {
  width: 100%;
  background: transparent;
  color: #E2E8F0;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.mv-role-selector option {
  background: #0F172A;
  color: #FFFFFF;
}

/* NAVIGATION ITEMS */
.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.app-sidebar-nav::-webkit-scrollbar {
  width: 3px;
}
.app-sidebar-nav::-webkit-scrollbar-thumb {
  background: #243044;
  border-radius: 3px;
}

.app-nav-section-title {
  font-size: 9.5px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 12px;
  margin-bottom: 4px;
  padding-left: 8px;
  white-space: nowrap;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7.5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  margin-bottom: 1px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.app-nav-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.app-nav-item:hover {
  background: #151E2E;
  color: #FFFFFF;
}

.app-nav-item.active {
  background: #2B66FE;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(43, 102, 254, 0.25);
}

.app-nav-item.active svg {
  opacity: 1;
}

/* USER FOOTER */
.app-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 4px 4px;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1E293B;
  border: 1px solid #334155;
  color: #38BDF8;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sidebar-user-role {
  font-size: 10.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-footer-link {
  font-size: 11px;
  color: #64748B;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.sidebar-footer-link:hover {
  color: #94A3B8;
}

.sidebar-logout-link {
  font-size: 11px;
  color: #F87171;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.sidebar-logout-link:hover {
  color: #EF4444;
}

/* COLLAPSED MODE PERFECTION (ZERO CLUMPING, IDENTICAL PROPORTIONS) */
.app-layout.sidebar-collapsed .sidebar-header {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 0 12px 0 !important;
}

.app-layout.sidebar-collapsed .sidebar-collapse-btn {
  transform: rotate(180deg);
  margin: 0 auto;
}

.app-layout.sidebar-collapsed .sidebar-role-container {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 12px !important;
  padding: 0 !important;
}

.app-layout.sidebar-collapsed .sidebar-role-badge {
  width: 36px !important;
  height: 32px !important;
  padding: 0 !important;
  justify-content: center !important;
}

.app-layout.sidebar-collapsed .sidebar-role-badge select {
  display: none !important;
}

.app-layout.sidebar-collapsed .sidebar-hide-on-collapse {
  display: none !important;
}

.app-layout.sidebar-collapsed .sidebar-show-on-collapse {
  display: flex !important;
}

/* SECTION DIVIDERS INSTEAD OF COLLAPSED GAP LOSS */
.app-layout.sidebar-collapsed .app-nav-section-title {
  font-size: 0 !important;
  height: 1px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  margin: 10px 8px !important;
  padding: 0 !important;
  display: block !important;
}

.app-layout.sidebar-collapsed .app-nav-item span {
  display: none !important;
}

.app-layout.sidebar-collapsed .app-nav-item {
  justify-content: center !important;
  width: 44px !important;
  height: 38px !important;
  padding: 0 !important;
  margin: 0 auto 3px auto !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.app-layout.sidebar-collapsed .app-nav-item svg {
  width: 18px !important;
  height: 18px !important;
  opacity: 0.9 !important;
}

/* FLOATING TOOLTIP ON HOVER IN COLLAPSED MODE */
.app-layout.sidebar-collapsed .app-nav-item:hover::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #0F172A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid #1E293B;
  z-index: 1000;
  pointer-events: none;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.app-layout.sidebar-collapsed .sidebar-user-card {
  justify-content: center !important;
  margin-bottom: 8px !important;
}

.app-layout.sidebar-collapsed .sidebar-user-avatar {
  width: 36px !important;
  height: 36px !important;
  font-size: 13px !important;
  margin: 0 auto !important;
}

.app-layout.sidebar-collapsed .sidebar-footer-actions {
  justify-content: center !important;
  padding-top: 8px !important;
}

.app-layout.sidebar-collapsed .sidebar-logout-link {
  width: 36px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

/* Settings Tabs Bar */
.settings-tab-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.settings-tab {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #64748B;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
}

.settings-tab:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

.settings-tab.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

/* ==========================================================================
   SKELLO 1:1 SECTOR CARDS (PHOTO BACKGROUNDS)
   ========================================================================== */
.skello-sector-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2) !important;
}

.skello-sector-card:hover img {
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .skello-sector-card {
    height: 420px !important;
  }
}

@media (max-width: 900px) {
  div:has(> .skello-sector-card) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 580px) {
  div:has(> .skello-sector-card) {
    grid-template-columns: 1fr !important;
  }
  .skello-sector-card {
    height: 380px !important;
  }
}




/* --- MECAVOICE SUBMENU SPECIALITES ACCORDION --- */
.mv-special-details summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.mv-special-details summary::-webkit-details-marker {
  display: none;
}
.mv-special-details summary .mv-arrow-icon {
  transition: transform 0.2s ease;
}
.mv-special-details[open] summary .mv-arrow-icon {
  transform: rotate(180deg);
}
.mv-special-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 10px;
  margin-top: 4px;
  border-left: 2px solid #1E293B;
  margin-left: 8px;
}
