@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --c--black: black;
  --c--white: white;
  --c--grey: #e8e8ea;
}

* {
  font-family: "Oswald", sans-serif;
  text-decoration: none;
  list-style-type: none;
  scroll-behavior: smooth;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  position: relative;
}

/* intro presentation */

.presentation-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 999;
  background-color: var(--c--black);
  opacity: 1;
  transition: all 1s ease;
}

.presentation-content.active {
  opacity: 0;
}

.presentation-content.after {
  display: none;
}

.presentation-content figure {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 0px;
  opacity: 1;
  transition: all 0.5s ease;
}

.presentation-content figure.active {
  height: clamp(100px, 20vw, 200px);
}

.presentation-content figure img {
  height: 100%;
}

/* NAVIGATION */

.navbar {
  z-index: 99;
  width: 100%;
  position: fixed;
  background-color: black;
  min-height: 10vh;
  display: flex;
  padding: 0 10px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 0 10px black;
}

.navbar.after .wrapper-right {
  opacity: 0;
}

.navbar.after .wrapper-right.after {
  display: none;
}

.navbar.after .wrapper-left.after img {
  height: 2vw;
}

.navbar .wrapper-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px;
}

.navbar .wrapper-left {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.navbar .wrapper-right {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: white;
  transition: all 0.5s ease;
}

.navbar .item {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 10px;
  background-color: var(--c--white);
  padding: 5px 10px;
  cursor: pointer;
  color: var(--c--black);
  transition: all 0.25s ease;
}

.navbar .item:hover {
  background-color: var(--c--black);
  color: var(--c--white);
}

.navbar .item i {
  color: var(--c--black);
  transition: all 0.25s ease;
}

.navbar .item:hover i {
  color: var(--c--white);
}

.navbar ul {
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 60px;
}

.navbar ul li a {
  color: white;
  font-size: 1.35em;
}

.navbar ul li a:hover,
#accueil a:hover {
  opacity: 0.8;
}

.navbar img {
  height: 3vw;
  transition: all 0.5s ease;
}

hr {
  width: 50%;
  margin: 0 auto;
  border: 0.3px solid var(--c--grey);
  opacity: 0.5;
}

/* NAV BURGER */

.navburger {
  display: none;
  position: fixed;
  width: 100%;
}

/* ACCUEIL */

