/* ════════════════════════════════════════════════════════════════════════════
   DESIGN REFONTE 2026 — pixelsphotos.com
   Design moderne, dynamique, enrichi.
   Ce fichier complète app.css et design-premium.css.
   ⚡ Chargé en dernier → priorité maximale
════════════════════════════════════════════════════════════════════════════ */

/* ── Variables globales refonte ─────────────────────────────────────────── */
:root {
  --r-gold:        #c8a84b;
  --r-gold-light:  #e8c870;
  --r-gold-dark:   #8a6e28;
  --r-gold-glow:   rgba(200, 168, 75, 0.18);
  --r-glass-bg:    rgba(10, 12, 20, 0.70);
  --r-glass-border:rgba(200, 168, 75, 0.14);
  --r-ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --r-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r-transition:  0.38s var(--r-ease-out);
  --r-nav-h:       64px;
}

/* ════════════════════════════════════════════════════════════════════════════
   BARRE DE LECTURE (haut de page)
════════════════════════════════════════════════════════════════════════════ */
#read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--r-gold-dark), var(--r-gold), var(--r-gold-light));
  z-index: 99999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(200,168,75,0.5);
}

/* ════════════════════════════════════════════════════════════════════════════
   NAVIGATION — Glassmorphism raffiné
════════════════════════════════════════════════════════════════════════════ */
#admin-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--r-nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
  background: rgba(5, 7, 14, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--r-glass-border);
  z-index: 9900;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#admin-bar.scrolled {
  background: rgba(5, 7, 14, 0.92);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(200,168,75,0.08);
}

/* Logo + Marque */
.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.admin-logo {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(200,168,75,0.35);
  box-shadow: 0 0 12px rgba(200,168,75,0.15);
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-logo:hover {
  border-color: rgba(200,168,75,0.7);
  box-shadow: 0 0 18px rgba(200,168,75,0.3);
}

.admin-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

#site-name-display {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--r-gold);
  white-space: nowrap;
}

/* Navigation links */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(220, 210, 190, 0.7);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link i {
  font-size: 0.78rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 1.5px;
  background: var(--r-gold);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--r-ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: rgba(220, 210, 190, 1);
}

.nav-link:hover i,
.nav-link.active i { opacity: 1; }

.nav-link.active::after { width: 65%; }
.nav-link:hover::after  { width: 50%; }

.nav-link.active {
  color: var(--r-gold);
  background: rgba(200, 168, 75, 0.06);
}

/* Hamburger mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(200,168,75,0.08); }
.nav-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: rgba(220,210,190,0.75);
  border-radius: 2px;
  transition: all 0.25s var(--r-ease-out);
}

/* Outils admin */
.admin-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 1px;
  border-radius: 6px;
  border: 1px solid rgba(200,168,75,0.2);
  background: rgba(200,168,75,0.06);
  color: rgba(220,200,150,0.75);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-admin:hover {
  border-color: rgba(200,168,75,0.5);
  background: rgba(200,168,75,0.12);
  color: var(--r-gold);
}

.btn-edit {
  padding: 0.42rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 6px;
  border: 1px solid rgba(200,168,75,0.45);
  background: rgba(200,168,75,0.12);
  color: var(--r-gold);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-edit:hover {
  background: var(--r-gold);
  color: #0a0a14;
  box-shadow: 0 0 20px rgba(200,168,75,0.35);
}

/* ── Overlay mobile ──────────────────────────────────────────────────────── */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(3, 5, 10, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease, transform 0.3s var(--r-ease-out);
}
.nav-mobile-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}
.nav-mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(200,168,75,0.1);
  border: 1px solid rgba(200,168,75,0.25);
  color: var(--r-gold);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.nav-mobile-close:hover {
  background: rgba(200,168,75,0.2);
  transform: rotate(90deg);
}
.nav-mobile-link {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 2rem;
  font-size: 1.3rem;
  font-family: 'Cinzel', serif;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(220,200,170,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,168,75,0.06);
  width: 100%; max-width: 360px;
  text-align: center; justify-content: center;
  transition: color 0.2s, background 0.2s;
  border-radius: 8px;
}
.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--r-gold);
  background: rgba(200,168,75,0.06);
}

