/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Version: 2026.02.05.02
Updated: 2026-02-05 - AJOUT OMBRE SCROLL
*/

/* ============================================================
   1. LA CROIX (MENU HAMBURGER)
   ============================================================ */
.ast-header-break-point .ast-button-wrap .menu-toggle {
    background: transparent !important;
    z-index: 10 !important;
}

.ast-header-break-point .menu-toggle .mobile-menu-toggle-icon svg,
.ast-header-break-point .menu-toggle.toggled svg,
.ast-header-break-point .ast-mobile-svg {
    fill: #2a3b45 !important;
}

/* ============================================================
   2. LE FOND PLEIN ÉCRAN (MOBILE)
   ============================================================ */
.ast-header-break-point .ast-mobile-header-wrap .ast-mobile-header-content {
    background-color: #f7f4ef !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99990 !important;
    padding-top: 0 !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;  
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

body.ast-main-header-nav-open .ast-mobile-header-wrap .ast-mobile-header-content {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   3. DESIGN DES LIENS (MOBILE)
   ============================================================ */
.ast-header-break-point .main-header-menu {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center !important;
    margin: 0 !important;
}

.ast-header-break-point .main-header-menu .menu-item {
    border: none !important;
    background: transparent !important;
    display: block !important;
}

.ast-header-break-point .main-header-menu .menu-item a {
    font-family: 'Yeseva One', serif !important;
    font-size: 32px !important;
    color: #2a3b45 !important;
    padding: 15px 0 !important;
    background: transparent !important;
    display: block !important;
}

/* ============================================================
   4. LE BOUTON "ME CONTACTER" (MOBILE)
   ============================================================ */
.ast-header-break-point .ast-builder-layout-element.ast-header-button-1 {
    margin-top: 60px !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.ast-header-break-point .ast-custom-button {
    font-family: sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 18px 45px !important;
    border-radius: 50px !important;
    background-color: #2a3b45 !important;
    color: #ffffff !important;
}

/* ============================================================
   5. TITRE SECTION 1 ACCUEIL (MOBILE)
   ============================================================ */
@media only screen and (max-width: 767px) {
    h2.ekit-heading--title.elementskit-section-title br {
        display: none;
    }
}

/* ============================================================
   6. HEADER STICKY (GLOBAL)
   ============================================================ */
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important; 
    /* AJOUT : Transition douce pour l'apparition de l'ombre */
    transition: box-shadow 0.3s ease, background-color 0.3s ease !important;
    /* AJOUT : Pas d'ombre au départ (quand on est tout en haut) */
    box-shadow: none !important; 
}

/* ============================================================
   7. CORRECTION CHEVAUCHEMENT (SAUF ACCUEIL)
   ============================================================ */
body:not(.home) {
    padding-top: 100px !important; 
}

/* ============================================================
   8. EFFET AU SCROLL (GÉRÉ PAR JS) - NOUVEAU
   ============================================================ */
/* Quand le JS ajoute la classe 'header-scrolled' au body... */
body.header-scrolled .site-header {
    /* ... On affiche une belle ombre douce */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    /* ... Et on force le fond crème pour éviter la transparence sur le contenu */
    background-color: #f7f4ef !important; 
}


/* ============================================================
   9. CALENDRIER AMELIA
   ============================================================ */
/* FORCE LE CALENDRIER AMELIA À REMONTER */
#amelia-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Supprime l'espace interne du wrapper Amelia */
.am-fs__wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Cache le titre interne si nécessaire */
.am-fs__heading {
    display: none !important;
}