/* Import de la police Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #fff;
    color: #222;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FE5555;
    padding: 15px 20px;
    position: relative;
    z-index: 100;
}

.navbar a.active {
    border-bottom: 3px solid white;
}

.navbar .logo img {
    max-width: 90px;
    height: auto;
}

.navbar a {
    font-weight: 700;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background 0.3s ease, transform 0.2s;
    font-size: 1.1rem;
}

.navbar a:hover {
    background-color: #FE8888;
    transform: scale(1.1);
    border-radius: 5px;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: white;
    margin-left: auto;
}

/* ================= TWITCH SECTION ================= */
.twitch-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f8f8;
}

.twitch-section h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #FE5757;
}

.twitch-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 90%;
    margin: 0 auto;
}

.twitch-stream {
    width: 70%;
    height: 600px;
    border: none;
}

.twitch-chat {
    width: 30%;
    height: 600px;
    border: none;
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    background: #222;
    color: white;
    padding: 20px;
}

footer .socials {
    margin-top: 10px;
}

footer .socials a img {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

footer .socials a:hover img {
    transform: scale(1.2);
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        position: absolute;
        top: -100vh;
        left: 0;
        width: 100%;
        background-color: #FE8888;
        text-align: center;
        transition: top 0.4s ease-in-out;
        z-index: 99;
    }

    .menu a {
        padding: 15px;
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .menu-active {
        top: 100%;
    }

    .twitch-container {
        flex-direction: column;
        align-items: center;
    }

    .twitch-stream, .twitch-chat {
        width: 100%;
        height: 400px;
    }
}

html, body {
    height: 100%; /* pleine hauteur */
    margin: 0;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* occupe tout l'écran */
}

main, .twitch-section {
    flex: 1; /* prend tout l’espace restant */
}

footer {
    margin-top: auto; /* pousse le footer en bas */
}