/* ════════════════════════════════════════════════════════════════════════════
   PAGE CANVAS — Espace principal
════════════════════════════════════════════════════════════════════════════ */
body {
  padding-top: var(--r-nav-h);
}

#page-canvas {
  position: relative;
  width: 100%;
  min-height: calc(100svh - var(--r-nav-h));
  overflow: hidden;
}

/* Indicateur de scroll amélioré */
#scroll-hint {
  z-index: 10;
}
body[data-page="home"] #scroll-hint {
  bottom: 3rem;
  color: rgba(200,168,75,0.5);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}
#scroll-hint i {
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}

/* ════════════════════════════════════════════════════════════════════════════
   GALERIES — Design enrichi
════════════════════════════════════════════════════════════════════════════ */

/* Section galeries */
#gallery-section {
  padding: 2rem 0 5rem;
}

/* Titre de section galerie */
.gallery-block {
  margin-bottom: 5rem;
  opacity: 1 !important;
}

.gallery-block-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2.5rem 1.5rem;
  flex-wrap: wrap;
}

.gallery-block-title-wrap {
  position: relative;
}

.gallery-block-title {
  font-family: var(--font-heading, 'Cinzel', serif) !important;
  font-size: 2rem !important;
  font-weight: 300 !important;
  letter-spacing: 3px;
  color: var(--color-text-primary, #f0e8d0) !important;
  margin-bottom: 0.4rem;
  position: relative;
}

.gallery-block-title::after {
  content: '';
  display: block;
  width: 48px; height: 2px;
  background: var(--r-gold);
  margin-top: 0.6rem;
  border-radius: 2px;
  transition: width 0.4s var(--r-ease-out);
}

.gallery-block:hover .gallery-block-title::after {
  width: 80px;
}

.gallery-block-description {
  font-size: 0.9rem;
  color: rgba(180, 165, 140, 0.65);
  letter-spacing: 0.3px;
  max-width: 600px;
  line-height: 1.7;
}

/* Barre de filtre */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 2.5rem 2rem;
  opacity: 1 !important;
}

.gallery-filter-btn {
  padding: 0.4rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 30px;
  border: 1px solid rgba(200,168,75,0.2);
  background: transparent;
  color: rgba(200,185,155,0.6);
  cursor: pointer;
  transition: all 0.22s var(--r-ease-out);
  font-family: inherit;
}

.gallery-filter-btn:hover {
  border-color: rgba(200,168,75,0.5);
  color: var(--r-gold);
  background: rgba(200,168,75,0.07);
  transform: translateY(-1px);
}

.gallery-filter-btn.active {
  background: var(--r-gold);
  border-color: var(--r-gold);
  color: #0a0a0a;
  box-shadow: 0 4px 16px rgba(200,168,75,0.3);
}

/* Grille galerie */
.gallery-grid {
  display: grid !important;
  gap: 8px !important;
}

/* Items galerie */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(20, 22, 30, 0.5);
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateZ(0);
  will-change: transform;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200,168,75,0);
  z-index: 4;
  border-radius: inherit;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::before {
  border-color: rgba(200,168,75,0.25);
}

.gallery-item img,
.gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--r-ease-out), filter 0.4s ease;
  will-change: transform, filter;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

body.admin-mode .gallery-item img,
body.admin-mode .gallery-item video {
  pointer-events: auto;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.06);
  filter: brightness(1.05) saturate(1.1);
}

/* Overlay caption enrichi */
.overlay-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.3) 45%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem 1rem;
  pointer-events: none;
  z-index: 3;
}

.gallery-item:hover .overlay-caption { opacity: 1; }

.overlay-caption-text {
  color: rgba(255,255,255,0.92);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.4;
  transform: translateY(6px);
  transition: transform 0.35s var(--r-ease-out);
}

.gallery-item:hover .overlay-caption-text {
  transform: translateY(0);
}

