/**
 * CSS Components - Façades Antoine
 * Styles pour les composants spécifiques
 */

/* ========== HEADER RESPONSIVE WOW ========== */
.header {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    padding: 0.7rem 0; /* Padding vertical légèrement réduit */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Removed expensive backdrop-filter for better performance */
    /* backdrop-filter: blur(10px); */
    border-bottom: 2px solid transparent;
    background-image: linear-gradient(135deg, var(--secondary-color), var(--dark-color)),
                      linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    min-height: 80px; /* Hauteur minimum appropriée */
    height: auto; /* Permettre l'expansion naturelle */
    /* Supprimé max-height et overflow pour éviter les coupures */
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(243,156,18,0.1) 25%, 
        rgba(231,76,60,0.1) 50%, 
        rgba(243,156,18,0.1) 75%, 
        transparent 100%);
    opacity: 0;
    animation: header-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes header-glow {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

/* Header Scroll Effect */
.header.scrolled {
    padding: 0.3rem 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(26, 37, 47, 0.95));
    /* Removed expensive backdrop-filter for better performance */
    /* backdrop-filter: blur(20px); */
    box-shadow: 0 5px 30px rgba(0,0,0,0.4);
    border-bottom: 2px solid rgba(243,156,18,0.3);
}

.header.scrolled::before {
    animation-duration: 2s;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 70px; /* Hauteur minimum appropriée */
    /* Supprimé height fixe pour permettre l'expansion naturelle */
    /* Animation supprimée - contrôlée par JavaScript */
}

/* Logo Moderne WOW */
.logo {
    display: flex;
    align-items: center;
    position: relative;
    /* Animation contrôlée par JavaScript */
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 10;
}

.logo-link:hover {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 8px 16px rgba(243,156,18,0.3));
}

.logo-icon-container {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(231,76,60,0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(231,76,60,0.3);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(231,76,60,0.6), 0 0 20px rgba(243,156,18,0.4);
    }
}

.logo-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.logo-icon-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(243,156,18,0.3), transparent);
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-link:hover .logo-icon-container::before {
    left: 100%;
}

.logo-link:hover .logo-icon-container::after {
    opacity: 1;
}

.logo-link:hover .logo-icon-container {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 35px rgba(231,76,60,0.5), 0 0 30px rgba(243,156,18,0.6);
    animation: none;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--white);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.logo-brush {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.7rem;
    color: var(--accent-color);
    background: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo-link:hover .logo-brush {
    transform: rotate(-45deg) scale(1.1);
    animation: brush-shake 0.6s ease-in-out;
}

@keyframes brush-shake {
    0%, 100% { transform: rotate(-45deg) scale(1.1); }
    25% { transform: rotate(-35deg) scale(1.1); }
    75% { transform: rotate(-55deg) scale(1.1); }
}

/* Nouvelles animations WOW */
@keyframes logoSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes navHover {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.05); }
    75% { transform: rotate(10deg) scale(1.05); }
}

/* Animation pour le téléphone (existante) */
@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Hover effects pour les stats */
.stat:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.stat:hover .stat-icon {
    animation: stat-bounce 0.6s ease-in-out;
    color: var(--white);
}

@keyframes stat-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(5deg); }
}

/* Responsive logo - règles intégrées dans les breakpoints principaux */

