body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

/* MENU */
.menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu a {
    display: block;
    padding: 10px 18px;
    margin: 0 5px;
    text-decoration: none;
    color: #2c3e50;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu a.active {
    background-color: #f0f4f8;
    color: #0077cc;
    border-radius: 8px;
}

/* HOVER */
.menu a:hover {
    background-color: #e6f0ff;
    color: #0077cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* SOUS-MENU */
.submenu {
    display: none;
    position: absolute;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    top: 100%;
    left: 0;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2000;
}

/* CORRECTION DÉBORDEMENT */
.submenu.right {
    right: 0;
    left: auto;
}

/* LIENS */
.submenu li a {
    padding: 12px;
    color: #333;
}

/* SURVOL SOUS MENU */
.submenu li a:hover {
    background-color: #f0f0f0;
}

/* AFFICHAGE */
.dropdown:hover .submenu {
    display: block;
}

/* BANNIÈRE MODERNE */
.banner {
    background: url("https://images.unsplash.com/photo-1501785888041-af3ef285b470") center/cover no-repeat;
    height: 300px;
    position: relative;
}

.overlay {
    background: rgba(0,0,0,0.4);
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* CARTES */
.cards {
    display: flex;
    gap: 20px;
    padding: 40px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 20px;
    text-decoration: none;
    color: black;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #2c3e50;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .menu {
        flex-direction: column;
    }
}

/* MODAL LOGIN */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}

.modal-content input {
    padding: 10px;
}

.modal-content button {
    padding: 10px;
    background: #0077cc;
    color: white;
    border: none;
    cursor: pointer;
}

.calendar {
    display: flex;
    gap: 20px;
    padding: 40px;
    flex-wrap: wrap;
}

.day {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
}

.year {
    text-align: center;
    color: #0077cc;
    margin-bottom: 20px;
}

.calendar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
    justify-content: center;
}

.month {
    background: white;
    padding: 15px;
    border-radius: 10px;
    width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.month h2 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.event {
    margin-top: 10px;
    padding: 8px;
    background: #eaf4ff;
    border-radius: 5px;
}

.month h3 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.event {
    margin-top: 10px;
    padding: 8px;
    background: #eaf4ff;
    border-radius: 5px;
}

.back {
    display: block;
    text-align: center;
    margin: 20px;
}

.title {
    text-align: center;
    margin-top: 20px;
}

.form {
    text-align: center;
    margin: 20px;
}

.form input {
    padding: 10px;
    margin: 5px;
}

.form button {
    padding: 10px;
    background: #0077cc;
    color: white;
    border: none;
    cursor: pointer;
}

/* bouton supprimer */
.event button {
    margin-left: 10px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.modal-content {
    position: relative;
}

/* CROIX */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

.close:hover {
    color: red;
}

/* BOUTON BURGER */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* VERSION MOBILE */
@media (max-width: 900px) {

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
        margin: 10px 0;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        width: 100%;
    }

    .menu a {
        width: 100%;
        padding: 15px;
        border-top: 1px solid #eee;
    }

    /* SOUS-MENU EN MOBILE */
    .submenu {
        position: static;
        box-shadow: none;
    }

    .dropdown:hover .submenu {
        display: block;
    }
}