/* ============================================================
   Lisboa 360° — Feuille de styles
   Design : Dark luxury, Portugal — rouge, vert & or
   ============================================================ */

/* ─── Custom Properties ──────────────────────────────────── */
:root {
  --gold:        #c8a951;
  --gold-dark:   #9a7e3a;
  --gold-light:  #e8c97a;
  --red:         #b91c1c;
  --red-dark:    #7f1d1d;
  --red-light:   #dc2626;
  --green:       #14532d;
  --green-light: #16a34a;
  --bg:          #1a3d5c;
  --bg2:         #1f4669;
  --bg3:         #254f77;
  --card-bg:     rgba(255, 255, 255, 0.05);
  --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', 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;
  background:
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Crect x='4' y='4' width='72' height='72' rx='3' stroke='rgba(59%2C130%2C246%2C0.35)' stroke-width='1.2'/%3E%3Crect x='16' y='16' width='48' height='48' rx='2' stroke='rgba(59%2C130%2C246%2C0.22)' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='14' stroke='rgba(59%2C130%2C246%2C0.20)' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='5' stroke='rgba(200%2C169%2C81%2C0.28)' stroke-width='1'/%3E%3Cline x1='4' y1='40' x2='76' y2='40' stroke='rgba(59%2C130%2C246%2C0.15)' stroke-width='0.7'/%3E%3Cline x1='40' y1='4' x2='40' y2='76' stroke='rgba(59%2C130%2C246%2C0.15)' stroke-width='0.7'/%3E%3C/g%3E%3C/svg%3E")
    repeat
    var(--bg);
}

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Motif azulejo sur toute la page — désactivé, déplacé sur html */
body::before { display: none; }

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(--red-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

::selection { background: rgba(185,28,28,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(3,10,15,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(185,28,28,0.2);
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(3,10,15,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-pt {
  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(--red);
  transform: scaleX(0); transform-origin: center;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--red-light); }
.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);
}

/* ─── Bouton Musique ─────────────────────────────────────── */
.music-btn {
  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);
  position: relative;
  overflow: hidden;
}
.music-btn:hover {
  color: var(--gold);
  border-color: rgba(200,169,81,0.4);
  background: rgba(200,169,81,0.08);
}
.music-btn.playing {
  color: var(--gold);
  border-color: rgba(200,169,81,0.5);
  background: rgba(200,169,81,0.1);
}
.music-btn.playing #musicIcon {
  animation: musicPulse 1.5s ease-in-out infinite;
}
.music-btn.muted {
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.07);
  background: transparent;
}
.music-label { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
@keyframes musicPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.25); opacity: 0.75; }
}

/* ─── Hamburger ──────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: 6px;
  transition: var(--transition);
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%,  rgba(185,28,28,0.32) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 5%  80%, rgba(20,83,45,0.22)  0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 95% 80%, rgba(20,83,45,0.18)  0%, transparent 65%),
    radial-gradient(ellipse 60% 35% at 50% 100%,rgba(200,169,81,0.12) 0%, transparent 60%),
    var(--bg);
}

/* Motif azulejo SVG — carreaux bleus portugais */
#hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Crect width='80' height='80' fill='none'/%3E%3Crect x='4' y='4' width='72' height='72' rx='3' stroke='rgba(59%2C130%2C246%2C0.18)' stroke-width='1'/%3E%3Crect x='16' y='16' width='48' height='48' rx='2' stroke='rgba(59%2C130%2C246%2C0.12)' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='40' r='14' stroke='rgba(59%2C130%2C246%2C0.1)' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='40' r='5' stroke='rgba(200%2C169%2C81%2C0.15)' stroke-width='0.8'/%3E%3Cline x1='4' y1='40' x2='76' y2='40' stroke='rgba(59%2C130%2C246%2C0.08)' stroke-width='0.5'/%3E%3Cline x1='40' y1='4' x2='40' y2='76' stroke='rgba(59%2C130%2C246%2C0.08)' stroke-width='0.5'/%3E%3Cline x1='4' y1='4' x2='76' y2='76' stroke='rgba(59%2C130%2C246%2C0.05)' stroke-width='0.4'/%3E%3Cline x1='76' y1='4' x2='4' y2='76' stroke='rgba(59%2C130%2C246%2C0.05)' stroke-width='0.4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  opacity: 1;
}

