/*
Theme Name: Becoeur
Author: Ton Nom
Description: Portfolio minimaliste
Version: 1.0
*/

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

body {
    background-color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
}

body.admin-bar .sidebar {
    top: calc(40px + 32px);
}

body.admin-bar .site-wrapper {
    padding-top: calc(40px + 32px);
}

/* ── LAYOUT ── */
.site-wrapper {
    display: flex;
    min-height: 100vh;
    padding: 40px;
    align-items: flex-start;
}

.sidebar {
    width: 300px;
    min-width: 200px;
    position: fixed;
    top: 100px;
    left: 20px;
    height: 100vh;
    padding: 10px 24px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.custom-logo-link img {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 50px;
}

.site-name {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.5;
    margin-bottom: 20px;
    display: block;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    list-style: none;
    margin-bottom: 15px;
}

.sidebar-menu a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.4;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu .current-menu-item a {
    color: #000;
    opacity: 1;
}

.sidebar-text {
    margin-top: 30px;
    font-size: 11px;
    line-height: 1.7;
    color: #000;
    opacity: 0.5;
}

.sidebar-social {
    display: flex;
    flex-direction: row;
    gap: 14px;
    margin-top: 20px;
}

.social-link {
    color: #000;
    text-decoration: none;
    opacity: 0.4;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 1;
}

/* ── CONTENU PRINCIPAL ── */
.main-content {
    margin-left: 300px;
    flex: 1;
    min-width: 0;
    padding-top: 40px;
}

/* ── GRILLE PORTFOLIO ── */
.portfolio-grid {
    padding: 0;
    visibility: hidden;
}

.portfolio-grid.masonry-ready {
    visibility: visible;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
    width: 25%;
    padding: 0 3px 6px 3px;
    float: left;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item img {
    width: 100%;
    display: block;
    height: auto;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
}

.portfolio-item:hover::after {
    background: rgba(255, 255, 255, 0.25);
}

/* ── LIGHTBOX ── */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 80vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 80px;
    right: 20px;
    font-size: 18px;
    cursor: pointer;
    background: #000;
    border: none;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    font-family: 'Outfit', sans-serif;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    opacity: 0.5;
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
    background: #000;
    border: none;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    font-family: 'Outfit', sans-serif;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lightbox-arrow:hover { opacity: 1; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── PAGE ABOUT ── */
.about-wrapper {
    display: flex;
    gap: 60px;
    padding: 0;
    min-height: calc(100vh - 80px);
    align-items: center;
}

.about-text { flex: 1; }

.about-title {
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.about-content {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.7;
}

.about-image { flex: 1; }

.about-image img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    display: block;
}

/* ── PAGE 404 ── */
.not-found-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px;
}

.not-found-code {
    font-size: 100px;
    font-weight: 700;
    opacity: 0.06;
    line-height: 1;
    margin-bottom: 10px;
}

.not-found-title {
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.not-found-text {
    font-size: 13px;
    opacity: 0.5;
    margin-bottom: 30px;
    line-height: 1.7;
}

.not-found-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.not-found-link:hover { opacity: 1; }

/* ── HAMBURGER ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 9999;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

/* ── MENU MOBILE ── */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100vh;
    background: #fff;
    z-index: 999;
    padding: 70px 30px 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-overlay.open {
    opacity: 1;
    display: block;
}

.mobile-menu-close {
    position: absolute;
    top: 80px;
    right: 30px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.mobile-menu-close:hover { opacity: 1; }

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li { list-style: none; }

.mobile-nav-menu a {
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.mobile-nav-menu a:hover { opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
        min-width: 220px;
        top: 80px;
        left: 10px;
    }
    .main-content {
        margin-left: 220px;
    }
    .site-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .site-wrapper {
        flex-direction: column;
        padding: 0;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px 30px;
    }
    .sidebar-menu,
    .sidebar > .sidebar-social,
    .sidebar > .sidebar-text {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .custom-logo-link img {
        max-width: 140px;
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .main-content {
        margin-left: 0;
        padding-top: 0;
    }
    .portfolio-grid {
    padding: 0 16px;
    visibility: visible;
    columns: 1;
    column-gap: 0;
}

.portfolio-item {
    width: auto !important;
    float: none !important;
    margin-bottom: 6px;
    padding: 0 !important;
}
    
    .about-wrapper {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }
    .lightbox-close {
        top: 150px;
        right: 50%;
        transform: translateX(50%);
    }
    .lightbox-arrow {
        top: 150px;
        transform: none;
    }
    .mobile-menu .custom-logo-link img {
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        padding: 0 16px;
    }
    .not-found-code {
        font-size: 60px;
    }
    .not-found-title {
        font-size: 18px;
    }
}

/* ── PAGE SHOP ── */
.shop-wrapper {
    padding: 0 20px 40px 20px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.shop-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-item-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.shop-item:hover .shop-item-image img {
    transform: scale(1.03);
}

.shop-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-item-title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop-item-price {
    font-size: 13px;
    opacity: 0.5;
}

.shop-item-btn {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    opacity: 0.5;
    transition: all 0.2s ease;
    width: fit-content;
}

.shop-item-btn:hover {
    opacity: 1;
    color: #C0FF3E;
    border-color: #C0FF3E;
}

.shop-empty {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 40px 0;
}