/**
Theme Name: Astra Child
Author: Ghanam  EL IDRISSI
Author URI: http://wpastra.com/about/
Description: Theme enfant pour les besoin de l\'agence cercle interim réalisé par EL IDRISSI  Ghanam
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


    /*----------------------------Auxerre-Aïkido--------------------------------*/
:root {
        --ast-global-color-9: #b3251e;
}

.site-logo-img img {
    filter: none!important;
    transition: all 0.2s 
linear;
}

.ast-mobile-header-wrap .ast-primary-header-bar, .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 70px;
    max-height: 60px;
}

.site-branding {
    margin-top: 60px;
}

[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
    
    width: 40px;
    height: 40px;
    fill: var(--ast-global-color-9);
}

[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal {
    color: var(--ast-global-color-0);
    /* border: none; */
    background: transparent;
}

/*
.ast-button-wrap .menu-toggle {
    padding-top: -10px!important;
} */

.ast-flex .menu-toggle{
    margin-top: -70px!important;
}

@media (max-width: 921px) {
.site-branding {
    margin-top: 0px!important;
}

.ast-mobile-header-wrap .ast-primary-header-bar, .ast-primary-header-bar .site-primary-header-wrap {
    max-height: 0px!important;
}

.ast-builder-menu .main-navigation {
    margin-top: 40px!important;
}

}

header .custom-logo-link img {
    box-shadow: 1px 1px 8px #555;
    height: 120px !important;
    width: auto !important; 
}

        /*----------------------------Auxerre-Aïkido--------------------------------*/




        /*--------------------- menu slider ------------------------------------*/
          
/* --- CSS Menu Slide GAUCHE (Final) --- */

@media (max-width: 921px) {

    /* FORÇAGE DU GLISSEMENT ET DE LA POSITION FIXED */
    .ast-mobile-header-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 280px !important;
        max-width: 85% !important;
        background: #ffffff !important;
        
        /* 1. Caché par défaut à gauche de l'écran */
        transform: translateX(-100%);
        
        /* 2. Transition fluide pour le glissement */
        transition: transform 0.4s ease-in-out !important;
        
        z-index: 999999 !important;
        overflow-y: auto !important;
        display: block !important;
        padding: 0 !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    /* L'état OUVERT : On le ramène à la position normale */
    .ast-main-header-nav-open .ast-mobile-header-content {
        transform: translateX(0) !important;
    }

    /* L'OVERLAY (Fond sombre) */
    .ast-main-header-nav-open .ast-mobile-header-wrap::before {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0,0,0,0.4);
        z-index: 999998 !important;
        animation: fadein 0.4s;
    }

    /* --- STYLE DE VOTRE NOUVELLE EN-TÊTE (Logo + Titre) --- */
    .mobile-custom-header {
        display: flex;
        justify-content: space-between;
       /*  align-items: center; */
        padding: 15px 20px; /* Espacement interne */
        background: #fff;
        border-bottom: 1px solid #ddd;
        margin-bottom: 0 !important; /* SUPPRIME L'ESPACE ENTRE EN-TÊTE ET MENU */
    }

    /* Groupe Identité (Logo + Titre) */
    .mobile-identity {
        display: flex !important;
        align-items: center;
        gap: 10px; /* Espace entre logo et titre */
        max-width: 80%;
        margin: 0 !important;
    }

    /* Correction du logo (image) */
    .mobile-identity .custom-logo-link img {
        */ height: 100px !important; */ /* HAUTEUR PAR DÉFAUT DU LOGO */
        width: auto !important;
        margin: 0 !important;
    }

    /* Correction du Titre du site */
    .mobile-identity .site-title {
        display: block !important; /* FORCE L'AFFICHAGE DU TITRE */
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #333 !important;
        margin: 0 !important;
    }
    .mobile-identity .site-title a {
         color: inherit !important;
         text-decoration: none !important;
    }
    .mobile-identity .site-description {
         display: none !important; /* Cache la tagline si elle existe */
    }


    /* Correction de la Croix */
    .custom-close-btn {
        font-size: 22px;
        color: #333;
        cursor: pointer;
        padding: 5px;
        flex-shrink: 0;
    }

    /* Ajustement de la liste des liens du menu (pour coller à l'en-tête) */
    .ast-mobile-header-content .main-header-menu {
        margin-top: 0 !important;
        padding-top: 10px !important; /* Petit espace pour les premiers liens */
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* --- 2. TITRE DU SITE SOUS LE SÉPARATEUR (Nouveau bloc) --- */
.site-tagline-separator {
    padding: 10px 20px;
    background-color: #f5f5f5; /* Fond léger pour le titre (optionnel) */
    border-bottom: 1px solid #eee;
    margin-bottom: 0 !important;
}

.mobile-site-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    
    /* MODIFICATION ICI pour centrer le texte */
    text-align: center !important; 
    
    line-height: 1.2;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
        /*--------------------- menu slider ------------------------------------*/

/*--------------- ERGONOMIE -------------------------*/

/* --- AMÉLIORATIONS ERGONOMIE MENU MOBILE --- */

/* 1. Configuration de la couleur principale du site */
/* On utilise la variable Astra --ast-global-color-0 pour la couleur primaire */
:root {
    --couleur-principale-site: var(--ast-global-color-0, #0046e7); /* Fallback au cas où */
}


/* --- A. ÉTAT ACTIF (Barre Verticale à Gauche) --- */

/* Positionnement pour faire de la place et permettre le positionnement absolu de la barre */
.ast-mobile-header-content .current-menu-item > .menu-link {
    position: relative;
    border-left: none !important; /* Supprime toute bordure existante si Astra en ajoute */
    padding-left: 20px !important; /* Décale le texte à droite */
}

/* Création de la barre verticale (petit rectangle) */
.ast-mobile-header-content .current-menu-item > .menu-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px; /* Épaisseur de la barre */
    height: 100%;
    background-color: var(--couleur-principale-site);
    border-radius: 0 3px 3px 0; /* Arrondi léger du côté droit */
}


/* --- B. EFFET DE SURVOL (Hover) --- */

/* Le survol s'applique sur le lien (la ligne entière) */
.ast-mobile-header-content .menu-item a:hover {
    /* Remplissage de toute la ligne avec la couleur principale */
    background-color: var(--couleur-principale-site) !important;
    
    /* Couleur du texte en blanc pour un contraste maximal */
    color: #FFFFFF !important; 
    
    /* Marge/padding pour s'assurer que toute la zone est couverte */
    padding-left: 20px !important; 
}

/* On s'assure que les sous-éléments (comme les flèches) deviennent aussi blancs */
.ast-mobile-header-content .menu-item a:hover * {
    color: #FFFFFF !important;
}

/* Optionnel : Ajout d'une transition pour rendre le changement de couleur plus doux */
.ast-mobile-header-content .menu-item a {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/*--------------- ERGONOMIE -------------------------*/