/* -------------------------------------------------------------------------- */
/*  SNOUSSI STUDIO - GALLERY CATEGORY STYLES (MODERN BENTO + MAUVE CTA)       */
/* -------------------------------------------------------------------------- */

/* Variables are inherited from style.css, removing local overrides for consistency */

/* NAVIGATION RETOUR */
.nav-back {
    position: fixed;
    top: 40px;
    left: 5vw;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    mix-blend-mode: difference;
    transition: transform 0.3s ease;
}
.nav-back:hover { transform: translateX(-5px); }

.nav-text {
    font-family: var(--font-tech);
    color: var(--text-white);
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.nav-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-mauve);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-mauve);
}

/* HERO SECTION IMMERSIVE */
.category-hero {
    height: 75vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.65) contrast(1.1);
    z-index: -1;
    transition: transform 1s;
}

.category-title {
    font-family: var(--font-titles);
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 8rem);
    color: #fff; /* Always white on top of hero images */
    text-transform: uppercase;
    z-index: 2;
    text-align: center;
    mix-blend-mode: overlay;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    letter-spacing: -2px;
}
html.light-mode .category-title { mix-blend-mode: normal; text-shadow: 0 5px 25px rgba(0,0,0,0.3); }

/* CONTENU PRINCIPAL */
.project-content {
    padding: 120px 5vw 0 5vw;
    background: var(--bg-deep);
    position: relative;
    z-index: 2;
}

.cat-description {
    max-width: 900px;
    margin: 0 auto 120px auto;
    text-align: center;
}

.cat-label {
    color: var(--accent-mauve);
    font-family: var(--font-tech);
    letter-spacing: 4px;
    margin-bottom: 25px;
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.cat-text {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.4;
    color: var(--text-white);
    opacity: 0.9;
    font-weight: 300;
}

/* GRILLE BENTO MODERNE */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 400px;
    gap: 30px;
    grid-auto-flow: dense;
    margin-bottom: 0px;
}

.photo-item {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    background: #111;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.photo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.row-1 { grid-row: span 1; }
.row-2 { grid-row: span 2; }

@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }
}
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }
    .col-2 { grid-column: span 1; }
}

/* SECTION MAUVE CTA (MODERNE & IMMERSIF) */
.section-mauve-cta {
    background: var(--accent-mauve);
    padding: 120px 5vw;
    margin: 120px -5vw 0 -5vw;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mauve-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mauve-cta-content h2 {
    font-family: var(--font-titles);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 900;
    text-transform: uppercase;
}

.mauve-cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 500px;
}

.mauve-form {
    background: rgba(0, 0, 0, 0.1);
    padding: 50px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.mauve-form-row {
    margin-bottom: 25px;
}

.mauve-form-row label {
    display: block;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.mauve-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s;
}

.mauve-input:focus {
    border-color: white;
}

.mauve-btn {
    width: 100%;
    background: white;
    color: var(--accent-mauve);
    border: none;
    padding: 20px;
    font-family: var(--font-titles);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.mauve-btn:hover {
    background: var(--bg-deep);
    color: white;
    transform: translateY(-5px);
}

@media (max-width: 900px) {
    .mauve-cta-container { grid-template-columns: 1fr; gap: 40px; }
    .mauve-form { padding: 30px; }
}

/* LIGHTBOX DESIGN */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 2, 10, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active .lightbox-content { transform: scale(1); }

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 2px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    pointer-events: none;
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 5vw;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    font-family: var(--font-tech);
    z-index: 10001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 4rem;
    cursor: pointer;
    padding: 30px;
    transition: color 0.3s;
    user-select: none;
}
.lightbox-nav:hover { color: white; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* PROTECTION BLUR */
.anti-screenshot-blur {
    filter: blur(40px) !important;
    opacity: 0.1 !important;
}

/* VANILLA JS REVEAL ANIMATIONS */
.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.photo-item.reveal-hidden {
    transform: translateY(60px);
}
.photo-item.reveal-visible {
    transform: translateY(0);
}
