.departements-page {
    padding: 180px 0;
    background: #f8f9fa;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #334D6C;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #5a5a5c;
}

/* Navigation entre départements */
.departements-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.dept-nav-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #5a5a5c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dept-nav-btn:hover,
.dept-nav-btn.active {
    background: #334D6C;
    border-color: #334D6C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 77, 108, 0.3);
}

/* Sections départements */
.departement-section {
    display: none;
}

.departement-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dept-header {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.dept-title {
    font-size: 2rem;
    font-weight: 700;
    color: #334D6C;
    margin-bottom: 20px;
}

.chef-dept {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chef-info h4 {
    color: #5a5a5c;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.chef-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F97316;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #334D6C;
}

/* Présentation du département */
.dept-presentation {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.presentation-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.presentation-card h3 {
    color: #334D6C;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.presentation-card p {
    color: #5a5a5c;
    line-height: 1.7;
    margin-bottom: 15px;
}

.stats-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #F97316;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #334D6C;
    margin-bottom: 5px;
}

.stat-label {
    color: #5a5a5c;
    font-weight: 600;
}

/* Section membres */
.membres-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #334D6C;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #F97316;
}

.table-container {
    overflow-x: auto;
}

.membres-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.membres-table thead {
    background: #334D6C;
    color: white;
}

.membres-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.membres-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.membres-table tbody tr:hover {
    background: #f8f9fa;
}

.membres-table tbody tr:last-child {
    border-bottom: none;
}

.membres-table td {
    padding: 15px;
    color: #5a5a5c;
}

.membres-table td:first-child {
    font-weight: 600;
    color: #334D6C;
}

/* Responsive */
@media (max-width: 768px) {
    .dept-presentation {
        grid-template-columns: 1fr;
    }
    
    .stats-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 120px;
    }
    
    .departements-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .dept-nav-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .dept-header {
        padding: 25px;
    }
    
    .membres-section {
        padding: 20px;
    }
    
    .membres-table {
        font-size: 0.9rem;
    }
    
    .membres-table th,
    .membres-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .dept-title {
        font-size: 1.6rem;
    }
    
    .chef-dept {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-cards {
        flex-direction: column;
    }
    
    .dept-nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}