html {
  /* box-sizing: border-box; */
  width: 100%;
  min-width: 400px;
  height: 100%;
  margin: 0;
  padding: 0;
}

main {
  margin: 0 auto;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111827;
  width: 100%;
}

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

a:hover {
  color: #e9e9e9;
}


header {
  height: 128px;
  width: 100%;
  display: flex;
  align-items: center;
  color: white;
  background-color: #1E5647;
}

header nav {
  width: 100%;
}

header nav ul {
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: space-evenly;
  gap: 50px;
  list-style-type: none;
  font-size: 18px;
  margin-right: 45px;
}

.logo-style {
  height: 150px;
  width: 200px;
  object-fit: contain;
  margin-left: 45px;
}

#button-devis {
  display: inline-block;
  background-color: #F17600;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 15px 20px;
  cursor: pointer;
}

#button-devis:hover {
  background-color: #dd6b01;
}

.hero-section {
  margin: 0 auto;
  text-align: center;
  padding: 48px;
}

.hero-section h1 {
  font-size: 64px;
  margin-bottom: 0px;
}

.hero-section p {
  font-size: 22px;
  color: #656565;
}


.separator-div {
  width: 100%;
  height: 200px;
  background-image: url('/public/img/rain-water-green-leaf-macro_mid.jpg');
  background-size: cover;
  background-position: center;
  margin-bottom: 100px;
  margin-top: 100px;
}

article {
  display: flex;
  flex-direction: column;
  gap: 150px;
  padding: 48px;
}

.section-A {
  display: flex;
  flex-direction: row;
  text-align: right;
  gap: 32px;
}

.section-A div {
  /* margin: 0 32px; */
  flex: 1;
}

.section-B {
  display: flex;
  flex-direction: row-reverse;
  gap: 32px;
}

.section-B div {
  /* margin: 0 32px; */
  flex: 1;
}

.section-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-text h2 {
  font-size: 42px;
}

.section-text p {
  color: #656565;
}

.image-container {
  width: 400px;
  height: 400px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 20px;
  overflow: hidden;
}

.image-container img {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.certification-section {
  display: flex;
  margin-top: 50px;
  flex-direction: column;
  text-align: center;
}

.certification-section h2 {
  font-size: 40px;
  margin-bottom: 0px;
}

.certification-section .logo-container {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
}

.certification-section img {
  height: 200px;
  width: 250px;
  object-fit: contain;
}

.section-form {
  width: 75%;
  margin: 0 auto;
  margin-bottom: 100px;
}

.section-form h2 {
  font-size: 32px;
  text-align: center;
}

/* FORM STYLES */

#diagnostic-form {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}

.field-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

#diagnostic-form input,
#diagnostic-form select {
  flex: 1;
  font-family: Poppins, sans-serif;
}

#diagnostic-form textarea {
  width: 100%;
  height: 150px;
  resize: vertical;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

#diagnostic-form input[type="text"],
#diagnostic-form input[type="email"],
#diagnostic-form input[type="tel"],
#diagnostic-form input[type="number"],
#diagnostic-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

#diagnostic-form input[type="text"]:focus,
#diagnostic-form input[type="email"]:focus,
#diagnostic-form input[type="tel"]:focus,
#diagnostic-form input[type="number"]:focus,
#diagnostic-form input[type="textarea"]:focus,
#diagnostic-form select:focus {
  border-color: #1E5647;
  outline: none;
}

#diagnostic-form textarea {
  margin-bottom: 20px;
}

#diagnostic-form button {
  width: 150px;
  height: 40px;
  display: block;
  padding: 0px 20px;
  border: none;
  border-radius: 5px;
  background-color: #F17600;
  color: white;
  cursor: pointer;
  font-family: Poppins, sans-serif;
  margin: 0 auto;
  font-size: 16px;
}

#diagnostic-form button:hover {
  background-color: #dd6b01;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

footer {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #1E5647;
  color: white;
}

footer .contact-container {
  display: flex;
  flex-direction: column;
}

footer .contact-container h3 {
  margin-bottom: 8px;
}

footer img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

footer .contact-text {
  height: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

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

@media (max-width: 992px) {
  header {
    height: 100%;
    flex-direction: column;
  }

  header nav ul {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 25px;
    list-style-type: none;
    font-size: 18px;
    margin: 20px 0px;
    padding: 0;
  }

  .logo-style {
    height: 120px;
    width: 200px;
    margin-left: 0px;
  }

  .hero-section h1 {
    font-size: 54px;
  }

  .hero-section p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  article {
    gap: 100px;
  }

  .section-A {
    flex-direction: column;
    text-align: left;
  }

  .section-A div {
    flex: auto;
  }

  .section-B {
    flex-direction: column;
  }

  .section-B div {
    flex: auto;
  }

  .section-text {
    flex-direction: column;
  }

  .section-text h2 {
    font-size: 38px;
  }

  .image-container {
    width: 90%;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
  }

  .image-container img {
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .certification-section .logo-container {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
  }

  .certification-section img {
    height: 200px;
    width: 200px;
    object-fit: contain;
  }

  #diagnostic-form {
    gap: 0px;
  }

  .field-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2px;
  }

  footer {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-around;
    align-items: center;
    background-color: #1E5647;
    color: white;
  }

  footer .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}