/* Reset & Fonts */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #fffaf6;
  color: #222;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

nav .nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column; /* AJOUTER cette ligne */
  align-items: center; /* EXISTE déjà, tu gardes */
  justify-content: center; /* CHANGER "space-between" → "center" */
}


nav .logo img {
  height: 60px;
  width: auto;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

nav ul.menu-links {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: "";
  display: block;
  height: 2px;
  background: #000;
  width: 0;
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Header */
header {
  text-align: center;
  padding: 6rem 1rem 2rem;
  background-color: transparent;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.description {
  font-size: 1.1rem;
  color: #666;
}

/* Galerie */
.gallery-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #111;
  color: white;
  font-size: 0.9rem;
}

.retour-site {
  text-align: center;
  margin: 3rem 0 2rem;
}

.btn-retour {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-retour:hover {
  background-color: #333;
}


/* Miniatures */
.lightbox-thumb {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.lightbox-thumb:hover {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

/* Bouton fermer */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

/* Flèches navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0 15px;
  z-index: 1001;
  transition: color 0.2s ease;
}

.lightbox-nav:hover {
  color: #ccc;
}

.lightbox-nav.prev {
  left: 10px;
}

.lightbox-nav.next {
  right: 10px;
}

/* ================================================== */
/* ========== MENU HAMBURGER POUR MOBILE ========== */
/* ================================================== */

/* ------------------------------------------------------------- */
/* MENU BURGER MOBILE POUR INSTANT PHOTOS - COPY/PASTE POUR PAGES */
/* ------------------------------------------------------------- */

/* le container général */
.menu-principal {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
}

/* logo au centre */
.menu-principal .nav-logo img {
  height: 70px;
  margin: 10px 0;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

/* bouton burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 10000; /* par dessus le menu */
  margin-top: 10px;
}

.burger span {
  display: block;
  height: 3px;
  background: #000;
  border-radius: 3px;
  transition: 0.3s ease;
}

/* changement en croix quand open */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* menu normal desktop */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: #000;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ------------------------------------ */
/* MODE MOBILE <= 768px */
/* ------------------------------------ */
@media (max-width: 768px) {

  .menu-principal {
    flex-direction: row;
    justify-content: center; /* centre le logo */
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
  }

  /* Logo au centre */
  .menu-principal .nav-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .menu-principal .nav-logo img {
    height: 60px;
    margin: 10px 0;
  }

  .burger {
    display: flex;
    position: absolute;
    right: 100px; /* ⬅️ ici j’ai mis 40px pour l’éloigner du bord */
    top: 40%;
    transform: translateY(-50%);
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 10000;
}


  /* Nav links reste identique */
  .nav-links {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-200%);
    width: 80%;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: center;
    padding: 50px 20px 20px 20px;
    gap: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 9999;
  }

  .nav-links.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}


/* ------------------------------------------------------------- */


/* ================================================== */
/* ========== FIN DU MENU HAMBURGER MOBILE ========== */
/* ================================================== */