/* Import de la police Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    background: #fdfdfd;
    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;
}


/* -------- VIDÉOS -------- */
.videos-section {
    text-align: center;
    padding: 40px 20px;
}

.videos-section h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #FE5555;
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    padding: 0 20px;
    justify-items: center;
}

.video-card {
    background-color: #fff;
    border-radius: 12px;
    border: 2px solid #FE5555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 500px;
    transition: transform 0.2s ease-in-out;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-title {
    font-size: 1.1rem;
    color: #FE5555;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #FE5555;
    text-align: center;
}

.video-card iframe {
    width: 100%;
    height: 225px;
    border: none;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

/* -------- FOOTER -------- */
footer {
    text-align: center;
    background: #222;
    color: white;
    padding: 20px;
    margin-top: auto;
    font-size: 0.9rem;
}

footer .socials {
    margin-top: 10px;
}

footer .socials a img {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    transition: transform 0.3s;
    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 mobile */
    .menu {
        display: flex;
        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%;
    }

    /* Iframes un peu plus petites */
    .video-card iframe {
        height: 200px;
    }
}

/* Uniformiser la hauteur des cards */
.video-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Prend toute la hauteur disponible */
}

/* S’assurer que le grid aligne bien les cartes */
.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch; /* Étire les cartes pour qu’elles fassent la même hauteur */
}

/* Titre avec ellipsis si trop long */
.video-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #FE5555;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #FE5555;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Si tu veux forcer en une seule ligne */
}
