/*----------------------------------------------
*
* [Homepage Only Styles]
*
* Styles appliqués UNIQUEMENT sur la page d'accueil
*
----------------------------------------------*/

/*----------------------------------------------
1. CORRECTION NAVBAR - Rendre visible
----------------------------------------------*/

/* Navbar avec fond blanc opaque pour visibilité maximale */
body.home #header {
    background: rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

/* Items de menu TRÈS visibles - couleur cyan */
body.home .navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

body.home .navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Dropdown menu */
body.home .dropdown-menu {
    background: white !important;
}

body.home .dropdown-item {
    color: var(--primary-t-color) !important;
}

body.home .dropdown-item:hover {
    background: var(--primary-bg-color) !important;
    color: var(--primary-color) !important;
}

/*----------------------------------------------
2. CORRECTION HERO - Highlights qui ne cachent PAS le texte
----------------------------------------------*/

/* Enlever le highlight qui cache le texte */
body.home .hero-title .highlight {
    position: relative;
    display: inline;
}

body.home .hero-title .highlight::after {
    display: none; /* Désactiver complètement le fond jaune */
}

/* À la place, souligner avec une bordure épaisse visible */
body.home .hero-title .highlight {
    background: linear-gradient(135deg, var(--warning-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
}

body.home .hero-title .highlight::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--warning-color);
    opacity: 0.3;
    z-index: -1;
    border-radius: 2px;
}

/*----------------------------------------------
3. AMÉLIORATION BOUTONS CTA - Très visibles
----------------------------------------------*/

body.home .btn-hero-primary {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ff9500 100%);
    color: #000 !important;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 20px 45px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        0 15px 50px rgba(255, 193, 7, 0.5),
        0 0 40px rgba(255, 193, 7, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: pulseButtonCTA 2s ease-in-out infinite;
}

@keyframes pulseButtonCTA {
    0%, 100% {
        box-shadow:
            0 15px 50px rgba(255, 193, 7, 0.5),
            0 0 40px rgba(255, 193, 7, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 20px 60px rgba(255, 193, 7, 0.7),
            0 0 60px rgba(255, 193, 7, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.7);
        transform: scale(1.02);
    }
}

body.home .btn-hero-primary:hover {
    background: linear-gradient(135deg, #ffcd07 0%, #ffa500 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 25px 70px rgba(255, 193, 7, 0.7),
        0 0 80px rgba(255, 193, 7, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

body.home .btn-hero-secondary {
    border: 3px solid white;
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

body.home .btn-hero-secondary:hover {
    background: white;
    color: var(--primary-color) !important;
    border-color: var(--warning-color);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

/*----------------------------------------------
4. RÉÉQUILIBRAGE HERO
----------------------------------------------*/

body.home .hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

body.home .hero-content {
    padding-right: 2rem;
}

body.home .hero-visual {
    padding-left: 2rem;
}

body.home .hero-image-main {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    display: block;
}

body.home #hero-moderne {
    min-height: 90vh;
    padding: 100px 0 60px;
}

/* RETIRER LE FOND SOMBRE SOUS L'IMAGE */
body.home .hero-decoration {
    display: none;
}

/*----------------------------------------------
5. CORRECTION SCROLL
----------------------------------------------*/

body.home section.section-1::before,
body.home section.section-3::before,
body.home section.section-5::before {
    display: none;
}

body.home .hero-stats {
    margin-top: 3rem;
    padding: 2rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.home #hero-moderne {
    position: relative;
    z-index: 1;
}

body.home #services {
    position: relative;
    z-index: 2;
    background: var(--section-1-bg-color);
    margin-top: 0;
}

/*----------------------------------------------
6. FEATURES DANS NOS SERVICES - Visibles et centrées
----------------------------------------------*/

body.home #services .hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
    align-items: center;
}

body.home #services .hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 171, 179, 0.15);
}

body.home #services .hero-feature:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--secondary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(26, 171, 179, 0.3);
}

body.home #services .hero-feature:hover .hero-feature-text {
    color: white;
}

body.home #services .hero-feature-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 8px rgba(26, 171, 179, 0.4));
    transition: filter 0.3s ease;
}

body.home #services .hero-feature:hover .hero-feature-icon {
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.6));
}

body.home #services .hero-feature-text {
    color: var(--primary-t-color);
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/*----------------------------------------------
7. CARDS SIMPLIFIÉES - Bordure gradient uniquement
----------------------------------------------*/

body.home .card {
    position: relative;
    background: white;
    border: none;
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

body.home .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--warning-color) 100%
    );
    background-size: 200% 200%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    animation: gradientFlow 4s ease infinite;
}

body.home .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 171, 179, 0.25);
}

body.home .card.featured::before {
    padding: 4px;
    background: linear-gradient(
        135deg,
        var(--warning-color) 0%,
        var(--primary-color) 50%,
        var(--secondary-color) 100%
    );
}

body.home .card > * {
    position: relative;
    z-index: 1;
}

body.home .card .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: block;
    transition: all 0.3s ease;
}

body.home .card:hover .icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

body.home .card.featured .icon {
    color: var(--warning-color);
}

body.home .card.featured:hover .icon {
    color: var(--primary-color);
}

body.home .card h3, body.home .card .h5 {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-t-color);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

body.home .card p {
    color: var(--primary-p-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/*----------------------------------------------
8. RESPONSIVE
----------------------------------------------*/

@media (max-width: 992px) {
    body.home #hero-moderne {
        min-height: auto;
        padding: 100px 0 60px;
    }

    body.home .hero-title {
        font-size: 2.5rem;
    }

    body.home .hero-content,
    body.home .hero-visual {
        padding-left: 0;
        padding-right: 0;
    }

    body.home .hero-image-main {
        max-width: 100%;
        margin-top: 3rem;
    }

    body.home #services .hero-features {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body.home .hero-title {
        font-size: 2rem;
    }

    body.home .btn-hero-primary,
    body.home .btn-hero-secondary {
        width: 100%;
        padding: 16px 32px;
        font-size: 1rem;
    }

    body.home .card:hover {
        transform: translateY(-5px);
    }
}
