/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ---- NAVBAR ---- */
.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background-color: #333;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    margin: 0px 80px;
}
.logo {
    text-align: center;
}
.logo img {
    height: 40px;
}

h2 {
    text-align: center;
}

.navbar a:hover {
    color: chocolate;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.75s;
}



/* carousel*/

.carousel {
    box-sizing: border-box;
    width: 100%; /* Largeur 80% écran */
    height: 600px; /* Hauteur fixe */
    overflow: hidden; /* Cache débordements */
    position: relative; /* Position relative */
    margin: auto; /* Centre horizontalement */
    padding-bottom: 10px; /* Espace bas */
    @media (max-width: 768px)
    {Display:none;
    }



}

.carousel-track {
    display: flex; /* Disposition en ligne */
    transition: transform 4s ease; /* Animation douce */
}

.carousel-item {
    height: 600px; /* Hauteur fixe */
    flex-shrink: 0; /* Pas de rétrécissement */
    width: 100%; /* Largeur complète */
    object-fit: cover; /* Conserve proportions */
}



/* Partie de l'actualité */

#ACTUALITER {
    background-color: lightpink;
    position: relative;
    padding: 50px 0; /* Ajoute de l'espace en haut et en bas */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement */
}
/* Titre "Actualités" bien espacé */
#ACTUALITER h2 {
    font-size: 32px;
    margin-bottom: 30px; /* Espace entre le titre et les cartes */
}
/* Conteneur des cartes d’actualités */
.actu-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* Centre verticalement */
    min-height: 300px; /* Ajuste la hauteur minimale */
    gap: 20px; /* Espace entre les cartes */
    width: 80%; /* Évite que ça prenne toute la largeur */
}
/* Style des cartes */
.actu-carte {
    border-radius: 50px;
    background-color: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 450px;
    text-align: center;
    transition: 0.3s;
}
.actu-carte h3 {
    font-size: 24px;
    margin: 0;
    color: #333;
}
.actu-carte img {
    width: 90%;
    border-radius: 4px;
    margin-top: 15px;
}
.actu-carte p {
    font-size: 18px;
    color: #007BFF;
    margin: 12px 5px;
}
/* Ajout d'un effet au survol */
.actu-carte:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}
/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .actu-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .actu-carte {
        max-width: 100%;
    }
}

/* ---- FOOTER MODERNE ---- */
.footer {
    background-color: #333333;
    color: white;
    padding: 25px 30px;
    position: relative; /* Empêche de recouvrir les actus */
    width: 100%;
    text-align: center;
}
.footer-links ul {
    list-style: none;
    display: flex;
    gap: 35px;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}
.footer-links a {
    color: white;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 5px;
    transition: color 0.75s;
}
.footer-links a:hover {
    color: chocolate;
}
/* ---- GÉNÉRAL ---- */
body {
    min-height: 100vh; /* Empêche que la page soit plus courte que l'écran */
    margin: 0;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1; /* Permet au contenu principal de prendre l’espace restant */
}

    /* ---- RESPONSIVE DESIGN ---- */
    @media (max-width: 768px) {
        .navbar {
            flex-direction: column;
            text-align: center;
        }

        .nav-links {
            flex-direction: column;
            gap: 10px;
        }

        .carousel {
            height: 300px;
        }

        .actu-wrapper {
            flex-direction: column;
        }

        .actu-carte {
            width: 100%;
        }

        .footer-content {
            flex-direction: column;
            text-align: center;
        }
    }
    @media (max-width: 480px) {
        .carousel {
            height: 250px;
        }

        .logo img {
            height: 30px;
        }
    }