/* Logo mobile compact */
@media (max-width: 768px) {
    .logo-text {
        display: flex !important; /* Force l'affichage sur mobile */
        flex-direction: column;
        line-height: 0.8; /* Encore plus serré */
        margin-left: 0; /* Complètement collé à l'icône */
    }
    
    .logo-primary {
        font-size: 1.8rem !important; /* Augmenté de 1.5rem à 1.8rem */
        margin-bottom: -0.2rem !important; /* Encore plus proche */
        font-weight: 900 !important;
        letter-spacing: -0.5px; /* Compacte horizontalement */
    }
    
    .logo-secondary {
        font-size: 1.8rem !important; /* Augmenté de 1.5rem à 1.8rem */
        margin-bottom: 0 !important;
        font-weight: 400 !important;
        letter-spacing: -0.5px; /* Compacte horizontalement */
    }
    
    .logo-subtitle {
        display: none !important;
    }
    
    .logo-icon-container {
        width: 55px; /* Plus grand pour équilibrer */
        height: 55px;
        margin-right: 0.1rem; /* Réduit de 0.3rem à 0.1rem pour rapprocher le texte */
    }
    
    .logo-icon {
        font-size: 1.9rem; /* Plus grand aussi */
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    /* Fix du burger menu qui dépasse */
    .header-container {
        padding: 0 1rem; /* Réduit le padding pour plus d'espace */
    }
    
    .mobile-right {
        display: flex;
        margin-right: 0; /* Assure qu'il ne dépasse pas */
    }
    
    .menu-btn {
        margin-right: 0; /* Pas de marge à droite */
        flex-shrink: 0; /* Empêche la compression */
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    min-width: 130px; /* Largeur minimum pour éviter la compression */
    max-width: 150px; /* Largeur maximum pour contrôler l'espace */
}

.logo-primary {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.1rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-display: swap;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    contain: layout style;
}

.logo-secondary {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Empêche le retour à la ligne */
    overflow: hidden; /* Cache le débordement */
    text-overflow: ellipsis; /* Ajoute ... si nécessaire */
    min-width: 120px; /* Largeur minimum pour "Expert Façadier" */
}

.logo-link:hover .logo-primary {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(243,156,18,0.5);
}

.logo-link:hover .logo-secondary {
    color: var(--white);
}

.logo-link:hover .logo-subtitle {
    color: var(--white);
    letter-spacing: 1.2px; /* Réduit de 1.5px à 1.2px pour éviter l'expansion */
    white-space: nowrap; /* Assure le maintien sur une ligne */
}

/* Navigation Desktop WOW */
.nav-desktop {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    /* Animation contrôlée par JavaScript */
}

.nav-desktop a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 0.7rem; /* Padding ajusté pour desktop */
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.nav-desktop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.nav-desktop a:hover::before {
    left: 100%;
}

.nav-desktop a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px rgba(243,156,18,0.8);
}

.nav-desktop a:hover,
.nav-desktop a.active {
    background: rgba(255,255,255,0.15);
    color: var(--accent-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-shadow: 0 0 10px rgba(243,156,18,0.5);
}

.nav-desktop a.active::after {
    width: 100%;
    box-shadow: 0 0 10px rgba(243,156,18,0.8);
}

/* Dropdown Menu - CENTRÉ */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--white);
    min-width: 250px;
    max-width: 90vw;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    border-top: 3px solid var(--primary-color);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    color: var(--text-color) !important;
    padding: 1rem 1.5rem;
    display: block;
    border-radius: 0;
    transition: all 0.3s ease;
}

.dropdown-menu a:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 10px 10px;
}

.dropdown-menu a:hover {
    background: var(--light-gray) !important;
    color: var(--primary-color) !important;
}

/* Contact Desktop WOW */
.contact-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Animation contrôlée par JavaScript */
}

.header-phone {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.header-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.header-phone:hover::before {
    left: 100%;
}

.header-phone:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(243,156,18,0.5);
}

.phone-btn {
    background: linear-gradient(45deg, var(--accent-color), #ff6b35);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 15px rgba(243,156,18,0.3);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.phone-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.3) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.phone-btn:hover::before {
    left: 100%;
}

.phone-btn:hover {
    background: linear-gradient(45deg, #ff6b35, var(--accent-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(243,156,18,0.5);
    animation: phoneGlow 1.5s ease-in-out infinite;
}

@keyframes phoneGlow {
    0%, 100% { 
        box-shadow: 0 12px 30px rgba(243,156,18,0.5);
    }
    50% { 
        box-shadow: 0 12px 30px rgba(243,156,18,0.8), 0 0 20px rgba(255,107,53,0.6);
    }
}

/* Mobile Elements WOW */
.mobile-right {
    display: none;
    align-items: center;
    gap: 1rem;
    /* Animation contrôlée par JavaScript */
}

.mobile-phone {
    background: linear-gradient(45deg, var(--accent-color), #ff6b35);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 15px rgba(243,156,18,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.mobile-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.3) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.mobile-phone:hover::before {
    left: 100%;
}

.mobile-phone:hover {
    background: linear-gradient(45deg, #ff6b35, var(--accent-color));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(243,156,18,0.4);
}

.menu-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.menu-btn:hover::before {
    left: 100%;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
    border-color: rgba(243,156,18,0.5);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.menu-line {
    width: 22px;
    height: 2px;
    background: white;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 1px;
}

.menu-btn.active {
    background: rgba(231,76,60,0.2);
    border-color: var(--primary-color);
}

.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary-color);
}

.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -7px);
    background: var(--primary-color);
}

/* Mobile Menu Modern Design */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
}

