:root {
  --bg: #000000;
  --fg: #e8e6e3;
  --muted: #8f8c88;
  --line: #1c1c1c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans SC", sans-serif;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  font-weight: 300;
}

.lang-select {
  background: #101010;
  color: var(--fg);
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ---------- Accueil ---------- */
main { padding: 40px 28px 64px; }

.intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.intro p {
  margin-bottom: 1.25em;
  font-size: 1.06rem;
  line-height: 1.75;
  color: #d9d6d2;
}

/* Mur infini */
.marquee {
  margin-top: 52px;
  overflow: hidden;
  cursor: pointer;
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.marquee-item {
  position: relative;
  flex: 0 0 auto;
  width: min(44vw, 400px);
  height: min(58vw, 540px);
  overflow: hidden;
  border-radius: 6px;
  background: #0a0a0a;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.marquee-item:hover img { transform: scale(1.06); }

.marquee-item .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.marquee-item:hover .label { opacity: 1; }

.marquee-item .pays {
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.marquee-item .continent {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ---------- Galerie ---------- */
.gallery { max-width: 1400px; margin: 0 auto; }

.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.back:hover { color: #fff; }

.gallery-head h1 {
  font-weight: 300;
  letter-spacing: 0.06em;
  font-size: 2rem;
}

.gallery-head .intro-text {
  margin-top: 14px;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.75;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #0a0a0a;
  cursor: zoom-in;
}

.grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.grid figure:hover img { transform: scale(1.05); }

.grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  font-size: 0.8rem;
  color: #ccc;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid figure:hover figcaption { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 94vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox .caption {
  margin-top: 16px;
  color: #ddd;
  font-size: 0.95rem;
  text-align: center;
  padding: 0 28px;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.lightbox .close { top: 18px; right: 22px; }
.lightbox .prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .close:hover,
.lightbox .prev:hover,
.lightbox .next:hover { color: #fff; }

/* ---------- Footer ---------- */
footer {
  padding: 26px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  header { padding: 16px 18px; }
  .brand { font-size: 1.1rem; }
  main { padding: 28px 18px 48px; }
  .marquee-item { width: min(68vw, 300px); height: min(88vw, 400px); }
  .gallery-head h1 { font-size: 1.6rem; }
}
