/* --- CONFIGURATION DES BLOCS --- */
.intello-hero-section {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

/* NAVIGATION : Alignée sur marge 8% */
.intello-nav {
    position: absolute;
    top: -15px; /* Pour coller le haut */
    left: 0;
    width: 100%;
    padding: 0 8%; 
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 50px;
}

.logo img {
    height: 200px; /* Taille Desktop */
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0; padding: 0;
}

/* Éviter que les menus apparaissent partout pendant les transitions */
.hero-slider-container .nav-menu { display: none !important; } 
.intello-nav .nav-menu { display: flex !important; }

.nav-menu a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 19px;
}

/* CONTENU : Alignement aligné à 8% */
.hero-content {
    position: relative;
    z-index: 10;
    padding-left: 8%;
    margin-top: 80px;
}

.hero-title {
    color: #fff !important;
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    line-height: 1.1;
    font-weight: 800;
}

.orange-text { color: #FF8C00 !important; }

.hero-subtitle {
    color: #fff !important;
    font-size: 1.6rem;
    margin: 20px 0 40px 0;
}

.hero-buttons { display: flex; gap: 20px; }
.btn-ensavoir { background: #FF8C00; color: #fff !important; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 700; }
.btn-devis { border: 2px solid #fff; color: #fff !important; padding: 13px 35px; border-radius: 50px; text-decoration: none; }

/* --- RESPONSIVITÉ MOBILE & FORMULAIRE --- */
@media (max-width: 768px) {
    .intello-nav {
        padding: 0 5%;
        top: 0;
    }

    .nav-container {
        justify-content: space-between;
        width: 100%;
    }

    .logo img {
        height: 150px; /* Logo augmenté 2.5X par rapport à la version miniature précédente */
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .burger-menu span { width: 35px; height: 3px; background: #fff; }

    /* MENU MOBILE */
    .mobile-overlay {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: #000;
        z-index: 1500;
        transition: 0.4s;
        display: flex; align-items: center; justify-content: center;
    }
    .mobile-overlay.open { right: 0; }
    .mobile-nav-links { list-style: none; text-align: center; }
    .mobile-nav-links a { color: #fff; font-size: 28px; text-decoration: none; }

    .hero-content {
        padding: 0 5%;
        text-align: center;
        margin-top: 130px;
    }

    /* CORRECTIF SERVICES ET FORMULAIRE MOBILE */
    .section-services, .wpcf7, form, .elementor-widget-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    input[type="text"], input[type="email"], textarea {
        width: 100% !important;
        font-size: 16px !important; /* Évite le zoom auto mobile */
        margin-bottom: 10px !important;
    }

    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-ensavoir, .btn-devis { width: 90%; }
}

/* SLIDER ANIMATION */
.hero-slider-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide.active { opacity: 1; }
/* Titres des articles sur la page BLOG/LISTE */
.blog .entry-title,
.archive .entry-title,
.category .entry-title,
.search-results .entry-title {
    color: #FF8C00 !important;
}

/* Titre d'un ARTICLE INDIVIDUEL (page single) */
.single-post .entry-title,
.post-type-archive-post .entry-title {
    color: #FF8C00 !important;
}

/* Titres des articles dans les widgets récents */
.widget_recent_entries a,
.widget_posts a {
    color: #FF8C00 !important;
}

/* Titres des articles dans Elementor (si utilisé) */
.elementor-post__title a {
    color: #FF8C00 !important;
}
.elementor-post__title a:hover {
    color: #e67e00 !important;
}
/* Empêche le "pull-to-refresh" et le rebond élastique sur mobile */
html, body {
    overscroll-behavior-y: none !important;
    position: relative;
    overflow-x: hidden;
}

/* Assure que le footer ne crée pas de décalage de hauteur */
footer, #colophon {
    touch-action: pan-x origin-top; /* Désactive les gestes verticaux complexes sur le footer */
    position: relative;
    z-index: 10;
}
/* --- SOULIGNEMENT ORANGE POUR TOUS LES MENUS --- */

/* Cible tous les liens dans les zones de navigation */
header nav a,
nav a,
ul[class*="menu"] a,
div[class*="menu"] a,
.nav-menu a,
.main-navigation a,
#site-navigation a,
.menu a {
    position: relative;
    text-decoration: none;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

/* Trait orange sous les liens */
header nav a::after,
nav a::after,
ul[class*="menu"] a::after,
div[class*="menu"] a::after,
.nav-menu a::after,
.main-navigation a::after,
#site-navigation a::after,
.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #FF8C00; /* Orange Intello */
    transition: width 0.3s ease-in-out;
}

/* Apparition du trait au survol */
header nav a:hover::after,
nav a:hover::after,
ul[class*="menu"] a:hover::after,
div[class*="menu"] a:hover::after,
.nav-menu a:hover::after,
.main-navigation a:hover::after,
#site-navigation a:hover::after,
.menu a:hover::after {
    width: 100%;
}

/* Soulignement permanent pour la page active (tous les cas courants) */
.current-menu-item > a::after,
.current_page_item > a::after,
.current-menu-parent > a::after,
.current_page_parent > a::after,
.current-menu-ancestor > a::after,
.active > a::after,
li.active a::after,
a.active::after {
    width: 100% !important;
}

/* Cas spécifique : lien "Accueil" sur la page d'accueil (si une classe spéciale existe) */
.home .nav-menu a[href="/"]::after,
.home .menu-item a[href="/"]::after {
    width: 100% !important;
}