/* ============================================================
   Singapore 360° — Professional Stylesheet
   Design: Dark luxury, Singapore red & gold
   ============================================================ */

/* ─── Custom Properties ──────────────────────────────────── */
:root {
  --gold:        #c8a951;
  --gold-dark:   #9a7e3a;
  --gold-light:  #e8c97a;
  --red:         #e63946;
  --red-dark:    #b02a34;
  --bg:          #050a13;
  --bg2:         #090f1e;
  --bg3:         #0d1525;
  --card-bg:     rgba(255, 255, 255, 0.04);
  --card-border: rgba(200, 169, 81, 0.18);
  --text:        #f0e8d8;
  --text-muted:  #8a94a6;
  --white:       #ffffff;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 30px rgba(200,169,81,0.2);
  --transition:  all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif:  'Cinzel', 'Georgia', serif;
  --font-sans:   'Inter', 'Noto Sans SC', system-ui, sans-serif;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── Selection ──────────────────────────────────────────── */
::selection { background: rgba(200,169,81,0.3); color: var(--white); }

/* ─── Utilities ──────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ─── Navigation ─────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 32px;
  background: rgba(5,10,19,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(200,169,81,0.12);
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(5,10,19,0.97);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 16px;
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.logo-360 {
  font-size: 1.5rem; font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(200,169,81,0.6);
}
.logo-sg {
  font-size: 1rem; font-weight: 600;
  color: var(--text); letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.lang-switcher { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  padding: 5px 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text-muted);
  border-radius: 5px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.lang-btn:hover { color: var(--gold); border-color: rgba(200,169,81,0.3); }
.lang-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(200,169,81,0.1);
}

.admin-link {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  transition: var(--transition);
}
.admin-link:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero Section ───────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #0e1f3d 0%, #050a13 70%);
}

/* animated background stars */
#hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(200,169,81,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 40%, rgba(200,169,81,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, rgba(200,169,81,0.25) 0%, transparent 100%),
    radial-gradient(2px 2px at 20% 90%, rgba(255,255,255,0.1) 0%, transparent 100%),
    radial-gradient(2px 2px at 60% 15%, rgba(200,169,81,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 55%, rgba(255,255,255,0.12) 0%, transparent 100%);
  animation: starsTwinkle 8s ease-in-out infinite alternate;
}

@keyframes starsTwinkle {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Decorative side images */
.hero-deco {
  position: absolute; top: 0; bottom: 0;
  width: 30%; z-index: 1;
  display: flex; align-items: center;
  pointer-events: none;
}
.hero-deco-left { left: 0; justify-content: flex-start; }
.hero-deco-right { right: 0; justify-content: flex-end; }
.hero-deco img {
  height: 100%; width: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.12;
  filter: grayscale(30%) blur(1px);
}
.hero-deco-left::after, .hero-deco-right::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60%;
}
.hero-deco-left::after {
  left: 0;
  background: linear-gradient(to right, var(--bg) 30%, transparent);
}
.hero-deco-right::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 30%, transparent);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 100px 24px 60px;
  max-width: 800px;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,169,81,0.4);
  border-radius: 20px;
  background: rgba(200,169,81,0.08);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease both;
}
.hero-tag::before { content: '✦'; font-size: 0.6rem; }

.hero-title {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; margin-bottom: 24px;
  animation: fadeInUp 1s ease 0.2s both;
}
.hero-title-line1 {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900; letter-spacing: 0.15em;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 0 60px rgba(200,169,81,0.3);
}
.hero-title-360 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400; letter-spacing: 0.3em;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 40px rgba(200,169,81,0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 560px; margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 56px;
  animation: fadeInUp 1s ease 0.6s both;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bg); background: var(--gold);
  border-radius: 8px;
  border: 2px solid var(--gold);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(200,169,81,0.3);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,169,81,0.5);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold);
  border-radius: 8px;
  border: 2px solid rgba(200,169,81,0.5);
  background: rgba(200,169,81,0.05);
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(200,169,81,0.12);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem; font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(200,169,81,0.2);
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  animation: bounce 2s ease infinite;
  font-size: 1.2rem;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── Section Common ─────────────────────────────────────── */