.mobile-menu-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: white;
}

.mobile-menu-logo .logo-icon-container {
    width: 40px;
    height: 40px;
    position: relative;
    margin-right: 0;
    flex-shrink: 0;
}

.mobile-menu-logo .logo-icon {
    font-size: 1.6rem;
    color: white;
}

.mobile-menu-logo .logo-brush {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.7rem;
    color: var(--accent-color);
    transform: rotate(45deg);
}

.mobile-menu-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.mobile-menu-logo .logo-primary {
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    margin-bottom: -0.1rem;
}

.mobile-menu-logo .logo-secondary {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--accent-color);
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.mobile-menu-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg) scale(1.1);
}

.mobile-menu-nav {
    flex: 1;
    padding: 0;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--light-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-nav a i {
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-menu-nav a span {
    flex: 1;
}

.mobile-menu-nav a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-menu-nav a:hover i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Mobile Dropdown Modern */
.mobile-dropdown {
    border-bottom: 1px solid var(--light-gray);
}

.mobile-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem !important;
    color: var(--text-color) !important;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    gap: 1rem !important;
}

.mobile-dropdown-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.dropdown-arrow {
    font-size: 0.8rem !important;
    color: var(--gray) !important;
    transition: transform 0.3s ease;
    width: auto !important;
}

.mobile-dropdown-content.active ~ .mobile-dropdown-toggle .dropdown-arrow,
.mobile-dropdown-toggle:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.mobile-dropdown-content.active {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-dropdown-content a {
    padding: 0.6rem 1rem 0.6rem 1rem !important;
    border-bottom: 1px solid #e9ecef !important;
    background: #f8f9fa !important;
    font-size: 0.9rem;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.4rem !important;
}

.mobile-dropdown-content a:hover {
    background: var(--white) !important;
    transform: translateX(3px);
}

.mobile-dropdown-content a i {
    font-size: 0.9rem !important;
    color: var(--gray) !important;
    min-width: 1rem !important;
    text-align: left !important;
    flex-shrink: 0 !important;
}

/* Style spécial pour les emojis dans le menu services mobile */
.mobile-dropdown-content a span[style*="font-size: 1.2rem"] {
    font-size: 1rem !important;
    min-width: 1rem !important;
    text-align: left !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--light-gray);
    background: #f8f9fa;
}

.mobile-cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243,156,18,0.3);
}

.mobile-cta-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243,156,18,0.4);
}

.mobile-cta-phone i {
    font-size: 1.1rem;
}

