@font-face {
  font-family: 'Barlow';
  src: url('font/Barlow-Regular.woff2') format('woff2'),
    url('font/Barlow-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('font/Barlow-Medium.woff2') format('woff2'),
    url('font/Barlow-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('font/Barlow-SemiBold.woff2') format('woff2'),
    url('font/Barlow-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.green {
  color: #9AC42F;
  font-weight: 600;
}

h1 {
  font-weight: 400;
  font-size: 50px;
  font-size: clamp(2rem, 2.9vw, 5rem);
  line-height: 100%;
  text-align: center;
  color: white;
}

p {
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  text-align: center;
  color: #052F5F;
}

body {
  font-family: 'Barlow', sans-serif;
  margin: 0;
}

header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
}

header .logo {
  max-width: 240px;
  height: 100%;
  margin: 0 auto;
  padding: 20px;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.background.active {
  opacity: 1;
}

header .background-wrapper {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

header .background-wrapper::before {
  content: "";
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #052F5F;
  opacity: 0.8;
}

header .background-wrapper::after {
  content: "";
  z-index: 2;
  background-color: #9AC42F;
  position: absolute;
  width: 3px;
  height: 61px;
  left: 50%;
  right: 50%;
  bottom: -30px;
}

header .background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main {
  padding: 50px 20px 0 20px;
  z-index: 10;
  position: relative;
}

main .container {
  max-width: 791px;
  margin: auto;
}

main .container .text {
  text-align: center;
  max-width: 577px;
  margin: auto;
  margin-bottom: 0px;
}

main .container .text p {
  margin: 5px 0;
  color: #052F5F;
  text-wrap: balance;
}

main .container .bis p {
  font-size: 20px;
  font-weight: 600;
}

main .container .bloc-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  margin-top: 30px;
  text-wrap: balance;
  margin-bottom: -30px;
  background-color: #052F5F;
  width: 100%;
  max-height: 116px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0px 13px 22px 0px #465C7678;
}

main .container .bloc-wrapper img {
  width: 30%;
  height: 100%;
}

main .container .bloc-wrapper p {
  width: 70%;
  color: white;
  font-weight: 500;
  font-size: 20px;
  line-height: 130%;
  text-align: start;
  margin: 0 24px;
}

main .container .bloc-wrapper a {
  color: white;
  text-decoration-color: #9AC42F;
  text-underline-offset: 3.5px;
  line-height: 5px;
}

footer {
  background-color: #E8EBED;
  background-image: url('images/background-footer.png');
  background-position: bottom left;
  background-size: 90%;
  background-repeat: no-repeat;
  padding: 65px 20px 30px;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

footer .container>* {
  margin: 20px;
}

@media (max-width: 900px) {
  footer {
    background-size: 160%;
  }
}

@media (max-width: 700px) {
  main .container .bloc-wrapper {
    flex-direction: column;
    max-height: 600px;
    width: 100%;
    background-color: transparent;
    margin-bottom: 30px;
    box-shadow: none;

  }

  main .container .bloc-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 24px;
  }

  main .container .bloc-wrapper p {
    width: 100%;
    margin: 20px;
    color: #052F5F;
    text-align: center;
    font-weight: 600;
    text-wrap: auto;
  }

  main .container .bloc-wrapper a {
    color: #052F5F;

  }
}

@media (max-width: 500px) {
  footer {
    padding: 30px 20px 20px;
  }

  footer .container {
    flex-direction: column;
  }
}