section { padding: 100px 0; }
section:nth-child(even) { background: var(--bg2); }

.section-header {
  text-align: center; margin-bottom: 64px;
}

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.section-tag::before, .section-tag::after {
  content: ''; display: block; width: 30px; height: 1px;
  background: var(--gold); opacity: 0.5;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--white); letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto;
}

/* ─── 360° Gallery Grid ──────────────────────────────────── */
.gallery-360-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.section-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 4/3;
}

.section-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold), var(--shadow);
}

.section-card-thumb {
  position: absolute; inset: 0;
}
.section-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.section-card:hover .section-card-thumb img { transform: scale(1.08); }

.section-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,10,19,0.92) 0%,
    rgba(5,10,19,0.5) 50%,
    rgba(5,10,19,0.2) 100%
  );
  transition: var(--transition);
}
.section-card:hover .section-card-overlay {
  background: linear-gradient(
    to top,
    rgba(5,10,19,0.98) 0%,
    rgba(5,10,19,0.65) 50%,
    rgba(5,10,19,0.35) 100%
  );
}

.section-card-icon {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(200,169,81,0.15);
  border: 1px solid rgba(200,169,81,0.3);
  font-size: 1.1rem; color: var(--gold);
  backdrop-filter: blur(8px);
}

.section-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
}

.section-card-count {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
  opacity: 0.8;
}
.section-card-name {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 600;
  color: var(--white); line-height: 1.3;
  margin-bottom: 10px;
}
.section-card-desc {
  font-size: 0.8rem; color: var(--text-muted);
  line-height: 1.5;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}
.section-card:hover .section-card-desc {
  max-height: 80px; opacity: 1;
}

.section-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold);
  opacity: 0; transform: translateY(6px);
  transition: var(--transition);
}
.section-card:hover .section-card-cta { opacity: 1; transform: translateY(0); }

/* 360 badge */
.badge-360 {
  position: absolute; top: 16px; left: 16px;
  padding: 4px 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  color: var(--bg); background: var(--gold);
  border-radius: 4px;
  opacity: 0.9;
}

/* ─── Photo Gallery ──────────────────────────────────────── */
.gallery-filters {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
}
.filter-btn:hover {
  color: var(--gold); border-color: rgba(200,169,81,0.4);
  background: rgba(200,169,81,0.06);
}
.filter-btn.active {
  color: var(--bg);
  background: var(--gold); border-color: var(--gold);
  font-weight: 600;
}
.filter-btn i { font-size: 1rem; }

/* Gallery section description */
.gallery-cat-header {
  text-align: center; margin-bottom: 32px;
}
.gallery-cat-title {
  font-family: var(--font-serif);
  font-size: 1.5rem; color: var(--white); margin-bottom: 8px;
}
.gallery-cat-desc { font-size: 0.95rem; color: var(--text-muted); }

.gallery-grid {
  columns: 5 220px;
  column-gap: 16px;
  gap: 16px;
}
.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative; cursor: zoom-in;
  transition: var(--transition);
}
.gallery-item:hover {
  transform: scale(1.02);
  border-color: rgba(200,169,81,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 2;
}
.gallery-item img {
  width: 100%; display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ─── 360° Viewer Modal ──────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1999;
  background: rgba(5,10,19,0.85);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.viewer-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.viewer-modal.active { opacity: 1; pointer-events: all; transform: scale(1); }

.viewer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(5,10,19,0.95);
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0; min-height: 70px;
}
.viewer-info { flex: 1; padding-right: 16px; }
.viewer-info h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 600; color: var(--white);
}
.viewer-info p {
  font-size: 0.82rem; color: var(--text-muted);
  margin-top: 3px; max-width: 700px;
  line-height: 1.55;
}

.viewer-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

/* Mode agrandi : header ET barre basse réduits au minimum */
.viewer-modal.expanded .viewer-header {
  padding: 6px 12px;
  min-height: 0;
}
.viewer-modal.expanded .viewer-info { display: none; }
.viewer-modal.expanded .viewer-nav { display: none; }
.viewer-modal.expanded #expandViewer i::before { content: '\f066'; /* fa-compress-alt */ }

