/* =========================================================
   GALERIE HERO
========================================================= */

.gallery-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(214, 169, 75, .12);
}

.gallery-hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gallery-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

/* Overlay léger pour conserver la photo bien visible */
.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(11, 13, 16, .35) 0%,
      rgba(11, 13, 16, .20) 45%,
      rgba(11, 13, 16, .08) 75%,
      rgba(11, 13, 16, .25) 100%
    );
}

/* Contenu du hero */
.gallery-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 90px;
  padding-bottom: 90px;
  text-align: center;
}

/* Titre */
.gallery-hero-content h1 {
  margin: 16px 0 24px;

  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: .88;
  letter-spacing: .025em;
  color: var(--text);

  text-shadow:
    0 4px 20px rgba(0, 0, 0, .75);
}

/* Texte */
.gallery-hero-content p {
  max-width: 650px;
  margin: 0 auto;

  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, .8);
}

/* =========================================================
INTRO GALERIE
========================================================= */

.gallery-intro {
padding: 100px 0 80px;
}

.gallery-page-head {
max-width: 760px;
margin: 0 auto 55px;
text-align: center;
}

.gallery-page-head .eyebrow {
display: inline-block;
margin-bottom: 14px;
}

.gallery-page-head .section-title {
margin-bottom: 18px;
}

.gallery-page-head .muted {
max-width: 700px;
margin: 0 auto;
line-height: 1.8;
}

/* =========================================================
GRILLE GALERIE
========================================================= */

.gallery-grid-page {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: 260px;
gap: 18px;
}

/* CARTE PHOTO */

.gallery-card {
position: relative;
overflow: hidden;
min-height: 260px;
border-radius: var(--radius);
border: 1px solid rgba(255, 255, 255, .08);
background: var(--panel);
cursor: pointer;
box-shadow: 0 15px 35px rgba(0, 0, 0, .22);
transition:
transform .35s ease,
border-color .35s ease,
box-shadow .35s ease;
}

.gallery-card img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
transition:
transform .6s ease,
filter .4s ease;
}

/* GRANDE PHOTO */

.gallery-card-large {
grid-column: span 2;
grid-row: span 2;
min-height: 538px;
}

/* HOVER */

.gallery-card::after {
content: '';
position: absolute;
inset: 0;
background:
linear-gradient(
180deg,
transparent 55%,
rgba(0, 0, 0, .55) 100%
);
opacity: 0;
transition: opacity .35s ease;
pointer-events: none;
}

.gallery-card:hover {
transform: translateY(-6px);
border-color: rgba(214, 169, 75, .42);
box-shadow: 0 25px 50px rgba(0, 0, 0, .42);
}

.gallery-card:hover img {
transform: scale(1.06);
}

.gallery-card:hover::after {
opacity: 1;
}

/* =========================================================
CTA GALERIE
========================================================= */

.gallery-cta {
padding: 30px 0 110px;
}

.gallery-cta-panel {
position: relative;
overflow: hidden;
padding: 60px;
text-align: center;
background:
radial-gradient(
circle at 50% 0%,
rgba(214, 169, 75, .10),
transparent 55%
),
var(--panel);
border: 1px solid rgba(214, 169, 75, .16);
}

.gallery-cta-panel::before {
content: '';
position: absolute;
width: 260px;
height: 260px;
top: -150px;
left: 50%;
transform: translateX(-50%);
border-radius: 50%;
background: rgba(214, 169, 75, .08);
filter: blur(45px);
pointer-events: none;
}

.gallery-cta-panel > * {
position: relative;
z-index: 1;
}

.gallery-cta-panel .section-title {
margin: 14px 0 20px;
}

.gallery-cta-panel .muted {
max-width: 680px;
margin: 0 auto 30px;
line-height: 1.8;
}

.gallery-cta-panel .cta-row {
justify-content: center;
}