.accueil {
  position: relative;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.accueil .wrapper-bottom {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}

.accueil figure {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: -1;
}

.accueil figure img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.accueil > div:first-of-type {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.accueil h1 {
  font-size: 4em;
  color: var(--c--white);
  text-align: center;
  text-shadow: var(--c--black) 10px 5px;
  animation: showText 1s forwards;
}

.accueil p {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 2em;
  color: white;
  text-align: center;
  text-shadow: black 3px 0 10px;
}

.accueil i {
  color: var(--c--white);
  font-size: 2em;
}

.arrow-propos {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 50px;
  backdrop-filter: blur(10px);
  border-radius: 50%;
}

/* carousel arrière plan */

.slider-1 {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #f1f1f1;
  position: absolute;
}

.slider-1 .slider {
  width: 100%;
  height: 100%;
  animation: slider-1 30s infinite ease-in-out;
  display: flex;
}

.slider-1 p {
  background: #000;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 45px;
  color: #f1f1f1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-1 p img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slider-1 {
  0%,
  16.66% {
    transform: translateX(0);
  }
  20%,
  36.66% {
    transform: translateX(-100%);
  }
  40%,
  56.66% {
    transform: translateX(-200%);
  }
  60%,
  76.66% {
    transform: translateX(-300%);
  }
  80%,
  96.66% {
    transform: translateX(-400%);
  }
  100% {
    transform: translateX(-500%);
  }
}

/* A PROPOS */

.informations {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.informations .wrapper-top {
  margin: 20px auto;
  max-width: 90%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
}

.informations > .wrapper-top,
.informations .wrapper-bottom {
  margin: 30px auto;
  max-width: 90%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 70px;
}

.informations .wrapper-top {
  flex-wrap: wrap;
}

.informations .wrapper-top > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 20px;
}

.wrapper-top > div:first-of-type {
  min-width: 300px;
  max-width: 700px;
}

.informations figure {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  max-height: 300px;
}

.informations figure img {
  height: auto;
  width: 100%;
  object-fit: cover;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.informations > div:last-of-type {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.informations article {
  height: 200px;
  width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgb(240, 240, 240);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  transition: all 0.5s ease;
  cursor: pointer;
}

.informations article:hover {
  transform: scale(1.04);
}

.informations article i {
  color: rgb(250, 202, 59);
  font-size: 2em;
}

.informations p {
  font-size: clamp(15px, 1.5vw, 20px);
}

.informations .wrapper-top h1 {
  text-align: center;
}

.informations .wrapper-top .wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin-bottom: 30px;
}

.informations .item.logo img {
  width: auto;
  height: 70px;
  object-fit: cover;
}

/* SERVICES */

.services {
  margin: 0 auto;
  min-height: 50vh;
  width: 90%;
  background-color: rgb(240, 240, 240);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 40px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.services .wrapper-top {
  text-align: center;
  font-size: 1.5em;
  margin-top: 20px;
}

.services .wrapper-bottom,
.extend {
  font-size: clamp(15px, 1.5vw, 20px);
}

.services .wrapper-bottom {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}

.services div:last-of-type article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.services i {
  font-size: 3em;
}

.services article p {
  margin-top: 10px;
}

.services i,
.services article p {
  color: rgb(255, 197, 23);
}

.sous-titre {
  font-size: small;
}

/* EXTEND */

.extend {
  width: 90%;
  margin: 0 auto;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.extend .wrapper-left,
.extend .wrapper-right {
  flex: 1;
  min-width: 300px;
  max-height: 450px;
}

.extend .wrapper-right {
  background-color: rgb(255, 197, 23);
}

.extend div:last-of-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.extend .wrapper-right a {
  padding: 5px 10px;
  margin-bottom: 40px;
  border: 2px solid white;
  color: white;
  transition: all 0.25s ease;
}

.extend .wrapper-right a:hover {
  background-color: white;
  color: rgb(255, 197, 23);
}

.extend h2 {
  padding: 30px;
  padding-bottom: 10px;
  text-align: center;
  color: white;
}

.extend p {
  color: white;
  width: 100%;
  text-align: justify;
  padding: 30px;
}

.extend figure {
  height: 100%;
  width: 100%;
}

.extend figure img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* TRAVAUX */

.travaux {
  width: 90%;
  height: auto;
  margin: 0 auto;
  margin-top: 60px;
}

.travaux p {
  font-size: clamp(10px, 1vw, 15px);
}

.travaux h2 {
  font-size: clamp(20px, 2vw, 30px);
}

.travaux figure {
  flex-basis: clamp(300px, 30vw, 400px);
  height: clamp(400px, 40vw, 500px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.travaux figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.travaux figcaption {
  font-style: italic;
}

.carousel {
  margin-top: 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: hidden;
}

.carousel-button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.carousel-button a.active {
  background-color: rgb(255, 197, 23);
}

.carousel-button a {
  font-size: clamp(15px, 1.5vw, 20px);
  padding: 5px 10px;
  color: white;
  background-color: var(--c--black);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  transition: all 0.25s ease;
}

.carousel-button a:hover {
  background-color: rgb(255, 197, 23);
}

.carousel-content {
  height: 90%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-content .slider {
  height: fit-content;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: start;
  flex-wrap: wrap;
}

/* CONTACT */

.contact {
  width: 90%;
  height: auto;
  margin: 0 auto;
  margin-top: 40px;
  background-color: rgb(240, 240, 240);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: start;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.contact .wrapper-top,
.contact .wrapper-bottom {
  width: 90%;
  margin: 10px auto;
}

.contact .wrapper-top {
  margin-top: 40px;
  font-size: 1.5em;
}

.contact .wrapper-bottom {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 70px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.contact .wrapper-left {
  padding: 20px;
  background-color: var(--c--white);
  border-radius: 30px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.contact .wrapper-right {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: start;
  gap: 20px;
  min-width: 300px;
  font-size: clamp(15px, 1.5vw, 20px);
}

.contact h2 {
  margin-bottom: 30px;
}

.contact .item {
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  color: var(--c--black);
  gap: 20px;
}

.contact .item a {
  color: var(--c--black);
  transition: color 0.5s ease;
}

.contact .item a:hover {
  color: rgb(255, 197, 23);
}

.contactForm {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.form-infos {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.form-infos input,
.form-infos textarea {
  flex: 1;
  box-sizing: border-box;
  font-size: 16px;
  padding: 10px;
  border-radius: 30px;
  outline: none;
  border: 1px solid var(--c--grey);
  color: var(--c--black);
  resize: vertical;
}

.form-infos textarea {
  min-height: 200px;
}

#prenom,
#nom {
  width: clamp(100px, 20%, 130px);
}

.info {
  max-width: 400px;
  font-size: 0.75em;
  font-weight: 400;
  font-style: italic;
}

.contactForm textarea:active,
.contactForm textarea:focus,
.contactForm input:active,
.contactForm input:focus {
  box-shadow: 0 0 0 3px rgb(255, 197, 23), 0 0 0 5px var(--c--grey);
}

.button-form {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  background-color: rgb(255, 197, 23);
  color: var(--c--white);
  border-radius: 30px;
  border: 1px solid transparent;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  transition: background-color 0.5s ease;
  cursor: pointer;
}

.button-form:hover {
  background-color: var(--c--white);
  color: rgb(255, 197, 23);
}

.fa-phone {
  color: #155724;
}

.fa-envelope {
  color: #155724;
}

.fa-facebook {
  color: #3b5998;
}

.fa-instagram {
  color: #e4405f;
}

.devis-info {
  position: absolute;
  top: 20%;
  left: 15%;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d4edda;
  background-color: #d4edda;
  color: #155724;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
  user-select: none;
  min-width: 300px;
  opacity: 1;
  z-index: 1;
  transition: opacity 0.25s;
}

.devis-info.active {
  opacity: 1;
  transition: opacity 0.25s;
}

.devis-info.close {
  opacity: 0;
}

/* FOOTER */

footer {
  padding: 30px;
  background-color: black;
  width: 100%;
  height: auto;
}

footer p {
  color: white;
  text-align: center;
  font-size: 1em;
}

footer p a {
  text-decoration: underline;
  color: white;
}

/* classes générales */

.underline {
  text-decoration: underline;
}

/* Responsive */

@media screen and (max-width: 924px) {
  .contact {
    width: 100%;
  }

  .navbar {
    display: none;
    transform: translateY(-100%);
    transition: all 0.5s ease;
  }

  .navbar.activeburger {
    transform: translateY(0);
  }

  .navburger {
    z-index: 99;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    color: white;
    box-shadow: 0 0 10px black;
    opacity: 0.9;
    padding: 20px;
  }

  .navburger > a {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navburger img {
    height: 5vw;
  }

  .navbar.active .wrapper-top {
    display: none;
  }

  .navburger i {
    font-size: 2em;
    cursor: pointer;
  }

  .navbar.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    z-index: 99;
  }

  .navbar.active ul {
    flex-direction: column;
    gap: 50px;
    font-size: 1.15em;
  }

  .devis-info {
    left: 7%;
  }
}
