/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #ffffff;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 50%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
}

main {
    text-align: center;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    width: 100%;
}

.slideshow-container {
    position: relative;
    width: 100%; /* Assurez-vous que le conteneur occupe toute la largeur de la page */
    overflow: hidden;
}

.slide {
    display: block;
    width: 100%; /* Faites en sorte que les diapositives occupent toute la largeur du conteneur */
}


.slide img {
    width: 100%; /* Ensure the image fills the entire width of the slide */
    height: auto;
    object-fit: cover; /* Maintain aspect ratio while covering the entire slide */
}

.text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    color: rgb(255, 255, 255);
}

.text h2 {
    margin-bottom: 1rem;
}

.text p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    z-index: 1;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    padding: 16px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.fade {
    animation-name: fade;
    animation-duration: 999999999999s;
}

@keyframes fade {
    from {
        opacity: 1;
    }
    to {
        opacity: 1;
    }
}

.services {
    margin-bottom: 2rem;
}

.services h2 {
    margin-bottom: 1rem;
}

.service {
    margin-bottom: 1rem;
}

.contact {
    text-align: center;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

.logo img {
    max-width: 50px; /* Ajuste la taille de ton logo selon tes besoins */
}

.service-images {
    display: flex;
    justify-content: center; /* Centering the images horizontally */
    margin-top: 20px;
}

.service-item {
    position: relative;
    width: 200px; /* Adjust width of each image container */
    margin: 0 10px; /* Add margin to create space between images */
}

.service-item img {
    width: 100%;
    cursor: pointer;
}

.overlay {
    position: absolute;
    bottom: 10px; /* Adjust the positioning of the overlay */
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

.service-item:hover .overlay {
    opacity: 1;
}
