/* ================================================================
   style-evenement.css — Science L@b22 — Page Événements
   
   Structure :
     1. Réglages globaux
     2. Barre de navigation
     3. Événements à venir  (.a-venir)
     4. Événements précédents  (.precedemment)
     5. Footer
     6. @media — Responsive
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&display=swap');


/* ── 1. RÉGLAGES GLOBAUX ─────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #444444;
}


/* ── 2. BARRE DE NAVIGATION ──────────────────────────────────── */
/* Comportement identique à style.css — voir les commentaires là-bas */
.barre-navigation {
    background-color: rgba(68, 68, 68, 0.4);
    position: fixed;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: background 0.5s;
    z-index: 100;
}

.barre-navigation.scrolled {
    background: white;
    box-shadow: 0 1px 10px -5px rgba(68,68,68,0.3);
}

.barre-navigation .identitee {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.barre-navigation.scrolled .identitee { color: #444444; }

.barre-navigation .identitee .logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.barre-navigation .identitee .Science-lab22 {
    font-size: 22px;
    font-weight: 700;
}

.barre-navigation .navigation {
    display: flex;
    align-items: center;
    gap: 55px;
}

.barre-navigation .navigation a {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.barre-navigation.scrolled .navigation:not(.mobile-menu) a { color: #444444; }
.barre-navigation .navigation a:hover { opacity: 0.5; }

.barre-navigation .btn-contact {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: #444444;
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.barre-navigation .btn-contact:hover { background: #333333; }

.barre-navigation .menu-ham,
.barre-navigation .menu-ham-2 {
    width: 35px;
    position: absolute;
    right: 35px;
    display: none;
}


/* ── 3. ÉVÉNEMENTS À VENIR ───────────────────────────────────── */
/* Titre de section */
.titre-event {
    padding: 150px 80px 50px;
    font-size: 46px;
    font-weight: bold;
}

/* Liste verticale d'événements */
.a-venir {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding-bottom: 80px;
}

/* Conteneur d'un événement : image + overlay texte */
.a-venir .event {
    width: 90%;
    max-width: 1410px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.a-venir .image-evenement {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* Gradient sombre en bas pour rendre le texte lisible sur photo réelle */
.a-venir .event::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0)    40%,
        rgba(0,0,0,0.65) 100%
    );
    pointer-events: none;
}

/* Texte centré en overlay sur l'image */
.a-venir .text-evenements {
    position: absolute;
    z-index: 10;
    bottom: 35px;
    left: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.a-venir .text-evenements .date-evenements {
    color: rgba(255,255,255,0.8);
    font-size: 20px;
}

.a-venir .text-evenements .titre-evenements {
    color: white;
    font-size: 34px;
    font-weight: 800;
}

.a-venir .text-evenements .descriptif-evenements {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    max-width: 700px;
    line-height: 1.5;
}


/* ── 4. ÉVÉNEMENTS PRÉCÉDENTS ────────────────────────────────── */
/*
   Grille 3 colonnes de cartes archives.
   Chaque carte : image pleine hauteur + texte en overlay bas-gauche.
*/
.precedemment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 90%;
    max-width: 1410px;
    margin: 0 auto;
    padding: 20px 0 100px;
}

.precedemment .event-prec {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
}

.precedemment .event-prec .image-evenement {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Léger zoom au survol */
.precedemment .event-prec:hover .image-evenement {
    transform: scale(1.03);
}

/* Gradient sombre en bas */
.precedemment .event-prec::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0)    45%,
        rgba(0,0,0,0.75) 100%
    );
    pointer-events: none;
}

/* Texte en bas à gauche */
.precedemment .event-prec .text-evenements {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.precedemment .event-prec .text-evenements .date-evenements {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}

.precedemment .event-prec .text-evenements .titre-evenements {
    color: white;
    font-size: 20px;
    font-weight: 700;
}


/* ── 5. FOOTER ───────────────────────────────────────────────── */
.footer {
    background-color: #444444;
    height: 200px;
    display: flex;
    padding: 80px;
    gap: 60px;
    color: white;
    justify-content: space-around;
    align-items: center;
}

.footer .identitee {
    display: flex;
    align-items: center;
    color: white;
    gap: 20px;
}

.footer .identitee .logo { height: 60px; }

.footer .identitee .Science-lab22 {
    font-size: 25px;
    width: 60px;
}

.footer .adresses { color: white; }
.footer .reseaux img { width: 28px; height: 28px; }


/* ══════════════════════════════════════════════════════════════
   6. RESPONSIVE — @media
══════════════════════════════════════════════════════════════ */

/* ── < 1100px : Menu hamburger ───────────────────────────────── */
@media screen and (max-width: 1100px) {

    .barre-navigation .identitee { z-index: 10; }
    .barre-navigation .btn-contact { display: none; }
    .barre-navigation .menu-ham { display: block; z-index: 10; }

    .barre-navigation .navigation {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        flex-direction: column;
        position: absolute;
        align-items: flex-start;
        top: 0;
        right: 0;
        width: 100vw;
        background: rgba(17, 17, 17, 0.88);
        padding: 120px 0 100vh 35px;
        gap: 35px;
        z-index: 5;
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .barre-navigation .navigation.mobile-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .barre-navigation .navigation.mobile-menu a { color: white; font-size: 20px; }
    .barre-navigation.scrolled .menu-ham { display: none; }
    .barre-navigation.scrolled .menu-ham-2 { display: block; z-index: 10; }
    .barre-navigation.scrolled.menu-ouvert .identitee { color: white; }
    .barre-navigation.scrolled.menu-ouvert .menu-ham { display: block; }
    .barre-navigation.scrolled.menu-ouvert .menu-ham-2 { display: none; }

    .barre-navigation .navigation.mobile-menu .btn-contact {
        display: inline-flex;
        position: absolute;
        top: 400px;
        left: 35px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        color: #444444;
        background-color: white;
        z-index: 6;
    }

    /* Réduction padding titre */
    .titre-event {
        padding: 130px 40px 30px;
        font-size: 36px;
    }

    /* Grille précédents : 2 colonnes */
    .precedemment {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ── < 700px : Mobile ────────────────────────────────────────── */
@media screen and (max-width: 700px) {

    .titre-event {
        padding: 110px 25px 25px;
        font-size: 28px;
    }

    /* Événements à venir : image plus petite */
    .a-venir .image-evenement {
        height: 280px;
    }

    .a-venir .text-evenements .titre-evenements {
        font-size: 22px;
    }

    /* Grille précédents : 1 colonne */
    .precedemment {
        grid-template-columns: 1fr;
        width: 95%;
    }

    /* Footer colonne */
    .footer {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
        gap: 20px;
        text-align: center;
    }
}