/* Icône loupe sur hover */
.gallery-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--r-ease-out);
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Icône désactivée en mode admin pour ne pas interférer */
body.admin-mode .gallery-item::after { display: none; }

.gallery-item:hover::after {
  opacity: 0.7;
  transform: translate(-50%, -50%) scale(1);
}

/* Skeleton amélioré */
.skeleton {
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0.03) 20%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.03) 80%
  );
  background-size: 300% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Badge compteur de photos */
.gallery-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  background: rgba(200,168,75,0.1);
  border: 1px solid rgba(200,168,75,0.2);
  font-size: 0.72rem;
  color: var(--r-gold);
  letter-spacing: 1px;
  font-weight: 600;
}

/* Bouton ajout galerie */
#btn-add-gallery {
  display: none;
  margin: 2rem auto 0;
  padding: 0.8rem 2rem;
  background: rgba(200,168,75,0.08);
  border: 1px dashed rgba(200,168,75,0.35);
  border-radius: 8px;
  color: var(--r-gold);
  font-size: 0.85rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
}
#btn-add-gallery:not(.hidden) { display: flex; }
#btn-add-gallery:hover {
  background: rgba(200,168,75,0.15);
  border-color: rgba(200,168,75,0.6);
  transform: scale(1.02);
}

/* ════════════════════════════════════════════════════════════════════════════
   LIGHTBOX — Design premium
════════════════════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}
.lightbox.hidden { display: none; }

.lb-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
  z-index: 2;
}

.lb-counter {
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: rgba(200,168,75,0.7);
  font-family: 'Roboto Mono', monospace;
}

.lb-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lb-action-btn, .lb-close {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.lb-action-btn:hover, .lb-close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.lb-close:hover { color: #f87171; }

.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lb-viewport {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-content img,
.lb-content video {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  -webkit-user-drag: none;
  pointer-events: none;
}

body.admin-mode .lb-content img,
body.admin-mode .lb-content video {
  pointer-events: auto;
}

.lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
  background: rgba(200,168,75,0.08);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: 50%;
  color: rgba(200,168,75,0.7);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--r-ease-out);
  z-index: 2;
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-nav:hover {
  background: rgba(200,168,75,0.18);
  border-color: var(--r-gold);
  color: var(--r-gold);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 20px rgba(200,168,75,0.2);
}

.lb-info-panel {
  position: absolute;
  bottom: 80px; left: 50%;
  transform: translateX(-50%);
  background: rgba(10,12,20,0.9);
  border: 1px solid rgba(200,168,75,0.15);
  border-radius: 10px;
  padding: 1rem 1.4rem;
  max-width: 500px;
  width: 90%;
  backdrop-filter: blur(12px);
}
.lb-info-panel.hidden { display: none; }

.lb-caption {
  font-size: 0.9rem;
  color: rgba(220,200,170,0.85);
  margin-bottom: 0.6rem;
  font-style: italic;
}

.lb-exif {
  font-size: 0.76rem;
  color: rgba(150,140,120,0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

/* Filmstrip */
.lb-filmstrip-wrap {
  height: 70px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 1.5rem;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,168,75,0.3) transparent;
}

