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

*{

    margin:0;
    padding:0;

    box-sizing:border-box;

}


body{

    min-height:100vh;

    background:#12120F;

    color:#12120F;

    font-family:'Montserrat', sans-serif;

}

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

.galerie {
    min-height: 100vh;

    padding-top: 100px;

    background: #12120F;
}


/* ==========================
   INTRODUCTION
========================== */

.galerie-intro {
    position: relative;

    width: calc(100% - 80px);
    min-height: 250px;

    margin: 0 auto;

    padding: 42px 45px;

    background: #FFFDF9;

    color: #12120F;

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

    overflow: hidden;
}


.galerie-intro-text {
    max-width: 620px;
}


.galerie-intro h1 {
    margin-bottom: 14px;

    font-family: 'Montserrat', sans-serif;

    font-size: 38px;
    font-weight: 700;

    line-height: 1;
}


.galerie-intro p {
    max-width: 372px;

    font-family: 'Montserrat', sans-serif;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.5;

    text-align: justify;
}


/* ==========================
   CONSTRUCTION DÉCORATIVE
========================== */

.galerie-decoration {
    position: absolute;

    right: 30px;
    bottom: 12px;

    width: 150px;
    height: auto;

    object-fit: contain;
}

/* ==========================
   LISTE DES UNIVERS
========================== */

.univers-list {

    width: calc(100% - 80px);

    margin: 40px auto 0;

    display: flex;
    flex-direction: column;

    gap: 28px;

}

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

.univers-card {

    position: relative;

    min-height: 165px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    border: 5px solid #B48A5A;

    background: #FFFDF9;

    color: #12120F;
    text-decoration: none;

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}


/* ==========================
   TEXTE
========================== */

.univers-content {

    position: relative;

    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 30px;

}


.univers-content h2 {

    margin-bottom: 3px;

    font-family: Georgia, 'Times New Roman', serif;

    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;

    line-height: 1.05;

}


.univers-content p {

    max-width: 390px;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.5;

}


/* ==========================
   VISUEL UNIVERS
========================== */

.univers-visual {

    position: relative;

    overflow: hidden;

}


.univers-visual img {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .6s ease;

}


/* ==========================
   FONDU IMAGE / TEXTE
========================== */

.univers-visual::before {

    content: "";

    position: absolute;

    z-index: 1;

    top: 0;
    bottom: 0;

    left: -2px;

    width: 150px;

    background: linear-gradient(
        90deg,
        #FFFDF9 0%,
        rgba(255, 253, 249, .92) 20%,
        rgba(255, 253, 249, .55) 55%,
        rgba(255, 253, 249, 0) 100%
    );

    pointer-events: none;

}


/* ==========================
   INTERACTION
========================== */

.univers-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 12px 25px rgba(18, 18, 15, .10);

}


.univers-card:hover .univers-visual img {

    transform: scale(1.025);

}


/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 900px) {

    .galerie {

        min-height: calc(100vh - 110px);

        margin-top: 110px;

        padding-top: 70px;
        padding-bottom: 80px;

        background: #FFFDF9;

    }


    .univers-list {

        width: calc(100% - 40px);

    }


    .univers-card {

        grid-template-columns: 1fr;

        min-height: 300px;

    }


    .univers-content {

        min-height: 145px;

        padding: 25px;

    }


    .univers-visual {

        min-height: 150px;

    }


    .univers-visual::before {

        top: -2px;
        left: 0;
        right: 0;
        bottom: auto;

        width: 100%;
        height: 70px;

        background: linear-gradient(
            180deg,
            #FFFDF9 0%,
            rgba(255, 253, 249, .7) 45%,
            rgba(255, 253, 249, 0) 100%
        );

    }


    .galerie-intro {

        width: calc(100% - 40px);

        margin-bottom: 55px;

        align-items: flex-start;

    }


    .galerie-intro h1 {

        font-size: 28px;

    }


    .galerie-intro p {

        font-size: 13px;

    }

}


/* ==========================
   PETITS ÉCRANS
========================== */

@media (max-width: 600px) {

    .galerie-intro {

        flex-direction: column;

        gap: 18px;

    }


    .galerie-intro p {

        max-width: 100%;

    }

}

/* ==========================
   APPARITION PAGE GALERIE
========================== */

.galerie {
    animation: galerieReveal 0.5s ease-out both;
}

@keyframes galerieReveal {

    from {
        opacity: 0;
        filter: blur(6px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}