/* Only the text gets a reading margin. The scene and the news span the window. */
body[data-page="index"] {
  --home-reading: min(1375px, calc(100% - clamp(48px, 11.4vw, 164px)));
  --home-unit: .835px;
  --home-header: calc(var(--home-unit) * 81);
  --home-paper: #e9dcc0;
}
@media (min-width: 2000px) and (min-aspect-ratio: 2.25) {
  body[data-page="index"] {
    --home-reading: min(1660px, 43.35vw);
    --home-unit: clamp(.67px, .02616vw, 1px);
  }
}
body[data-page="index"] main.hl-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

body[data-page="index"] main.hl-home :is(.hl-hero, .ve-home) {
  width: 100%;
  max-width: none;
  margin: 0;
  border-inline: 0;
  border-radius: 0;
}

/* A single illustrated background continues behind the desktop navigation. */
body[data-page="index"] main.hl-home .hl-hero {
  background: var(--home-paper);
}
body[data-page="index"] main.hl-home .hl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #dfd3b6d6 12%, #dfd3b66e 41%, #dfd3b61a 76%),
              url('/assets/carnet21/photos/incarnam-panorama.webp') center 50%/cover;
  filter: sepia(.8) saturate(.45);
  opacity: .2;
  mask-image: linear-gradient(0deg, transparent 0%, #000 22%, #000 100%);
}
.hl-home .hl-hero .hl-lead {
  color: #5f5039;
  max-width: 36em;
  margin: 0;
  font: 450 clamp(1rem, calc(22 * var(--home-unit)), 1.375rem)/1.55 'Hope Launch Sans', Arial, sans-serif;
  text-shadow: none;
}
.hl-home .hl-hero .hl-intro .vc-register {
  min-height: 40px;
  padding: .55em 1.45em;
  color: #604723;
  border: 1px solid #a9905d;
  border-radius: 8px;
  background: #fbf4dfe8;
  text-decoration: none;
}
.hl-home .hl-hero .hl-intro .vc-register:hover { background: #fff9e7; }
.hl-home .hl-hero .hl-intro #hl-title ~ .hl-actions > .hl-action-main {
  background: linear-gradient(#edb549, #e3a236)!important;
  border-color: #a97625!important;
}
.hl-home .hl-hero .vc-register::before,
.hl-home .hl-hero .hl-action-alt::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  background: url('/assets/accueil-drop21/icones/guides.svg') center/contain no-repeat;
}
.hl-home .hl-hero .vc-register::before {
  background-image: url('/assets/accueil-drop21/icones/compte.svg');
  margin-inline-end: .45em;
}
@media (min-width: 701px) {
  body[data-page="index"] > #hl-header {
    background: transparent!important;
    border-bottom: 0!important;
    box-shadow: none;
  }
  body[data-page="index"] > #hl-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: #f2e6cdee;
  }
  @supports (animation-timeline: scroll()) {
    body[data-page="index"] > #hl-header::before {
      animation: home-nav-fill linear both;
      animation-timeline: scroll();
      animation-range: 0 85px;
    }
    @keyframes home-nav-fill { from { opacity: 0; } to { opacity: 1; } }
  }
  body[data-page="index"] #hl-header .hl-bar {
    min-height: var(--home-header);
  }
  body[data-page="index"] main.hl-home { margin-top: calc(-1 * var(--home-header)); }
  body[data-page="index"] main.hl-home .hl-hero { padding-top: var(--home-header); }
  body[data-page="index"] main.hl-home :is(.hl-width, .vc-home .vc-wrap) {
    width: var(--home-reading);
    margin-inline: auto;
  }
  .hl-home .hl-hero .hl-hero-grid {
    min-height: calc(var(--home-unit) * 694);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 84px);
    padding-block: 0;
  }
  .hl-home .hl-hero .hl-intro {
    max-width: calc(var(--home-unit) * 675);
    padding: 28px 0;
  }
  .hl-home .hl-hero h1#hl-title {
    max-width: 13em;
    font-size: calc(56 * var(--home-unit));
    line-height: 1.06;
    letter-spacing: -.038em;
    text-wrap: balance;
    margin: .32em 0 .55em;
  }
  .hl-home .hl-hero .hl-actions {
    margin: calc(34 * var(--home-unit)) 0 calc(13 * var(--home-unit));
  }
  body[data-page="index"] .hl-home .hl-hero .hl-intro #hl-title ~ .hl-actions > a {
    min-height: calc(64 * var(--home-unit));
    padding-inline: calc(31 * var(--home-unit));
    font-size: max(.9rem, calc(18 * var(--home-unit)));
  }
  .hl-home .hl-hero .hl-intro .vc-register {
    min-height: calc(57 * var(--home-unit));
    font-size: max(.9rem, calc(18 * var(--home-unit)));
  }
  .hl-home .hl-hero .hl-figure {
    place-items: end center;
    margin: 0;
  }
  .hl-home .hl-hero .hl-figure picture {
    width: 100%;
    height: calc(604 * var(--home-unit));
  }
}
@media (min-width: 1051px) {
  body[data-page="index"] #hl-header .hl-bar { width: var(--home-reading); }
}
@media (min-width: 701px) and (max-width: 1050px) {
  body[data-page="index"] { --home-reading: calc(100% - 48px); }
  .hl-home .hl-hero h1#hl-title { font-size: clamp(1.95rem, 4.4vw, 2.65rem); }
}

@media (max-width: 700px) {
  body[data-page="index"] { --home-reading: calc(100% - 36px); }
  .hl-home .hl-hero .hl-hero-grid {
    min-height: 0;
  }
  .hl-home .hl-hero .hl-figure picture {
    width: 100%;
    height: clamp(245px, 70vw, 340px);
  }
  .hl-home .hl-hero h1#hl-title {
    font-size: clamp(2rem, 7.2vw, 2.65rem);
    letter-spacing: -.04em;
    line-height: 1.06;
    max-width: 17em;
    margin: 10px 0;
  }
  .hl-home .hl-hero .hl-actions { margin: 15px 0 8px; }
}

.hl-home .hl-community .hl-width {
  padding: clamp(20px, 3.4vw, 44px);
}
.hl-home .hl-community .hl-discord-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: #efe6ce;
}
.hl-home .hl-community p {
  display: grid;
  gap: 5px;
  margin: 0;
}
.hl-home .hl-community p strong {
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}
@media (max-width: 480px) {
  .hl-home .hl-community .hl-width { gap: 16px; padding: 18px; }
  .hl-home .hl-community a { margin-left: 0; justify-self: stretch; }
}