/* =========================================================
   LIGHTBOX
========================================================= */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(5, 7, 9, .96);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .3s ease,
    visibility .3s ease;

  overscroll-behavior: none;
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;

  max-width: min(1200px, 88vw);
  max-height: 88vh;

  display: flex;
  align-items: center;
  justify-content: center;

  touch-action: pan-y;
}

#lightbox-image {
  display: block;

  max-width: 100%;
  max-height: 88vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 14px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, .65);

  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;

  touch-action: pan-y;
}



/* LIGHTBOX BOUTONS */

.lightbox-close,
.lightbox-prev,
.lightbox-next {
position: fixed;

width: 48px;
height: 48px;

border: 1px solid var(--gold-2);
border-radius: 50%;

background: rgba(9, 11, 13, .85);
color: var(--gold-2);

display: grid;
place-items: center;

cursor: pointer;

font-size: 1.35rem;
font-weight: 600;

transition:
background .25s ease,
color .25s ease,
transform .25s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
background: var(--gold-2);
color: #090b0d;
transform: scale(1.08);
}

.lightbox-close {
top: 25px;
right: 25px;

font-size: 1.8rem;
line-height: 1;
}

.lightbox-prev {
left: 25px;
top: 50%;
transform: translateY(-50%);
}

.lightbox-next {
right: 25px;
top: 50%;
transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
transform: translateY(-50%) scale(1.08);
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 900px) {

.gallery-hero {
min-height: 560px;
}

.gallery-hero-content {
padding-top: 80px;
padding-bottom: 70px;
}

.gallery-grid-page {
grid-template-columns: repeat(2, 1fr);
grid-auto-rows: 230px;
}

.gallery-card-large {
grid-column: span 2;
grid-row: span 1;
min-height: 360px;
}

}

/* =========================================================
PETIT MOBILE
========================================================= */

@media (max-width: 760px) {

.gallery-hero {
min-height: 520px;
}

.gallery-hero-overlay {
background:
linear-gradient(
180deg,
rgba(11, 13, 16, .55) 0%,
rgba(11, 13, 16, .72) 45%,
rgba(11, 13, 16, .96) 100%
);
}

.gallery-hero-content {
padding: 110px 22px 55px;
}

.gallery-hero-content h1 {
font-size: clamp(3.5rem, 17vw, 5.5rem);
}

.gallery-hero-content p {
font-size: .95rem;
line-height: 1.7;
}

/* INTRO */

.gallery-intro {
padding: 70px 0 55px;
}

.gallery-page-head {
margin-bottom: 35px;
}

/* GALERIE */

.gallery-grid-page {
grid-template-columns: 1fr;
grid-auto-rows: 280px;
gap: 14px;
}

.gallery-card,
.gallery-card-large {
grid-column: span 1;
grid-row: span 1;
min-height: 280px;
border-radius: 18px;
}

/* CTA */

.gallery-cta {
padding: 15px 0 75px;
}

.gallery-cta-panel {
padding: 40px 22px;
}

.gallery-cta-panel .cta-row {
flex-direction: column;
gap: 12px;
}

.gallery-cta-panel .cta-row .btn {
width: 100%;
}

/* LIGHTBOX */

#lightbox {
padding: 15px;
}

.lightbox-content {
max-width: 94vw;
max-height: 82vh;
}

#lightbox-image {
max-width: 94vw;
max-height: 82vh;
border-radius: 10px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
width: 42px;
height: 42px;
}

.lightbox-close {
top: 15px;
right: 15px;
}

.lightbox-prev {
left: 12px;
}

.lightbox-next {
right: 12px;
}

}

/* =========================================================
TRÈS PETITS ÉCRANS
========================================================= */

@media (max-width: 420px) {

.gallery-hero {
min-height: 480px;
}

.gallery-hero-content {
padding-top: 100px;
}

.gallery-hero-content h1 {
font-size: clamp(3rem, 16vw, 4.5rem);
}

.gallery-grid-page {
grid-auto-rows: 240px;
}

.gallery-card,
.gallery-card-large {
min-height: 240px;
}

.gallery-cta-panel {
padding: 35px 18px;
}

}
