/* Règles générales */
body {
    background-image: url('../circuit/images/Kobet-Lahwa.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    color: #0a0000;
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3em;
    background-color: rgba(216, 209, 209, 0);
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0);
    border-radius: 10px;
    margin-bottom: 3em;
}

header img {
    max-width: 150px;
}

header h1 {
    font-size: 2em;
    margin: 0.5em 0;
    color: #fffefe;
}

header h2 {
    font-size: 1.5em;
    color: #ffffff;
    margin: 0.2em 0;
}

header p {
    font-style: italic;
    color: #fffdfd;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1em;
    padding: 0;
}

header nav ul li a {
    text-decoration: none;
    color: #7a2020;
    font-weight: bold;
    padding: 0.5em 1em;
    border-radius: 15px;
    transition: background-color 0.3s, color 0.3s;
}

header nav ul li a:hover {
    background-color: #f1f1f1;
    color: #f39316;
}

/* Carrousel */
.carousel {
    width: 100%;
    max-width: 800px;
    margin: auto;
    margin-top: 3em;
    border-radius: 10px;
    overflow: hidden;
}

.carousel-item img {
    width: 500px;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-caption {
    background-color: rgba(22, 19, 19, 0.336);
    padding: 1em;
    color: white;
    font-size: 1.2rem;
    max-width: 60%;
    margin: auto;
    text-align: center;
    line-height: 1.5;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
    color: #ffffff;
}

.carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #f0f0f0;
}

/* Section */
section {
    background-color: rgba(240, 248, 255, 0.7);
    padding: 2em;
    margin: 1em 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(224, 224, 224, 0.3);
    border: 1px solid #ddd;
}

/* Formulaire */
form {
    max-width: 400px;
    margin: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 450px;
    overflow-y: auto;
}

form p {
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
}

form label {
    font-weight: bold;
    margin-bottom: 0.5em;
}

form label.required::after {
    content: " *";
    color: red;
}

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

form input[type="submit"] {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 0.7em 1.5em;
    cursor: pointer;
    transition: background-color 0.3s;
}

form input[type="submit"]:hover {
    background-color: #004099;
}

/* Styles spécifiques pour la page de choix de langue */
body.langage-page {
    background-image: url('../circuit/images/Kobet-Lahwa.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    /* Centre verticalement */
    align-items: center;
    /* Centre horizontalement */
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
}

.langage-page header {
    text-align: center;
    background-color: rgba(255, 255, 255, 0);
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 40%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    /* Centre la div horizontalement */
    align-items: center;
    /* Centre la div verticalement */
    height: 950px;
    /* Donne une hauteur pour centrer */
}

.langage-page header div {
    display: flex;
    justify-content: center;
    gap: 0.5em;
}

.langage-page header div a {
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    color: #180a08c5;
    background-color: rgba(255, 255, 255, 0.438);
    padding: 0.5em 1.5em;
    border-radius: 10px;
    border: 2px solid #10121421;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.langage-page header div a:hover {
    background-color: #c27658;
    color: rgba(255, 255, 255, 0.767);
    transform: scale(1.1);
}

.langage-page footer {
    text-align: center;
    margin-top: auto;
    font-size: 0.9em;
    color: #ffffff;
    padding: 1em;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}

/* Adaptabilité */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        text-align: center;
    }

    form {
        width: 90%;
        max-height: 400px;
    }

    .carousel-item img {
        width: 100%;
        height: auto;
    }

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

    .langage-page header div {
        flex-direction: column;
        gap: 1em;
    }
}