/**
 * Styles pour le contenu principal de l'interface de gestion
 */

/* Contenu principal - panneau flexible dans Zone B */
.main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    /* Hauteur minimale pour assurer qu'il y a du scroll et que sticky fonctionne */
    min-height: calc(100vh - 140px);
}

/* Les sections de contenu prennent toute la largeur et s'empilent verticalement */
.content-section {
    display: none;
    width: 100%;
    flex-direction: column;
}

.content-section.active {
    display: flex;
}

/* Tous les éléments enfants d'une section prennent la largeur complète */
.content-section > * {
    width: 100%;
    margin-bottom: 24px;
}

.content-section > *:last-child {
    margin-bottom: 0;
}

.content-section {
    display: none;
    width: 100%;
    flex-direction: column;
}

.content-section.active {
    display: flex;
}

/* En-tête de contenu */
.content-header {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

.content-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Responsive pour contenu principal */
@media (max-width: 1200px) {
    .main-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .content-description {
        font-size: 0.9rem;
    }

    .content-header {
        padding: 20px;
    }
}
