/* ============================================
   GELERIE — Galerie d'Art Contemporain
   Style Luxe / Chic
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --text: #f5f0eb;
  --text-muted: #8a8580;
  --gold: #c9a96e;
  --gold-light: #dfc08a;
  --white: #ffffff;
  --border: rgba(201,169,110,0.15);
  --transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============ HEADER / NAV ============ */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.header-dark {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 22px; font-weight: 300; letter-spacing: 8px;
  color: var(--gold); text-transform: uppercase;
}
.nav-links {
  display: flex; list-style: none; gap: 40px;
}
.nav-links a {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger { display: none; cursor: pointer; width: 28px; height: 20px; position: relative; z-index: 1001; }
.hamburger span {
  display: block; width: 100%; height: 1.5px; background: var(--text);
  position: absolute; left: 0; transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  background: url('https://images.unsplash.com/photo-1577720643272-265f09367456?w=1400') 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.7) 100%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center; padding: 0 5%;
}
.hero-tag {
  display: inline-block; font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); padding: 8px 24px;
  margin-bottom: 30px;
}
.hero h1 {
  font-size: clamp(42px, 8vw, 90px); font-weight: 200; line-height: 1.1;
  letter-spacing: 2px; margin-bottom: 24px;
}
.hero p {
  font-size: 17px; color: var(--text-muted); max-width: 500px; margin: 0 auto 40px;
  line-height: 1.8;
}
.btn-hero {
  display: inline-block; padding: 16px 48px;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--bg); background: var(--gold);
  transition: var(--transition);
}
.btn-hero:hover { background: var(--gold-light); transform: translateY(-2px); }

/* Page hero (subpages) */
.page-hero {
  position: relative; height: 50vh; min-height: 350px;
  display: flex; align-items: center; justify-content: center;
  background: url('https://images.unsplash.com/photo-1594794312433-05a69a98b7a0?w=1400') center/cover no-repeat;
}
.page-hero-contact {
  background-image: url('https://images.unsplash.com/photo-1513364776144-60967b0f800f?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.8));
}
.page-hero-content {
  position: relative; z-index: 1; text-align: center;
}
.page-hero-content h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 200; letter-spacing: 4px;
  margin-bottom: 12px;
}
.page-hero-content p {
  font-size: 15px; color: var(--text-muted); letter-spacing: 2px;
}

/* ============ SECTIONS ============ */
.section-selection, .section-about, .section-reassurance, .section-gallery, .section-contact {
  padding: 100px 0;
}
.section-header {
  text-align: center; margin-bottom: 60px;
}
.section-tag {
  display: inline-block; font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-header h2, .about-text h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 200; letter-spacing: 2px;
  margin-bottom: 16px;
}
.separator {
  width: 60px; height: 1px; background: var(--gold); margin: 0 auto;
}
.separator-left { margin: 0; }

/* ============ WORKS GRID (ACCUEIL) ============ */
.works-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.work-card { overflow: hidden; }
.work-img {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
  cursor: pointer;
}
.work-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.work-card:hover .work-img img { transform: scale(1.05); }
.work-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.4); opacity: 0; transition: opacity 0.4s ease;
}
.work-overlay span {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--white); border: 1px solid var(--white); padding: 10px 24px;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-info { padding: 20px 0; }
.work-info h3 { font-size: 16px; font-weight: 400; letter-spacing: 1px; margin-bottom: 4px; }
.work-info p { font-size: 13px; color: var(--text-muted); }

.section-cta { text-align: center; margin-top: 50px; }
.btn-outline {
  display: inline-block; padding: 14px 40px;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold);
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--gold); color: var(--bg);
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-img img {
  width: 100%; height: 500px; object-fit: cover; border-radius: 4px;
}
.about-text .section-tag { margin-bottom: 12px; }
.about-text p {
  color: var(--text-muted); margin: 20px 0; font-size: 15px; line-height: 1.9;
}
.about-text .btn-outline { margin-top: 16px; }

