/* Définition des variables de couleur pour une utilisation cohérente dans tout le CSS */
:root {
    --primary-color: #3498db; /* Couleur principale utilisée pour les éléments principaux */
    --secondary-color: #2ecc71; /* Couleur secondaire pour les éléments d'accentuation */
    --accent-color: #e74c3c; /* Couleur d'accentuation pour les éléments interactifs */
    --text-color: #333; /* Couleur de texte par défaut */
    --light-bg: #f9f9f9; /* Couleur de fond claire */
    --dark-bg: #2c3e50; /* Couleur de fond sombre */
}

/* Styles de base pour le corps de la page */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Styles pour le carrousel en fond de page */
.fullscreen-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.fullscreen-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fullscreen-carousel img.active {
    opacity: 1;
}

.carousel-bg {
    z-index: 0;
}

/* Styles pour le contenu principal */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    /* background-color: rgba(0, 0, 0, 0.5); */
}

/* Styles pour l'en-tête */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Styles pour le titre */
.title {
    margin: 0;
    font-size: 24px;
}

/* Styles pour le menu */
.menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 20px;
}

.menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
}

/* Styles pour le texte d'accueil*/
.accueil {
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 32px;
    margin: 40px auto;
    max-width: 700px;
    font-size: 1.3em;
}

/* Styles pour le pied de page */
.main-footer {
    margin-top: 60px;
    padding: 24px 0;
    background: #f5f8fc;
    color: #2a3a5a;
    text-align: center;
    font-size: 1em;
    border-top: 1px solid #e0e7ef;
}

/* Styles pour les grands écrans */
@media (min-width: 1024px) {
    .content {
        padding: 30px;
    }

    .title {
        font-size: 32px;
    }

    .menu a {
        font-size: 20px;
    }
}

/* Styles pour les tablettes */
@media (max-width: 1023px) and (min-width: 768px) {
    .content {
        max-width: 90%;
        padding: 25px;
    }

    .title {
        font-size: 28px;
    }

    .menu a {
        font-size: 18px;
    }
}

/* Styles pour les téléphones portables */
@media (max-width: 767px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu ul {
        margin-top: 20px;
        flex-direction: column;
    }

    .menu li {
        margin: 10px 0;
    }

    .content {
        max-width: 100%;
        padding: 15px;
    }

    .title {
        font-size: 20px;
    }

    .menu a {
        font-size: 16px;
    }
}
