/* EPEG Slider — front.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ══ WRAPPER ══ */
.egs-slider-wrap{
  position: relative;
  width: 100%;
  height: var(--egs-h, 85vh);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f0f0;
}

/* ══ TRACK ══ */
.egs-track{
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.egs-track.egs-fade-mode{
  display: block;
}

/* ══ SLIDE ══ */
.egs-slide{
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}
.egs-track.egs-fade-mode .egs-slide{
  position: absolute;
  inset: 0;
  min-width: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.egs-track.egs-fade-mode .egs-slide.active{
  opacity: 1;
}

/* ══ IMAGE DE FOND ══ */
.egs-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.egs-slide.active .egs-bg{
  transform: scale(1);
}

/* ══ DÉGRADÉ ══ */
.egs-gradient{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ══ CONTENU ══ */
.egs-content{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  padding: 0 5%;
}
.egs-pos-left  .egs-content-inner{ margin-right: auto; text-align: left; }
.egs-pos-center .egs-content-inner{ margin: 0 auto; text-align: center; }
.egs-pos-right .egs-content-inner{ margin-left: auto; text-align: right; }

.egs-content-inner{
  max-width: 620px;
  animation: egs-fadeup .7s ease both;
}
.egs-slide:not(.active) .egs-content-inner{
  animation: none;
  opacity: 0;
}
@keyframes egs-fadeup{
  from{ opacity:0; transform:translateY(24px); }
  to  { opacity:1; transform:translateY(0); }
}

/* ══ TITRE ══ */
.egs-titre{
  font-size: var(--egs-titre-size, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 18px;
  color: #1a1a2e;
}

/* ══ SOUS-TITRE ══ */
.egs-sous-titre{
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: #2a5aa8;
  margin: 0 0 28px;
  max-width: 520px;
}
.egs-pos-center .egs-sous-titre{ margin-left: auto; margin-right: auto; }

/* ══ BOUTONS CTA ══ */
.egs-ctas{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.egs-pos-center .egs-ctas{ justify-content: center; }
.egs-pos-right  .egs-ctas{ justify-content: flex-end; }

.egs-cta{
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s, opacity .18s, box-shadow .18s;
}
.egs-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  opacity: .92;
}

/* ══ NAVIGATION FLÈCHES ══ */
.egs-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  color: #1a1a2e;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
  padding: 0;
  font-family: inherit;
}
.egs-nav:hover{
  background: rgba(255,255,255,.35);
  transform: translateY(-50%) scale(1.08);
}
.egs-nav-prev{ left: 20px; }
.egs-nav-next{ right: 20px; }

/* ══ DOTS ══ */
.egs-dots{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.egs-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.egs-dot.active{
  background: #fff;
  transform: scale(1.3);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .egs-slider-wrap{ height: var(--egs-hm, 60vw); min-height: 260px; }
  .egs-titre{ font-size: clamp(24px, 6vw, 40px) !important; letter-spacing: -.5px; margin-bottom: 12px; }
  .egs-sous-titre{ font-size: 13px; margin-bottom: 18px; }
  .egs-content{ padding: 0 20px; }
  .egs-content-inner{ max-width: 100%; }
  .egs-cta{ padding: 10px 20px; font-size: 13px; }
  .egs-nav{ width: 36px; height: 36px; font-size: 22px; }
  .egs-nav-prev{ left: 10px; }
  .egs-nav-next{ right: 10px; }
}
@media (max-width: 480px) {
  .egs-titre{ font-size: clamp(20px, 7vw, 32px) !important; }
  .egs-sous-titre{ font-size: 12px; }
  .egs-ctas{ gap: 8px; }
}
