/* ============================================================
   Christov - feuille de style principale
   Variables de couleur injectees en inline dans includes/header.php
   ============================================================ */

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

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark, #000);
  color: var(--text-light, #f5f5f5);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Header + hamburger ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}

.site-logo {
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-light, #fff);
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
}

/* ---------- Selecteur de langue ---------- */
.lang-switch {
  display: flex;
  gap: 6px;
  margin-right: 8px;
}
.lang-switch a {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--text-light, #fff);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 5px 9px;
  cursor: pointer;
  border-radius: 4px;
  opacity: .8;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a.active {
  background: var(--accent, #c9a227);
  border-color: var(--accent, #c9a227);
  color: #1a1a1a;
  opacity: 1;
}

.hamburger-btn {
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 210;
}
.hamburger-btn span {
  display: block;
  width: 28px; height: 2px;
  background: var(--text-light, #fff);
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: 0; right: -320px;
  width: 300px; max-width: 85vw; height: 100%;
  background: var(--bg-dark, #000);
  border-left: 1px solid rgba(255,255,255,0.1);
  z-index: 205;
  padding: 90px 32px;
  transition: right .35s ease;
  overflow-y: auto;
}
.site-nav.open { right: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin-bottom: 22px; }
.site-nav a {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light, #fff);
  opacity: .8;
}
.site-nav a:hover, .site-nav a.active { opacity: 1; color: var(--accent, #c9a227); }
.menu-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: var(--accent, #c9a227);
  color: #1a1a1a;
  border-radius: 20px;
  vertical-align: middle;
}
.nav-close {
  position: absolute;
  top: 24px; left: 28px;
  background: none; border: none;
  color: var(--text-light, #fff);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------- Slider plein page (accueil) ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide { cursor: pointer; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.05) 40%);
}
.hero-caption {
  position: absolute;
  left: 6%; bottom: 12%;
  z-index: 2;
  max-width: 600px;
}
.hero-caption h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin: 0 0 10px;
  color: #fff;
}
.hero-caption p { color: rgba(255,255,255,0.85); margin: 0; }

.hero-dots {
  position: absolute;
  bottom: 24px; right: 6%;
  z-index: 3;
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active { background: var(--accent, #c9a227); border-color: var(--accent, #c9a227); }

.scroll-hint {
  position: absolute;
  bottom: 24px; left: 6%;
  z-index: 3;
  color: rgba(255,255,255,0.85);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- Contenu / panneaux clairs ---------- */
.panel {
  background: var(--bg-panel, #f2f2f2);
  color: var(--text-dark, #1a1a1a);
  padding: 60px 6%;
}
.panel h2 {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.6rem;
  margin-bottom: 30px;
}
.container { max-width: 1180px; margin: 0 auto; }

/* ---------- En-tete + ligne de tri galerie ---------- */
.galerie-entete {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding-bottom: 14px;
  overflow-x: auto;
}
.galerie-entete h2 {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
}
.galerie-tri { flex-shrink: 0; }
.galerie-tri ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.galerie-tri a {
  display: inline-block;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.galerie-tri a:hover { color: #1a1a1a; }
.galerie-tri a.active {
  color: #1a1a1a;
  font-weight: 700;
  border-bottom-color: var(--accent, #c9a227);
}

@media (max-width: 560px) {
  .galerie-entete { gap: 14px; }
  .galerie-tri ul { gap: 16px; }
  .galerie-tri a { font-size: .78rem; }
}

/* ---------- Sous-menu (couleurs / thèmes) ---------- */
.galerie-sous-menu { margin: -14px 0 30px; overflow-x: auto; }
.galerie-sous-menu ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.galerie-sous-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  padding: 7px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 20px;
  color: #444;
}
.galerie-sous-menu a:hover { border-color: rgba(0,0,0,0.35); color: #1a1a1a; }
.galerie-sous-menu a.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}
.galerie-sous-menu .pastille {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
  flex-shrink: 0;
}

/* ---------- Regroupement par annee ---------- */
.galerie-groupe-annee { margin-bottom: 46px; }
.galerie-annee-titre {
  font-size: 1.3rem;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* ---------- Galerie ---------- */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.oeuvre-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
}
.oeuvre-card img { width: 100%; height: 260px; object-fit: cover; }
.oeuvre-info { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.oeuvre-info h3 { margin: 0 0 6px; font-size: 1.05rem; }
.oeuvre-meta { font-size: .85rem; color: #555; margin-bottom: 10px; }
.oeuvre-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.oeuvre-prix { font-weight: 600; }
.badge { font-size: .72rem; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.badge-disponible { background: #dff5e1; color: #1f7a34; }
.badge-vendue { background: #f5dfe0; color: #a3232f; }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.btn {
  display: inline-block;
  padding: 13px 30px;
  background: var(--accent, #c9a227);
  color: #fff;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .6rem;
}
.btn:hover { opacity: .9; }
.alert { padding: 14px 18px; margin-bottom: 22px; font-size: .95rem; }
.alert-success { background: #dff5e1; color: #1f7a34; }
.alert-error { background: #f5dfe0; color: #a3232f; }

.lien-retour {
  display: inline-block;
  font-size: .82rem;
  color: #666;
  margin-bottom: 18px;
}
.lien-retour:hover { color: #1a1a1a; text-decoration: underline; }

/* ---------- Actualites ---------- */
.actu-list { display: flex; flex-direction: column; gap: 30px; }
.actu-item { display: flex; gap: 24px; background: #fff; padding: 20px; }
.actu-item img { width: 220px; height: 150px; object-fit: cover; flex-shrink: 0; }
.actu-date { font-size: .8rem; color: #777; text-transform: uppercase; letter-spacing: 1px; }

.commentaire { border-bottom: 1px solid #ddd; padding: 16px 0; }
.commentaire strong { display: block; }
.commentaire time { font-size: .78rem; color: #777; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 30px 6%;
  font-size: .85rem;
  background: var(--bg-dark, #000);
  color: rgba(255,255,255,0.6);
}
.site-footer p { margin: 0; white-space: nowrap; overflow-x: auto; }
.site-footer-sep { margin: 0 10px; opacity: .5; }
.site-footer a { text-decoration: underline; color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }

@media (max-width: 480px) {
  .site-footer p { white-space: normal; }
  .site-footer-sep { display: block; opacity: 0; height: 4px; }
}

/* ---------- Modale oeuvre ---------- */
.oeuvre-card { cursor: pointer; }
.oeuvre-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.oeuvre-modal.open { display: flex; }
.oeuvre-modal-box {
  background: #fff;
  color: #1a1a1a;
  max-width: 800px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  display: flex; flex-wrap: wrap;
  position: relative;
}
.oeuvre-modal-box img { width: 100%; max-width: 380px; object-fit: cover; }
.oeuvre-modal-info { padding: 26px; flex: 1; min-width: 260px; }
.oeuvre-modal-info [data-modal-contact] { margin-top: 18px; }
.oeuvre-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 1.8rem; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .panel { padding: 40px 5%; }
  .actu-item { flex-direction: column; }
  .actu-item img { width: 100%; height: 200px; }
  .hero-caption { left: 5%; right: 5%; bottom: 18%; }
}
