:root {
  --header-height-css: 100px;
}
@media (min-width: calc(1400px + clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem) * 2)) {
  :root {
    --header-height-css: 142px;
  }
}
:root {
  --color-dark: #060709;
  --color-primary-dark: #533725;
  --color-primary: #6e5240;
  --color-primary-light: #977a68;
  --color-primary-lighter: #eed0b2;
  --color-secondary-dark: #16342d;
  --color-secondary: #284a42;
  --color-secondary-light: #7ca59b;
  --color-neutral: #f9f2eb;
  --color-light: #ffffff;
}

[data-theme=dark] {
  --color-dark: #060709;
  --color-primary-dark: #68798d;
  --color-primary: #7f90a4;
  --color-primary-light: #c4cfd7;
  --color-primary-lighter: #c4cfd7;
  --color-secondary-dark: #324557;
  --color-secondary: #4a5f73;
  --color-secondary-light: #7ca59b;
  --color-neutral: #f8fafb;
  --color-light: #ffffff;
}

:root {
  --scene-height-haute-altitude: clamp(60px, 19vh, 340px);
  --scene-height-station: clamp(35px, 12vh, 200px);
  --scene-height-village: clamp(40px, 14vh, 250px);
}
@media (min-width: 768px) {
  :root {
    --scene-height-haute-altitude: clamp(75px, 28vh, 440px);
    --scene-height-station: clamp(42px, 20vh, 260px);
    --scene-height-village: clamp(48px, 20vh, 320px);
  }
}
@media (min-width: 992px) {
  :root {
    --scene-height-haute-altitude: clamp(90px, 45vh, 574px);
    --scene-height-station: clamp(50px, 30vh, 342px);
    --scene-height-village: clamp(60px, 30vh, 422px);
  }
}

.home-page__bg {
  position: fixed;
  top: 30vh;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--color-primary-lighter);
  transition: none;
  mask-image: url(/build/images/actualite-mountain-mask-v2.24db5831.svg), linear-gradient(#000, #000);
  mask-repeat: no-repeat, no-repeat;
  mask-position: top, top;
  mask-size: 100% auto, 100% 100%;
  mask-composite: exclude;
  -webkit-mask-image: url(/build/images/actualite-mountain-mask-v2.24db5831.svg), linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat, no-repeat;
  -webkit-mask-position: top, top;
  -webkit-mask-size: 100% auto, 100% 100%;
  -webkit-mask-composite: destination-out;
}

html.prehome-locked,
html.prehome-locked body {
  overflow: hidden;
}

