@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');


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

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: #a55bd4;

    color: white;

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

    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;
}


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

    padding: 0 !important;

    display: flex;

    align-items: center;

    flex-wrap: nowrap;
}


.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;
}


.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;
}


.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;
}


/* =========================================================
   SECTION OEUVRES
   ========================================================= */

.oeuvres-section {
    width: 100%;

    min-height: 100vh;

    padding: 95px 5% 80px;

    background: #a55bd4;
}


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

.oeuvres-title {
    margin-bottom: 55px;

    color: #f7e6df;

    font-family: "Playfair Display", serif;

    font-size: clamp(2rem, 4vw, 3.2rem);

    font-weight: 400;

    text-align: center;
}


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

.oeuvres-grid {
    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

    display: grid;

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

    gap: 60px 55px;

    align-items: start;
}


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

.oeuvre-card {
    display: flex;

    flex-direction: column;

    align-items: center;

    text-decoration: none;

    color: white;

    cursor: pointer;

    transition: transform 0.3s ease;
}


.oeuvre-card:hover {
    transform: translateY(-6px);
}


/* =========================================================
   CADRE TYPE A4
   ========================================================= */

/*
   Format A4 = ratio 210 / 297
   On le reproduit ici avec aspect-ratio.
*/

.oeuvre-image {
    width: 250px;

    aspect-ratio: 210 / 297;

    padding: 16px;

    background: rgba(255, 255, 255, 0.05);

    border: 2px solid rgba(232, 213, 163, 0.7);

    box-shadow:
        0 10px 25px rgba(40, 15, 60, 0.25);

    display: flex;

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

    overflow: hidden;

    position: relative;
}


/* =========================================================
   IMAGE DANS LE CADRE
   ========================================================= */

.oeuvre-image img {
    width: 100%;
    height: 100%;

    /*
       contain = montre toute l'image,
       même si elle est paysage ou carrée
    */
    object-fit: contain;

    object-position: center;

    display: block;

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


/* =========================================================
   EFFET AU SURVOL
   ========================================================= */

.oeuvre-card:hover .oeuvre-image img {
    transform: scale(1.05);

    filter: brightness(1.06);
}


/* =========================================================
   TITRE DE L'OEUVRE
   ========================================================= */

.oeuvre-name {
    margin-top: 14px;

    color: #f8e6df;

    font-family: "Playfair Display", serif;

    font-size: 1rem;

    font-weight: 400;

    text-align: center;

    transition: color 0.3s ease;
}


.oeuvre-card:hover .oeuvre-name {
    color: #f7dfaa;
}


/* =========================================================
   AUCUNE OEUVRE
   ========================================================= */

.no-oeuvre {
    grid-column: 1 / -1;

    text-align: center;

    color: #f7e6df;

    padding: 50px 0;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox {
    position: fixed;

    inset: 0;

    background: rgba(15, 8, 25, 0.92);

    display: none;

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

    z-index: 20000;

    padding: 30px;
}


.lightbox.active {
    display: flex;
}


.lightbox img {
    max-width: 92vw;

    max-height: 90vh;

    width: auto;

    height: auto;

    object-fit: contain;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.45);
}


.lightbox-close {
    position: absolute;

    top: 20px;
    right: 30px;

    border: none;

    background: transparent;

    color: white;

    font-size: 2.5rem;

    cursor: pointer;
}


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

@media (max-width: 900px) {

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

        gap: 50px 35px;
    }


    .oeuvre-image {
        width: 220px;
    }

}


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

@media (max-width: 550px) {

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


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

        gap: 35px 15px;
    }


    .oeuvre-image {
        width: 145px;

        padding: 8px;
    }


    .oeuvre-name {
        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;
    }

}