/* Étoiles / particules */
#hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(200,169,81,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(200,169,81,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(200,169,81,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(200,169,81,0.2) 0%, transparent 100%);
  pointer-events: none;
  animation: starsTwinkle 6s ease-in-out infinite alternate;
}
@keyframes starsTwinkle {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

.hero-deco {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; opacity: 1; pointer-events: none;
}
.hero-deco img {
  width: 340px;
  filter: saturate(2.5) brightness(1.1) drop-shadow(0 0 24px rgba(185,28,28,0.4));
}
.hero-deco-left  { left: -60px; }
.hero-deco-right { right: -60px; transform: translateY(-50%) scaleX(-1); }

.hero-content {
  position: relative; z-index: 3;
  max-width: 860px;
  padding: 120px 24px 80px;
  animation: fadeInUp 0.9s ease-out;
}

.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,169,81,0.35);
  border-radius: 30px;
  margin-bottom: 28px;
  background: rgba(200,169,81,0.07);
}

.hero-title {
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: 24px;
}
.hero-title-line1 {
  display: block;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.08em;
  text-shadow: 0 4px 40px rgba(185,28,28,0.55), 0 0 80px rgba(185,28,28,0.2);
}
.hero-title-360 {
  display: block;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-shadow: 0 0 50px rgba(200,169,81,0.65), 0 2px 20px rgba(200,169,81,0.3);
  margin-top: 4px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: var(--red);
  color: var(--white);
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(185,28,28,0.4);
}
.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(185,28,28,0.5);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(200,169,81,0.1);
  border-color: rgba(200,169,81,0.35);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 32px;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem; font-weight: 700;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 20px rgba(200,169,81,0.4);
}
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(200,169,81,0.25), transparent);
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(200,169,81,0.5);
  font-size: 1.3rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── Section commons ────────────────────────────────────── */
section {
  padding: 120px 0;
  position: relative;
  background: transparent;
}

section:nth-child(even) { background: rgba(31, 70, 105, 0.55); }

.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-tag {
  display: inline-block;
  padding: 5px 16px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red-light);
  border: 1px solid rgba(185,28,28,0.35);
  border-radius: 30px;
  margin-bottom: 16px;
  background: rgba(185,28,28,0.07);
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── 360° Gallery grid ──────────────────────────────────── */
.gallery-360-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.section-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 16 / 10;
  min-height: 220px;
}
.section-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,169,81,0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), var(--shadow-gold);
}
.section-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.section-card-thumb {
  position: absolute; inset: 0;
  overflow: hidden;
}
.section-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  filter: brightness(0.55) saturate(0.9);
}
.section-card:hover .section-card-thumb img {
  transform: scale(1.07);
  filter: brightness(0.35) saturate(0.8);
}

.section-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,10,15,0.95) 0%, rgba(3,10,15,0.3) 55%, transparent 100%);
}

.badge-360 {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 10px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid rgba(200,169,81,0.5);
  border-radius: 20px;
  background: rgba(3,10,15,0.7);
  backdrop-filter: blur(6px);
}

.section-card-icon {
  position: absolute; top: 14px; left: 14px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,10,15,0.7);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
  color: var(--gold);
}

.section-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
}
.section-card-count {
  font-size: 0.7rem; color: rgba(200,169,81,0.7);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 6px;
}
.section-card-name {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.section-card-desc {
  font-size: 0.78rem; color: var(--text-muted);
  line-height: 1.5;
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}
.section-card:hover .section-card-desc {
  max-height: 60px; opacity: 1;
}
.section-card-cta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.section-card:hover .section-card-cta { opacity: 1; transform: translateY(0); }

/* ─── Photo Gallery ──────────────────────────────────────── */
.gallery-filters {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: transparent;
  transition: var(--transition);
}
.filter-btn:hover {
  color: var(--gold);
  border-color: rgba(200,169,81,0.3);
  background: rgba(200,169,81,0.05);
}
.filter-btn.active {
  color: var(--white);
  border-color: var(--red);
  background: rgba(185,28,28,0.18);
}

.gallery-cat-header {
  text-align: center;
  margin-bottom: 32px;
  min-height: 60px;
}
.gallery-cat-title {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.gallery-cat-desc {
  font-size: 0.9rem; color: var(--text-muted);
}

.gallery-grid {
  columns: 5 220px;
  column-gap: 14px;
  line-height: 0;
}
.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.85);
  border-radius: var(--radius);
}
.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 80px 0;
  font-size: 1rem;
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; display: block; }