/* ============ REASSURANCE ============ */
.section-reassurance { background: var(--bg-card); }
.reassurance-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.reassurance-item {
  text-align: center; padding: 40px 20px;
  border: 1px solid var(--border); border-radius: 12px;
  transition: var(--transition);
}
.reassurance-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.reassurance-icon {
  color: var(--gold); margin-bottom: 20px;
}
.reassurance-item h3 {
  font-size: 15px; font-weight: 500; letter-spacing: 1px; margin-bottom: 8px;
}
.reassurance-item p {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
}

/* ============ GALLERY (PAGE) ============ */
.gallery-filters {
  display: flex; justify-content: center; gap: 16px; margin-bottom: 50px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 28px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  background: transparent; color: var(--text-muted); border: 1px solid var(--border);
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  color: var(--gold); border-color: var(--gold);
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 1; border-radius: 4px;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(transparent, rgba(10,10,10,0.9));
  transform: translateY(100%); transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption h3 { font-size: 15px; font-weight: 400; letter-spacing: 1px; }
.gallery-caption p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.gallery-item.hidden-item {
  display: none;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,10,10,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 85%; max-height: 85vh; object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  color: var(--white); cursor: pointer; opacity: 0.7;
  transition: opacity 0.3s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--white); cursor: pointer; opacity: 0.5;
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  transition: var(--transition);
}
.lightbox-arrow:hover { opacity: 1; border-color: var(--gold); color: var(--gold); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.contact-block {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.contact-block:last-child { border-bottom: none; }
.contact-icon { color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.contact-block h3 {
  font-size: 14px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 8px;
}
.contact-block p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.text-muted { font-size: 12px !important; color: var(--text-muted); margin-top: 4px; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border); padding: 60px 0 0;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo { font-size: 18px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 8px; }
.footer-links h4, .footer-contact h4 {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; font-weight: 500;
}
.footer-links a {
  display: block; font-size: 14px; color: var(--text-muted);
  padding: 4px 0; transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }

/* ============ ANIMATIONS REVEAL ============ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: revealFallback 0.8s ease 0.5s forwards;
}
.reveal.visible {
  animation: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img img { height: 350px; }
  .reassurance-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 32px; transition: right 0.4s ease; z-index: 1000;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 16px; letter-spacing: 3px; }

  .hero { min-height: 100vh; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 15px; }
  .btn-hero { padding: 14px 36px; font-size: 11px; }

  .section-selection, .section-about, .section-reassurance, .section-gallery, .section-contact {
    padding: 60px 0;
  }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .reassurance-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .reassurance-item { padding: 24px 12px; }
  .reassurance-item h3 { font-size: 13px; }
  .reassurance-item p { font-size: 11px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-filters { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 10px; }

  .lightbox-arrow { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer { padding: 40px 0 0; }

  .page-hero { height: 40vh; min-height: 280px; }
}

@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; }
  .reassurance-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ============ ADMIN PAGE ============ */
.admin-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.admin-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 48px; max-width: 420px; width: 100%; text-align: center;
}
.admin-box .logo { margin-bottom: 30px; display: block; }
.admin-box h2 {
  font-size: 18px; font-weight: 300; letter-spacing: 2px; margin-bottom: 30px;
}
.admin-box input {
  width: 100%; padding: 14px 16px; margin-bottom: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 14px; font-family: inherit;
  outline: none; transition: border-color 0.3s;
}
.admin-box input:focus { border-color: var(--gold); }
.admin-box .btn-admin {
  width: 100%; padding: 14px; margin-top: 8px;
  background: var(--gold); color: var(--bg); border: none;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; font-family: inherit; font-weight: 600;
  transition: var(--transition);
}
.admin-box .btn-admin:hover { background: var(--gold-light); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel h3 {
  font-size: 16px; font-weight: 300; letter-spacing: 2px; margin-bottom: 24px;
}
.admin-box .btn-domain {
  display: inline-block; padding: 14px 32px; margin-top: 20px;
  background: var(--gold); color: var(--bg); border: none;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; font-family: inherit; font-weight: 600;
  border-radius: 4px; transition: var(--transition);
}
.admin-box .btn-domain:hover { background: var(--gold-light); }
.admin-error { color: #e74c3c; font-size: 13px; margin-top: 8px; display: none; }
