/* B612 HOME — ANIMATIONS / RENDEZ-VOUS */

/* =========================================================
   PROCHAINS RENDEZ-VOUS
   ========================================================= */

.b612-home-events-list {

    width: 100%;
    height: 325px;

    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
}


/* =========================================================
   CARTE ÉVÉNEMENT
   ========================================================= */

.b612-home-event {

    position: relative;

    width: 100%;
    min-height: 0;
    height: auto;

    overflow: hidden;

    border-radius: 19px;
}

.b612-home-event--yellow {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.b612-home-event--blue {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}


.b612-home-event__link {

    position: relative;

    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns:
        112px
        minmax(0,1fr)
        48px;

    align-items: center;

    box-sizing: border-box;

    padding:
        10px
        12px 10px 10px;

    color: inherit;

    text-decoration: none;
}

/* =========================================================
   VIGNETTES RENDEZ-VOUS
   FORMES ORGANIQUES — SANS POLYGONE
   ========================================================= */

.b612-home-event__image {

    position: relative;

    width: 108px;
    height: 108px;

    overflow: hidden;

    background: rgba(255,255,255,.35);

    /*
     * Forme ronde irrégulière.
     * Les quatre valeurs horizontales et verticales
     * déforment volontairement le cercle.
     */
    border-radius:
        58% 42% 64% 36%
        /
        43% 57% 38% 62%;
}


.b612-home-event--yellow .b612-home-event__image {

    border-radius:
        46% 54% 61% 39%
        /
        58% 42% 55% 45%;

    transform: rotate(-3deg);
}


.b612-home-event--blue .b612-home-event__image {

    border-radius:
        61% 39% 46% 54%
        /
        42% 58% 63% 37%;

    transform: rotate(4deg);
}


/* ---------------------------------------------------------
   IMAGE
   --------------------------------------------------------- */

.b612-home-event__image img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.03);

    transition:
        transform .35s ease;
}


.b612-home-event:hover
.b612-home-event__image img {

    transform: scale(1.08);
}

/* =========================================================
   CONTENU ÉVÉNEMENT
   ========================================================= */

.b612-home-event__content {

    font-family: 'Filson Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;

    min-width: 0;

    padding:
        0 10px;
}

.b612-home-event__type {

    display: block;

    margin-bottom: 3px;

    font-family: "Filson Pro", sans-serif;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .08em;

    text-transform: uppercase;

    color: #173aa6;
}

.b612-home-event__content h3 {

    margin: 0 0 5px;

    font-family: "Formiga", sans-serif;
    font-weight: 700;

    font-size: 1rem;

    line-height: 1.05;

    color: #1239a6;
}

.b612-home-event__time,
.b612-home-event__location {

    display: block;

    font-family: "Filson Pro", sans-serif;

    font-size: 1em;

    line-height: 1.4;

    color: #334d78;
}

.b612-home-event__location {

    margin-top: 2px;
}


/* =========================================================
   FLÈCHE ÉVÉNEMENT
   ========================================================= */

.b612-home-event__arrow {

    width: 38px;
    height: 38px;

    display: flex;

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

    border-radius: 50%;

    background: #fff;

    color: #1239a6;

    font-family: "Filson Pro", sans-serif;

    font-size: 18px;

    box-shadow:
        0 4px 10px
        rgba(20,45,100,.08);

    transition:
        transform .2s ease;
}

.b612-home-event:hover
.b612-home-event__arrow {

    transform:
        translateX(3px);
}

@media (max-width: 1050px) {

    .b612-home-event {
    
            height: 135px;
        }
}

@media (max-width: 700px) {

    .b612-home-events-list {
            height: auto;
            grid-template-rows: none;
        }

    .b612-home-event {
    
            height: 125px;
        }

    .b612-home-event__link {
    
            grid-template-columns:
                92px
                minmax(0,1fr)
                40px;
        }

    .b612-home-event__image {
    
            width: 86px;
            height: 86px;
        }

    .b612-home-event__content h3 {
    
            font-size: 15px;
        }

    .b612-home-event__arrow {
    
            width: 34px;
            height: 34px;
        }
}
