/* General Styles */
body {
    font-family: Arial, sans-serif;
}

/* Hero Section Carousel */
.hero-carousel {
    position: relative;
}

.hero-carousel .hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #faf9f9;
    padding: 100px 0;
    position: relative;
}

.hero-carousel .hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-carousel .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Texte et boutons */
.noir {
    color: rgb(240, 245, 242);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.hero-carousel h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Transition */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Contrôles du carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Styles existants conservés */
#introduction {
    background-color: #f9f9f9;
}

#introduction h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

#introduction p {
    margin-bottom: 20px;
    font-size: 1.125rem;
    color: #666;
}

#introduction ul {
    list-style: none;
    padding-left: 0;
}

#introduction ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

#introduction img {
    max-width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Carousel Styles (pour la section advertisement) */
#advertisement .carousel-inner .carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

#advertisement .carousel-item {
    position: relative;
    height: 600px;
    transition: transform 1.5s ease-in-out;
}

#advertisement .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 5px;
    text-align: center;
    z-index: 10;
    width: 90%;
    min-width: 150px;
    min-height: 80px;
}

#advertisement .carousel-caption h5 {
    font-size: 1.5rem;
}

#advertisement .carousel-caption p {
    font-size: 1rem;
}

/* Mobile View */
@media (max-width: 767px) {
    .hero-carousel h1 {
        font-size: 2rem;
    }
    
    .hero-carousel h3 {
        font-size: 1.2rem;
    }
    
    #advertisement .carousel-caption {
        padding: 8px;
        font-size: 0.8rem;
        min-width: 100px;
        min-height: 50px;
    }

    #advertisement .carousel-caption h5 {
        font-size: 1rem;
    }

    #advertisement .carousel-caption p {
        font-size: 0.75rem;
    }

    #advertisement .carousel-item img {
        height: 200px;
    }
}