.mobile-cta-phone span {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Menu Overlay WOW */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Breakpoints WOW */
@media (max-width: 1200px) {
    /* Réduire la taille du texte logo sur les écrans moyens */
    .logo-primary {
        font-size: 1.4rem;
        font-display: swap;
        text-rendering: optimizeSpeed;
        -webkit-font-smoothing: antialiased;
        contain: layout style;
    }
    
    .logo-secondary {
        font-size: 1.4rem;
        font-display: swap;
        text-rendering: optimizeSpeed;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
        font-display: swap;
    }
}

@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }
    
    .contact-desktop {
        display: none;
    }
    
    .mobile-right {
        display: flex;
    }
    
    .header-container {
        padding: 0 1.5rem;
    }
    
    /* Masquer le sous-titre sur tablette */
    .logo-subtitle {
        display: none;
    }
    
    /* Réduire encore la taille du texte logo */
    .logo-primary {
        font-size: 1.2rem;
        font-display: swap;
        text-rendering: optimizeSpeed;
        -webkit-font-smoothing: antialiased;
        contain: layout style;
    }
    
    .logo-secondary {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Ancienne règle supprimée - le logo texte est maintenant géré par la règle plus haut */
    
    .header {
        padding: 0.3rem 0; /* Même padding que scrolled */
    }
    
    .header.scrolled {
        padding: 0.3rem 0; /* Identique pour éviter le changement */
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .mobile-phone span {
        display: none;
    }
    
    .mobile-phone {
        padding: 0.6rem;
        min-width: 44px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.8rem;
    }
    
    .mobile-right {
        gap: 0.5rem;
    }
    
    .mobile-menu {
        width: 100vw;
        right: -100vw;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .logo-icon-container {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon {
        font-size: 1.3rem;
    }
    
    .logo-brush {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
    
    /* Texte logo encore plus petit sur très petits écrans */
    .logo-primary {
        font-size: 1.4rem !important; /* Augmenté de 0.85rem à 1.4rem */
        font-display: swap !important;
        text-rendering: optimizeSpeed !important;
        -webkit-font-smoothing: antialiased !important;
        contain: layout style !important;
    }
    
    .logo-secondary {
        font-size: 1.4rem !important; /* Augmenté de 0.85rem à 1.4rem */
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .header::before,
    .logo,
    .header-container,
    .nav-desktop,
    .contact-desktop,
    .mobile-right,
    .logo-icon-container::after,
    .menu-overlay {
        animation: none;
    }
    
    .header,
    .logo-link,
    .logo-icon-container,
    .nav-desktop a,
    .phone-btn,
    .mobile-phone,
    .menu-btn,
    .mobile-menu,
    .menu-overlay {
        transition-duration: 0.1s;
    }
}

/* ========== MEGA MENU AIDES ========== */
.mega-menu-aides {
    position: fixed;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    transform: translateY(-20px);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
    border-top: 3px solid var(--accent-color);
    border-radius: 0 0 20px 20px;
    padding: 0;
}

.mega-menu-aides.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-aides-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.mega-menu-aides-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(243,156,18,0.1), rgba(231,76,60,0.1));
    border-radius: 15px;
    margin-bottom: 3rem;
}

.mega-menu-aides-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, var(--accent-color) 49%, var(--accent-color) 51%, transparent 52%);
    opacity: 0.1;
    border-radius: 15px;
}

.mega-menu-aides-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 900;
}

.mega-menu-aides-header p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    opacity: 0.8;
}

/* Grille des aides */
.mega-menu-aides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.mega-menu-aides-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.mega-menu-aides-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mega-menu-aides-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.mega-menu-aides-card:hover::before {
    opacity: 0.05;
}

