/**
 * Cache les H2 redondants dans le dashboard
 * Garde uniquement celui de "Demander un devis"
 */

/* Masquer les H2 dans tous les sections sauf demander-devis */
#dashboard .section-header h2,
#passer-commande .section-header h2,
#marques .section-header h2,
#actualites .section-header h2,
#faq .section-header h2,
#panier > h2,
#mes-conversations .section-header h2,
#mon-compte .section-header h2 {
    display: none !important;
}

/* Garder visible uniquement pour demander un devis */
#demander-devis h2 {
    display: block !important;
}

/* Ajuster l'espacement après suppression du H2 */
.section-header {
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
}

/* Si le header n'a plus que le paragraphe, réduire encore l'espace */
.section-header:has(h2:only-child) {
    display: none !important;
}

/* Garder le paragraphe de description s'il existe */
.section-header p {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    color: #666;
    font-size: 0.95rem;
}

/* Section panier - ajustement spécial car structure différente */
#panier {
    padding-top: 10px !important;
}

/* Sur mobile, encore moins d'espace */
@media (max-width: 768px) {
    .section-header {
        padding-bottom: 5px !important;
        margin-bottom: 10px !important;
    }
    
    .section-header p {
        margin-bottom: 10px !important;
        font-size: 0.9rem !important;
    }
    
    /* Réduire l'espace en haut des sections */
    .content-section {
        padding-top: 10px !important;
    }
}

/* Si un header devient vide après suppression du H2, le masquer complètement */
.section-header:empty,
.section-header:has(h2):not(:has(p)) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ajustements spécifiques par section si nécessaire */

/* Dashboard - "Mon dashboard" */
#dashboard .section-header {
    margin-bottom: 10px !important;
}

/* Actualités */
#actualites .news-grid {
    margin-top: 0 !important;
}

/* FAQ */
#faq .faq-list {
    margin-top: 0 !important;
}

/* Mon compte */
#mon-compte .account-tabs {
    margin-top: 0 !important;
}

/* Mes conversations */
#mes-conversations .conversations-list {
    margin-top: 0 !important;
}

/* Marques */
#marques .brands-grid {
    margin-top: 0 !important;
}

/* Passer commande */
#passer-commande .filters-bar {
    margin-top: 0 !important;
}
