/* =======================================================
   style.css - Styles généraux Mini-Agenda
   ======================================================= */

/* ---------- Reset basique ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ---------- Body ---------- */
body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.5;
    padding-bottom: 50px;
}

/* ---------- Container ---------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

header .menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ---------- Menu ---------- */
nav.menu ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav.menu li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
}

nav.menu li a:hover {
    background-color: #34495e;
}

/* ---------- Menu responsive ---------- */
@media (max-width: 768px) {
    header .menu-icon {
        display: block;
    }

    nav.menu {
        display: none;
        flex-direction: column;
        background-color: #2c3e50;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }

    #menuToggle:checked + .menu-icon + nav.menu {
        display: flex;
    }

    nav.menu ul {
        flex-direction: column;
    }
}

/* ---------- Main ---------- */
main {
    padding: 20px 0;
}

/* ---------- Barre de recherche ---------- */
.search-bar {
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.search-bar select,
.search-bar input[type="date"],
.search-bar button {
    padding: 6px 10px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-bar button {
    background-color: #2980b9;
    color: #fff;
    border: none;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #3498db;
}

/* ---------- Carte ---------- */
#map {
    width: 100%;
    height: 500px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    border-radius: 6px;
}

/* ---------- Liste événements ---------- */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.event-item h2 {
    margin-bottom: 8px;
    font-size: 1.2em;
    color: #2c3e50;
}

/* ---------- Footer ---------- */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}