.home-prehome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-neutral);
  z-index: 1000;
}
.home-prehome__trail-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.home-prehome__trail-container .trail-image {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.home-prehome__piste {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.home-prehome__piste [data-lottie-slot] {
  position: absolute;
  inset: 0;
}
.home-prehome__piste [data-lottie-slot] svg {
  display: block;
  width: 100%;
  height: 100%;
}
.home-prehome__piste [data-lottie-slot=dark] {
  display: none;
}
[data-theme=dark] .home-prehome__piste [data-lottie-slot=light] {
  display: none;
}
[data-theme=dark] .home-prehome__piste [data-lottie-slot=dark] {
  display: block;
}
.home-prehome__content {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
.home-prehome__title {
  font-family: "Bochan Serif", serif;
  font-weight: 400;
  line-height: 1;
  color: var(--color-primary-dark);
  margin: 0;
}
.home-prehome__title-line {
  display: block;
  font-size: clamp(48px, 12vw, 140px);
}
.home-prehome__title-line:first-child {
  font-size: clamp(56px, 14vw, 160px);
}
.home-prehome__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-prehome__skip {
  margin: clamp(1rem, 0.8043478261rem + 0.8695652174vw, 1.5rem) 0 clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem);
}

.home-intro {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem);
  padding-bottom: var(--scene-height-haute-altitude);
}
@media (min-width: 768px) {
  .home-intro {
    padding-top: calc(var(--header-height-css) + clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem));
    min-height: 672px;
  }
}
@media (min-width: 1200px) {
  .home-intro {
    min-height: 934px;
  }
}
.home-intro__content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem);
}
@media (min-width: calc(1400px + clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem) * 2)) {
  .home-intro__content {
    padding: 0;
  }
}
.home-intro__title {
  font-family: "Bochan Serif", serif;
  font-weight: 400;
  font-size: clamp(1.875rem, 0.2608695652rem + 7.1739130435vw, 6rem);
  line-height: 1.3;
  color: var(--color-primary-dark);
  margin: 0;
  max-width: 14ch;
}
@media (min-width: 768px) {
  .home-intro__title {
    margin: 0 0 clamp(0.5rem, 0.3043478261rem + 0.8695652174vw, 1rem) 0;
  }
}
.home-intro__subtitle {
  font-family: "Lato", sans-serif;
  font-size: clamp(1.25rem, 0.7608695652rem + 2.1739130435vw, 2.5rem);
  color: var(--color-primary-dark);
  margin: 0;
  max-width: 40ch;
  font-weight: 300;
  line-height: 160%;
  letter-spacing: 0%;
}
.home-intro__trail-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.home-intro__trail-container .trail-image {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.home-intro__mountain {
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 160%;
  max-width: none;
  height: auto;
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 992px) {
  .home-intro__mountain {
    width: 110%;
  }
}

@keyframes home-scroll-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}
.altitude-sidebar {
  position: fixed;
  top: calc(100px + clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem));
  right: clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem);
  z-index: 19;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 0.3043478261rem + 0.8695652174vw, 1rem);
  color: var(--color-dark);
  font-family: "Lato", sans-serif;
}
@media (min-width: 992px) {
  .altitude-sidebar {
    display: flex;
  }
}
@media (min-width: calc(1400px + clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem) * 2)) {
  .altitude-sidebar {
    top: calc(142px + clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem));
  }
}
.altitude-sidebar__value {
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.altitude-sidebar__unit {
  display: block;
  font-weight: 400;
  opacity: 0.7;
}
.altitude-sidebar__track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.altitude-sidebar__blob {
  position: absolute;
  left: 50%;
  top: 0;
  width: 22px;
  height: 36px;
  border-radius: 999px;
  background: var(--color-light);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.altitude-sidebar__line {
  position: relative;
  z-index: 1;
  width: 1px;
  height: 32px;
  background: var(--color-secondary-dark);
}
.altitude-sidebar__level {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 36px;
}
.altitude-sidebar__star {
  width: 12px;
  height: 12px;
  fill: var(--color-dark);
}

.home-mountain {
  position: relative;
  background-color: var(--color-primary-dark);
  padding: clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem) 0;
  padding-top: 1px;
}
.home-mountain--haute-altitude {
  padding-bottom: calc(clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem) + var(--scene-height-station));
}
.home-mountain--station {
  background-color: var(--color-primary);
  padding-bottom: calc(clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem) + var(--scene-height-village));
}
.home-mountain--village {
  background-color: var(--color-primary-light);
  padding-bottom: clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem);
}
.home-mountain--village::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 52px;
  background-color: var(--color-primary-light);
  mask-image: url(/build/images/mountain-mask.1098e355.svg);
  mask-size: auto 100%;
  mask-position: center top;
  mask-repeat: repeat-x;
  -webkit-mask-image: url(/build/images/mountain-mask.1098e355.svg);
  -webkit-mask-size: auto 100%;
  -webkit-mask-position: center top;
  -webkit-mask-repeat: repeat-x;
  transform: translateY(1px);
  bottom: 100%;
  left: 0;
  bottom: auto;
  top: calc(100% - 1px);
  z-index: 1;
}
.home-mountain__scene-wrap {
  display: flex;
  justify-content: center;
  width: 100vw;
  margin: 0 calc(50% - 50vw) clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.home-mountain--haute-altitude .home-mountain__scene-wrap {
  height: var(--scene-height-haute-altitude);
  margin-top: calc(var(--scene-height-haute-altitude) * -1);
}
.home-mountain--station .home-mountain__scene-wrap {
  height: var(--scene-height-station);
  margin-top: calc(var(--scene-height-station) * -1);
}
.home-mountain--village .home-mountain__scene-wrap {
  height: var(--scene-height-village);
  margin-top: calc(var(--scene-height-village) * -1);
}
.home-mountain__scene {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  flex-shrink: 0;
}
.home-mountain__scene--hiver {
  display: none;
}
[data-theme=dark] .home-mountain__scene--ete {
  display: none;
}
[data-theme=dark] .home-mountain__scene--hiver {
  display: block;
}
.home-mountain__pin {
  position: relative;
  z-index: 1;
}
.home-mountain--village .home-mountain__title {
  color: color-mix(in srgb, var(--color-primary-lighter) 70%, transparent);
}
.home-mountain--haute-altitude .home-mountain__pin {
  padding-bottom: clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem);
}
.home-mountain--station .home-mountain__pin, .home-mountain--village .home-mountain__pin {
  padding: clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem) 0;
}
.home-mountain__title {
  font-family: "Bochan Serif", serif;
  font-weight: 400;
  font-size: clamp(1.875rem, 0.2608695652rem + 7.1739130435vw, 6rem);
  line-height: 1;
  max-width: 1400px;
  text-align: left;
  color: color-mix(in srgb, var(--color-primary-lighter) 20%, transparent);
  margin: 0 auto;
  user-select: none;
  padding: 0 clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem);
}
@media (min-width: calc(1400px + clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem) * 2)) {
  .home-mountain__title {
    margin: clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem) auto;
    padding: 0;
  }
}
.home-mountain__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem);
  max-width: 1400px;
  margin: clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem) auto 0;
  padding: 0 clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem);
}
@media (min-width: 768px) {
  .home-mountain__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem);
    align-items: start;
  }
}
@media (min-width: calc(1400px + clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem) * 2)) {
  .home-mountain__cards {
    padding: 0;
  }
}
.home-mountain__cards .project-card {
  width: 100%;
  height: auto;
}
.home-mountain__cards .project-card__img {
  position: absolute;
  top: -35%;
  left: 0;
  height: 170%;
  will-change: transform;
  transition: none;
}

