/* ========================================
   POIVRE ET SEL — Galerie d'Art Pop
   Style Luxe / Chic
======================================== */

:root {
    --black: #0a0a0a;
    --dark: #141414;
    --gray-dark: #1e1e1e;
    --gray: #888;
    --gray-light: #ccc;
    --white: #f5f5f5;
    --gold: #c9a96e;
    --gold-light: #dfc08a;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* ========== HEADER / NAV ========== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 1px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 3px;
    font-weight: 400;
    color: var(--white);
}

.logo span {
    color: var(--gold);
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-light);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1460661419201-fd4cecdf8a8b?w=1600') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    letter-spacing: 6px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--gold);
    font-style: italic;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--gray-light);
    letter-spacing: 1px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    display: inline-block;
    padding: 14px 40px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    transition: var(--transition);
}

.btn-hero:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-outline.light {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline.light:hover {
    background: var(--white);
    color: var(--black);
}

/* ========== SECTION TAGS & TITLES ========== */

.section-tag {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-tag.center {
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--gold);
}

/* ========== ABOUT SECTION ========== */

.about-section {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img img {
    border-radius: 4px;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.about-text p {
    color: var(--gray-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.about-text .btn-outline {
    margin-top: 10px;
}

/* ========== SELECTION / WORKS ========== */

.selection-section {
    padding: 100px 0;
    background: var(--dark);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.work-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.work-img {
    overflow: hidden;
}

.work-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-img img {
    transform: scale(1.05);
}

.work-info {
    padding: 16px 0;
}

.work-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.work-info p {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 0.5px;
}

.center-btn {
    text-align: center;
}

/* ========== REASSURANCE ========== */

.reassurance-section {
    padding: 100px 0;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.reassurance-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 110, 0.15);
    transition: var(--transition);
}

.reassurance-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.1);
    border-color: rgba(201, 169, 110, 0.3);
}

.reassurance-item svg {
    color: var(--gold);
    margin-bottom: 20px;
}

.reassurance-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.reassurance-item p {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ========== CTA SECTION ========== */

.cta-section {
    padding: 120px 0;
    background: var(--dark);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--gray-light);
    margin-bottom: 40px;
    font-size: 1rem;
}

.cta-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== PAGE HERO (sub-pages) ========== */

.page-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1513364776144-60967b0f800f?w=1400') center/cover no-repeat;
}

.page-hero-contact {
    background-image: url('https://images.unsplash.com/photo-1577720580479-7d839d829c73?w=1400');
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.6), rgba(10,10,10,0.85));
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 5px;
}

/* ========== GALLERY ========== */

.gallery-section {
    padding: 80px 0 120px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--gray-dark);
    color: var(--gray);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--gold);
    color: var(--gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.gallery-item.hidden {
    display: none;
}

/* ========== CONTACT ========== */

.contact-section {
    padding: 80px 0 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.contact-intro {
    color: var(--gray-light);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 50%;
    color: var(--gold);
}

.contact-item h4 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.88rem;
    color: var(--gray-light);
    line-height: 1.8;
}

.contact-map {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 110, 0.15);
}

/* ========== LIGHTBOX ========== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--gold);
}

/* ========== FOOTER ========== */

.footer {
    padding: 80px 0 0;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--gold);
    font-style: italic;
}

.footer-col p {
    color: var(--gray);
    font-size: 0.88rem;
}

.footer-col h4 {
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray);
    font-size: 0.88rem;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--gray);
    letter-spacing: 0.5px;
}

/* ========== ADMIN PAGE ========== */

.admin-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.admin-box {
    background: var(--dark);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 12px;
    padding: 50px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.admin-box h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.admin-box .subtitle {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 32px;
}

.admin-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--black);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 16px;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-body);
}

.admin-input:focus {
    border-color: var(--gold);
}

.admin-input::placeholder {
    color: var(--gray);
}

.btn-admin {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: var(--black);
    border: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    border-radius: 8px;
    font-family: var(--font-body);
}

.btn-admin:hover {
    background: var(--gold-light);
}

.admin-error {
    color: #e74c3c;
    font-size: 0.82rem;
    margin-top: 12px;
    display: none;
}

.admin-panel {
    display: none;
    text-align: left;
}

.admin-panel h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.admin-panel p {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.admin-panel label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 8px;
    margin-top: 20px;
}

.btn-domain {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: var(--gold);
    color: var(--black);
    border: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-body);
}

.btn-domain:hover {
    background: var(--gold-light);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s ease;
        backdrop-filter: blur(20px);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .hero {
        min-height: 500px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img img {
        height: 350px;
    }

    .works-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .work-img img {
        height: 220px;
    }

    .reassurance-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .reassurance-item {
        padding: 24px 16px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-map {
        height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    .admin-box {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .works-grid {
        grid-template-columns: 1fr;
    }

    .work-img img {
        height: 280px;
    }

    .reassurance-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}