/* ============================================
 * PAGE-CATEGORIES-TITLE-HARMONIZATION.CSS
 * Harmonisation du titre H2 "Catégories" 
 * avec le style des H1 de categories.php
 * ============================================ */

/* Application du style H1 au titre de section "Catégories" */
#categories-section .section-title {
    /* Typographie - même que H1 */
    font-size: 1.7rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    
    /* Couleurs */
    color: var(--text-color) !important;
    
    /* Espacement */
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    padding-bottom: 10px !important;
    
    /* Positionnement pour la ligne décorative */
    position: relative !important;
    display: inline-block !important;
    
    /* Réinitialisation */
    text-transform: none !important;
    letter-spacing: normal !important;
    
    /* Suppression du style d'icône flex */
    align-items: initial !important;
    gap: 0 !important;
}

/* Masquer l'icône SVG */
#categories-section .section-icon {
    display: none !important;
}

/* Ligne décorative sous le titre - même style que H1 */
#categories-section .section-title::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -2px !important;
    width: 100px !important;
    height: 3px !important;
    background-color: var(--primary-color) !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Masquer la ligne hr existante */
#categories-section .section-line {
    display: none !important;
}

/* Ajustement du conteneur pour aligner à gauche */
#categories-section .section-title-container {
    text-align: left !important;
    margin-bottom: 30px !important;
}

#categories-section .section-title-content {
    display: inline-block !important;
}

/* ============================================
 * RESPONSIVE - TABLETTES ET GRANDS ÉCRANS
 * ============================================ */

@media screen and (max-width: 1200px) {
    #categories-section .section-title {
        font-size: 1.6rem !important;
    }
}

@media screen and (max-width: 1024px) {
    #categories-section .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 25px !important;
    }
}

/* ============================================
 * RESPONSIVE - TABLETTES
 * ============================================ */

@media screen and (max-width: 768px) {
    #categories-section .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 25px !important;
        padding-bottom: 8px !important;
    }
    
    /* Ajustement de la ligne décorative pour tablettes */
    #categories-section .section-title::after {
        width: 80px !important;
        height: 3px !important;
    }
}

/* ============================================
 * RESPONSIVE - SMARTPHONES (largeur moyenne)
 * ============================================ */

@media screen and (min-width: 321px) and (max-width: 480px) {
    #categories-section .section-title {
        font-size: 1.4rem !important;
        line-height: 1.75rem !important;
        margin-bottom: 20px !important;
        padding-bottom: 8px !important;
    }
    
    /* Ligne décorative plus petite sur mobile */
    #categories-section .section-title::after {
        width: 70px !important;
        height: 2.5px !important;
    }
}

/* ============================================
 * RESPONSIVE - PETITS SMARTPHONES
 * ============================================ */

@media screen and (max-width: 320px) {
    #categories-section .section-title {
        font-size: 1.25rem !important;
        line-height: 1.65rem !important;
        margin-bottom: 20px !important;
        padding-bottom: 8px !important;
    }
    
    /* Ligne décorative encore plus petite */
    #categories-section .section-title::after {
        width: 60px !important;
        height: 2px !important;
    }
}

/* ============================================
 * MODE SOMBRE
 * ============================================ */

.dark-mode #categories-section .section-title {
    color: #f0f0f0 !important;
}

.dark-mode #categories-section .section-title::after {
    background-color: var(--primary-color) !important;
}