/*
 * Correctifs propres à l'hébergement OVH, chargés après le CSS Webflow (qui n'est pas modifié).
 * Bandeau de la page d'accueil : le texte, très long, était centré verticalement dans un voile
 * de hauteur fixe et passait derrière le menu fixe (et hors écran sur mobile).
 * Les sélecteurs commencent par "html body" pour passer devant le CSS Webflow et le code intégré aux pages.
 */

:root {
  --ovh-nav-height: 116px; /* hauteur du menu fixe, identique sur toutes les tailles d'écran */
}

/* La section suit la hauteur de son contenu, au minimum la hauteur de l'écran */
html body .section.homemainsection {
  position: relative;
  display: block;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
}

/* Le voile (qui porte la photo) passe dans le flux : le contenu commence sous le menu */
html body .div-block.homemainsectionoberlay {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: calc(var(--ovh-nav-height) + 40px) 24px 64px;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

/* Voile sombre en dégradé au-dessus de la photo */
html body .div-block.homemainsectionoberlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(180deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.55) 35%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.8) 100%);
}

html body #herosectionrowmain.homemainsectioncontainer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

html body .div-block-2.homebannertextblock {
  width: 100%;
  gap: 32px;
}

html body .homemainsection .text-block-4 {
  width: 100%;
  max-width: 720px;
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  overflow-wrap: break-word;
}

@media screen and (max-width: 991px) {
  html body .section.homemainsection {
    background-attachment: scroll;
  }

  html body .div-block.homemainsectionoberlay {
    padding: calc(var(--ovh-nav-height) + 32px) 20px 56px;
  }
}

@media screen and (max-width: 479px) {
  html body .div-block.homemainsectionoberlay {
    padding: calc(var(--ovh-nav-height) + 24px) 16px 48px;
  }

  html body .homemainsection .text-block-4 {
    font-size: 16px;
    line-height: 1.55;
  }

  html body .homemainsection .homebannerbtn1 {
    max-width: 100%;
  }
}
