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

.portfolio-navbar {
    width: 100%;
    min-height: 38px;
    top: 0;
    left: 0;
    padding: 0 12px !important;
    background: #ba7bf2 !important;
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 9999;
}


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


/* Zone des liens */

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

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

    flex-grow: 1;
    flex-basis: auto !important;
}


/* Liste */

.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: 0.3s;
}


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

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


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background: #a55bd4;

    color: #f8e6df;

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

    overflow-x: hidden;
}


body.lightbox-open {
    overflow: hidden;
}


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

.product-page {
    width: 100%;

    min-height: 100vh;

    padding: 80px 6% 90px;

    background: #a55bd4;
}


/* =========================================================
   RETOUR
   ========================================================= */

.product-back {
    width: 100%;

    max-width: 1400px;

    margin: 0 auto 30px;
}


.product-back a {
    color: #f7dfaa;

    font-size: 0.85rem;

    text-decoration: none;

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


.product-back a:hover {
    opacity: 0.75;
}


/* =========================================================
   BLOC PRINCIPAL
   ========================================================= */

.product-main {
    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    min-height: 520px;

    display: grid;

    grid-template-columns:
        minmax(300px, 42%)
        minmax(300px, 58%);

    align-items: center;

    gap: 55px;
}


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

.product-visual {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   CADRE DE L'IMAGE
   ========================================================= */

.product-image-frame {
    width: 100%;

    max-width: 520px;

    height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    cursor: zoom-in;
}


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

.product-image-frame img {
    max-width: 100%;

    max-height: 100%;

    width: auto;

    height: auto;

    object-fit: contain;

    object-position: center;

    display: block;

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


/* Petit zoom au survol */

.product-image-frame:hover img {
    transform: scale(1.03);

    filter: brightness(1.04);
}


/* =========================================================
   INDICATION DE ZOOM
   ========================================================= */

.zoom-indication {
    margin-top: 10px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.7rem;

    text-align: center;
}


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

.product-info {
    width: 100%;

    max-width: 650px;

    padding: 20px 20px 20px 10px;
}


/* CATÉGORIE */

.product-category {
    margin-bottom: 8px;

    color: #f7dfaa;

    font-size: 0.7rem;

    text-transform: uppercase;

    letter-spacing: 0.16em;
}


/* TITRE */

.product-info h1 {
    margin-bottom: 12px;

    color: #f8e6df;

    font-family: "Playfair Display", serif;

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

    font-weight: 400;

    line-height: 1.1;
}


/* DATE */

.product-date {
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.6);

    font-size: 0.8rem;
}


/* SÉPARATEUR */

.product-separator {
    width: 55px;

    height: 1px;

    margin: 25px 0;

    background: #f7dfaa;
}


/* DESCRIPTION */

.product-description {
    max-width: 580px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 0.9rem;

    line-height: 1.75;
}


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

.product-gallery {
    width: 100%;

    max-width: 1400px;

    margin: 80px auto 0;
}


.product-gallery h2 {
    margin-bottom: 30px;

    color: #f8e6df;

    font-family: "Playfair Display", serif;

    font-size: 1.8rem;

    font-weight: 400;
}


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

.gallery-grid {
    width: 100%;

    display: grid;

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

    gap: 25px;
}


/* =========================================================
   MINIATURES
   ========================================================= */

.gallery-item {
    width: 100%;

    height: 260px;

    padding: 10px;

    border: 1px solid rgba(247, 223, 170, 0.5);

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

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    cursor: zoom-in;

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


.gallery-item:hover {
    transform: translateY(-5px);

    background: rgba(255, 255, 255, 0.07);
}

/* =========================================================
   VIDÉO PRINCIPALE - ANIMATION
   ========================================================= */

.product-video-frame {
    width: 100%;
    max-width: 520px;

    height: auto;

    margin: 0 auto;

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

    overflow: hidden;
}


.product-main-video {
    display: block;

    /* Taille réellement limitée */
    width: 100% !important;
    max-width: 520px !important;

    height: auto !important;
    max-height: 360px !important;

    aspect-ratio: 16 / 9;

    object-fit: contain;

    background: #000;

    border-radius: 8px;
}

/* =========================================================
   IMAGES DE GALERIE
   ========================================================= */

.gallery-item img {
    max-width: 100%;

    max-height: 100%;

    width: auto;

    height: auto;

    object-fit: contain;

    object-position: center;

    display: block;

    transition: transform 0.3s ease;
}


.gallery-item:hover img {
    transform: scale(1.04);
}

/* =========================================================
   CARROUSEL - ARTENSION / LES LIENS BRISÉS
   ========================================================= */

.product-carousel-section {
    width: 100%;
    max-width: 420px;

    margin: 70px auto 0;
}


.product-carousel-section h2 {
    margin-bottom: 25px;

    color: #f8e6df;

    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 400;
}


/* =========================================================
   CONTENEUR DU CARROUSEL
   ========================================================= */

.product-carousel {
    position: relative;

    width: 100%;
    max-width: 750px;

    margin: 0 auto;

    overflow: hidden;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.035);
}


/* =========================================================
   ZONE DES IMAGES
   ========================================================= */

.carousel-track {
    position: relative;

    width: 100%;

    /* Hauteur maximale du carrousel */
    height: 650px;

    overflow: hidden;
}


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

.carousel-slide {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

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

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* Seulement l'image active est visible */

.carousel-slide.active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   IMAGE DU CARROUSEL
   ========================================================= */

.carousel-slide img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;

    margin: auto;
}


/* =========================================================
   FLÈCHES
   ========================================================= */

.carousel-arrow {
    position: absolute;

    top: 50%;

    z-index: 30;

    width: 48px;
    height: 48px;

    transform: translateY(-50%);

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

    padding: 0;

    border: none;
    border-radius: 50%;

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

    color: #f7dfaa;

    font-size: 1.2rem;

    cursor: pointer;

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


.carousel-arrow:hover {
    background: rgba(15, 8, 25, 0.95);
}


.carousel-prev {
    left: 15px;
}


.carousel-next {
    right: 15px;
}


/* =========================================================
   COMPTEUR 1 / 5
   ========================================================= */

.carousel-counter {
    position: absolute;

    bottom: 15px;
    left: 50%;

    z-index: 30;

    transform: translateX(-50%);

    padding: 7px 14px;

    border-radius: 20px;

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

    color: #ffffff;

    font-size: 0.75rem;
}

/* =========================================================
   CARROUSEL PRINCIPAL
   ========================================================= */

.product-carousel-main {
    width: 320px !important;
    max-width: 320px !important;
    margin: 0 auto !important;
}

.product-carousel-main .carousel-track {
    width: 320px !important;
    height: 450px !important;
}

.product-carousel-main .carousel-slide {
    width: 320px !important;
    height: 450px !important;
    padding: 10px !important;
}

.product-carousel-main .carousel-slide img {
    max-width: 100% !important;
    max-height: 100% !important;

    width: auto !important;
    height: auto !important;

    object-fit: contain !important;
}


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

@media (max-width: 950px) {

    .product-carousel-section {
        max-width: 650px;
    }


    .carousel-track {
        height: 550px;
    }

}


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

@media (max-width: 600px) {

    .product-carousel-section {
        width: 100%;
        margin-top: 50px;
    }


    .product-carousel {
        width: 100%;
    }


    .carousel-track {
        height: 420px;
    }


    .carousel-slide {
        padding: 12px;
    }


    .carousel-arrow {
        width: 40px;
        height: 40px;

        font-size: 0.9rem;
    }


    .carousel-prev {
        left: 8px;
    }


    .carousel-next {
        right: 8px;
    }


    .carousel-counter {
        bottom: 8px;
    }

}

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

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 20000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background: rgba(20, 8, 30, 0.94);
}


.lightbox.active {
    display: flex;
}


.lightbox img {
    max-width: 94vw;

    max-height: 92vh;

    width: auto;

    height: auto;

    object-fit: contain;

    display: block;
}


/* CROIX */

.lightbox-close {
    position: absolute;

    top: 20px;

    right: 30px;

    z-index: 20001;

    border: none;

    background: transparent;

    color: white;

    font-size: 2.5rem;

    line-height: 1;

    cursor: pointer;
}


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

@media (max-width: 950px) {

    .product-main {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .product-image-frame {
        max-width: 600px;

        height: 500px;
    }


    .product-info {
        max-width: 700px;

        margin: 0 auto;

        padding: 10px;

        text-align: center;
    }


    .product-separator {
        margin: 25px auto;
    }


    .gallery-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


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

@media (max-width: 600px) {

    .product-page {
        padding: 65px 15px 50px;
    }


    .product-main {
        gap: 25px;
    }


    .product-image-frame {
        height: 380px;
    }


    .product-info h1 {
        font-size: 2.1rem;
    }


    .product-description {
        font-size: 0.82rem;
    }


    .product-gallery {
        margin-top: 55px;
    }


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

        gap: 12px;
    }


    .gallery-item {
        height: 210px;
    }


    .lightbox {
        padding: 15px;
    }

}

/* =========================================================
   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;
    }

}