/* =========================
   GALLERY PAGE
========================= */

/* Petit socle autonome utile à la page galerie */
.gallery-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(176, 138, 87, 0.08),
      transparent 30%
    ),
    linear-gradient(180deg, #f8f3ee 0%, #f4ede6 100%);
  color: #1f1a17;
}

.gallery-page img {
  display: block;
  width: 100%;
}

.gallery-page a {
  color: inherit;
  text-decoration: none;
}

.gallery-page ul {
  list-style: none;
}

/* =========================
   NAVBAR GALERIE
   Compatible avec la nouvelle structure
========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  background: rgba(246, 241, 235, 0.96);
  border-bottom: 1px solid rgba(91, 59, 38, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-container {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 4.75rem;
  padding-inline: clamp(1rem, 2vw, 2rem);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  width: 5rem;
  height: 4.7rem;
  justify-self: start;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.site-nav a {
  position: relative;
  color: #5b3b26;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.site-nav a:hover {
  opacity: 0.85;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  justify-self: end;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #b08a57, #d3b07e);
  color: #1b1511;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 35px rgba(176, 138, 87, 0.24);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    opacity 0.28s ease;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(176, 138, 87, 0.3);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  justify-self: end;
  border: 1px solid rgba(91, 59, 38, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #5b3b26;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
}

.nav-toggle span:nth-child(1) {
  top: 0.8rem;
}

.nav-toggle span:nth-child(2) {
  top: 1.2rem;
}

.nav-toggle span:nth-child(3) {
  top: 1.6rem;
}

/* =========================
   HERO
========================= */

.gallery-hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(7rem, 10vw, 9rem) 1.2rem 4rem;
  background:
    linear-gradient(rgba(15, 12, 10, 0.42), rgba(15, 12, 10, 0.48)),
    url("https://images.unsplash.com/photo-1517832606299-7ae9b720a186?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
  overflow: hidden;
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(176, 138, 87, 0.16),
      transparent 32%
    ),
    linear-gradient(180deg, rgba(8, 8, 8, 0.12) 0%, rgba(8, 8, 8, 0.22) 100%);
  pointer-events: none;
}

.gallery-hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  text-align: center;
  color: #fff;
}

.gallery-kicker,
.gallery-section-kicker {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
}

.gallery-kicker {
  color: rgba(255, 255, 255, 0.9);
}

.gallery-section-kicker {
  color: #8d6a3f;
}

.gallery-hero h1,
.gallery-intro h2,
.gallery-cta h2,
.gallery-card-overlay h3 {
  font-family: "Playfair Display", serif;
}

.gallery-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
}

.gallery-hero-text {
  width: min(640px, 100%);
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.gallery-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* =========================
   BOUTONS
========================= */

.gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease;
}

.gallery-btn-primary {
  background: linear-gradient(135deg, #b08a57, #d3b07e);
  color: #1b1511;
  box-shadow: 0 14px 35px rgba(176, 138, 87, 0.28);
}

.gallery-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(176, 138, 87, 0.34);
}

.gallery-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.gallery-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

/* =========================
   INTRO
========================= */

.gallery-intro {
  padding: clamp(4rem, 7vw, 6rem) 1.2rem 1rem;
}

.gallery-intro-container {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}

.gallery-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  line-height: 1.08;
  color: #1f1a17;
}

.gallery-intro p:last-child {
  max-width: 700px;
  margin: 1.1rem auto 0;
  color: #6f655d;
  line-height: 1.8;
}

/* =========================
   GRID
========================= */

.gallery-section {
  padding: 2rem 1.2rem 5rem;
}

.gallery-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 20px 60px rgba(28, 22, 18, 0.12);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s ease,
    filter 0.45s ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.02) 30%,
    rgba(10, 10, 10, 0.62) 100%
  );
  pointer-events: none;
}

.gallery-card-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.35rem;
  color: #fff;
}

.gallery-tag {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.gallery-card-overlay h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.15;
  color: #fff;
}

.gallery-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.04);
}

.gallery-card:nth-child(1) {
  grid-column: span 7;
  min-height: 520px;
}

.gallery-card:nth-child(2) {
  grid-column: span 5;
  min-height: 520px;
}

.gallery-card:nth-child(3) {
  grid-column: span 4;
  min-height: 420px;
}

.gallery-card:nth-child(4) {
  grid-column: span 8;
  min-height: 420px;
}

.gallery-card:nth-child(5) {
  grid-column: span 6;
  min-height: 420px;
}

.gallery-card:nth-child(6) {
  grid-column: span 6;
  min-height: 420px;
}

/* =========================
   CTA
========================= */

.gallery-cta {
  padding: 0 1.2rem 5rem;
}

.gallery-cta-box {
  width: min(1200px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 2rem;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.5)
    ),
    linear-gradient(135deg, rgba(176, 138, 87, 0.14), rgba(176, 138, 87, 0.03));
  border: 1px solid rgba(176, 138, 87, 0.16);
  box-shadow: 0 20px 60px rgba(28, 22, 18, 0.12);
}

.gallery-cta h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  color: #1f1a17;
}

.gallery-cta p {
  max-width: 680px;
  margin: 1rem auto 1.5rem;
  color: #6f655d;
  line-height: 1.8;
}

/* =========================
   TABLET
========================= */

@media (max-width: 64rem) {
  .nav-container {
    grid-template-columns: auto auto;
    min-height: 4.2rem;
    padding-inline: 1rem;
  }

  .logo {
    width: 4.2rem;
    height: 3.9rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 1rem;
    right: 1rem;
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(246, 241, 235, 0.98);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(91, 59, 38, 0.08);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(91, 59, 38, 0.08);
  }

  .site-nav a::after {
    display: none;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4),
  .gallery-card:nth-child(5),
  .gallery-card:nth-child(6) {
    grid-column: span 1;
    min-height: 380px;
  }

  .gallery-card:nth-child(1),
  .gallery-card:nth-child(4) {
    grid-column: span 2;
    min-height: 460px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 48rem) {
  .nav-container {
    min-height: 4rem;
  }

  .logo {
    width: 4rem;
    height: 3.7rem;
  }

  .site-nav {
    left: 0.85rem;
    right: 0.85rem;
  }

  .nav-list {
    padding: 0.9rem;
  }

  .site-nav a {
    font-size: 0.88rem;
    padding: 0.8rem 0;
  }

  .gallery-hero {
    min-height: 72svh;
    padding-top: 7rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4),
  .gallery-card:nth-child(5),
  .gallery-card:nth-child(6) {
    grid-column: span 1;
    min-height: 320px;
  }

  .gallery-card-overlay {
    padding: 1rem;
  }
}
