/* =========================================================
   HERO RELAIS — PAGE DÉTAIL
   Toujours en version compacte
   ========================================================= */

:root {
  --relais-sand: #f4f2ec;
  --relais-olive: #001243;
}

/* suppression des voiles du thème */
.content-section.hero-section::before,
.content-section.parallax-section.hero-section::before,
.hero-section.hidden-section::before,
.hero-section::before,
.bg-parallax-wrap-gradien::before,
.htc_single_item_dec::before {
  content: none !important;
  background: none !important;
}

/* conteneurs */
.hero-section .container-fluid,
.content-section.hero-section .container-fluid,
.container-fluid.my1 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: var(--relais-sand);
}

.content-section.parallax-section {
  padding: 0 !important;
}

.my1 {
  height: auto;
}

.myrow1 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  height: auto;
  flex-wrap: wrap !important;
}

.mycol1,
.mycol2 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* colonne gauche */
.relais-left {
  background: var(--relais-olive);
  color: #fff;
  min-height: auto;
  display: block;
  text-align: left;
  padding: 80px 0;
}

.relais-left__inner {
  padding: clamp(24px, 4vw, 56px);
  max-width: 720px;
  margin: 0;
  text-align: left;
}

.relais-kicker {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0 0 18px 0;
  color: rgba(255,255,255,.92);
}

.relais-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 750;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: .02em;
  font-size: clamp(32px, 2.6vw, 54px);
  margin: 0 0 14px 0;
  color: #fff;
}

.relais-rule {
  width: 78px;
  height: 4px;
  background: rgba(255,255,255,.9);
  margin: 0 0 18px 0;
}

.relais-text {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,.85);
  margin: 0;
  max-width: 46ch;
}

.relais-anchor {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.22);
}

.relais-anchor__lead {
  margin: 0 0 10px 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}

.relais-anchor__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease;
}

.relais-anchor__btn:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

.relais-anchor__hint {
  margin: 10px 0 0 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,.70);
}

/* colonne droite */
.relais-right {
  background: var(--relais-sand);
  width: 100%;
  height: auto;
  min-height: 0;
}

.relais-right__bottom {
  width: 100%;
  height: auto;
  display: block;
  padding: 2px 2px 2px 2px;
  background: var(--relais-sand);
}

/* grille */
.relais-fragments {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
}

.relais-frag {
  position: relative;
  min-width: 0;
  min-height: 210px;
  /* border: 2px solid #fff; */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}

.relais-frag__media {
  position: absolute;
  inset: 0;
}

.relais-frag__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .3s ease;
}

.relais-frag:hover .relais-frag__media img {
  transform: scale(1.06);
}

.relais-frag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.62) 0%,
    rgba(0,0,0,.22) 40%,
    rgba(0,0,0,0) 70%
  );
  pointer-events: none;
}

.relais-frag__content {
  position: relative;
  z-index: 2;
  padding: 12px;
}

.relais-frag__title {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.2vw;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0,0,0,.35);
}

/* tuile message */
.relais-frag--message {
  background: var(--relais-olive);
  padding: 18px;
  justify-content: center;
  align-items: flex-start;
}

.relais-frag--message::after {
  display: none;
}

.relais-frag--message .relais-frag__content {
  padding: 0;
}

.relais-frag--message .relais-frag__title {
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: none;
  text-shadow: none;
  margin-bottom: 14px;
  color: #fff;
}

.relais-frag__cta {
  color: #fff;
}

/* mobile */
@media (max-width: 991.98px) {
  .relais-left {
    padding: 60px 0;
  }

  .relais-right__bottom {
    padding: 10px 4px;
  }

  .relais-fragments {
    gap: 8px;
  }

  .relais-frag {
    min-height: 150px;
  }

  .relais-frag__title {
    font-size: 10px;
    letter-spacing: .04em;
  }

  .relais-frag--message .relais-frag__title {
    font-size: 14px;
  }
}