body {
    font-family: 'Spline Sans', sans-serif;
    background: #F8F9FA;
}
.nav-search {
    margin-left: auto;
    max-width: 300px;
}

header {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    background: #4C5C6B;
    color: #fff;
    padding: 1rem 0 2rem;
    overflow: visible;
    margin-bottom: 5rem;
}
.hero-section::after {
    content: "";
    position: absolute;
    bottom: -1px; 
    left: 0; 
    width: 100%; 
    height: 100px;
    background: #F8F9FA ;
    clip-path: polygon(0% 100%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
}
.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo { 
    height: 155px;
    width: auto;
 }

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    transition: max-height 0.3s ease;
   /* overflow: hidden; */
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    color: #fff;
}
.nav-menu a:not(:last-child) { margin-right: 1rem; }

.hero-content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 2rem;
    margin-left: 5%;
}
.hero-text {
    flex: 1;
    min-width: 280px;
}
.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}
.hero-text p {
    font-size: 1.1rem;
    line-height: 1.5;
}
.hero-image-wrapper {
    flex: 1;
    background: #F8F9FA;
    border-radius: 1rem;
    padding: 2rem;
    min-width: 280px;
    transform: translateY(100px);
    z-index: 1;
}

/* CAROUSEL */
.carousel-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    border-radius: 0.5rem;
}
.carousel-slides, .carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
}
.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 0.5s;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}
/* Animation automatique */
.carousel-slide:nth-child(1) { animation: slideShow 18s infinite 0s; }
.carousel-slide:nth-child(2) { animation: slideShow 18s infinite 3s; }
.carousel-slide:nth-child(3) { animation: slideShow 18s infinite 6s; }
.carousel-slide:nth-child(4) { animation: slideShow 18s infinite 9s; }
.carousel-slide:nth-child(5) { animation: slideShow 18s infinite 12s; }
.carousel-slide:nth-child(6) { animation: slideShow 18s infinite 15s; }
@keyframes slideShow {
    0%,22.22%,100% { opacity: 0; }
    5.55%,16.66% { opacity: 1; }
}

/* Pause animation on hover */
.carousel-container:hover .carousel-slide {
    animation-play-state: paused;
}


.btn-green {
    background: #B8A082 !important;
    color: #fff;
    border-radius: 999px !important;
    margin-left: 1.5rem;
    padding: 0.5rem 1rem;

}
.btn-green:hover { background: #a0896c !important; }

.btn-white {
    background: linear-gradient(to right, #FFF, #F2E8D5);
    color: #3C6E5E !important;
    border-radius: 999px;
    padding: 0.5rem 1rem;

}
.btn-white:hover {
    background: #3C6E5E !important;
    color: #fff !important;
}

/* BURGER MENU */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 9999 !important;  
}
.burger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* DROPDOWN - CSS CORRIGÉ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px; /* Augmenté pour plus d'espace */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px; /* Plus arrondi */
    z-index: 10;
    padding: 0.5rem 0;
}

/* Style des liens dans le dropdown */
.dropdown-content a {
    color: #333 !important;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    font-weight: 400;
    white-space: nowrap; /* Évite le retour à la ligne */
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Affiche dropdown au hover desktop */
@media (hover: hover) and (pointer: fine) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Pour mobile, on affichera dropdown-content si .open */
.dropdown.open .dropdown-content {
    display: block;
}


/* Style spécifique pour le lien principal du dropdown */
.dropdown > a {
    position: relative;
    cursor: pointer;
}

.dropdown > a::after {
    content: " ▼";
    font-size: 0.8em;
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.dropdown.open > a::after {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text p { font-size: 1rem; }
    .hero-image-wrapper { padding: 1.5rem; transform: translateY(60px); }
    .carousel-container { min-height: 250px; }
}

@media (max-width: 768px) {
    .hero-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        position: relative;
        z-index: 10;
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background-color: #2d0000;
        transition: max-height 0.4s ease;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        padding: 0 1rem;
    }

    .nav-menu.open {
        max-height: 1000px;
        padding: 1rem;
    }

    .nav-links-wrapper {
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 0.5px solid #fff;
    }
    .dropdown {
        width: 100%;
        display: block;
    }

    .dropdown > a {
        width: 100%;
        display: block;
        text-align: center;
        padding: 0.5rem 0;
    }

    .nav-links-wrapper a {
        display: block;
        width: 100%;
        text-align: center;
    }
    .nav-menu a {
        width: 100%;
        padding: 0.5rem 0;
        text-align: center;
        margin-right: 0;
    }

    .btn-green,
    .btn-white {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .burger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2rem;
        position: relative;
        z-index: 1;
    }

    .hero-text h1 {
        font-size: 1.6rem;
        text-align: center;
    }

    .hero-text p {
        text-align: center;
        font-size: 1rem;
    }

    .hero-image-wrapper {
        padding: 1rem;
        transform: translateY(0);
    }

    .carousel-container {
        min-height: 200px;
    }

    /* Dropdown mobile */
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
        border-radius: 12px;
        padding: 0;
        max-height: none;
        overflow-y: visible;
    }

    .dropdown-content a {
        color: #ffffff !important;
        padding: 0.5rem 1rem;
        border-left: 3px solid transparent;
        white-space: normal;
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-left-color: #00DF3B;
        color: #00DF3B !important;
    }
}

@media (max-width: 480px) {
    .logo { height: 50px; }
    .carousel-container { min-height: 180px; }
    .hero-text h1 { font-size: 1.4rem; }
    .hero-text p { font-size: 0.95rem; }
}
