/* Réinitialisation des marges et styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: black; /* Fond du site en noir */
    color: white; /* Texte en blanc pour contraste */
}

/* Navigation */
nav {
    background: #333;
    color: black;
    padding: 1rem;
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Header avec diaporama */
header {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    animation: slide 30s infinite;
}

header .slideshow img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: none; :/*rgba(0, 0, 0, 0.5);*/
            z-index: 1;
        }

header h1 {
    position: relative;
    color: white;
    font-size: 3rem;
    z-index: 2;
    text-align: center;
    font-family: 'Pacifico', cursive; /* Appliquez la nouvelle police ici */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Ajout d'une ombre pour plus de contraste */
}

/* Animation diaporama corrigée */
@keyframes slide {
    0% { transform: translateX(0); }
    14.28% { transform: translateX(-100vw); } /* Transition après chaque image */
    28.56% { transform: translateX(-200vw); }
    42.84% { transform: translateX(-300vw); }
    57.12% { transform: translateX(-400vw); }
    71.4% { transform: translateX(-500vw); }
    85.68% { transform: translateX(-600vw); }
    100% { transform: translateX(0); } /* Retour au début pour un cycle continu */
}

/* Sections */
.section-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem auto;
    padding: 1rem;
    max-width: 1200px;
}

section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Section Contact */
.contact-section {
    position: relative;
    background: url('../images/contact-bg.jpg') no-repeat center center/cover;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1;
}

.contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
}

.contact-form label {
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    background-color: #333;
    color: white;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.contact-form button:hover {
    background-color: #555;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    nav ul li {
        margin: 0 10px;
    }

    nav ul li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header {
        height: 70vh;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .section-container {
        flex-direction: column;
    }
}
