/* Styles Globaux pour la page des événements */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #F2CEA2; /* Même couleur de fond que le reste du site */
    color: #333333;
    line-height: 1.6;
}

/* Header */
.header {
    background-color: #fae5d1;
    padding: 1rem 2rem;
    position: relative;
}

/* Navbar */
.navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

/* Logo and Join Button */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.logo-image {
    max-height: 250px;
    width: auto;
}

/* Navigation Links */
.nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.nav-links li {
    font-size: 1.25rem;
}

.nav-links li a {
    color: #6B4226;
    text-decoration: none;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    top: 1rem;
    z-index: 20;
}

.burger .line {
    width: 30px;
    height: 4px;
    background-color: #6B4226;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Toggle burger animation */
.burger.toggle .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle .line:nth-child(2) {
    opacity: 0;
}

.burger.toggle .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Conteneur principal */
.container {
    margin: 40px auto 0 auto; /* Ajouter de l'espace en haut */
    width: 80%;
    padding: 20px;
    background-color: #fae5d1; /* Couleur de fond pour le contenu */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Titres */
h1, h2 {
    color: #6B4226; /* Couleur des titres */
}

/* Style des événements */
.event {
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
}

.event h2 {
    margin: 0;
    font-size: 1.5em;
}

.event p {
    margin: 5px 0;
    color: #666666;
}

/* Liens d'événements */
.event a {
    color: #8E9775; /* Couleur des liens */
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.event a:hover {
    color: #6B8E23;
    border-bottom-color: #6B8E23;
}

/* Boutons */
.button, .event a {
    background-color: #fae5d1; /* Même couleur de fond que le reste du site */
    color: #6B4226;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover, .event a:hover {
    background-color: #6B8E23;
    transform: scale(1.05);
}

/* Responsivité */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }
    
    .event h2 {
        font-size: 1.3em;
    }
    
    .event p {
        font-size: 0.9em;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #FFF7EB;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .burger {
        display: block;
    }
}
