/* ═══════════════════════════════════════════════════════════════
   GALERIE PHOTOGRAPHIQUE — Shared Stylesheet
   © Delphine Camberlin
═══════════════════════════════════════════════════════════════ */

:root {
  --black: #0d0d0d;
  --white: #f5f0e8;
  --cream: #f0e9d8;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --teal: #2a7c8a;
  --dark: #1a1a1a;
  --mid: #2e2e2e;
  --text: #3a3530;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: background 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem; text-decoration: none;
}
.nav-logo img { height: 46px; width: 46px; border-radius: 50%; object-fit: cover; }
.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--gold);
  letter-spacing: 0.04em; line-height: 1.2;
}
.nav-menu { display: flex; gap: 0; list-style: none; position: relative; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 0 1.1rem;
  height: var(--nav-h); line-height: var(--nav-h);
  color: rgba(245,240,232,0.85); text-decoration: none;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: rgba(18,18,18,0.98);
  border: 1px solid rgba(201,168,76,0.25);
  border-top: 2px solid var(--gold);
  min-width: 480px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s;
  z-index: 999;
  padding: 0.75rem;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Continent-grouped dropdown grid */
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 0.25rem;
}
.dropdown-continent {
  font-family: 'Playfair Display', serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  padding: 0.5rem 0.7rem 0.3rem;
  margin-top: 0.25rem;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  grid-column: span 1;
}
.dropdown a {
  display: block; padding: 0.45rem 0.7rem;
  color: rgba(245,240,232,0.75); text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.05em;
  transition: color 0.2s, background 0.2s;
  border-radius: 3px;
}
.dropdown a:hover { color: var(--gold); background: rgba(201,168,76,0.08); }

.nav-cta {
  display: flex !important; align-items: center;
  height: var(--nav-h); padding: 0 0.8rem;
}
.nav-cta img { display: block; }

/* ── HERO ── */
#home {
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; background: var(--black);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem; max-width: 800px;
  animation: heroFadeUp 1.2s ease forwards;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.08;
  margin-bottom: 1.4rem; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 1rem; font-weight: 300;
  color: rgba(245,240,232,0.8); line-height: 1.7;
  max-width: 560px; margin: 0 auto 2.4rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0.6; z-index: 2; animation: scrollBob 2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.scroll-hint span { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold), transparent); }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 0.85rem 2rem;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px; transition: all 0.25s;
  cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { border: 1px solid rgba(245,240,232,0.5); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── SECTION TITLES ── */
.section-header { text-align: center; padding: 5rem 2rem 3rem; }
.section-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem; display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15;
}
.section-sub {
  max-width: 580px; margin: 1rem auto 0;
  color: rgba(245,240,232,0.65); font-size: 0.95rem; line-height: 1.7; font-weight: 300;
}

/* ── COUNTRIES GRID ── */
#destinations { padding-bottom: 4rem; }
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px; padding: 0 2px;
}
.country-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer; background: #111;
}
.country-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease; filter: brightness(0.75);
}
.country-card:hover img { transform: scale(1.06); filter: brightness(0.9); }
.country-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; transition: background 0.4s;
}
.country-card:hover .country-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
}
.country-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; line-height: 1.1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6); transition: color 0.3s;
}
.country-card:hover .country-name { color: var(--gold); }
.country-count {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245,240,232,0.6); margin-top: 0.3rem; transition: color 0.3s;
}
.country-card:hover .country-count { color: var(--gold-light); }
.country-arrow {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 36px; height: 36px;
  border: 1px solid rgba(245,240,232,0.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateX(6px); transition: all 0.3s;
}
.country-arrow svg { width: 14px; height: 14px; stroke: white; }
.country-card:hover .country-arrow { opacity: 1; transform: translateX(0); border-color: var(--gold); }
.country-card:hover .country-arrow svg { stroke: var(--gold); }

/* ── COUNTRY PAGE ── */
.country-page { padding-top: var(--nav-h); }

.country-hero {
  height: 60vh; min-height: 380px;
  position: relative; overflow: hidden;
  background: #111;
}
.country-hero img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.6);
}
.country-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%);
  display: flex; align-items: flex-end;
  padding: 3rem;
}
.country-hero-text { max-width: 600px; }
.country-continent-tag {
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.7rem; display: block;
}
.country-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05; text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.country-content {
  max-width: 1300px; margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.country-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem; align-items: start;
}
@media (max-width: 768px) { .country-info-grid { grid-template-columns: 1fr; } }

.country-desc {
  color: rgba(245,240,232,0.75); line-height: 1.85;
  font-size: 0.98rem; font-weight: 300; margin-bottom: 1.5rem;
}
.country-tips {
  border-left: 2px solid var(--gold); padding-left: 1.2rem;
}
.country-tips h4 {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.country-tips ul { list-style: none; }
.country-tips li {
  color: rgba(245,240,232,0.7); font-size: 0.88rem;
  line-height: 1.7; padding: 0.3rem 0; font-weight: 300;
}
.country-tips li::before { content: '→ '; color: var(--gold); }

.country-map {
  border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2); height: 360px;
}
.country-map iframe { width: 100%; height: 100%; border: none; }

