/* Accueil mobile WAKRIDE : une seule composition, sans règles contradictoires. */
@media (max-width: 800px) {
  html,
  body { overflow-x: clip !important; }

  html body .hero.hero-site-cover.hero-has-visual {
    position: relative !important;
    isolation: isolate !important;
    display: block !important;
    width: 100% !important;
    height: calc(100svh - 64px) !important;
    min-height: 620px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #090b0f !important;
  }

  html body .hero.hero-site-cover .hero-site-cover-media {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  html body .hero.hero-site-cover .hero-site-cover-media::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background: linear-gradient(180deg, rgba(5, 7, 10, 0.02) 0%, rgba(5, 7, 10, 0.08) 42%, rgba(5, 7, 10, 0.58) 74%, rgba(5, 7, 10, 0.92) 100%) !important;
  }

  html body .hero.hero-site-cover .hero-home-video,
  html body .hero.hero-site-cover .hero-site-cover-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* Le contenu est ancré au-dessus des garanties : aucun élément ne se superpose. */
  html body .hero.hero-site-cover .hero-copy {
    position: absolute !important;
    z-index: 2 !important;
    top: auto !important;
    right: 0 !important;
    bottom: 100px !important;
    left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 24px 20px !important;
    transform: none !important;
    animation: none !important;
  }

  html body .hero.hero-site-cover .hero-copy > .eyebrow {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.1em !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body .hero.hero-site-cover .hero-copy > h1 {
    position: static !important;
    display: block !important;
    width: min(100%, 350px) !important;
    max-width: 350px !important;
    margin: 0 0 14px !important;
    color: #fff !important;
    font-size: clamp(40px, 12vw, 52px) !important;
    font-weight: 900 !important;
    line-height: 0.92 !important;
    letter-spacing: -0.035em !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
  }

  html body .hero.hero-site-cover .hero-copy > p:not(.eyebrow):not(.hero-trust-note) {
    position: static !important;
    display: block !important;
    width: min(100%, 340px) !important;
    max-width: 340px !important;
    margin: 0 0 18px !important;
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important;
  }

  html body .hero.hero-site-cover .hero-copy > .btn.red {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 192px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    color: #fff !important;
    background: #ed1c24 !important;
    border: 0 !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.045em !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body .hero.hero-site-cover .hero-copy > .hero-trust-note,
  html body .hero.hero-site-cover .mobile-hero-catalogue,
  html body .hero.hero-site-cover .hero-visuals { display: none !important; }

  /* Garanties compactes et toujours complètement visibles. */
  html body .hero.hero-site-cover .hero-cover-perks {
    position: absolute !important;
    z-index: 3 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 96px !important;
    min-height: 96px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: rgba(10, 12, 17, 0.86) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(8px) !important;
  }

  html body .hero.hero-site-cover .hero-cover-perks p {
    display: flex !important;
    flex: 0 0 32px !important;
    align-self: stretch !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 24px !important;
    color: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.025em !important;
    white-space: nowrap !important;
  }

  html body .hero.hero-site-cover .hero-cover-perks p:last-child { border-bottom: 0 !important; }

  html body .hero.hero-site-cover .hero-cover-perks .perk-icon {
    color: #ed1c24 !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }

  html[dir="rtl"] body .hero.hero-site-cover .hero-copy {
    align-items: flex-end !important;
    text-align: right !important;
  }

  html[dir="rtl"] body .hero.hero-site-cover .hero-copy > h1,
  html[dir="rtl"] body .hero.hero-site-cover .hero-copy > p:not(.eyebrow):not(.hero-trust-note) { text-align: right !important; }

  html[dir="rtl"] body .hero.hero-site-cover .hero-cover-perks p {
    justify-content: flex-start !important;
    direction: rtl !important;
  }
}

@media (max-width: 390px) {
  html body .hero.hero-site-cover .hero-copy { padding-right: 20px !important; padding-left: 20px !important; }
  html body .hero.hero-site-cover .hero-copy > h1 { font-size: 42px !important; }
  html body .hero.hero-site-cover .hero-cover-perks p { padding-right: 20px !important; padding-left: 20px !important; }
}

/* Mobile : la vidéo reste nette jusqu'en bas, sans dégradé noir. */
@media (max-width: 800px) {
  html body .hero.hero-site-cover .hero-site-cover-media::after,
  html body .hero.hero-site-cover.hero-has-visual::after {
    display: none !important;
    content: none !important;
    background: none !important;
  }
}

/*
 * Verrou final de la composition mobile.
 * `professional.css` contient des anciennes variantes de l'accueil avec une
 * spécificité plus forte. Ce sélecteur volontairement plus précis les annule
 * sans affecter les pages desktop.
 */
@media (max-width: 800px) {
  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy {
    position: absolute !important;
    z-index: 2 !important;
    top: auto !important;
    right: 0 !important;
    bottom: 100px !important;
    left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 24px 20px !important;
    transform: none !important;
    animation: none !important;
  }

  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy > .eyebrow {
    position: static !important;
    display: block !important;
    order: initial !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    transform: none !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy > h1 {
    position: static !important;
    display: block !important;
    order: initial !important;
    width: min(100%, 350px) !important;
    max-width: 350px !important;
    margin: 0 0 14px !important;
    transform: none !important;
    color: #fff !important;
    font-size: clamp(40px, 12vw, 52px) !important;
    font-weight: 900 !important;
    line-height: .92 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy > p:not(.eyebrow):not(.hero-trust-note) {
    position: static !important;
    display: block !important;
    order: initial !important;
    width: min(100%, 340px) !important;
    max-width: 340px !important;
    margin: 0 0 18px !important;
    transform: none !important;
    color: rgba(255, 255, 255, .94) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy > .btn.red {
    position: static !important;
    display: inline-flex !important;
    order: initial !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 192px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    transform: none !important;
    color: #fff !important;
    background: #ed1c24 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-cover-perks {
    position: absolute !important;
    z-index: 3 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 96px !important;
    min-height: 96px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: rgba(10, 12, 17, .86) !important;
  }

  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-cover-perks p {
    display: flex !important;
    flex: 0 0 32px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    height: 32px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 24px !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  /* Trois lignes strictement calées dans la barre : aucune ne peut sortir
     du visuel sur les petits écrans. */
  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-cover-perks p:nth-of-type(1) {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
  }

  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-cover-perks p:nth-of-type(2) {
    position: absolute !important;
    top: 32px !important;
    right: 0 !important;
    left: 0 !important;
  }

  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-cover-perks p:nth-of-type(3) {
    position: absolute !important;
    top: 64px !important;
    right: 0 !important;
    left: 0 !important;
  }

  html[dir="rtl"]:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy {
    align-items: flex-end !important;
    text-align: right !important;
  }

  html[dir="rtl"]:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy > h1,
  html[dir="rtl"]:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy > p:not(.eyebrow):not(.hero-trust-note) {
    text-align: right !important;
  }
}

/* Mobile : signature en haut, contenu principal ancré au plus bas. */
@media (max-width: 800px) {
  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy {
    top: 0 !important;
    bottom: 96px !important;
    height: auto !important;
    justify-content: flex-start !important;
    padding: 22px 24px 8px !important;
  }

  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy > .eyebrow {
    align-self: center !important;
    margin: 0 !important;
    text-align: center !important;
  }

  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy > h1 {
    margin-top: auto !important;
  }

  html:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy > .hero-trust-note {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 10px 0 0 !important;
    color: rgba(255,255,255,.92) !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html[dir="rtl"]:not(#wakride-mobile-layout-lock) body .hero.hero-site-cover.hero-has-visual .hero-copy.hero-copy > .eyebrow {
    align-self: center !important;
    text-align: center !important;
  }
}
