/* Styles du slider Terra, adaptés du snippet original et scoppés sous #terra-slider */

#terra-slider,
#terra-slider * ,
#terra-slider *::before,
#terra-slider *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#terra-slider,
#terra-slider * {
  font-family: "Montserrat", sans-serif !important;
  color: #ffffff !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#terra-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 90px);
  overflow: hidden;
  background: #000;
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
}

#terra-slider .t-slider-wrapper {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#terra-slider .terra-slide {
  position: relative;
  width: 25%;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

#terra-slider .t-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

#terra-slider .t-media video,
#terra-slider .t-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#terra-slider .t-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}

#terra-slider .t-hero {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
}

#terra-slider .t-slogan {
  font-size: clamp(12px, 1.5vw, 18px) !important;
  letter-spacing: 5px;
  margin-bottom: 25px;
  font-weight: 300 !important;
  text-transform: uppercase;
}

#terra-slider .t-title {
  font-size: clamp(24px, 3.8vw, 52px) !important;
  line-height: 1.1;
  font-weight: 500 !important;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- BARRE DE NAVIGATION --- */
#terra-slider .t-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 125px;
  background: #0a1b3d;
  z-index: 100;
  display: grid;
  grid-template-columns: 140px 1fr 160px 120px;
}

#terra-slider .t-idx-main {
  font-size: 55px !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

#terra-slider .t-desc-main {
  padding: 0 50px;
  font-size: clamp(16px, 1.3vw, 20px) !important;
  line-height: 1.5;
  display: flex;
  align-items: center;
  font-weight: 300 !important;
  letter-spacing: 0.2px;
}

#terra-slider .t-arrows {
  display: flex;
  flex-direction: row;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#terra-slider .t-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#terra-slider .t-btn:last-child {
  border-right: none;
}

#terra-slider .t-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

#terra-slider .t-btn svg {
  width: 18px;
  fill: #fff;
}

#terra-slider .t-status-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#terra-slider .ring-svg {
  transform: rotate(-90deg);
}

#terra-slider .ring-circle-bg {
  stroke: rgba(136, 136, 136, 0.15);
}

#terra-slider .ring-circle-val {
  stroke: #888;
  stroke-dasharray: 163.36;
  stroke-dashoffset: 163.36;
}

/* ── Desktop large (>1440px) ── */
@media (min-width: 1441px) {
  #terra-slider .t-title {
    font-size: clamp(38px, 3.2vw, 58px) !important;
  }

  #terra-slider .t-slogan {
    font-size: clamp(14px, 1.1vw, 20px) !important;
    letter-spacing: 7px;
  }

  #terra-slider .t-footer {
    height: 140px;
    grid-template-columns: 160px 1fr 180px 140px;
  }

  #terra-slider .t-idx-main {
    font-size: 65px !important;
  }

  #terra-slider .t-desc-main {
    font-size: clamp(18px, 1.2vw, 22px) !important;
    padding: 0 60px;
  }
}

/* ── Tablette (768px–1024px) ── */
@media (max-width: 1024px) {
  #terra-slider .t-footer {
    grid-template-columns: 100px 1fr 130px 100px;
    height: 110px;
  }

  #terra-slider .t-idx-main {
    font-size: 42px !important;
  }

  #terra-slider .t-desc-main {
    font-size: 15px !important;
    padding: 0 28px;
    line-height: 1.45;
  }

  #terra-slider .t-slogan {
    font-size: 11px !important;
    letter-spacing: 4px;
    margin-bottom: 18px;
  }

  #terra-slider .t-title {
    font-size: clamp(22px, 3.2vw, 38px) !important;
  }

  #terra-slider .t-hero {
    padding: 0 8%;
  }
}

/* ── Mobile paysage (481px–767px) ── */
@media (max-width: 767px) and (min-width: 481px) {
  #terra-slider {
    height: 100vh !important;
  }

  #terra-slider .t-footer {
    grid-template-columns: 70px 1fr;
    height: 80px;
  }

  #terra-slider .t-arrows,
  #terra-slider .t-status-zone {
    display: none !important;
  }

  #terra-slider .t-idx-main {
    font-size: 30px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  #terra-slider .t-desc-main {
    font-size: 13px !important;
    padding: 0 18px;
    font-weight: 400 !important;
    line-height: 1.4;
  }

  #terra-slider .t-slogan {
    font-size: 10px !important;
    letter-spacing: 3px;
    margin-bottom: 12px;
  }

  #terra-slider .t-title {
    font-size: clamp(17px, 3.2vw, 26px) !important;
  }

  #terra-slider .t-hero {
    padding: 0 6%;
    padding-bottom: 80px;
  }
}