/* ── GALLERY ── */
.gallery-section { margin-top: 1rem; }
.gallery-label {
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem; display: block;
}
.photo-grid {
  columns: 3; column-gap: 4px; width: 100%;
}
@media (max-width: 900px) { .photo-grid { columns: 2; } }
@media (max-width: 500px) { .photo-grid { columns: 1; } }

/* ── PHOTO ITEM with Copyright Badge ── */
.photo-item {
  break-inside: avoid; margin-bottom: 4px;
  position: relative; overflow: hidden; cursor: pointer; display: block;
}
.photo-item img {
  width: 100%; display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.88);
}
.photo-item:hover img { transform: scale(1.04); filter: brightness(1); }

/* Copyright Badge — top right corner — always visible */
.copyright-badge {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex;
  align-items: center; gap: 5px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 3px 8px 3px 3px;
  opacity: 1;
  pointer-events: none;
  max-width: calc(100% - 16px);
}

.badge-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid rgba(201,168,76,0.7);
  flex-shrink: 0;
}
.copyright-badge span {
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9); white-space: nowrap;
}

/* Hover zoom icon */
.photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0); display: flex;
  align-items: center; justify-content: center;
  transition: background 0.35s;
}
.photo-item:hover .photo-overlay { background: rgba(0,0,0,0.3); }
.photo-overlay-icon {
  opacity: 0; transform: scale(0.7); transition: all 0.3s;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.8); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.photo-item:hover .photo-overlay-icon { opacity: 1; transform: scale(1); }
.photo-overlay-icon svg { width: 18px; height: 18px; stroke: white; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: 2px;
}
.lightbox-credit {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.12em; font-weight: 300;
  color: rgba(255,255,255,0.45); text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
}
.lightbox-credit a { color: inherit; text-decoration: underline; opacity: 0.7; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
  width: 42px; height: 42px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: white; transition: all 0.2s;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-close svg { width: 18px; height: 18px; stroke: currentColor; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
  width: 46px; height: 46px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: white; transition: all 0.2s;
}
.lightbox-nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-nav svg { width: 20px; height: 20px; stroke: currentColor; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.4);
}

/* ── ABOUT ── */
#about { padding: 6rem 2rem; background: var(--dark); }
.about-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 4rem; align-items: center;
}
@media (max-width: 700px) { .about-inner { grid-template-columns: 1fr; } }

/* About image slideshow */
.about-slideshow {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111;
  border: 1px solid rgba(201,168,76,0.2);
}
.about-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s ease;
}
.about-slide.active { opacity: 1; }
.about-slide img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.about-slide-btns {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.about-slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none;
  cursor: pointer; transition: background 0.3s, transform 0.3s; padding: 0;
}
.about-slide-dot.active { background: var(--gold); transform: scale(1.3); }
.about-slide-prev, .about-slide-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; transition: all 0.2s; z-index: 2;
}
.about-slide-prev { left: 10px; }
.about-slide-next { right: 10px; }
.about-slide-prev:hover, .about-slide-next:hover { border-color: var(--gold); color: var(--gold); }
.about-slide-prev svg, .about-slide-next svg { width: 16px; height: 16px; stroke: currentColor; }

.about-text h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 1.2rem; }
.about-text h2 span { color: var(--gold); }
.about-text p {
  color: rgba(245,240,232,0.7); line-height: 1.85;
  font-size: 0.95rem; font-weight: 300; margin-bottom: 1rem;
}

/* ── COUNTRY REGION SECTIONS ── */
.region-section {
  margin-bottom: 4rem;
  border-top: 1px solid rgba(201,168,76,0.15);
  padding-top: 3rem;
}
.region-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold); margin-bottom: 0.5rem;
}
.region-subtitle {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,240,232,0.4); margin-bottom: 2rem; display: block;
}

/* ── FOOTER ── */
footer {
  background: #080808;
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 3rem 2rem 2rem; text-align: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--gold); margin-bottom: 1rem;
}
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2rem; margin-bottom: 1.5rem;
}
.footer-links a {
  color: rgba(245,240,232,0.45); text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
footer p { color: rgba(245,240,232,0.25); font-size: 0.78rem; letter-spacing: 0.06em; }
footer a { color: inherit; }

/* ── BACK LINK (country pages) ── */
.back-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--gold); text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.2rem 1.5rem 0;
  transition: gap 0.2s;
}
.back-link:hover { gap: 1rem; }
.back-link svg { width: 16px; height: 16px; stroke: currentColor; }

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all 0.3s; }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: rgba(13,13,13,0.99);
    padding: 1rem 0; display: none;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    overflow-y: auto; max-height: calc(100vh - var(--nav-h));
  }
  .nav-menu.open { display: flex; }
  .nav-link { height: auto; line-height: 1; padding: 0.9rem 1.5rem; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; border-left: 2px solid var(--gold);
    margin-left: 1.5rem; margin-bottom: 0.5rem;
    min-width: unset;
  }
  .dropdown-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-item:hover .dropdown { display: block; }
}
