@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

/* ==========================================================
   ÉVÉNEMENTS — THE DISSIDENTS
========================================================== */



/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-background);
    color: var(--color-text);

    font-family: var(--font-body);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}
/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --color-background: #090909;
    --color-background-dark: #0d0d0d;

    --color-text: #ffffff;

    --color-yellow: #ffdc18;
    --color-red: #e51b23;
    --color-blue: #3d5c5d;

    --color-black: #080808;
    --color-border: #222222;

    --color-black:#090909;
    --color-white:#F5F4F2;
    --color-petrol:#0F4C5C;
    --color-darkred:#8D1E2F;
    --color-copper:#A36A45;
    --color-grey:#8C8C8C;

    --font-body: "Poppins", Arial, sans-serif;
    --font-display: "Audiowide", sans-serif;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: relative;
    z-index: 10;

    height: 103px;
    padding: 0 24px;

    display: flex;
    align-items: center;

    background: var(--color-background-dark);
}


/* Logo */

.brand {
    width: 101px;
    flex: 0 0 101px;
}

.brand img {
    width: 101px;
    height: 68px;
    object-fit: contain;
}


/* Navigation */

.main-nav {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 100px;
    margin-left: 78px;
}

.main-nav a {
    font-family: 'Archivo Black', serif;
    font-size: 15px;

    white-space: nowrap;

    transform: scaleX(1.75);
    transform-origin: center ;
}


.main-nav .active {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Menu */

.menu-toggle {
    display: none;

    width: 38px;

    background: none;
    border: 0;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    height: 2px;
    margin: 7px 0;

    background: var(--color-text);
}

/* ==========================================================
   PAGE
========================================================== */

.events-page {

    width: 100%;

    padding:
        10px 3.3vw 50px;

}


/* ==========================================================
   GRILLE
========================================================== */

.events-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

}


/* ==========================================================
   CARTE
========================================================== */

.event-card {

    min-width: 0;

    border:
        1px solid #202020;

    background: #0b0b0b;

}


/* ==========================================================
   ZONE IMAGE
========================================================== */

.event-image {

    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #111111;

}


/* ==========================================================
   IMAGE
========================================================== */

.event-image > img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .65s cubic-bezier(.2,.65,.25,1);

}


/*
   Léger zoom au survol.

   La valeur 1.045 signifie +4,5 %.
   Pour un effet plus marqué :
   1.06 ou 1.08
*/

.event-card:hover .event-image > img {

    transform: scale(1.045);

}


/* ==========================================================
   PANNEAU NOIR "PLUS D'INFOS"
========================================================== */

.event-overlay {

    position: absolute;

    z-index: 5;

    left: 0;
    right: 0;
    bottom: 0;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    background: #0b0b0b;

    transform:
        translateY(100%);

    transition:
        transform .55s cubic-bezier(.77,0,.18,1);

}


/*
   Quand la carte reçoit la classe .show-overlay,
   le panneau remonte depuis le bas.
*/

.event-card.show-overlay .event-overlay {

    transform:
        translateY(0);

}


/* ==========================================================
   BOUTON FERMETURE
========================================================== */

.overlay-close {

    position: absolute;

    top: 14px;
    right: 14px;

    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #ffffff;

    font-size: 20px;

    font-weight: 300;

    cursor: pointer;

    opacity: .7;

}


.overlay-close:hover {

    opacity: 1;

}


/* ==========================================================
   CONTENU DU PANNEAU
========================================================== */

.overlay-content {

    width: 100%;

    text-align: center;

}


.overlay-label {

    display: block;

    margin-bottom: 18px;

    color: #888888;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: .18em;

}


.overlay-content h3 {

    margin: 0 auto 20px;

    max-width: 360px;

    font-size:
        clamp(1.2rem, 1.8vw, 1.7rem);

    font-weight: 400;

    line-height: 1.15;

}


.overlay-content p {

    margin: 0 auto 15px;

    max-width: 380px;

    color: #cccccc;

    font-size: 13px;

    line-height: 1.6;

}


.overlay-content .overlay-location {

    color: #ffffff;

    font-size: 11px;

}


/* ==========================================================
   CONTENU DE LA CARTE
========================================================== */

.event-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    min-height: 132px;

    padding:
        15px
        15px
        17px;

    text-align: center;

}


/* ==========================================================
   TITRE
========================================================== */

.event-title {

    margin: 0;

    max-width: 330px;

    font-size:
        clamp(.95rem, 1.25vw, 1.15rem);

    font-weight: 500;

    line-height: 1.2;

}


.event-title a {

    color: #ffffff;

    text-decoration: none;

    transition:
        opacity .25s ease;

}