/* ─── About ──────────────────────────────────────────────── */
#about { background: var(--bg3); }
.about-content {
  display: flex; align-items: center; gap: 64px;
  max-width: 900px;
  margin: 0 auto;
}
.about-text { flex: 1; }
.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.about-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; }
.about-flags { flex-shrink: 0; }
.about-flag {
  width: 120px; height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  opacity: 0.9;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(185,28,28,0.15);
  padding: 36px 0;
}
.footer-container {
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-logo { opacity: 0.75; }
.footer-copy-block { text-align: center; }
.footer-copy {
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-credit {
  font-size: 0.72rem; color: var(--text-muted);
  opacity: 0.65;
}
.footer-admin {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  font-size: 0.8rem; color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  transition: var(--transition);
}
.footer-admin:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

/* ─── RGPD Banner ────────────────────────────────────────── */
.rgpd-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: rgba(10,21,32,0.97);
  border-top: 1px solid rgba(185,28,28,0.3);
  backdrop-filter: blur(20px);
  transition: transform 0.4s ease;
}
.rgpd-banner.hidden { transform: translateY(100%); }
.rgpd-inner {
  max-width: 1200px; margin: 0 auto; padding: 20px 32px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.rgpd-text { flex: 1; }
.rgpd-title {
  font-size: 0.88rem; font-weight: 600; color: var(--white);
  margin-bottom: 6px;
}
.rgpd-text p {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.6;
}
.rgpd-btn {
  display: inline-flex; align-items: center;
  padding: 10px 24px;
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem; font-weight: 600;
  border-radius: 7px;
  transition: var(--transition);
  white-space: nowrap;
}
.rgpd-btn:hover { background: var(--red-light); }

/* ─── Section Preview Modal ──────────────────────────────── */
.section-preview-modal {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.section-preview-modal.active { transform: translateX(0); }

.sp-header {
  position: relative;
  min-height: 280px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.sp-header-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.3) saturate(0.7);
}
.sp-close-btn {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,10,15,0.7);
  color: var(--text-muted);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 1rem;
  transition: var(--transition);
}
.sp-close-btn:hover { color: var(--white); background: rgba(185,28,28,0.4); }

.sp-header-content {
  position: relative; z-index: 1;
  padding: 32px;
  width: 100%;
}
.sp-icon-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px;
}
.sp-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,169,81,0.15);
  border: 1px solid rgba(200,169,81,0.3);
  border-radius: 12px;
  font-size: 1.2rem; color: var(--gold);
}
.sp-icon-row h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem; color: var(--white);
}
#spSectionDesc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; max-width: 700px; }

