/* ============================================================
   view.css — Block Hero Scindé (ConcreteCMS)
   Préfixe : hs-   (pour éviter les conflits avec le thème)
   ============================================================ */

/* ── Wrapper principal ── */
.hs-hero-wrapper {
  padding-left: 32px;
  padding-right: 32px;
}

/* ── Grille 2 colonnes desktop ── */
.hs-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 360px;
}

/* ── Panneau générique ── */
.hs-hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px 48px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #1a3cdc; /* fallback si pas d'image */
  background-size: cover;
  background-position: center;
}

/* Overlay dégradé (commun) */
.hs-hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0,0,0,.62) 25%,
    rgba(0,0,0,.28) 65%,
    rgba(0,0,0,.07) 100%);
  border-radius: 12px;
}

/* ── Eyebrow ── */
.hs-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

/* ── Titre ── */
.hs-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

/* Texte mis en valeur — panneau gauche */
.hs-left .hs-title em {
  font-style: normal;
  color: #facc15;
}

/* Texte mis en valeur — panneau droit */
.hs-right .hs-title em {
  font-style: normal;
  color: #fde68a;
}

/* ── Description ── */
.hs-desc {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

/* ── Bouton CTA ── */
.hs-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: transform .15s, box-shadow .15s;
  align-self: flex-start;
}

.hs-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  text-decoration: none;
}

/* Couleur CTA gauche */
.hs-left .hs-cta {
  background: #fff;
  color: #0d1f6e;
}

/* Couleur CTA droite */
.hs-right .hs-cta {
  background: #fff;
  color: #c0160f;
}

/* ── Badge promotionnel ── */
.hs-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  background: #facc15;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Dots carousel (masqués desktop) ── */
.hs-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0 4px;
}

.hs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.hs-dot.active {
  background: #333;
  transform: scale(1.35);
}

/* ============================================================
   RESPONSIVE — tablette ≤ 900px
   ============================================================ */
@media (max-width: 900px) {
  .hs-hero-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hs-title { font-size: 24px; }
  .hs-hero-panel { padding: 36px 32px; }
}

/* ============================================================
   RESPONSIVE — mobile ≤ 768px  →  carousel horizontal
   ============================================================ */
@media (max-width: 768px) {

  .hs-hero-wrapper {
    padding: 0;
    overflow: hidden;
  }

  .hs-hero {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 16px 16px 0;
    min-height: auto;
    grid-template-columns: unset;
    margin-left:10px;
  }

  .hs-hero::-webkit-scrollbar { display: none; }

  .hs-hero-panel {
    flex: 0 0 calc(100vw - 48px);
    scroll-snap-align: start;
    min-height: 260px;
    padding: 32px 26px;
  }

  /* Gradient vertical sur mobile */
  .hs-hero-panel::before {
    background: linear-gradient(to top,
      rgba(0,0,0,.80) 0%,
      rgba(0,0,0,.35) 55%,
      rgba(0,0,0,.05) 100%);
  }

  .hs-title   { font-size: 22px; }
  .hs-badge   { top: 16px; right: 16px; font-size: 12px; padding: 5px 10px; }
  .hs-dots    { display: flex; }
}

/* ── Mobile petit ≤ 480px ── */
@media (max-width: 480px) {
  .hs-hero-wrapper { padding: 0; }
  .hs-hero { gap: 10px; }
  .hs-hero-panel { padding: 28px 22px; min-height: 200px; }
  .hs-title { font-size: 20px; margin-bottom: 10px; }
  .hs-desc  { font-size: 13px; margin-bottom: 18px; }
  .hs-cta   { padding: 10px 18px; font-size: 13px; }
}


