/* =========================================================
   POLICES
   ========================================================= */

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

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap');

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


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

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


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family: "Noto Sans", sans-serif;

    color: #2b2b2b;

    background: #a55bd4;

    overflow-x: hidden;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.portfolio-navbar {
    width: 100%;

    min-height: 38px;

    position: fixed;

    top: 0;
    left: 0;

    z-index: 9999;

    padding: 0 12px !important;

    background: #ba7bf2 !important;

    display: flex;

    align-items: center;
}


/* Conteneur Bootstrap */

.portfolio-navbar .container-fluid {
    width: 100%;

    padding: 0 !important;

    display: flex;

    align-items: center;

    flex-wrap: nowrap;
}


/* =========================================================
   LOGO
   ========================================================= */

.portfolio-navbar .navbar-brand {
    margin: 0 !important;

    padding: 0 !important;

    display: flex;

    align-items: center;
}


.nav-logo {
    width: 28px;
    height: 28px;

    object-fit: contain;

    display: block;
}


/* =========================================================
   MENU
   ========================================================= */

.portfolio-navbar .navbar-collapse {
    display: flex !important;

    align-items: center !important;

    justify-content: flex-end !important;

    flex-grow: 1;

    flex-basis: auto !important;
}


.portfolio-navbar .navbar-nav {
    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    justify-content: flex-end;

    gap: 35px;

    margin: 0 0 0 auto !important;

    padding: 0 !important;

    list-style: none !important;
}


.portfolio-navbar li {
    list-style: none !important;
}


/* Liens */

.portfolio-navbar .nav-link {
    color: #E8D5A3 !important;

    font-size: 0.72rem;

    font-weight: 500;

    line-height: 1;

    padding: 0 !important;

    margin: 0 !important;

    text-decoration: none;

    white-space: nowrap;

    transition: color 0.3s ease;
}


.portfolio-navbar .nav-link:hover,
.portfolio-navbar .nav-link.active {
    color: #f7dfaa !important;
}


/* =========================================================
   PAGE CATÉGORIES
   ========================================================= */

.categories-section {
    width: 100%;

    min-height: 100vh;

    /*
        La navbar est fixed.
        On laisse donc de l'espace au-dessus.
    */

    padding: 100px 6% 80px;

    background: #a55bd4;
}


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

.categories-grid {
    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

    display: grid;

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

    column-gap: 80px;

    row-gap: 75px;

    align-items: start;
}


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

.category-card {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    color: white;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


.category-card:hover {
    transform: translateY(-8px);
}


/* =========================================================
   CONTENEUR IMAGE + CADRE
   ========================================================= */

.category-image {
    position: relative;

    /*
        Taille générale d'une vignette
    */

    width: 320px;
    height: 410px;

    display: flex;

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

    overflow: visible;
}


/* =========================================================
   IMAGE DE LA CATÉGORIE
   ========================================================= */

.category-art {
    position: absolute;

    /*
        L'image se trouve sous le cadre
    */

    z-index: 1;

    /*
        On laisse une marge pour voir
        le cadre autour de l'image
    */

    width: 76%;
    height: 82%;

    object-fit: cover;

    object-position: center;

    display: block;

    border: none;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


/* =========================================================
   CADRE PNG
   ========================================================= */

.category-frame {
    position: absolute;

    /*
        Le cadre est devant l'image
    */

    z-index: 5;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    /*
        Le cadre utilise tout son espace
    */

    width: 100%;
    height: 100%;

    /*
        IMPORTANT :
        contain évite de déformer ton cadre
    */

    object-fit: contain;

    object-position: center;

    display: block;

    border: none;

    /*
        Permet de cliquer à travers le cadre
        sur le lien <a>
    */

    pointer-events: none;

    transition:
        filter 0.3s ease;
}


/* =========================================================
   EFFETS AU SURVOL
   ========================================================= */

.category-card:hover .category-art {
    transform: scale(1.035);

    filter: brightness(1.08);
}


.category-card:hover .category-frame {
    filter:
        drop-shadow(
            0 7px 10px
            rgba(60, 25, 90, 0.30)
        );
}


/* =========================================================
   TITRES
   ========================================================= */

.category-title {
    margin-top: 10px;

    margin-bottom: 0;

    color: #f8e6df;

    font-family: "Playfair Display", serif;

    font-size: 1.25rem;

    font-weight: 400;

    text-align: center;

    transition:
        color 0.3s ease;
}


.category-card:hover .category-title {
    color: #f7dfaa;
}


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

@media (max-width: 1100px) {

    .categories-grid {
        column-gap: 40px;

        row-gap: 55px;
    }


    .category-image {
        width: 260px;

        height: 340px;
    }


    .category-title {
        font-size: 1.05rem;
    }

}


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

@media (max-width: 850px) {

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 55px 35px;
    }


    .category-image {
        width: 250px;

        height: 325px;
    }

}


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

@media (max-width: 550px) {

    .categories-section {
        padding: 70px 15px 40px;
    }


    .categories-grid {
        grid-template-columns: repeat(2, 1fr);

        column-gap: 12px;

        row-gap: 35px;
    }


    .category-image {
        width: 150px;

        height: 200px;
    }


    .category-art {
        width: 74%;

        height: 80%;
    }


    .category-title {
        margin-top: 7px;

        font-size: 0.75rem;
    }

}

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

.portfolio-footer {
    width: 100%;
    margin-top: 100px;
    padding: 60px 7% 25px;

    background:
        radial-gradient(
            circle at top left,
            rgba(186, 123, 242, 0.12),
            transparent 35%
        ),
        #0b0b12;

    color: #f5f5f5;

    border-top: 1px solid rgba(186, 123, 242, 0.35);
}


/* =========================================================
   CONTENEUR PRINCIPAL
   ========================================================= */

.footer-container {
    max-width: 1450px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.1fr 1.4fr 0.8fr;

    gap: 80px;
}


/* =========================================================
   COLONNES
   ========================================================= */

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.footer-column h3 {
    position: relative;

    margin-bottom: 28px;
    padding-bottom: 10px;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #c991f7;
}


.footer-column h3::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 45px;
    height: 2px;

    background: #ba7bf2;
}