.sp-subtitle {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sp-count {
  font-family: var(--font-serif);
  font-size: 1.6rem; font-weight: 700;
  color: var(--gold);
}
#spSubtitleText { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.04em; }

.sp-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 32px;
}
.sp-pano-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 2 / 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: var(--transition);
}
.sp-pano-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,169,81,0.5);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.sp-pano-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  transition: filter 0.3s ease;
}
.sp-pano-card:hover img { filter: brightness(0.45); }
.sp-pano-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(200,169,81,0.5);
  border-radius: 20px; padding: 2px 8px;
  background: rgba(3,10,15,0.7);
}
.sp-pano-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: rgba(255,255,255,0.75);
  opacity: 0; transition: opacity 0.3s ease;
}
.sp-pano-card:hover .sp-pano-play { opacity: 1; }
.sp-pano-label {
  position: absolute; bottom: 8px; left: 10px;
  font-size: 0.72rem; color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ─── 360° Viewer Modal ──────────────────────────────────── */
.viewer-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; flex-direction: column;
  background: #000;
  opacity: 0; pointer-events: none;
  transform: scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.viewer-modal.active { opacity: 1; pointer-events: auto; transform: scale(1); }

.viewer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(3,10,15,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
  flex-shrink: 0;
}
.viewer-info { min-width: 0; }
.viewer-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 600;
  color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.viewer-info p {
  font-size: 0.75rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.viewer-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.viewer-close {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  transition: var(--transition);
}
.viewer-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.vr-btn.active { color: var(--gold); border-color: var(--gold); background: rgba(200,169,81,0.12); }

.pano-wrapper {
  flex: 1; position: relative;
  display: flex; align-items: center;
}
#pannellumViewer {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}

.pano-side-btn {
  position: absolute; z-index: 10;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,10,15,0.75);
  color: var(--text-muted);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  transition: var(--transition);
}
.pano-side-btn:hover:not(:disabled) { background: rgba(185,28,28,0.5); color: var(--white); }
.pano-side-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.pano-side-left  { left: 16px; }
.pano-side-right { right: 16px; }

.viewer-nav {
  display: flex; align-items: center; gap: 20px;
  padding: 10px 20px;
  background: rgba(3,10,15,0.9);
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  flex-shrink: 0;
}
.pano-counter {
  font-size: 0.8rem; color: var(--text-muted);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pano-thumbs {
  display: flex; gap: 8px; overflow-x: auto; flex: 1;
  scrollbar-width: none;
}
.pano-thumbs::-webkit-scrollbar { display: none; }
.pano-thumb {
  flex-shrink: 0;
  width: 72px; height: 36px;
  border-radius: 5px; overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  opacity: 0.55;
}
.pano-thumb.active { border-color: var(--gold); opacity: 1; }
.pano-thumb:hover { opacity: 0.85; }
.pano-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Expanded viewer */
.viewer-modal.expanded .viewer-header,
.viewer-modal.expanded .viewer-nav { display: none; }
.viewer-modal.expanded .pano-wrapper { flex: 1; }

/* ─── Modal Overlay ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1099;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

/* ─── Pannellum overrides ────────────────────────────────── */
.pnlm-ui .pnlm-about-msg { display: none !important; }
.pnlm-controls-container { display: none; }
.pnlm-load-button {
  background: rgba(3,10,15,0.85) !important;
  border: 1px solid rgba(200,169,81,0.3) !important;
  color: var(--gold) !important;
  border-radius: 8px !important;
}

/* ─── GLightbox zoom ─────────────────────────────────────── */
.glightbox-open { overflow: hidden; }

/* ─── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: rgba(10,21,32,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  font-size: 0.9rem; color: var(--text);
  transform: translateY(80px); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success i { color: var(--green-light); }
.toast-error   i { color: var(--red-light); }

/* ─── Admin ──────────────────────────────────────────────── */
.admin-page { background: var(--bg2); }

.admin-login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.admin-login-box {
  width: 100%; max-width: 420px;
  background: var(--bg3);
  border: 1px solid rgba(200,169,81,0.15);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}
.admin-login-box h1 {
  font-family: var(--font-serif);
  font-size: 1.6rem; font-weight: 700;
  color: var(--white);
  margin-bottom: 8px; text-align: center;
}
.admin-login-box > p {
  font-size: 0.88rem; color: var(--text-muted);
  text-align: center; margin-bottom: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text); font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(200,169,81,0.05);
}
.btn-login {
  width: 100%; padding: 13px;
  background: var(--red);
  color: var(--white);
  font-size: 0.9rem; font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  margin-top: 8px;
}
.btn-login:hover { background: var(--red-light); }
.login-error {
  display: none;
  margin-top: 14px; padding: 10px 14px;
  background: rgba(185,28,28,0.1);
  border: 1px solid rgba(185,28,28,0.3);
  border-radius: 7px;
  font-size: 0.82rem; color: var(--red-light);
  text-align: center;
}
.login-error.visible { display: block; }
.admin-logo { margin-bottom: 28px; justify-content: center; }

/* Admin Dashboard */
.admin-dashboard { display: none; min-height: 100vh; }
.admin-dashboard.visible { display: block; }

.admin-topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(10,21,32,0.97);
  border-bottom: 1px solid rgba(200,169,81,0.12);
  backdrop-filter: blur(20px);
  gap: 16px; flex-wrap: wrap;
}
.admin-topbar .actions { display: flex; align-items: center; gap: 10px; }

.btn-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  font-size: 0.8rem; font-weight: 500;
  border-radius: 7px;
  transition: var(--transition);
}
.btn-outline {
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-outline:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}
.btn-danger {
  color: var(--red-light);
  border: 1px solid rgba(185,28,28,0.3);
}
.btn-danger:hover {
  background: rgba(185,28,28,0.15);
  border-color: var(--red);
}

