@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200&display=swap');

* {
    box-sizing: border-box;
}

body {
    position: relative;
    min-height: 100vh;
    font-family: sans-serif;
    margin: auto;
    margin-top: 2vh;
    margin-left: 10vw;
    margin-right: 10vw;
}

nav {
    cursor: default;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    background-color: #017cec;
    border-radius: 2px;
    max-width: 80vw;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

nav a {
    color: #ffffff;
    display: inline-block;
    font-size: 32px;
    padding: 1vw;
    font-family: "Montserrat", sans-serif;
    text-decoration: none;
}

nav a:hover {
    color: #ffed03;
}

#burger {
    display: none;
    font-size: 36px;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    margin: 10px;
    z-index: 1000;
}

#burger span {
    font-size: 36px;
}

section {
    width: 50vw;
    float: left;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 8vh;
}

aside {
    width: 20vw;
    margin-left: 5vw;
    float: right;
    margin-bottom: 8vh;
}

#slideshow {
    position: relative;
    width: 20vw;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 20vh;
    /* mettre auto si on ne veut pas redim*/
}

.agenda {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

.agenda th,
.agenda td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.agenda th {
    background-color: #f2f2f2;
}

.agenda tr:nth-child(even) {
    background-color: #f9f9f9;
}


footer {
    position: fixed;
    bottom: 2vh;
    width: 80vw;
    background-color: #017cec;
    color: white;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.footer-content a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #ffed03;
}


@media only screen and (max-width: 768px) {
    body {
        margin-left: 5vw;
        margin-right: 5vw;
    }

    #header {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 90vw;
    }

    #logo {
        width: 50vw;
        height: auto;
    }

    nav {
        flex-direction: column;
        align-items: center;
        display: none;
        background-color: #017cec;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    nav a {
        font-size: 24px;
        padding: 12px;
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    #burger {
        display: flex;
    }

    nav.active {
        display: flex;
    }

    section {
        width: 90vw;
        margin-bottom: 0;
    }

    aside {
        width: 90vw;
        margin-bottom: 10vh;
    }

    #slideshow {
        width: 90vw;
    }

    footer {
        width: 90vw;
    }
}