/*
 Theme Name:   Hello Elementor Child
 Description:  Thème enfant pour Monts et Vallées
 Author:       Skywork
 Template:     hello-elementor
 Version:      1.1.6
*/

/* --- Custom Fonts (Corbel) --- */
@font-face { font-family: 'Corbel'; src: url('fonts/CORBEL.TTF') format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Corbel'; src: url('fonts/CORBELB.TTF') format('truetype'); font-weight: bold; font-style: normal; }

body { font-family: 'Corbel', sans-serif; color: var(--mv-text); }

/* ========================================================================= */
/* --- 1. ALIGNEMENT GLOBAL DU HEADER --- */
/* ========================================================================= */
.elementskit-navbar-nav, .mv-utility-links {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ========================================================================= */
/* --- 2. MENU PRINCIPAL & UTILITAIRES --- */
/* ========================================================================= */
.elementskit-navbar-nav > li > a, 
.mv-utility-links .elementor-heading-title,
.mv-utility-links .elementor-widget-shortcode {
    position: relative !important;
    padding-top: 15px !important;
    padding-bottom: 25px !important;
    margin-bottom: -15px !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.elementskit-navbar-nav > li:hover > a,
.elementskit-navbar-nav > li.current-menu-item > a,
.mv-utility-links .elementor-widget-heading:hover .elementor-heading-title {
    font-weight: 700 !important;
}

.elementskit-navbar-nav > li:hover > a::before,
.elementskit-navbar-nav > li.current-menu-item > a::before,
.mv-utility-links .elementor-widget-heading:hover .elementor-heading-title::before {
    content: "" !important;
    position: absolute !important;
    top: -5px !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 19px; height: 16px;
    background-image: url('fonts/coeur-rollover.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    z-index: 10;
}

.elementskit-dropdown, .elementskit-megamenu-panel {
    top: 90% !important;
    margin-top: 0 !important;
}

.elementskit-submenu-indicator {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: var(--mv-accent) !important;
    font-size: 12px !important;
    margin-left: 8px !important;
}

/* ========================================================================= */
/* --- 3. CONTENU DU MÉGA MENU (Cards inside) --- */
/* ========================================================================= */

.elementskit-dropdown li a:not(.elementor-button), 
.elementskit-megamenu-panel a:not(.elementor-button) {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    font-weight: 400 !important;
}

.elementskit-dropdown li a::before, 
.elementskit-megamenu-panel a::before {
    display: none !important;
}

/* Logique Conteneur Cliquable sans altérer l opacité des enfants */
.mv-clickable-container {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
}

/* Voile d opacité (Overlay) sur l image uniquement */
.mv-clickable-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0); /* Invisible par défaut */
    transition: background-color 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.mv-clickable-container:hover::after {
    background-color: rgba(255, 255, 255, 0.3); /* Simule 70% d opacité image */
}

/* S assure que le bouton reste AU-DESSUS du voile pour garder sa couleur pure */
.mv-clickable-container .mv-full-link {
    position: relative !important;
    z-index: 2 !important;
}

.mv-clickable-container .mv-full-link,
.mv-clickable-container .mv-full-link .elementor-widget-container,
.mv-clickable-container .mv-full-link .elementor-button-wrapper,
.mv-clickable-container .mv-full-link a.elementor-button {
    position: static !important;
}

/* Lien géant */
.mv-clickable-container .mv-full-link a.elementor-button::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100 !important;
    cursor: pointer !important;
}

/* Style du bouton au survol */
.mv-clickable-container:hover .elementor-button {
    background-color: #013c5e !important; /* Bleu Font Mont */
}
.mv-clickable-container:hover .elementor-button-text {
    color: #FFFFFF !important;
}
