/* ─────────────────────────────────────────────────────────
   MG Hero Slider — Front-end CSS
   Identique à la maquette MettaGymFit
───────────────────────────────────────────────────────── */
:root {
  --mg-gold:   #D4AF37;
  --mg-blue:   #B7D7E8;
  --mg-black:  #111111;
  --mg-cream:  #F8F8F6;
  --mg-yellow: #DFFF00;
  --mg-grey:   #D9D9D9;
  --mg-text:   #3d3d3d;
}

/* ── CONTAINER ── */
.mg-hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--mg-black);
  font-family: Inter, Arial, sans-serif;
}

/* ── SLIDE ── */
.mg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-image: var(--bg);
  background-size: cover;
  background-position: center right;
  transform: scale(1.06);
  transition: opacity 1s ease, visibility 1s ease, transform 6s ease;
}

.mg-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* ── OVERLAYS ── */
.mg-slide-overlay {
  position: absolute;
  inset: 0;
}

.mg-slide-dark .mg-slide-overlay {
  background: linear-gradient(90deg,
    rgba(17,17,17,.9),
    rgba(17,17,17,.58),
    rgba(17,17,17,.08));
}

.mg-slide-light .mg-slide-overlay {
  background: linear-gradient(90deg,
    rgba(248,248,246,.97),
    rgba(248,248,246,.72),
    rgba(248,248,246,.08));
}

/* ── CONTENT ── */
.mg-slide-content {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 870px;
  padding: 110px 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mg-slide-dark  .mg-slide-content { color: #fff; }
.mg-slide-light .mg-slide-content { color: var(--mg-black); }

/* ── KICKER ── */
.mg-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--mg-gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ── HEADING ── */
.mg-slide-content h1 {
  margin: 0 0 26px;
  font-size: clamp(44px, 7vw, 96px);
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 950;
}

/* ── TEXT ── */
.mg-slide-content p {
  max-width: 690px;
  font-size: 20px;
  line-height: 1.7;
  margin: 0 0 34px;
}

.mg-slide-dark  p { color: rgba(255,255,255,.78); }
.mg-slide-light p { color: var(--mg-text); }

/* ── ACTIONS ── */
.mg-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: .25s ease;
}

.mg-btn:hover { transform: translateY(-3px); }

.mg-btn-gold    { background: var(--mg-gold);  color: var(--mg-black) !important; }
.mg-btn-dark    { background: var(--mg-black); color: #fff !important; }
.mg-btn-outline { color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.mg-btn-soft    { background: #fff; color: var(--mg-black) !important; box-shadow: inset 0 0 0 1px rgba(17,17,17,.12); }

/* ── ARROWS ── */
.mg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s;
}

.mg-arrow:hover { background: rgba(255,255,255,.26); }
.mg-arrow.prev  { left: 28px; }
.mg-arrow.next  { right: 28px; }

/* ── DOTS ── */
.mg-dots {
  position: absolute;
  z-index: 10;
  bottom: 38px;
  left: 6%;
  display: flex;
  gap: 10px;
}

.mg-dots button {
  width: 40px;
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.36);
  cursor: pointer;
  padding: 0;
  transition: background .3s;
}

.mg-dots button.active { background: var(--mg-gold); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .mg-hero-slider { height: 88vh !important; }

  .mg-slide {
    background-position: center;
  }

  .mg-slide-content {
    padding: 90px 5%;
  }

  .mg-arrow { display: none; }
}
