a { text-decoration: none; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    min-height: 100vh;
    background-color: #F3F4F6;
}

/* Menu Styles */
.menu {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #111827;
    font-weight: 600;
    font-size: 1.25rem;
}

.logo svg {
    color: #3B82F6;
}

.menu-items {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.menu-items li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #4B5563;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.menu-items li.active a {
    background-color: #EFF6FF;
    color: #3B82F6;
}

.menu-items li:not(.active) a:hover {
    background-color: #F3F4F6;
}

.menu-items svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Events Header */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.events-header h1 {
    font-size: 1.875rem;
    color: #111827;
    font-weight: 600;
}

.button-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background-color: #3B82F6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.button-primary:hover {
    background-color: #2563EB;
}

.button-primary svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 550px), 1fr));
    gap: 1.5rem;
}

/* Event Card */
.event-card {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-image {
    position: relative;
    
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: auto;
    position: relative; /* au lieu de absolute */
    object-fit: contain; /* au lieu de cover */
    display: block; /* pour éviter l'espace sous l'image */
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 1.5rem;
}

.event-content h2 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.event-description {
    color: #4B5563;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-size: 0.875rem;
}

.detail svg {
    width: 1rem;
    height: 1rem;
    color: #3B82F6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-container {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-items {
        width: 100%;
        justify-content: center;
    }

    .events-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }
}