/* ============================================================
   Base globale du site - Robbie Lens Photographie
   ============================================================ */

/* ---------- Reset & variables ---------- */
:root {
  --color-bg: #1f2039;
  --color-bg-light: #ffffff;
  --color-text-dark: #242424;
  --color-text-light: #f9f8ff;
  --color-accent: #a5b4fc;
  --font-body: "Manrope", sans-serif;
  --font-heading: "Montserrat", sans-serif;
  --transition: all 0.25s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================================
   Liens & boutons
   ============================================================ */
a {
  color: var(--color-text-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

.cta {
  display: inline-block;
  background: linear-gradient(135deg, #8e86b5, #acaeed);
  color: #fff;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  transition: var(--transition);
}

.cta:hover {
  background: linear-gradient(135deg, #6f6aa1, #9c9ee0);
  transform: translateY(-2px);
}

/* ============================================================
   Header
   ============================================================ */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 10;
}

nav {
  max-width: 1200px;
  margin: auto;
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav img {
  height: 42px;
}

.nav-links a {
  margin-left: 28px;
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
}

/* ============================================================
   Typographie
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

p, li {
  font-size: 1.05rem;
}

/* ============================================================
   Layout global
   ============================================================ */
section {
  padding: 30px 20px;
  max-width: 1200px;
  margin: auto;
}

footer {
  background-color: var(--color-bg-light);
  padding: 25px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer img {
  height: 35px;
}

footer .socials a {
  margin-left: 20px;
  opacity: 0.85;
  transition: var(--transition);
}

footer .socials a:hover {
  opacity: 1;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    margin: 8px;
  }

  h1 {
    font-size: 2rem;
  }

  section {
    padding: 60px 20px;
  }

  footer {
    flex-direction: column;
    gap: 15px;
  }
}


/* ============================================================
   ✅ LIGHTBOX GLOBALE
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  animation: zoomIn 0.3s ease;
}

/* Boutons navigation */
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 50%;
  transition: background 0.3s ease;
  user-select: none;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.5);
}

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

.lightbox-prev {
  left: 50px;
}

.lightbox-next {
  right: 50px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}

/* Curseur zoom */
.gallery img,
.lien-conteneur-photo img {
  cursor: pointer !important;
}