.vr-btn { color: #7ecfff; border-color: rgba(126,207,255,0.25); }
.vr-btn:hover { color: #fff; border-color: #7ecfff; background: rgba(126,207,255,0.15); }
.vr-btn.active { color: #7ecfff; border-color: #7ecfff; background: rgba(126,207,255,0.18); }

/* Mode VR : header ultra-fin, barre basse masquée */
.viewer-modal.vr-active .viewer-header {
  padding: 4px 12px; min-height: 0;
}
.viewer-modal.vr-active .viewer-info { display: none; }
.viewer-modal.vr-active .viewer-nav  { display: none; }
.viewer-modal.vr-active .pano-side-btn { display: none; }

.viewer-close {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
  flex-shrink: 0;
}
.viewer-close:hover { color: var(--white); border-color: var(--red); background: rgba(230,57,70,0.15); }

/* Pannellum wrapper + container */
.pano-wrapper {
  position: relative; flex: 1; min-height: 0;
  display: flex; overflow: hidden;
}
#pannellumViewer {
  flex: 1; position: relative; overflow: hidden;
  min-height: 0;
}
#pannellumViewer .pnlm-container { height: 100% !important; }

/* Boutons gauche/droite superposés sur l'image */
.pano-side-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem;
  background: rgba(5,10,19,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.pano-side-left  { left: 18px; }
.pano-side-right { right: 18px; }
.pano-wrapper:hover .pano-side-btn { opacity: 1; }
.pano-side-btn:hover { background: rgba(200,169,81,0.25); border-color: var(--gold); color: var(--gold); }
.pano-side-btn:disabled { opacity: 0 !important; pointer-events: none; }

.viewer-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 10px 24px;
  background: rgba(5,10,19,0.95);
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.pano-counter {
  font-size: 0.85rem; color: var(--text-muted);
  letter-spacing: 0.05em; min-width: 60px; text-align: center;
}

.pano-thumbs {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; max-width: 500px;
  scrollbar-width: none; padding: 4px;
}
.pano-thumbs::-webkit-scrollbar { display: none; }

.pano-thumb {
  width: 52px; height: 38px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer; opacity: 0.55;
  transition: var(--transition);
}
.pano-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pano-thumb.active { border-color: var(--gold); opacity: 1; }
.pano-thumb:hover { opacity: 0.9; border-color: rgba(200,169,81,0.5); }

/* ─── About Section ──────────────────────────────────────── */
#about { background: var(--bg3); }

.about-content {
  display: grid; grid-template-columns: 1fr auto;
  gap: 60px; align-items: center;
  max-width: 900px; margin: 0 auto;
}
.about-text .section-tag { justify-content: flex-start; }
.about-text .section-tag::before { display: none; }
.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2rem; color: var(--white); margin-bottom: 16px;
}
.about-text p { color: var(--text-muted); line-height: 1.8; }

.about-flags {
  display: flex; align-items: center; justify-content: center;
}
.about-flag {
  width: 260px; border-radius: 12px;
  opacity: 0.85;
  filter: drop-shadow(0 8px 32px rgba(200,169,81,0.35));
  transition: var(--transition);
}
.about-flag:hover { opacity: 1; transform: scale(1.04); }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(200,169,81,0.12);
  padding: 40px 0;
}
.footer-container {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-copy-block { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.footer-copy { font-size: 0.825rem; color: var(--text-muted); }
.footer-credit { font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.footer-credit strong { color: var(--gold); font-weight: 600; }
.footer-admin {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 14px; border-radius: 6px;
  transition: var(--transition);
}
.footer-admin:hover { color: var(--gold); border-color: rgba(200,169,81,0.3); }

/* ─── Bannière RGPD ──────────────────────────────────────── */
.rgpd-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(5, 10, 19, 0.97);
  border-top: 1px solid rgba(200,169,81,0.3);
  backdrop-filter: blur(12px);
  transform: translateY(0);
  transition: transform 0.4s ease;
  padding: 20px 32px;
}
.rgpd-banner.hidden { transform: translateY(110%); }
.rgpd-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.rgpd-text { flex: 1; }
.rgpd-title {
  color: var(--gold); font-weight: 600; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px; font-size: 0.9rem;
}
.rgpd-text p:last-child { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.rgpd-text strong { color: var(--white); }
.rgpd-btn {
  background: var(--gold); color: #000; border: none;
  padding: 10px 28px; border-radius: 8px; cursor: pointer;
  font-weight: 700; font-size: 0.875rem; white-space: nowrap;
  transition: var(--transition); flex-shrink: 0;
}
.rgpd-btn:hover { background: #e0bf6a; }
@media (max-width: 600px) {
  .rgpd-inner { flex-direction: column; align-items: flex-start; }
  .rgpd-btn { width: 100%; text-align: center; }
}

/* ─── Admin Page ─────────────────────────────────────────── */
.admin-page { background: var(--bg); min-height: 100vh; }

/* Login */
.admin-login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at center, #0e1f3d 0%, #050a13 70%);
}
.admin-login-box {
  width: 100%; max-width: 420px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.admin-login-box .admin-logo {
  text-align: center; margin-bottom: 32px;
}
.admin-login-box .admin-logo .logo-360 { font-size: 2rem; }
.admin-login-box h1 {
  font-family: var(--font-serif);
  font-size: 1.5rem; color: var(--white);
  text-align: center; margin-bottom: 8px;
}
.admin-login-box p {
  text-align: center; font-size: 0.875rem; color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.form-group input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus { border-color: var(--gold); background: rgba(200,169,81,0.05); }

.btn-login {
  width: 100%; padding: 14px;
  background: var(--gold); color: var(--bg);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 8px;
  transition: var(--transition);
  margin-top: 8px;
}
.btn-login:hover { background: var(--gold-light); transform: translateY(-1px); }

.login-error {
  display: none; text-align: center;
  font-size: 0.85rem; color: var(--red);
  margin-top: 12px; padding: 10px;
  background: rgba(230,57,70,0.1); border-radius: 6px;
  border: 1px solid rgba(230,57,70,0.2);
}

/* Admin Dashboard */
.admin-dashboard { display: none; padding-top: 70px; }

.admin-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5,10,19,0.97);
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
}
.admin-topbar .logo { display: flex; align-items: center; gap: 8px; }
.admin-topbar .actions { display: flex; align-items: center; gap: 12px; }

.btn-sm {
  padding: 7px 16px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  border-radius: 6px; transition: var(--transition);
}
.btn-sm.btn-gold { background: var(--gold); color: var(--bg); }
.btn-sm.btn-gold:hover { background: var(--gold-light); }
.btn-sm.btn-outline {
  border: 1px solid rgba(255,255,255,0.15); color: var(--text-muted);
  background: transparent;
}
.btn-sm.btn-outline:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-sm.btn-danger {
  background: rgba(230,57,70,0.15); color: var(--red);
  border: 1px solid rgba(230,57,70,0.3);
}
.btn-sm.btn-danger:hover { background: rgba(230,57,70,0.25); }

.admin-body { max-width: 1400px; margin: 0 auto; padding: 32px 24px; }

.admin-hero {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 32px;
  margin-bottom: 32px;
}
.admin-hero h2 {
  font-family: var(--font-serif); font-size: 1.8rem;
  color: var(--gold); margin-bottom: 8px;
}
.admin-hero p { color: var(--text-muted); }

/* Admin tabs */
.admin-tabs-wrap { margin-bottom: 32px; }
.admin-tabs {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0; margin-bottom: 0;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  padding: 12px 20px; white-space: nowrap;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  transition: var(--transition);
  position: relative; bottom: -1px;
}
.admin-tab:hover { color: var(--gold); }
.admin-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.admin-panel { display: none; padding-top: 28px; }
.admin-panel.active { display: block; }

/* Admin section info */
.admin-section-info {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 20px 24px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.admin-section-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem; color: var(--white);
}
.admin-section-info p { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.admin-stats-badge {
  background: rgba(200,169,81,0.12); border: 1px solid rgba(200,169,81,0.3);
  border-radius: 6px; padding: 8px 16px;
  font-size: 0.8rem; color: var(--gold); font-weight: 600;
}

/* Admin photo grid */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.admin-photo-card {
  border-radius: var(--radius); overflow: hidden;
  border: 2px solid rgba(255,255,255,0.06);
  background: var(--card-bg);
  transition: var(--transition);
}
.admin-photo-card.hidden-photo { opacity: 0.4; border-color: rgba(230,57,70,0.3); }
.admin-photo-card:hover { border-color: rgba(200,169,81,0.3); }
.admin-photo-thumb {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
}
.admin-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-photo-hidden-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(230,57,70,0.25);
  font-size: 2rem; color: var(--red);
  opacity: 0;
  transition: opacity 0.3s;
}
.hidden-photo .admin-photo-hidden-overlay { opacity: 1; }

.admin-photo-actions {
  padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.admin-photo-name {
  font-size: 0.72rem; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}
.toggle-visibility {
  padding: 4px 10px;
  font-size: 0.72rem; font-weight: 600; border-radius: 4px;
  transition: var(--transition);
}
.toggle-visibility.visible {
  background: rgba(75,181,67,0.12); color: #4bb543;
  border: 1px solid rgba(75,181,67,0.3);
}
.toggle-visibility.hidden-state {
  background: rgba(230,57,70,0.12); color: var(--red);
  border: 1px solid rgba(230,57,70,0.3);
}
.toggle-visibility:hover { filter: brightness(1.2); }

/* ─── Pannellum overrides ────────────────────────────────── */
.pnlm-ui .pnlm-about-msg { display: none !important; }
.pnlm-controls-container { display: none; }

/* ─── Loading spinner ────────────────────────────────────── */
.loading-spinner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 300px; gap: 16px; color: var(--text-muted);
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(200,169,81,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; color: var(--card-border); margin-bottom: 16px; }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Notifications ──────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 9999;
  padding: 14px 24px;
  background: var(--bg3); border: 1px solid var(--card-border);
  border-radius: 10px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--white);
  transform: translateX(100px); opacity: 0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none; max-width: 320px;
}
.toast.show { transform: translateX(0); opacity: 1; pointer-events: all; }
.toast.toast-success { border-color: rgba(75,181,67,0.4); }
.toast.toast-success i { color: #4bb543; }
.toast.toast-error { border-color: rgba(230,57,70,0.4); }
.toast.toast-error i { color: var(--red); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .gallery-360-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .gallery-grid { columns: 4 180px; }
}

@media (max-width: 768px) {
  #navbar { padding: 0 16px; }
  .nav-links {
    display: none;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(5,10,19,0.97);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column; padding: 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; }
  .hamburger { display: flex; }

  /* Sur mobile : une seule image, plein fond centré très subtil */
  .hero-deco-right { display: none; }
  .hero-deco {
    display: flex;
    width: 100%; left: 0; right: 0;
    justify-content: center;
  }
  .hero-deco img {
    opacity: 0.07;
    filter: grayscale(10%) blur(3px);
    object-position: center;
  }
  .hero-deco-left::after {
    width: 100%; left: 0;
    background: radial-gradient(ellipse at center, transparent 15%, var(--bg) 72%);
  }

  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }

  .gallery-360-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .gallery-grid { columns: 2 140px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }

  .pano-thumbs { max-width: 60vw; }

  .about-content { grid-template-columns: 1fr; }
  .about-flags { justify-content: center; }
  .about-flag { width: 160px; }

  .footer-container { flex-direction: column; text-align: center; align-items: center; }

  .section-container { padding: 0 16px; }
  section { padding: 64px 0; }

  .admin-photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .admin-body { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .hero-title-line1 { font-size: 2.8rem; }
  .hero-title-360   { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
  .gallery-grid { columns: 2 120px; }
  .gallery-360-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .filter-btn { padding: 8px 14px; font-size: 0.8rem; }
}