.admin-body { max-width: 1400px; margin: 0 auto; padding: 40px 32px; }

.admin-hero {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 40px;
}
.admin-hero h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem; color: var(--white);
  margin-bottom: 12px; display: flex; align-items: center;
}
.admin-hero p { color: var(--text-muted); font-size: 0.95rem; }

.admin-tabs-wrap {
  overflow-x: auto; scrollbar-width: none;
}
.admin-tabs-wrap::-webkit-scrollbar { display: none; }

.admin-tabs {
  display: flex; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 0;
  min-width: max-content;
}
.admin-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px 8px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  transition: var(--transition);
}
.admin-tab:hover { color: var(--gold); }
.admin-tab.active {
  color: var(--gold);
  border-color: rgba(200,169,81,0.2);
  background: rgba(200,169,81,0.06);
}

.admin-panel { display: none; padding-top: 24px; }
.admin-panel.active { display: block; }

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.admin-photo-card {
  border-radius: 8px; overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
  background: var(--card-bg);
  position: relative;
}
.admin-photo-card.hidden-photo {
  opacity: 0.35;
  border-color: rgba(185,28,28,0.4);
}
.admin-photo-card:hover { border-color: rgba(200,169,81,0.4); }
.admin-photo-card img {
  width: 100%; aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}
.admin-photo-label {
  padding: 4px 6px;
  font-size: 0.6rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-photo-toggle {
  position: absolute; top: 4px; right: 4px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,10,15,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: var(--transition);
}
.admin-photo-card:hover .admin-photo-toggle { color: var(--white); }
.admin-photo-card.hidden-photo .admin-photo-toggle {
  color: var(--red-light);
  border-color: rgba(185,28,28,0.4);
}
.hidden-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: rgba(185,28,28,0.7);
  pointer-events: none;
}

/* ─── GLightbox overrides — cacher la légende ────────────── */
.glightbox-container .gdesc-container,
.glightbox-container .gslide-description,
.glightbox-container .gdesc-inner,
.glightbox-container .gslide-title,
.glightbox-container .gslide-desc { display: none !important; }
/* Retirer le fond blanc visible sous l'image */
.glightbox-container .ginner-container { background: #000 !important; }
.glightbox-container .gslide-media { background: #000 !important; }

/* ─── Filigrane portugais sur le hero ───────────────────── */
/* Ligne décorative rouge/vert sous le hero-tag */
.hero-tag {
  position: relative;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-light);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(22,163,74,0.6);
}

/* Bordure haute du hero navbar — ligne tricolore */
#navbar::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green) 33%, var(--red) 33% 66%, var(--gold) 66%);
  opacity: 0.5;
  pointer-events: none;
}

/* Section tag — vert pour la galerie 360 */
#gallery360 .section-tag {
  color: var(--gold);
  border-color: rgba(200,169,81,0.35);
  background: rgba(200,169,81,0.08);
}

/* Section tag — vert pour les photos */
#photos .section-tag {
  color: var(--green-light);
  border-color: rgba(22,163,74,0.3);
  background: rgba(22,163,74,0.07);
}

/* ─── 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; } }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .gallery-360-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .gallery-grid { columns: 4 180px; }
}

@media (max-width: 768px) {
  .hero-deco { display: none; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; inset: 70px 0 0;
    background: rgba(3,10,15,0.98);
    flex-direction: column; align-items: flex-start;
    padding: 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    border-top: 1px solid rgba(185,28,28,0.2);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; padding: 12px 16px; width: 100%; }
  .music-label { display: none; }
  .about-content { flex-direction: column; gap: 32px; text-align: center; }
  .hero-stats { gap: 8px; }
  .stat { padding: 0 16px; }
  .gallery-360-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .gallery-grid { columns: 2 140px; }
  .sp-thumbs-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); padding: 20px; }
  .admin-body { padding: 24px 16px; }
  .admin-topbar { padding: 12px 16px; }
  .footer-container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-content { padding: 80px 16px 50px; }
  .hero-title { font-size: clamp(2.4rem, 12vw, 4rem); }
  .hero-sub { font-size: clamp(1rem, 5vw, 1.4rem); }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .gallery-360-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2 120px; }
  .section-container { padding: 0 16px; }
  .rgpd-inner { padding: 16px; flex-direction: column; }
}