.lb-filmstrip {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lb-film-thumb {
  width: 52px; height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.lb-film-thumb:hover { transform: scale(1.06); }
.lb-film-thumb.active {
  border-color: var(--r-gold);
  box-shadow: 0 0 10px rgba(200,168,75,0.4);
}
.lb-film-thumb img,
.lb-film-thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   PAGE CONTACT — Design enrichi, layout glass
════════════════════════════════════════════════════════════════════════════ */
#contact-section {
  padding: 3rem 0 6rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
}

/* Colonne infos */
.contact-info-col {
  position: sticky;
  top: calc(var(--r-nav-h) + 2rem);
}

.contact-info-card {
  background: rgba(15, 18, 28, 0.75);
  border: 1px solid rgba(200,168,75,0.12);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--r-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-info-card:hover {
  border-color: rgba(200,168,75,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(200,168,75,0.05);
}
.contact-info-card:hover::before { opacity: 1; }

.contact-info-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--r-gold);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.contact-info-card p {
  font-size: 0.92rem;
  color: rgba(220, 205, 180, 0.8);
  line-height: 1.7;
  margin: 0;
}

.contact-info-card a {
  color: rgba(200,168,75,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-card a:hover { color: var(--r-gold); }

/* Bouton modifier (admin) */
.contact-edit-btn {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  border-radius: 4px;
  background: rgba(200,168,75,0.1);
  border: 1px solid rgba(200,168,75,0.2);
  color: var(--r-gold);
  cursor: pointer;
  transition: all 0.2s;
}
.contact-edit-btn:hover {
  background: rgba(200,168,75,0.2);
  border-color: var(--r-gold);
}

/* Colonne formulaire */
.contact-form-col {
  min-width: 0;
}

.contact-form {
  background: rgba(12, 15, 24, 0.8);
  border: 1px solid rgba(200,168,75,0.1);
  border-radius: 16px;
  padding: 2.5rem 2.2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.4);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.contact-form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(200,168,75,0.7);
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,168,75,0.12);
  border-radius: 8px;
  color: rgba(230,215,190,0.92);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
  color: rgba(150, 135, 110, 0.45);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: rgba(200,168,75,0.45);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(200,168,75,0.08);
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, #9a7830, var(--r-gold));
  border: none;
  border-radius: 8px;
  color: #0a0a0a;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--r-ease-out);
  box-shadow: 0 4px 20px rgba(200,168,75,0.25);
  position: relative;
  overflow: hidden;
}

.contact-submit-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.contact-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,168,75,0.4);
  background: linear-gradient(135deg, #b08840, var(--r-gold-light));
}

.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: #6ab870;
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact-success i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: success-pop 0.5s var(--r-ease-spring) forwards;
}

@keyframes success-pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════════════════
   PAGE À PROPOS — Portrait enrichi
════════════════════════════════════════════════════════════════════════════ */
#about-portrait {
  gap: 2.5rem;
  padding: 3rem 2.5rem 2rem;
}

#about-portrait-img {
  border: 2px solid rgba(200,168,75,0.45);
  box-shadow: 0 0 0 6px rgba(200,168,75,0.06), 0 16px 48px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s;
}
#about-portrait-img:hover {
  box-shadow: 0 0 0 8px rgba(200,168,75,0.1), 0 20px 60px rgba(0,0,0,0.6);
}

