/* =========================
   BASE GLOBALE
========================= */

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #d9c281;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* =========================
   NAVIGATION
========================= */

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 22px 20px;
}

.nav-link {
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.5em;
  color: #6a440c;
  padding: 8px 16px;
  transition: all 0.3s ease;
  text-align: center;
}

.nav-link.active {
  border: 2px solid #6a440c;
  border-radius: 22px;
}

.nav-link:hover {
  transform: scale(1.05);
  color: #c47f16;
}


/* =========================
   TYPOGRAPHIE
========================= */

h1 {
  color: #402a00;
  font-size: 2.9em;
  font-family: "Playfair Display", serif;
  font-style: italic;
  text-align: center;
}

h2 {
  color: #000;
  border-bottom: 2px solid #402a00;
  padding-bottom: 8px;
  font-size: 1.8em;
  font-family: "Playfair Display", serif;
  font-style: italic;
  text-align: center;
}

h3 {
  font-size: 1.2em;
  text-align: center;
  line-height: 1.4;
  margin: 8px 0;
}

h4 {
  font-size: 1.1em;
  text-align: center;
  line-height: 1.5;
  hyphens: auto;
   padding: 0 10px;
   font-weight: normal;
}

p, li {
  font-size: 1.1em;
  text-align: justify;
  line-height: 1.5;
  hyphens: auto;
   padding: 0 10px;
}

/* =========================
   CONTENEUR BOXES (GLOBAL)
========================= */

.boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 40px 20px;
}

/* =========================
   BOX STANDARD
========================= */

.box {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  max-width: 600px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* =========================
   BOX PHOTOS
========================= */

.box.photo {
  padding: 16px;
  max-width: 420px;
}

.box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  cursor: pointer;
}

/* =========================
   PAGE ACCUEIL
========================= */

.home-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 40px;
}

.home-boxes {
  display: flex;
  gap: 45px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-box {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 30px 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  text-align: center;
  min-width: 260px;
}

.home-box h3 {
  font-size: 1.25em;
}

/* =========================
   FOOTER
========================= */
footer {
  width: 100%;
  background-color: #a4845b;
  color: white;
  padding: 20px;
  text-align: center;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  line-height: 1.6;
  padding: 8px;
  margin: 6px 10px;
  display: inline-block;
}

footer a:hover {
  text-decoration: none;
  color: #d5c7b3;
}

footer p {
  color: #ffffff;
  margin: 8px auto;
  font-size: 0.85em;
  font-family: "Poppins", sans-serif;
  text-align: center;
  line-height: 1.4;
}

.footer-title {
  font-weight: 510;
  font-size: 0.9em;
  line-height: 2;
  margin: 10px 12px;
  max-width: 900px;
  text-align: center;
   width: 100%;
}

.footer-title2 {
  font-weight: 600;
  color: white;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  padding-bottom: 8px;
  padding: 8px 0;
  font-size: 1.55em;
  font-family: "Playfair Display", serif;
  font-style: italic;
  text-align: center;
  line-height: 1.4;
  margin: 12px 12px;
}

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

.lightbox {
  display: none;               /* ✅ cachée au chargement */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;

  justify-content: center;
  align-items: center;
}


#lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 14px;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

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

.lightbox .prev {
  left: 30px;
}

.lightbox .next {
  right: 30px;
}

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

@media (max-width: 768px) {

  .main-nav {
    gap: 12px;
  }

  .nav-link {
    font-size: 1.15em;
    padding: 6px 10px;
  }

  .home-content {
    padding: 80px 20px;
  }

  .home-boxes {
    flex-direction: column;
    align-items: center;
  }

  .home-box {
    width: 100%;
    max-width: 420px;
    padding: 22px 24px;
  }

  .boxes {
    flex-direction: column;
    padding: 30px 20px;
  }

  .box {
    max-width: 100%;
    padding: 24px;
  }

  footer p {
    max-width: 100%;
  }
}
