.modern-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

// ===========================
// HEADER MODERNE
// ===========================

.modern-header {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  
  .header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: 100%;
  }
}

// ===========================
// LOGO ESTAIR
// ===========================

.logo-section {
  flex-shrink: 0;
  
  .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    
    .logo-arrows {
      position: relative;
      width: 32px;
      height: 32px;
      
      .arrow-top {
        position: absolute;
        top: 4px;
        left: 4px;
        width: 12px;
        height: 12px;
        background: #4AA8DC;
        clip-path: polygon(0 0, 100% 0, 50% 100%);
        transform: rotate(45deg);
      }
      
      .arrow-bottom {
        position: absolute;
        bottom: 4px;
        right: 4px;
        width: 12px;
        height: 12px;
        background: #8DA969;
        clip-path: polygon(0 0, 100% 0, 50% 100%);
        transform: rotate(225deg);
      }
    }
    
    .logo-text {
      font-size: 20px;
      font-weight: 700;
      color: #4AA8DC;
      letter-spacing: -0.025em;
    }
  }
}

// ===========================
// NAVIGATION PRINCIPALE
// ===========================

.main-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  
  .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    
    &:hover {
      background: rgba(74, 168, 220, 0.1);
      color: #4AA8DC;
    }
    
    &.active {
      background: #4AA8DC;
      color: white;
      font-weight: 600;
      
      &::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 3px;
        background: #8DA969;
        border-radius: 2px 2px 0 0;
      }
    }
    
    mat-icon {
      font-size: 18px;
      width: 18px;
      height: 18px;
    }
  }
}

// ===========================
// ACTIONS UTILISATEUR
// ===========================

.user-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  
  button {
    position: relative;
    color: #6b7280;
    
    &:hover {
      background: #f8f9fa;
      color: #4AA8DC;
    }
    
    .notification-badge {
      position: absolute;
      top: -2px;
      right: -2px;
      background: #ef4444;
      color: white;
      font-size: 10px;
      font-weight: 600;
      padding: 2px 6px;
      border-radius: 10px;
      min-width: 16px;
      text-align: center;
    }
  }
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  
  &:hover {
    background: #f8f9fa;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4AA8DC, #8DA969);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
  }
  
  .user-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
  }
  
  mat-icon {
    color: #6b7280;
    font-size: 16px;
  }
}

// ===========================
// CONTENEUR DES TABS PRINCIPAUX
// ===========================

.main-tabs-container {
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  
  app-hybrid-navigation {
    width: 100%;
  }
}

// ===========================
// ZONE PRINCIPALE (SIDEBAR + CONTENU)
// ===========================

.layout-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

// ===========================
// CONTENU PRINCIPAL
// ===========================

.main-content {
  flex: 1;
  overflow: auto;
  background: #f8f9fa;
  padding: 0;
}

// ===========================
// RESPONSIVE
// ===========================

@media (max-width: 768px) {
  .modern-header .header-content {
    padding: 0 16px;
  }
  
  .main-navigation {
    gap: 4px;
    
    .nav-item {
      padding: 8px 12px;
      font-size: 13px;
      
      span {
        display: none;
      }
    }
  }
  
  .user-menu .user-name {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo-section .logo-text {
    display: none;
  }
  
  .main-navigation {
    .nav-item {
      padding: 8px;
    }
  }
}