/* /assets/css/style.css */

:root {
    --bg: #fdfdfd;
    --text: #1a1a1a;
    --accent: #d4af37;
    --glass: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --text: #f4f4f4;
    --accent: #e5c158;
    --glass: rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg); color: var(--text);
    font-family: 'Inter', sans-serif; font-weight: 300;
    transition: background-color 0.5s ease, color 0.5s ease;
    line-height: 1.6; overflow-x: hidden;
}

h1, h2, h3, .logo-center a { font-family: 'Cormorant Garamond', serif; font-weight: 300; }
a { color: inherit; text-decoration: none; transition: 0.4s ease; }
a:hover { opacity: 0.5; }

/* --- HEADER --- */
.signature-header {
    position: relative;
    z-index: 100;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(150,150,150,0.1);
}
body.has-hero .signature-header {
    position: absolute;
    width: 100%;
    border-bottom: none;
    color: #ffffff;
}
.logo-center a {
    font-size: 2.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.nav-left, .nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
}
.nav-right {
    justify-content: flex-end;
}
.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- BOUTON MENU MOBILE (stylé) --- */
.mobile-nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.mobile-nav-toggle::before {
    content: "☰";
    font-size: 1rem;
}

.mobile-nav-toggle:hover {
    border-color: var(--text);
    background: var(--glass);
}

/* --- MOBILE : Header + MENU responsive --- */
@media (max-width: 768px) {
    .signature-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1.2rem 5%;
    }

    .logo-center {
        text-align: left;
        margin-bottom: 0.25rem;
    }

    .logo-center a {
        font-size: 1.7rem;
        letter-spacing: 3px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-self: flex-start;
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
    }

    .nav-left, .nav-right {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
        border-top: 1px solid rgba(150,150,150,0.15);
    }

    .signature-header.is-open .nav-left,
    .signature-header.is-open .nav-right {
        display: flex;
    }

    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
}

/* --- BANNIÈRE PARALLAX (Albums) --- */
.parallax-hero {
    height: 70vh; width: 100%; background-attachment: fixed;
    background-position: center; background-repeat: no-repeat; background-size: cover;
    display: flex; align-items: center; justify-content: center;
    position: relative; margin-bottom: 5rem;
}
.parallax-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.parallax-title {
    position: relative; color: #fff; font-size: 4rem; letter-spacing: 6px;
    text-transform: uppercase; text-align: center;
}

/* =========================================================
   ACCUEIL : LA BANDELETTE DÉFILANTE (MARQUEE)
   ========================================================= */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 3rem 0;
    background: var(--bg);
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-marquee 30s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-block;
    height: 450px;
    margin-right: 2rem;
    position: relative;
    overflow: hidden;
}

.marquee-item img {
    height: 100%;
    width: auto;
    display: block;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.marquee-item:hover img { 
    filter: brightness(0.6); 
    transform: scale(1.02);
}

.marquee-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.2); opacity: 0; transition: opacity 0.3s;
    color: white; font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-style: italic; letter-spacing: 2px;
}
.marquee-item:hover .marquee-overlay { opacity: 1; }

/* =========================================================
   ALBUM : GRILLE MOSAÏQUE (MASONRY)
   ========================================================= */
.art-masonry { 
    column-count: 3; 
    column-gap: 2rem; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}
.art-item { break-inside: avoid; margin-bottom: 2rem; position: relative; animation: fadeIn 1s ease forwards;}
.art-item img { width: 100%; display: block; cursor: zoom-in; transition: opacity 0.4s ease; }
.art-item:hover img { opacity: 0.8; }

.glass-actions {
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
    background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 8px 20px; border-radius: 40px; border: 1px solid rgba(255,255,255,0.2);
    display: flex; gap: 15px; align-items: center;
    opacity: 0; pointer-events: none; transition: all 0.4s ease;
}
.art-item:hover .glass-actions { opacity: 1; pointer-events: auto; }
.glass-btn { background: transparent; border: none; color: #fff; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 5px; }

.btn {
    background: transparent; color: var(--text)!important; padding: 0.8rem 2rem;
    border: 1px solid var(--text); font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.7rem; cursor: pointer; transition: 0.3s; display: inline-block;
}
.btn:hover { background: var(--text); color: var(--bg)!important; }

.lightbox { display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(0,0,0,0.98); justify-content: center; align-items: center; opacity: 0; transition: 0.4s; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox img { max-width: 90%; max-height: 90vh; }
@keyframes fadeIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 1024px) {
    .art-masonry { column-count: 2; }
    .marquee-item { height: 350px; }
}
@media (max-width: 768px) {
    .art-masonry { column-count: 1; padding: 0 1rem;}
    .parallax-title { font-size: 2.5rem; }
    .glass-actions { opacity: 1; pointer-events: auto; background: rgba(0,0,0,0.6); }
    .marquee-item { height: 250px; margin-right: 1rem;}
}

/* ============================
   PAGE LOGIN / ESPACE CLIENT
   ============================ */

.auth-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.85);
    color: #111;
    padding: 2.5rem 2.2rem;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .auth-card {
    background: rgba(10,10,10,0.9);
    color: var(--text);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(212,175,55,0.18), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.auth-title {
    position: relative;
    font-size: 1.8rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.6rem;
}

.auth-subtitle {
    position: relative;
    font-size: 0.8rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.16rem;
    opacity: 0.6;
    margin-bottom: 1.8rem;
}

.auth-alert {
    position: relative;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #8a1c2b;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

[data-theme="dark"] .auth-alert {
    background: rgba(220, 53, 69, 0.14);
    color: #f8d7da;
}

.auth-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-field label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    opacity: 0.7;
}

.auth-field input {
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.9);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

[data-theme="dark"] .auth-field input {
    background: rgba(12,12,12,0.95);
    border-color: rgba(255,255,255,0.14);
    color: var(--text);
}

.auth-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(212,175,55,0.5);
    background: #fff;
}

[data-theme="dark"] .auth-field input:focus {
    background: #111;
}

.auth-submit {
    width: 100%;
    margin-top: 0.6rem;
    text-align: center;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.18rem;
}

.auth-note {
    position: relative;
    margin-top: 1.4rem;
    font-size: 0.7rem;
    text-align: center;
    opacity: 0.6;
}

/* Responsive login */
@media (max-width: 600px) {
    .auth-wrapper {
        padding: 3rem 1.2rem;
    }

    .auth-card {
        padding: 2.1rem 1.7rem;
        border-radius: 14px;
    }

    .auth-title {
        font-size: 1.5rem;
        letter-spacing: 0.22rem;
    }

    .auth-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.14rem;
    }
}
