.er-home-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
}

.er-hero {
  background: #ffffff;
  border-radius: 18px;
  padding: 48px 30px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
  border: 1px solid #f1f5f9;
}

.er-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.er-hero-title {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.2;
  color: #111827;
  font-weight: 800;
}

.er-hero-subtitle {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.7;
  color: #4b5563;
}

.er-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.er-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 700;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.er-btn-main {
  background: #0b6b2f;
  color: #ffffff !important;
}

.er-btn-main:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.er-btn-alt {
  background: #c26d00;
  color: #ffffff !important;
}

.er-btn-alt:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.er-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.er-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.er-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.er-card-icon {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 14px;
}

.er-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.er-card p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
}

.er-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 9px;
  background: #0b6b2f;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.er-card a:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.er-about {
  margin-top: 30px;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.er-about h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 800;
}

.er-about p {
  color: #374151;
  line-height: 1.8;
  margin: 0;
  font-size: 16px;
}

@media (max-width: 900px) {
  .er-home-wrap {
    padding: 16px;
    margin: 25px auto;
  }

  .er-hero {
    padding: 34px 20px;
  }

  .er-hero-title {
    font-size: 28px;
  }

  .er-hero-subtitle {
    font-size: 15px;
  }

  .er-cards {
    grid-template-columns: 1fr;
  }

  .er-btn {
    width: 100%;
    min-width: auto;
  }

  .er-about {
    padding: 22px 18px;
  }

  .er-about h2 {
    font-size: 24px;
  }
}
.er-gallery {
  margin-top: 30px;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.er-gallery-head {
  text-align: center;
  margin-bottom: 20px;
}

.er-gallery-title {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 800;
}

.er-gallery-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 18px;
  flex-wrap: nowrap !important;
  width: 100%;
}

.er-gallery-card {
  width: 31%;
  min-width: 31%;
  max-width: 31%;
  overflow: hidden;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.er-gallery-open {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.er-gallery-img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.er-gallery-card:hover .er-gallery-img {
  transform: scale(1.04);
}

.er-gallery-actions {
  text-align: center;
  margin-top: 18px;
}

.er-open-album-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #0b6b2f;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* LIGHTBOX */
.er-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 999999;
  display: none;
}

.er-lightbox.er-active {
  display: block;
}

.er-lightbox-inner {
  position: absolute;
  inset: 0;
}

.er-lightbox-image {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 88vw;
  max-height: 82vh;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.er-lightbox-close,
.er-lightbox-prev,
.er-lightbox-next {
  position: absolute;
  border: none;
  cursor: pointer;
  z-index: 3;
}

.er-lightbox-close {
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  font-size: 30px;
  line-height: 1;
}

.er-lightbox-prev,
.er-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  font-size: 34px;
  line-height: 1;
}

.er-lightbox-prev {
  left: 18px;
}

.er-lightbox-next {
  right: 18px;
}

.er-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 3;
}

@media (max-width: 900px) {
  .er-gallery {
    padding: 22px 18px;
  }

  .er-gallery-title {
    font-size: 24px;
  }

  .er-gallery-row {
    flex-direction: column !important;
    align-items: center !important;
  }

  .er-gallery-card {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .er-gallery-img {
    height: 220px;
  }

  .er-lightbox-image {
    max-width: 94vw;
    max-height: 72vh;
  }

  .er-lightbox-prev,
  .er-lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .er-lightbox-prev {
    left: 8px;
  }

  .er-lightbox-next {
    right: 8px;
  }

  .er-lightbox-close {
    top: 10px;
    right: 10px;
  }
}
/* FORCE HORIZONTAL (corrige Kubio) */
.er-gallery-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
}

/* FORCE 3 COLONNES */
.er-gallery-card {
  flex: 0 0 32% !important;
  max-width: 32% !important;
  min-width: 32% !important;
}

/* BLOQUE LES STYLES THÈME */
.er-gallery-row img {
  width: 100% !important;
  display: block !important;
}

/* FORCE POSITION LIGHTBOX */
.er-lightbox {
  position: fixed !important;
  top:0 !important;
  left:0 !important;
  width:100vw !important;
  height:100vh !important;
  z-index:999999 !important;
}

/* IMAGE CENTER */
.er-lightbox-image {
  position: fixed !important;
  top:50% !important;
  left:50% !important;
  transform: translate(-50%, -50%) !important;
}

/* BOUTONS DEVANT IMAGE */
.er-lightbox-close,
.er-lightbox-prev,
.er-lightbox-next {
  z-index: 9999999 !important;
}

/* DEBUG VISUEL (temporaire) */
.er-lightbox-prev,
.er-lightbox-next {
  background:red !important;
}
.er-highlight {
  color: #f97316;
  font-weight: 700;
}
/* TITRE PRINCIPAL */
.er-hero-title {
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 38px !important;
}

/* SOUS TITRE ORANGE */
.er-hero-subtitle {
  margin-top: 8px;
  font-size: 18px !important;
}

.er-highlight {
  color: #f97316 !important;
  font-weight: 700 !important;
  font-size: 18px;
}