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

body {
  font-family: 'Montserrat', sans-serif;
  color: #3E2723;
  background: #F5F0EC;
  line-height: 1.6;
}

/* Header desktop */
.site-header {
  background: transparent;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 3rem; /* espace entre menu et icônes */
}

.instagram-logo, .maps-logo {
  color: #3E2723;
  text-decoration: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.instagram-logo { left: 2rem; }
.maps-logo { left: 5rem; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-list li a {
  text-decoration: none;
  color: #3E2723;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.3rem 0.5rem;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url('assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(62, 39, 35, 0.5);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.logo-central {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 9rem;
  margin-bottom: 0.3rem;
}

.motto-central {
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 3rem;
  color: #F5F0EC;
}

.hero-sub {
  font-size: 1.35rem;
  margin-top: 0;
  color: #F5F0EC;
}

/* Sections */
.section {
  padding: 3rem 1rem;
  text-align: center;
}

.section.alt {
  background: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Galerie */
.gallery {
  text-align: center;
  padding: 40px 0;
  background-color: #f8f3ef;
}

.gallery h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #3a2a1b;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  justify-items: center;
  padding: 0 20px;
}

.gallery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* POP-UP CENTRÉ */
.popup {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.popup img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.5);
}

.close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 42px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

/* Responsive ajusté */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
  }

  .gallery-grid img {
    height: 180px;
  }
}


/* Formulaire */
form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 300px;
  margin: auto;
  font-size: 0.9rem;
}

form input, form textarea {
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  font-family: inherit;
}

form button {
  padding: 0.5rem;
  border: none;
  background: #3E2723;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  color: #3E2723;
  font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
  }

  .nav-list {
    gap: 0.4rem;
  }

  .nav-list li a {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
  }

  .instagram-logo {
    left: 0.6rem;
    font-size: 1rem;
  }

  .maps-logo {
    left: 2.2rem;
    font-size: 1rem;
  }

  .logo-central {
    font-size: 5rem;
  }

  .motto-central {
    font-size: 1rem;
  }

  .hero-sub {
    font-size: 1rem;
  }
}
/* Lightbox (Galerie & Menus) */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  object-fit: contain;
}

/* Responsive fix */
@media (max-width: 768px) {
  .lightbox img {
    max-width: 95%;
    max-height: 85%;
  }
}