.home-quote {
  position: relative;
  background: var(--color-neutral);
  padding: clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem) clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem);
  margin: 0 auto;
  margin-top: 52px;
  padding-bottom: calc(117px + clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem));
}
.home-quote .container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(1.5rem, 1.1086956522rem + 1.7391304348vw, 2.5rem);
  background-image: url(/build/images/icologo-full.303ec6ea.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  padding-top: 117px;
  margin-top: clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem);
}
@media (min-width: 768px) {
  .home-quote .container {
    grid-template-columns: 1fr 2fr 1fr;
    gap: clamp(2.5rem, 1.5217391304rem + 4.347826087vw, 5rem);
  }
}
.home-quote__scroll-btn {
  position: relative;
  z-index: 2;
  grid-column: 1/-1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  margin: 0 0 clamp(1rem, 0.8043478261rem + 0.8695652174vw, 1.5rem) 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-primary-dark);
  font-family: "Lato", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.home-quote__scroll-btn span {
  text-decoration: underline;
}
.home-quote__scroll-icon {
  animation: home-scroll-bounce 2s infinite;
}
.home-quote__image {
  position: relative;
  z-index: 1;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--color-dark) 5%, transparent);
}
@media (min-width: 768px) {
  .home-quote__image--1 {
    align-self: end;
  }
}
@media (min-width: 768px) {
  .home-quote__image--2 {
    align-self: start;
  }
}
.home-quote__img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.home-quote__content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.home-quote__text {
  font-family: "Bochan Serif", serif;
  font-weight: 400;
  font-size: clamp(clamp(0.875rem, 0.6304347826rem + 1.0869565217vw, 1.5rem), 3vw, clamp(1.25rem, 0.7608695652rem + 2.1739130435vw, 2.5rem));
  line-height: 1.4;
  color: var(--color-primary-dark);
  margin: 0 0 clamp(1rem, 0.8043478261rem + 0.8695652174vw, 1.5rem) 0;
}
.home-quote__cta {
  display: inline-flex;
}

[data-editable=true] {
  position: relative;
}
.home-intro [data-editable=true], .home-mountain [data-editable=true], .home-quote [data-editable=true] {
  outline: 1px dashed color-mix(in srgb, var(--color-primary) 30%, transparent);
  outline-offset: 4px;
  cursor: pointer;
  transition: outline-color 0.2s ease;
}
.home-intro [data-editable=true]:hover, .home-mountain [data-editable=true]:hover, .home-quote [data-editable=true]:hover {
  outline-color: var(--color-primary);
}