.event-title a:hover {

    opacity: .65;

}


/* ==========================================================
   DATE / LIEU
========================================================== */

.event-meta {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 6px;

    max-width: 100%;

    color: #dddddd;

    font-size: 9px;

    line-height: 1.3;

}


.event-meta span {

    display: inline-block;

}


/* ==========================================================
   PLUS D'INFOS
========================================================== */

.event-more {

    margin-top: 8px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #ffffff;

    text-decoration: underline;

    font-size: 9px;

    cursor: pointer;

}


.event-more:hover {

    opacity: .6;

}


/* ==========================================================
   BOUTON ROUGE
========================================================== */

.event-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 85px;

    min-height: 22px;

    margin-top: 8px;

    padding:
        5px
        13px;

    border: 0;

    border-radius: 0;

    background: var(--color-petrol);

    color: var(--color-white);

    text-decoration: none;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 9px;

    line-height: 1;

    transition:
        background .25s ease,
        color .25s ease;

}


.event-button:hover {

    background: #ffffff;

    color: #000000;

}


/* ==========================================================
   TABLETTE
========================================================== */

@media (max-width: 900px) {

    .main-navigation {

        gap: 22px;

        margin-left: 35px;

    }


    .events-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 760px) {


    /* =====================================================
       HEADER
       ===================================================== */

    .header {
        height: 76px;
        padding: 0 18px;
        position: relative;
    }

    .brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        
        width: 75px;
        flex: 0 0 75px;
    }

    .brand img {
        display: block;
        width: 75px;
        height: auto;
    }

    /* Navigation masquée */
.main-nav {
    display: none;
}

/* Hamburger à droite */
.menu-toggle {
    display: flex;
    position: absolute;

    right: 18px;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 5px;

    background: transparent;
    border: 0;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    z-index: 10002;
}

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 2px;
        margin: 7px auto;
        background: var(--color-text);
        transition: transform .2s ease;
    }


    /* MENU OUVERT */

    .main-nav.is-open {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 22px;

        width: 100%;
        margin: 0;
        padding: 28px 20px 32px;

        background: rgba(13, 13, 13, .98);

        border-top: 1px solid var(--color-border);
        box-shadow: 0 15px 30px rgba(0,0,0,.35);

        z-index: 10001;
    }

    .main-nav.is-open a {
        font-size: 16px;
        transform: none;
    }


    .events-page {

        padding:
            10px 12px 40px;

    }


    .events-grid {

        grid-template-columns: 1fr;

        gap: 12px;

    }


    .event-image {

        aspect-ratio: 1 / 1;

    }


    /* ==========================================================
   PANNEAU NOIR — REMPLACE TOUTE LA CARTE
========================================================== */

.event-card {
    position: relative;
    overflow: hidden;
}


/*
   Le panneau est maintenant positionné par rapport
   à .event-card et non plus par rapport à .event-image.

   Il recouvre donc toute la carte :
   - image
   - titre
   - date
   - lieu
   - bouton "Plus d'infos"
   - bouton d'action
*/

.event-overlay {

    position: absolute;

    z-index: 20;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    background: #0b0b0b;

    transform: translateY(100%);

    transition:
        transform .55s cubic-bezier(.77, 0, .18, 1);

}


/*
   Lorsque le JavaScript ajoute cette classe,
   le panneau remonte depuis le bas de toute la carte.
*/

.event-card.show-overlay .event-overlay {

    transform: translateY(0);

}

}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 70px 7vw 35px;

    border-top: 1px solid var(--color-border);

    background: var(--color-background);

    text-align: center;
}


/* ---------------------------------------------------------
   Logo
   --------------------------------------------------------- */

.footer-logo {
    display: flex;
    justify-content: center;

    margin-bottom: 35px;
}

.footer-logo img {
    width: 120px;
    height: auto;

    object-fit: contain;
}


/* ---------------------------------------------------------
   Réseaux sociaux
   --------------------------------------------------------- */

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 25px;

    margin-bottom: 30px;
}

.footer-socials a {
    font-size: 13px;

    transition: opacity 0.2s ease;
}

.footer-socials a:hover {
    opacity: 0.6;
}


/* ---------------------------------------------------------
   Coordonnées
   --------------------------------------------------------- */

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 6px;

    font-size: 14px;
    line-height: 1.6;
}

.footer-contact a {
    transition: opacity 0.2s ease;
}

.footer-contact a:hover {
    opacity: 0.65;
}

.footer-contact p {
    margin: 0;
}


/* ---------------------------------------------------------
   Copyright
   --------------------------------------------------------- */

.copyright {
    margin-top: 35px;

    color: #777;

    font-size: 12px;
}