.aides-icon-mega {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.mega-menu-aides-card h4 {
    margin: 0 0 1rem 0;
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
}

.mega-menu-aides-card p {
    margin: 0 0 1.5rem 0;
    color: #666;
    text-align: center;
    font-size: 0.9rem;
}

.aides-mini-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.aides-mini-features li {
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-aides-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.mega-aides-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.mega-aides-btn:hover::before {
    left: 0;
}

/* Footer du mega menu aides */
.mega-menu-aides-footer {
    background: linear-gradient(135deg, var(--light-gray), #e9ecef);
    padding: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
}

.aides-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.aides-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.aides-info p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.aides-actions {
    display: flex;
    gap: 1rem;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(26, 37, 47, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 800"><rect fill="%23ecf0f1" width="1400" height="800"/><circle fill="%23e74c3c" cx="300" cy="200" r="80" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 70px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(243, 156, 18, 0.15);
    color: black;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(243, 156, 18, 0.3);
    backdrop-filter: blur(10px);
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    /* Removed expensive backdrop-filter for better LCP performance */
    /* backdrop-filter: blur(15px); */
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge {
    display: block;
    color: black;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(243, 156, 18, 0.85);
    border-radius: 15px;
    border: 1px solid rgba(243, 156, 18, 0.3);
    /* Removed expensive backdrop-filter for better LCP performance */
    /* backdrop-filter: blur(10px); */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    background: rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: 10px;
    /* Removed expensive backdrop-filter for better LCP performance */
    /* backdrop-filter: blur(10px); */
    position: relative;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

/* ========== SERVICES ========== */
.services {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: #555;
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* ========== FLOATING BUTTONS ========== */
.whatsapp-float,
.phone-float {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 998;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    font-display: swap; /* Optimize font loading */
    contain: layout style paint; /* Optimize rendering */
    will-change: transform, opacity; /* Optimize animations */
    /* Remove from LCP calculation initially */
    opacity: 0;
    pointer-events: none;
}

.whatsapp-float {
    bottom: 100px;
    right: 30px;
    background: #25D366;
    font-size: 1.8rem;
}

.phone-float {
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

/* Show buttons when loaded */
.whatsapp-float[style*="opacity: 1"],
.phone-float[style*="opacity: 1"] {
    pointer-events: auto;
}

.whatsapp-float:hover,
.phone-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-certifications {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.certification {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ========== WOW EFFECTS & ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Hero Section Animations */
.hero-subtitle {
    animation: slideInDown 1s ease-out 0.2s both;
}

.hero h1 {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-badge {
    animation: scaleIn 0.8s ease-out 0.6s both;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 1s both;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 1.2s both;
}

.hero-stats .stat {
    animation: scaleIn 0.6s ease-out calc(1.4s + var(--delay, 0s)) both;
}

.hero-stats .stat:nth-child(1) { --delay: 0s; }
.hero-stats .stat:nth-child(2) { --delay: 0.2s; }
.hero-stats .stat:nth-child(3) { --delay: 0.4s; }
.hero-stats .stat:nth-child(4) { --delay: 0.6s; }

.hero-stats .stat-icon {
    animation: bounce 2s infinite;
    animation-delay: calc(2s + var(--delay, 0s));
}

.hero-badge {
    position: relative;
    overflow: hidden;
}

/* Disabled expensive shine animation for better LCP performance */
/* 
.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
*/

.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Floating animation for stats */
.stat {
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-10px);
}

.stat:hover .stat-icon {
    animation: sparkle 1s ease-in-out infinite;
}

/* ========== MEGA MENU SERVICES WOW ========== */
.mega-menu-services {
    position: fixed;
    top: calc(100% + 15px);
    left: 2.5%;
    right: 2.5%;
    transform: translateY(-20px);
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
    border-radius: 25px;
    border-top: 5px solid var(--primary-color);
    overflow: hidden;
    padding: 0;
}

.mega-menu-services.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-services-container {
    padding: 0;
}

/* Header du mega menu services */
.mega-menu-services-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 2rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.mega-menu-services-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(255,255,255,0.1) 15px,
        rgba(255,255,255,0.1) 30px
    );
}

.mega-menu-services-header h3 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    position: relative;
    z-index: 2;
}

.mega-menu-services-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Grille des services */
.mega-menu-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.mega-menu-service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(231,76,60,0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mega-menu-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231,76,60,0.05), transparent);
    transition: left 0.6s ease;
}

.mega-menu-service-card:hover::before {
    left: 100%;
}

.mega-menu-service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.service-icon-mega {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.mega-menu-service-card h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.mega-menu-service-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.service-mini-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-mini-features li {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.mega-service-btn {
    display: block;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.mega-service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.mega-service-btn:hover::before {
    left: 0;
}

/* Footer du mega menu */
.mega-menu-services-footer {
    background: linear-gradient(135deg, var(--light-gray), #e9ecef);
    padding: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.services-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.services-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.services-actions {
    display: flex;
    gap: 1rem;
}

.mega-cta-primary,
.mega-cta-secondary {
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mega-cta-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 5px 15px rgba(231,76,60,0.3);
}

.mega-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231,76,60,0.4);
}

.mega-cta-secondary {
    background: rgba(255,255,255,0.9);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.mega-cta-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44,62,80,0.3);
}

/* ========== MEGA MENU CENTRÉ ========== */
.mega-menu {
    position: fixed;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    transform: translateY(-20px);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 20px 20px;
    padding: 0;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.mega-menu-section {
    position: relative;
}

.mega-menu-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-menu-content {
    display: grid;
    gap: 1rem;
}

.mega-menu-region {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.mega-menu-region:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mega-menu-region h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-menu-cities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.mega-menu-city {
    padding: 0.5rem 0.8rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #6c757d !important;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.mega-menu-city:hover {
    background: #e9ecef;
    color: var(--text-color) !important;
    border-color: #dee2e6;
    transform: translateY(-1px);
    text-decoration: none;
}

.mega-menu-city.selected,
.mega-menu-city.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white) !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    font-weight: 600;
    text-decoration: none;
}

.mega-menu-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.mega-menu-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
}

.mega-menu-cta h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.mega-menu-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.mega-menu-cta .btn {
    background: var(--white);
    color: var(--primary-color);
    font-weight: bold;
}

/* Navigation avec mega menu */
.nav-zones {
    position: relative;
}

.nav-services {
    position: relative;
}

.nav-aides {
    position: relative;
}

.header-container {
    position: relative;
}

/* Assurer que le mega menu s'affiche correctement */
.nav-desktop {
    position: static;
}

.nav-zones:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-services:hover .mega-menu-services {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-aides:hover .mega-menu-aides {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 1024px) {
    .mega-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        z-index: 10000;
        overflow-y: auto;
        padding-top: 80px;
        margin-left: 0;
        margin-right: 0;
        transform: translateY(0);
        max-width: none;
    }
    
    .mega-menu.active {
        transform: translateY(0);
    }
    
    .mega-menu-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .mega-menu-cities {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-zones .mega-menu {
        display: none;
    }
    
    .nav-zones.active .mega-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 3rem 1rem 2rem !important;
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .mega-menu-cities {
        grid-template-columns: 1fr;
    }
}

/* Desktop hover effects */
@media (min-width: 1025px) {
    .nav-zones:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    /* S'assurer que le header a la bonne position pour le mega menu */
    .header {
        position: relative;
        z-index: 1001;
    }
    
    /* Mega menu positioning fix */
    .mega-menu {
        left: 50%;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }
}

/* Amélioration des animations pour mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================
   Zones Section - SEO Enhanced
   =========================================== */

.zones-stats .zone-stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.zone-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    transform: translateY(0);
}

.zone-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.zone-card:hover .zone-header {
    background: linear-gradient(135deg, var(--accent-color), #ff6b35);
}

.commune-item:hover,
.city-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.province-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(231,76,60,0.1);
    transform: translateY(-2px);
}

.zone-services {
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.zone-services:hover {
    border-left-color: var(--primary-color);
    background: rgba(231,76,60,0.15);
}

.zones-cta {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(231,76,60,0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(231,76,60,0.5);
    }
}

/* Animation d'entrée pour les éléments zones */
.zone-card {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.zone-card:nth-child(1) { animation-delay: 0.1s; }
.zone-card:nth-child(2) { animation-delay: 0.2s; }
.zone-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive zones */
@media (max-width: 768px) {
    .zones-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .communes-list {
        grid-template-columns: 1fr;
    }
    
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zones-cta h3 {
        font-size: 1.5rem;
    }
    
    .zones-cta div[style*="display: flex"] {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Schema.org structured data styling */
[itemscope] {
    position: relative;
}

[itemscope]:before {
    content: "📍";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Responsive Mega Menu Services */
@media (max-width: 768px) {
    .mega-menu-services {
        width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .mega-menu-services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        max-height: none;
    }
    
    .mega-menu-service-card {
        padding: 1.5rem;
    }
    
    .services-cta {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .services-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .services-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .mega-cta-primary,
    .mega-cta-secondary {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .mega-menu-services-header h3 {
        font-size: 1.5rem;
    }
    
    .mega-menu-services-header p {
        font-size: 1rem;
    }
    
    .services-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Responsive Mega Menu Aides */
@media (max-width: 768px) {
    .mega-menu-aides {
        width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .mega-menu-aides-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .mega-menu-aides-card {
        padding: 1.5rem;
    }
    
    .aides-cta {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .aides-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .mega-cta-primary,
    .mega-cta-secondary {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .mega-menu-aides-header h3 {
        font-size: 1.5rem;
    }
    
    .mega-menu-aides-header p {
        font-size: 1rem;
    }
    
    .aides-info h4 {
        font-size: 1.1rem;
    }
    
    .aides-info p {
        font-size: 0.9rem;
    }
}