:root {
  --green: #007e3f;
  --green-dark: #00946A;
  --grey: #7F7F7F;
}

body {
  font-family: 'Montserrat';
}

.btn {
  text-transform: uppercase;
}

.lead {
  color: var(--grey);
}

.divider {
  border: 0;
  height: 2px;
  background-color: var(--green);
  width: 80%;
  margin: 1.5rem auto;
}

.prelevement-logo {
  width: 70%;
  object-fit: cover;
  display: block;
  margin: auto;
  margin-top: 40px;
  margin-bottom: 40px;
}

.navbar-brand {
  width: 60px;
}

#accueil {
  background-image: url("../assets/accueil.jpg");
  background-size: cover;
  background-repeat: no-repeat;

  .nav-link {
    color: white!important;
  }

  h1, h3 {
    color: white;
  }

  p {
    color: white;
    max-width: 650px;
    margin: 0 auto 32px;
    padding: 20px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--bs-border-radius-xl);
    backdrop-filter: blur(4px);
    text-align: center;
  }

  .subnavbar {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
  }

  .nav-sublink {
    position: relative;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.85);
    color: #0c8f6e;
    background: linear-gradient(180deg, #ffffff 0%, #eef7f5 100%);
    font-weight: bold;
    text-transform: uppercase;
  }

  .nav-sublink::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.85);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
  }

  footer {
    width: 100%;
    overflow: hidden;
  }

  footer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

#prelevement, #analyse {
  padding-top: 50px;
  text-align: center;

  h1, h2, h3, h4 {
    color: var(--green);
  }

  h2 {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  h4 {
    margin-top: 20px;
  }

  a {
    color: var(--green);
  }

  .btn {
    position: relative;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(237,125,17,.85);
    color: white;
    background: rgba(237,125,17,.85);
    font-weight: bold;
    text-transform: uppercase;
  }

  .btn::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 999px;
    border: 1px solid rgba(237,125,17,.85);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
  }

  ul {
    color: var(--grey);
    list-style-position: inside;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .network {
    padding-top: 30px;
    margin-top: 30px;
    padding-bottom: 100px;
    background-color: var(--green-dark);

    img {
      width: 70%;
      object-fit: cover;
      display: block;
      margin: auto;
      margin-top: 40px;
      margin-bottom: 40px;
    }

    h4 {
      font-weight: normal;
    }
  }

  .accreditation {
    background-color: white;
    color: var(--green-dark);
    margin: auto;
    padding: 20px;
    border-radius: 50px;
    margin-top: 30px;

    h4 {
      color: var(--green-dark);
    }
  }

  .img-floated {
    float: right;
    width: 220px;
    height: 220px;
    object-fit: cover;
    margin-top: 50px;
    margin-right: 30px;
  }

  footer img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
  }
}

#contact {
  padding-top: 50px;
  background-color: #EE7E12;
  color: white;
  text-align: center;

  strong {
    font-size: 1.5rem;
  }

  h1 {
    display: inline-block;
    background-color: white;
    color: #EE7E12;
    margin: auto;
    border-radius: 40px;
    padding: 10px 20px;
  }

  img {
    width: 70%;
    object-fit: cover;
    display: block;
    margin: auto;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .map {
    width: 100%;
  }

  hr {
    background-color: white;
  }

  a {
    color: white;
    text-decoration: none;
  }

  footer {
    padding: 40px;

    img {
      width: 60px;
    }
  }
}

 /* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  #prelevement, #analyse {
    h2 {
      font-weight: bold;
    }
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  #accueil {
    footer {
      max-height: 400px;

      img {
        clip-path: ellipse(100% 40% at 60% 50%);
      }
    }
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .subnavbar {
    a::after {
      content: "";
      position: absolute;
      left: 50%;
      transform: translateX(-50%) rotate(45deg);
      width: 26px;
      height: 26px;
      bottom: -34px;
      border-right: 1.5px solid rgba(255,255,255,.85);
      border-bottom: 1.5px solid rgba(255,255,255,.85);
      border-radius: 2px;
    }

    a:hover::after {
      bottom: -36px;
      filter: brightness(1.1);
    }
  }

  .prestations {
    border: 1px solid var(--green);
    border-radius: 25px;
    padding: 10px 30px;

    h3 {
      font-weight: bold;
    }
  }

  .prelevement-logo {
    width: 30%;
    object-fit: cover;
    display: block;
    margin: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    float: right;
  }

  #prelevement, #analyse {
    h2 {
      font-weight: normal;
    }
  }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  #accueil footer {
    max-height: 500px;
  }

  #prelevement footer img {
    height: 500px;
  }
}