/* ── Mobile portrait (<480px) ── */
@media (max-width: 480px) {
  #terra-slider {
    height: 100vh !important;
  }

  #terra-slider .t-footer {
    grid-template-columns: 60px 1fr;
    height: 90px;
  }

  #terra-slider .t-arrows,
  #terra-slider .t-status-zone {
    display: none !important;
  }

  #terra-slider .t-idx-main {
    font-size: 26px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 10px;
  }

  #terra-slider .t-desc-main {
    font-size: 12px !important;
    padding: 0 15px;
    font-weight: 400 !important;
    line-height: 1.4;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    align-items: flex-start;
    padding-top: 14px;
  }

  #terra-slider .t-slogan {
    font-size: 9px !important;
    letter-spacing: 3px;
    margin-bottom: 10px;
  }

  #terra-slider .t-title {
    font-size: clamp(19px, 5.5vw, 28px) !important;
    line-height: 1.15;
  }

  #terra-slider .t-hero {
    padding: 0 6%;
    padding-bottom: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #terra-slider .t-slider-wrapper {
    transition: none !important;
  }
}

/* ── Arabe (RTL) ── */
#terra-slider.t-slider-rtl .t-hero {
  text-align: center;
}

#terra-slider.t-slider-rtl .t-desc-main {
  text-align: right;
}

/* ── Arabe uniquement : 1 écran en 4 colonnes, séparations bleues (#0a1b3d), pas de barre en bas ── */
#terra-slider.t-slider-ar-four-columns {
  height: 100vh !important;
}

#terra-slider.t-slider-ar-four-columns .t-slider-wrapper {
  width: 100% !important;
  transition: none !important;
  transform: translate3d(0, 0, 0) !important;
}

#terra-slider.t-slider-ar-four-columns .terra-slide {
  width: 25% !important;
  border-right: 2px solid #ffffff;
  flex-shrink: 0;
}

#terra-slider.t-slider-ar-four-columns .t-hero h1.t-title,
#terra-slider.t-slider-ar-four-columns .terra-slide .t-hero .t-title {
  font-size: clamp(14px, 1.4vw, 28px) !important;
}

#terra-slider.t-slider-ar-four-columns .t-slogan {
  font-size: clamp(8px, 0.9vw, 14px) !important;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

#terra-slider.t-slider-ar-four-columns .t-hero {
  padding: 0 6%;
}

#terra-slider.t-slider-ar-four-columns .t-footer {
  display: none !important;
}

/* ── Arabe mobile : 4 slides empilés verticalement (un en dessous de l'autre) ── */
@media (max-width: 767px) {
  #terra-slider.t-slider-ar-four-columns {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto;
  }

  #terra-slider.t-slider-ar-four-columns .t-slider-wrapper {
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
  }

  #terra-slider.t-slider-ar-four-columns .terra-slide {
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh;
    border-right: none !important;
    border-bottom: 2px solid #ffffff;
  }

  #terra-slider.t-slider-ar-four-columns .terra-slide:last-child {
    border-bottom: none;
  }

  #terra-slider.t-slider-ar-four-columns .t-hero h1.t-title,
  #terra-slider.t-slider-ar-four-columns .terra-slide .t-hero .t-title {
    font-size: clamp(22px, 6vw, 38px) !important;
  }

  #terra-slider.t-slider-ar-four-columns .t-slogan {
    font-size: clamp(12px, 3vw, 20px) !important;
    letter-spacing: 3px;
    margin-bottom: 16px;
  }
}

/* --- Taille titre forcée (priorité max) --- */
#terra-slider .t-hero h1.t-title,
#terra-slider .terra-slide .t-hero .t-title {
  font-size: clamp(24px, 3.8vw, 52px) !important;
  max-width: 90%;
}

@media (min-width: 1441px) {
  #terra-slider .t-hero h1.t-title,
  #terra-slider .terra-slide .t-hero .t-title {
    font-size: clamp(38px, 3.2vw, 58px) !important;
  }
}

@media (max-width: 1024px) {
  #terra-slider .t-hero h1.t-title,
  #terra-slider .terra-slide .t-hero .t-title {
    font-size: clamp(22px, 3.2vw, 38px) !important;
  }
}

@media (max-width: 767px) and (min-width: 481px) {
  #terra-slider .t-hero h1.t-title,
  #terra-slider .terra-slide .t-hero .t-title {
    font-size: clamp(17px, 3.2vw, 26px) !important;
  }
}

@media (max-width: 480px) {
  #terra-slider .t-hero h1.t-title,
  #terra-slider .terra-slide .t-hero .t-title {
    font-size: clamp(19px, 5.5vw, 28px) !important;
  }
}