/* =========================================================
   LIENS
   ========================================================= */

.footer-column a {
    position: relative;

    margin-bottom: 12px;

    color: #d8d8df;

    font-size: 16px;

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.footer-column a:hover {
    color: #c991f7;
    transform: translateX(5px);
}


/* =========================================================
   INFORMATIONS
   ========================================================= */

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

    gap: 14px;

    margin-bottom: 18px;

    color: #d8d8df;

    font-size: 16px;
    line-height: 1.5;
}


.footer-column p i {
    min-width: 24px;

    color: #ba7bf2;

    font-size: 20px;
}


/* =========================================================
   INSTAGRAM
   ========================================================= */

.footer-social {
    width: 58px;
    height: 58px;

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

    margin-top: 4px;

    border: 1px solid rgba(186, 123, 242, 0.6);
    border-radius: 50%;

    background: rgba(186, 123, 242, 0.06);

    color: #c991f7 !important;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


.footer-social i {
    font-size: 25px;
}


.footer-social:hover {
    transform: translateY(-4px);

    background: rgba(186, 123, 242, 0.16);

    box-shadow:
        0 0 20px rgba(186, 123, 242, 0.25);
}


/* =========================================================
   PARTIE DU BAS
   ========================================================= */

.footer-bottom {
    max-width: 1450px;

    margin: 50px auto 0;
    padding-top: 22px;

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

    gap: 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.footer-bottom p {
    margin: 0;

    color: #aaaab4;

    font-size: 14px;
    letter-spacing: 0.5px;
}


/* =========================================================
   LOGO
   ========================================================= */

.footer-logo {
    width: 38px;
    height: 38px;

    object-fit: contain;

    opacity: 0.9;
}


/* =========================================================
   PETIT SÉPARATEUR
   ========================================================= */

.footer-separator {
    width: 1px;
    height: 30px;

    background: #ba7bf2;
}


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

@media (max-width: 950px) {

    .portfolio-footer {
        padding: 50px 8% 25px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

}


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

@media (max-width: 650px) {

    .portfolio-footer {
        margin-top: 70px;
        padding: 45px 25px 22px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-column h3 {
        font-size: 16px;
    }

    .footer-column a,
    .footer-column p {
        font-size: 15px;
    }

    .footer-bottom {
        margin-top: 40px;

        flex-direction: column;

        gap: 10px;

        text-align: center;
    }

    .footer-separator {
        width: 35px;
        height: 1px;
    }

}