#about-portrait-info h3 {
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--r-gold-dark), var(--r-gold), var(--r-gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER — Design enrichi avec protection IP
════════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(180deg, rgba(4,5,10,0) 0%, rgba(4,5,10,0.98) 40%);
  border-top: 1px solid rgba(200,168,75,0.1);
  margin-top: 2rem;
  padding-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-title {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--r-gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(200,168,75,0.15);
}

.footer-text {
  font-size: 0.88rem;
  color: rgba(180, 165, 140, 0.65);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-link {
  font-size: 0.85rem;
  color: rgba(180, 165, 140, 0.6);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  cursor: pointer;
}
.footer-link:hover {
  color: var(--r-gold);
  padding-left: 6px;
}

.footer-socials {
  display: flex;
  gap: 0.7rem;
}

.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(200,168,75,0.07);
  border: 1px solid rgba(200,168,75,0.15);
  color: rgba(180,165,140,0.55);
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all 0.25s var(--r-ease-out);
}
.social-link:hover {
  background: rgba(200,168,75,0.15);
  border-color: rgba(200,168,75,0.5);
  color: var(--r-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(200,168,75,0.2);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: rgba(180, 165, 140, 0.6);
}

.footer-contact-list li i {
  color: var(--r-gold);
  opacity: 0.6;
  width: 14px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Notice de protection des œuvres ────────────────────────────────────── */
.footer-ip-notice {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid rgba(200,168,75,0.08);
  background: rgba(200,168,75,0.02);
}

.footer-ip-notice-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(150,135,110,0.55);
  line-height: 1.75;
}

.footer-ip-icon {
  font-size: 1rem;
  color: rgba(200,168,75,0.4);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Bas de footer ──────────────────────────────────────────────────────── */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2.5rem;
  border-top: 1px solid rgba(200,168,75,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(150,135,110,0.55);
  letter-spacing: 0.5px;
}

.footer-credit {
  font-size: 0.75rem;
  color: rgba(120,110,90,0.4);
  letter-spacing: 0.5px;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════════════════════
   SCROLL-TO-TOP
════════════════════════════════════════════════════════════════════════════ */
#btn-scroll-top {
  width: 44px; height: 44px;
  background: rgba(200,168,75,0.85);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #0a0a0a;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--r-ease-out);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,168,75,0.3);
}
#btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#btn-scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 20px rgba(200,168,75,0.35);
  background: var(--r-gold);
}

/* ════════════════════════════════════════════════════════════════════════════
   ANIMATIONS SCROLL-REVEAL
════════════════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--r-ease-out), transform 0.65s var(--r-ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-scale { transform: scale(0.94); }
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible { transform: none; opacity: 1; }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ════════════════════════════════════════════════════════════════════════════
   TRANSITIONS DE PAGE
════════════════════════════════════════════════════════════════════════════ */
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes page-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.page-leaving  { animation: page-fade-out 0.2s ease forwards; pointer-events: none; }
.page-entering { animation: page-fade-in 0.38s var(--r-ease-out) forwards; }

/* ════════════════════════════════════════════════════════════════════════════
   CURSEUR AMBIANT
════════════════════════════════════════════════════════════════════════════ */
@media (pointer: fine) {
  #cursor-dot {
    background: rgba(200,168,75,0.95);
    box-shadow: 0 0 10px 3px rgba(200,168,75,0.45);
    width: 6px; height: 6px;
  }
  body.cursor-hover #cursor-dot {
    width: 10px; height: 10px;
    box-shadow: 0 0 16px 5px rgba(200,168,75,0.55);
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   MODALE GÉNÉRIQUE — Amélioration
════════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.hidden { display: none; }

.modal-box {
  background: rgba(10,14,22,0.97);
  border: 1px solid rgba(200,168,75,0.18);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(200,168,75,0.05),
    0 40px 100px rgba(0,0,0,0.8);
  animation: modal-appear 0.32s var(--r-ease-out) forwards;
}

@keyframes modal-appear {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(200,168,75,0.1);
  flex-shrink: 0;
}

.modal-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--r-gold);
  display: flex; align-items: center; gap: 0.5rem;
}
.modal-header h3 i { opacity: 0.7; }

.modal-close {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,168,75,0.25) transparent;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid rgba(200,168,75,0.1);
  flex-shrink: 0;
}

.btn-modal-ok {
  padding: 0.6rem 1.4rem;
  background: var(--r-gold);
  border: none;
  border-radius: 6px;
  color: #0a0a0a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.4rem;
  transition: all 0.2s;
}
.btn-modal-ok:hover {
  background: var(--r-gold-light);
  box-shadow: 0 4px 16px rgba(200,168,75,0.35);
}

.btn-modal-cancel, .btn-modal-delete {
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-modal-cancel:hover {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
}
.btn-modal-delete {
  border-color: rgba(220,38,38,0.3);
  color: #f87171;
}
.btn-modal-delete:hover {
  background: rgba(220,38,38,0.1);
  border-color: rgba(220,38,38,0.6);
}

/* ════════════════════════════════════════════════════════════════════════════
   INPUTS & FORMULAIRES — Admin
════════════════════════════════════════════════════════════════════════════ */
.text-input,
.modal-body label + input,
.modal-body label + textarea,
.modal-body label + select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,168,75,0.15);
  border-radius: 7px;
  color: rgba(230,215,190,0.85);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-top: 0.3rem;
}

.text-input:focus,
.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
  border-color: rgba(200,168,75,0.45);
  box-shadow: 0 0 0 3px rgba(200,168,75,0.08);
}

