:root {
    --primary-color: #003366; /* Bleu vif */
    --secondary-color: #28A745; /* Vert vif */
    --background-color: #FFFFFF; /* Blanc */
    --text-color: #000000; /* Noir pour le texte */
    --btn-hover-color: #155724; /* Vert foncé pour le survol des boutons */
}

/* Style général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: var(--background-color);
    color: var(--primary-color);
    overflow-x: hidden;
    background-attachment: fixed; /* Fond fixe lors du défilement */
    background-repeat: no-repeat;
}

   .main-container {
            display: flex;
            flex-direction: column;
            min-height: 100vh; /* Assure que la page occupe toute la hauteur */
        }


        .content {
            flex: 1; /* Prend tout l'espace restant entre le header et le footer */
            padding: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
img,video, iframe{
    max-width: 100%;
    height: auto;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: var(--background-color) !important;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar-brand:hover,
.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-toggler {
    border-color: var(--background-color);
}
.navbar-toggler {
    border: none; /* Supprime la bordure du bouton */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.dropdown-menu {
    display: none; /* Par défaut, le menu est masqué */
    position: absolute;
    background-color: white;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block; /* Affiche le menu lorsqu'il a la classe 'show' */
}


/* Accueil */
#accueil {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    background-size: 300% 300%;
    animation: gradientBG 6s ease infinite;
    color: var(--background-color);
}
.container {
    max-width: 1200px; /* Limite la largeur pour une meilleure lisibilité */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.btn-dynamic {
    background-color: var(--secondary-color);
    color: var(--background-color);
    font-weight: bold;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-dynamic:hover {
    background-color: var(--background-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}


/* Section Events */
#events {
    background-color: var(--background-color);
    padding: 40px 20px;
}

#events h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#events p {
    color: var(--text-color);
}

/* Cards */
.card {
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.card-footer .btn {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.card-footer .btn:hover {
    background-color: var(--btn-hover-color);
}

/* Countdown */
.countdown {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Animations pour les textes */
.animate-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    position: relative;
    height: 50px; /* Ajustez selon la taille des mots */
    overflow: hidden;
}

.word {
    display: inline-block;
    position: absolute;
    opacity: 0;
    animation: fadeWords 8s linear infinite;
}

.word:nth-child(1) {
    animation-delay: 0s;
}

.word:nth-child(2) {
    animation-delay: 2s;
}

.word:nth-child(3) {
    animation-delay: 4s;
}

.word:nth-child(4) {
    animation-delay: 6s;
}

@keyframes fadeWords {
    0%, 25% { opacity: 1; transform: translateY(0); }
    50%, 100% { opacity: 0; transform: translateY(-100%); }
}

/* Section About */
#about {
    padding: 50px 30px;
    background-color: #f8f9fa;
    text-align: center;
}

#about h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

#about p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Boutons */
button {
    padding: 10px 20px;
    border: none;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: var(--btn-hover-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    #accueil h1 {
        font-size: 2.5rem;
    }

    #accueil p {
        font-size: 1rem;
    }

    #about {
        padding: 40px 20px;
    }

    .container {
        padding: 0 10px;
    }

    section {
        padding: 20px 15px;
    }
}


.partner-logo {
    width: 50px; /* Largeur ajustable des logos */
    height: auto; /* Préserve les proportions des images */
    transition: transform 0.3s ease; /* Animation au survol */
}

.partner-logo:hover {
    transform: scale(1.1); /* Agrandissement léger au survol */
}


.logos-container {
    display: flex;
    justify-content: center; /* Aligne les logos au centre horizontalement */
    flex-wrap: wrap; /* Permet aux logos de passer à la ligne si l'espace est insuffisant */
    gap: 10px; /* Espacement entre les logos */
}
 

