/* Page Mes photographies */

/* Lien retour aux projets dans le header */
.page-photos .photos-nav-wrap {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.page-photos .photos-back {
  flex-shrink: 0;
  font-size: var(--site-footer-text-size, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.page-photos .photos-back:hover {
  color: var(--nav-hover, #00ff0c);
}

@media (max-width: 900px) {
  .page-photos .photos-back {
    display: none;
  }
}

body.page-photos {
  margin: 0;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* Header : pas de fond plein, bandeau dégradé noir léger pour la lisibilité */
.page-photos .site-header {
  background-color: transparent;
}

.page-photos .site-header.is-scrolled {
  background-color: transparent;
  /* Plus d’air sous le bord du viewport une fois le scroll lancé */
  padding: clamp(1.05rem, 2.8vw, 1.4rem) 2rem clamp(0.55rem, 1.4vw, 0.7rem);
}

.page-photos .site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(5rem, 20vh, 9.5rem);
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.68) 0%,
    rgba(0, 0, 0, 0.32) 48%,
    rgba(0, 0, 0, 0) 100%
  );
}

.page-photos .site-header.is-scrolled::before {
  height: clamp(4.25rem, 14vh, 7.5rem);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.38) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

.page-photos .header-inner {
  position: relative;
  z-index: 1;
}

.page-photos .nav-main a {
  color: #fff;
}

.page-photos .nav-main a:hover {
  color: rgba(255, 255, 255, 0.82);
}

/* PC : menu horizontal visible → pas de burger (même breakpoint que styles.css) */
@media (min-width: 901px) {
  .page-photos .burger {
    display: none;
  }
}

.photos-main {
  padding-top: 0;
}

/* Bloc héros : vraie photo de fond + titre + polaroid */
.photos-hero {
  position: relative;
  min-height: min(100vh, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.photos-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #111 url("LES PROJETS/PHOTOS/FOND.jpg") center / cover no-repeat;
  filter: grayscale(1);
}

.photos-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(5.5rem, 12vw, 7.5rem) 1.5rem clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.photos-hero-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 4px 28px rgba(0, 0, 0, 0.35),
    0 8px 48px rgba(0, 0, 0, 0.25);
}

.photos-hero-sub {
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.95;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 4px 22px rgba(0, 0, 0, 0.32),
    0 6px 36px rgba(0, 0, 0, 0.22);
}

.photos-polaroid {
  margin: 0;
  width: min(88vw, 420px);
  padding: clamp(0.65rem, 1.5vw, 0.85rem) clamp(0.65rem, 1.5vw, 0.85rem) clamp(2.25rem, 6vw, 3.75rem);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.photos-polaroid img {
  width: 100%;
  height: auto;
  display: block;
}

/* Pleine largeur écran */
.photos-full {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.photos-full img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.photos-gap {
  height: clamp(0.35rem, 1.2vw, 0.85rem);
  background: #000;
}

.photos-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

.photos-pair img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .photos-pair {
    grid-template-columns: 1fr;
  }

  .photos-pair img {
    min-height: 200px;
  }
}

/* Mosaïque : une grande image à gauche (2 lignes), deux à droite */
.photos-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, minmax(220px, auto));
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

.photos-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.photos-mosaic__tall {
  grid-row: 1 / -1;
  grid-column: 1;
}

.photos-mosaic__top {
  grid-row: 1;
  grid-column: 2;
}

.photos-mosaic__bottom {
  grid-row: 2;
  grid-column: 2;
}

@media (max-width: 640px) {
  .photos-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(200px, auto);
  }

  .photos-mosaic__tall,
  .photos-mosaic__top,
  .photos-mosaic__bottom {
    grid-row: auto;
    grid-column: 1;
  }

  .photos-mosaic img {
    min-height: 200px;
  }
}

/* Bandeau illustratif en fin de page (PHOTOS.svg) */
.photos-footer-art {
  background: #000;
  padding: clamp(1.35rem, 3.5vw, 2.5rem) clamp(1rem, 4vw, 2rem);
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

.photos-footer-art img {
  width: 100%;
  max-width: min(1120px, 96vw);
  height: auto;
  display: block;
  /* SVG exporté en gris → blanc sur fond noir */
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.page-photos .site-footer {
  border-top: 1px solid #fff;
}