.modal-body label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(160,145,115,0.8);
  margin-top: 1rem;
}
.modal-body label:first-child { margin-top: 0; }

.mt-sm { margin-top: 0.5rem; }

/* ════════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
════════════════════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.6rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.2rem;
  background: rgba(10,14,22,0.95);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: 10px;
  color: rgba(220,205,180,0.9);
  font-size: 0.85rem;
  min-width: 260px;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  transform: translateX(12px);
  opacity: 0;
  transition: all 0.3s var(--r-ease-out);
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast.error {
  border-color: rgba(220,38,38,0.3);
  background: rgba(30,8,8,0.95);
}
.toast.success {
  border-color: rgba(80,200,120,0.3);
}

/* ════════════════════════════════════════════════════════════════════════════
   MODAL LÉGAL — Conditions & Confidentialité
════════════════════════════════════════════════════════════════════════════ */
.legal-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--r-gold);
  margin: 2em 0 0.5em;
  letter-spacing: 1px;
}
.legal-content h3:first-child { margin-top: 0; }

.legal-content p {
  font-size: 0.88rem;
  color: rgba(180,165,140,0.75);
  line-height: 1.85;
  margin-bottom: 0.5rem;
}

.legal-content ul {
  padding-left: 1.2rem;
  margin-bottom: 0.8rem;
}
.legal-content ul li {
  font-size: 0.86rem;
  color: rgba(160,145,120,0.7);
  line-height: 1.8;
}

/* ════════════════════════════════════════════════════════════════════════════
   SKIP LINK ACCESSIBILITÉ
════════════════════════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--r-gold);
  color: #000;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  font-size: 0.82rem;
  z-index: 99999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-info-col {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .contact-info-card {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  :root { --r-nav-h: 58px; }

  #admin-bar {
    padding: 0 1rem;
  }

  .admin-nav { display: none; }

  .nav-hamburger { display: flex; }

  #site-name-display {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }

  .admin-tools .btn-admin span { display: none; }
  .admin-tools .btn-admin { padding: 0.4rem; }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1rem 1.5rem;
  }

  .gallery-block-header {
    padding: 0 1.5rem 1.2rem;
  }
  .gallery-filter-bar {
    padding: 0.8rem 1.5rem 1.5rem;
  }

  .contact-layout { padding: 0 1rem; }
  .contact-form { padding: 1.5rem 1.2rem; }

  .contact-form-row { grid-template-columns: 1fr; }

  .contact-info-col {
    grid-template-columns: 1fr;
  }

  .lb-nav {
    width: 40px; height: 40px;
    font-size: 0.9rem;
  }
  .lb-prev { left: 0.8rem; }
  .lb-next { right: 0.8rem; }
}

@media (max-width: 480px) {
  .gallery-block-title { font-size: 1.5rem !important; }
  .gallery-filter-btn { padding: 0.35rem 0.9rem; font-size: 0.72rem; }
  .contact-submit-btn { width: 100%; justify-content: center; }
  .modal-box { border-radius: 12px 12px 0 0; margin-top: auto; max-height: 90vh; }
}

/* ════════════════════════════════════════════════════════════════════════════
   PROTECTION IMPRESSION
════════════════════════════════════════════════════════════════════════════ */
@media print { body { display: none !important; } }

/* ════════════════════════════════════════════════════════════════════════════
   FOCUS ACCESSIBLE
════════════════════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--r-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ════════════════════════════════════════════════════════════════════════════
   BARRE ADMIN SCROLLÉE — script d'activation
   (Active la classe .scrolled via JS ou CSS scroll-driven)
════════════════════════════════════════════════════════════════════════════ */
@supports (animation-timeline: scroll()) {
  #admin-bar {
    animation: nav-scroll linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 80px;
  }
  @keyframes nav-scroll {
    from {
      background: rgba(5, 7, 14, 0.72);
      box-shadow: none;
    }
    to {
      background: rgba(5, 7, 14, 0.96);
      box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(200,168,75,0.1);
    }
  }
}
