/* police du text */

* {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  margin: 0 auto;
  align-items: center;
}

/*  tête de page */
header.header img {
  width: auto;
  height: 70px;
}

header.header {
  display: flex;
  margin: 0 auto;
}

nav.nav {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin-left: 40px;
  width: 200px;
  height: 70px;
  align-items: center;
  flex-direction: row;
}

nav.nav li a {
  color: white;
  font-size: 20px;
  text-decoration: none;
}

.top-page {
  margin: 0 auto;
  background-color: #545454;
}

/*  menu button */
.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: "";
  margin-top: -8px;
}

.menu-button::after {
  content: "";
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

@media (max-width: 700px) {
  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 2.5em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: #222;
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }
}

/*  background image */

.image-acceuil-principale img {
  margin: 0 auto;
  width: 100%;
  background-size: contain;
}

/*  corps acceuil texte et titres */
h2[class^="titre-acceuil"],
h2[class*="titre-acceuil"] {
  text-align: center;
  font-weight: 500;
  font-size: 30px;
  color: #333;
}

h3[class^="text-acceuil"],
h2[class*="text-acceuil"] {
  text-align: justify;
  margin-left: 20%;
  margin-right: 20%;
  font-weight: 500;
  font-size: 18px;
  color: #333;
}

/*  images services */
.services-item {
  min-height: 300px;
  display: flex;
  flex-wrap: wrap;
  margin-left: 20%;
  margin-right: 20%;
  justify-content: space-between;
  padding-bottom: 10px;
}

.services-images {
  min-width: 200px;
  height: 300px;
  background-position: center;
  background-size: cover;
  position: relative;
  margin-bottom: 10px;
}

.forage {
  background-image: url(../image/forage.jpg);
  border-radius: 25px;
}

.carottage {
  background-image: url(../image/carottage.png);
  border-radius: 25px;
}

.fouille {
  background-image: url(../image/fouilles.JPG);
  border-radius: 25px;
}

.services-details {
  background-color: #ffffffdf;
  position: absolute;
  width: 100%;
  height: 10%;
  bottom: 0;
  text-align: center;
}

.details {
  margin: 0;
}

/*  footer */
.footer-basic-centered {
  background-color: #545454;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
  text-align: center;
  font: normal 18px sans-serif;
  margin: 0 auto;
  padding: 45px;
  margin-top: 80px;
}

.footer-basic-centered .footer-coordonees {
  color: #ffffff;
  font-size: 24px;
  margin: 0;
  text-decoration: underline;
}

.footer-basic-centered .footer-follow {
  color: #ffffff;
  font-size: 24px;
  margin: 0;
  text-decoration: underline;
}

.footer-basic-centered .coordonnees-links {
  list-style: none;
  color: #ffffff;
  font-size: 15px;
  padding: 35px 0 23px;
  margin: 0;
  text-decoration: none;
}

.footer-basic-centered .follow-links {
  list-style: none;
  font-weight: bold;
  color: #ffffff;
  padding: 35px 0 23px;
  margin: 0;
}

.footer-basic-centered .footer-company-name {
  color: #8f9296;
  font-size: 14px;
  margin: 0;
}
