/**
 * Comm360 — Sections à défilement horizontal (Horizontal Scrolling Sections — CSS FIDÈLE Osmo).
 *
 * Reprise verbatim de la fiche ; seule adaptation : les alias Comm360
 * .comm360-scroll-horizontal (wrapper) et .comm360-scroll-horizontal-panel
 * (panneaux) sont reconnus en plus des classes Osmo d'origine (les deux
 * reconnus). Sous 768px, la fiche passe le wrapper en colonne : utiliser
 * data-horizontal-scroll-disable="mobileLandscape" comme la démo Osmo.
 *
 * Les classes .demo-* et .horizontal__panel-inner sont les classes de mise
 * en page de la démo Osmo (cartes plein cadre, titre) — réutilisables telles
 * quelles pour reproduire la démo.
 */

.demo-header__h1 {
  letter-spacing: -.04em;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 4em;
  font-weight: 500;
  line-height: .95;
}

/* Wrapper — alias Comm360 reconnu en plus de la classe Osmo. */
.horizontal__wrap,
.comm360-scroll-horizontal {
  flex-flow: row;
  min-height: 100dvh;
  display: flex;
  overflow: hidden;
}

/* Panneaux — alias Comm360 reconnu en plus de la classe Osmo. */
.horizontal__panel,
.comm360-scroll-horizontal-panel {
  flex: none;
  width: 100%;
}

.horizontal__panel-inner {
  width: 100%;
  height: 100%;
  padding: 1.25em;
}

.demo-card {
  border-radius: 1.25em;
  flex-flow: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 3em;
  display: flex;
  position: relative;
  overflow: hidden;
}

.demo-card__bg {
  z-index: 0;
  position: absolute;
  inset: 0%;
}

.demo-card__inner {
  z-index: 1;
  position: relative;
}

.demo-card__bg-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 767px) {
  .demo-header__h1 {
    font-size: 2.5em;
  }

  .horizontal__wrap,
  .comm360-scroll-horizontal {
    flex-flow: column;
  }

  .horizontal__panel,
  .comm360-scroll-horizontal-panel {
    height: 30em;
  }

  .demo-card {
    padding: 1.25em;
  }
}
