@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
  margin: 10;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
:root {
  --clr: #222327;
  /* --clr: #12181B */
}
body {
  background: var(--clr);
}
header {
  display: flex;
  justify-content: center;
  align-items: top; /*Navbar en haut de la page ou au milieu*/
  min-height: 10vh;
}

.navigation {
  position: fixed;
  width: 60%; /*Largeur de la barre blanche*/
  height: 70px; /*hauteur de la barre blanche, si modifiée, il faut aussi changer d'autres hauteurs*/
  background: #fff; /*Arriere plan de la barre */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  z-index: 7000;
  margin-bottom: 30px;
  box-shadow: 0 0 1px 13px var(--clr);
}

@media (max-width: 575px) {
  .navigation {
    width: 100%; /*Largeur de la barre blanche*/
  }
}

.navigation ul {
  display: flex;
  width: 280px; /*Multiple de 70, largeur du total des elements*/
}
.navigation ul li {
  position: relative;
  list-style: none;
  width: 70px;
  height: 70px;
  z-index: 1;
}
.navigation ul li a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  text-align: center;
  font-weight: 500;
}

.navigation ul li a .icon {
  position: relative;
  display: block;
  line-height: 75px;
  font-size: 1.5em;
  text-align: center;
  transition: 0.5s;
  color: var(--clr);
}
/*.navigation ul li:hover a .icon*/
.navigation ul li.active a .icon {
  transform: translateY(35px) scale(1.3);
  /*Envoie l'icone en bas et la grossit un peu quand on clique dessus*/
}
.navigation ul li a .text {
  position: absolute;
  color: var(--clr);
  font-weight: 400;
  font-size: 0.75em;
  letter-spacing: 0.05em;
  transition: 0.5s;
  opacity: 0;
  transform: translateY(
    -100px
  ); /*Sert a choisir d'ou apparait le texte, si il vient de loin il arrive plus vite*/
}
/*.navigation ul li:hover a .text*/
.navigation ul li.active a .text {
  opacity: 1;
  transform: translateY(
    -15px
  ); /*Jusqu'a quelle hauteur descend le texter quand il apparait*/
}
.indicator {
  position: absolute;
  bottom: -50%; /*Position en hauteur de la bulle*/
  width: 70px;
  height: 70px;
  background-color: #fbab7e;
  background-image: linear-gradient(62deg, #fbab7e 0%, #f7ce68 100%);
  border-radius: 50%;
  border: 6px solid var(--clr);
  transition: 0.5s; /*Vitesse de la bulle*/
}

/*arrondir les coins autour de la bulle*/
.indicator::before {
  content: "";
  position: absolute;
  top: 20%;
  left: -22px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-bottom-right-radius: 20px;
  box-shadow: 1px 10px 0 0 var(--clr);
  /* offset-x | offset-y | blur-radius | spread-radius | color */
}
.indicator::after {
  content: "";
  position: absolute;
  top: 19%;
  right: -22px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-bottom-left-radius: 20px;
  box-shadow: -1px 10px 0 0 var(--clr);
}

.navigation ul li:nth-child(1).active ~ .indicator {
  transform: translateX(calc(70px * 0));
}

.navigation ul li:nth-child(2).active ~ .indicator {
  transform: translateX(calc(70px * 1));
}

.navigation ul li:nth-child(3).active ~ .indicator {
  transform: translateX(calc(70px * 2));
}

.navigation ul li:nth-child(4).active ~ .indicator {
  transform: translateX(calc(70px * 3));
}

/*--------------------*/
.swiper-container {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 50px;
}
.swiper-slide {
  width: 300px;
  height: 400px;
  background: rgba(255, 0, 0, 0);
}
.swiper-slide .imgBx {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: #f44336;
}
.swiper-slide .imgBx img {
  width: 100%;
}

/*---------------------------*/
.card {
  position: relative;
  margin: 20px 0;
  width: 300px;
  height: 400px;
  background: #fff;
  transform-style: preserve-3d;
  transform: perspective(2000px);
  box-shadow: inset 300px 0 50px rgba(0, 0, 0, 0.15),
    0 20px 20px rgba(0, 0, 0, 0.15);
  transition: 1s;
}
.card:hover,
.card:active {
  transform: perspective(2000px) translateX(50%);
  box-shadow: inset 20px 0 50px rgba(0, 0, 0, 0.15),
    0 10px 100px rgba(0, 0, 0, 0.15);
}

.card .cover {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: left;
  z-index: 2;
  transition: 1s ease-out;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  overflow: hidden;
}
.card .cover img {
  max-width: 80%;
  z-index: 1;
}

.card .coverdesktop img {
  max-width: 95%;
  z-index: 1;
}
/*Les images d'ordi doivent prendre plus de largeur sur les cartes*/

.card:hover .cover,
.card:active .cover {
  transform: rotateY(-180deg);
}

.card:hover .cover img,
.card:active .cover img {
  transform: rotateY(-180deg);
  transition-delay: 0.3s;
}
.card:not(:hover) .cover img,
.card:not(:active) .cover img {
  transition-delay: 0.3s;
}

.card .cover::before {
  content: "";
  position: absolute;
  width: 10px;
  background: #fff;
  height: 150%;
  transform: rotate(36.5deg);
  box-shadow: 0 0 0 20px #ffb727;
  transition: 0.5s;
  transition-delay: 1s;
}
.card:hover .cover::before,
.card:active .cover::before {
  width: 0px;
  box-shadow: 0 0 0 250px #ffc041;
  transform: rotate(143.5deg);
}
.card .details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.card .details h3 {
  font-weight: 500;
  margin: 5px 0;
}
.card .details h2 {
  font-size: 1.5em;
  color: #1f1f1f;
  font-weight: 600;
}

.card .details a {
  display: inline-block;
  padding: 8px 20px;
  margin-top: 5px;
  background-color: #fbab7e;
  background-image: linear-gradient(62deg, #fbab7e 0%, #f7ce68 100%);
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 25px;
  text-decoration: none;
}

@media (max-width: 620px) and (min-width: 410px) {
  .swiper-slide {
    width: 200px;
  }

  .card {
    width: 200px;
  }
  .card .cover img {
    max-width: 100%;
  }
  .card .coverdesktop img {
    max-width: 95%;
  }
  .card .details {
    padding: 10px;
  }
  .card .details h3 {
    font-weight: 200;
    margin: 5px 0;
  }
  .card .details h2 {
    font-size: 1em;
    font-weight: 300;
  }
  .card .details a {
    padding: 4px 10px;
    margin-top: 5px;
    font-weight: 200;
  }
}

@media (max-width: 409px) {
  .swiper-slide {
    width: 150px;
  }

  .card {
    height: 300px;
    width: 150px;
  }
  .card .cover img {
    max-width: 100%;
  }
  .card .coverdesktop img {
    max-width: 97%;
  }
  .card .details {
    padding: 5px;
  }
  .card .details h3 {
    font-weight: 200;
    font-size: 1em;

    margin: 5px 0;
  }
  .card .details h2 {
    font-size: 1em;
    font-weight: 300;
  }
  .card .details a {
    padding: 4px 10px;
    margin-top: 5px;
    font-weight: 200;
  }

  .card .details img {
    max-width: 50%;
  }
}

/*----------------*/
/*----------------*/
/*----------------*/
/*----------------*/

section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20em;
}

.container {
  position: relative;
  min-width: 1100px;
  min-height: 550px;
  display: flex;
  z-index: 1000;
}
.container .contactInfo {
  position: absolute;
  top: 40px;
  width: 350px;
  height: calc(100% - 80px);
  background: #ffb727;
  background-image: linear-gradient(62deg, #fbab7e 0%, #f7ce68 100%);
  z-index: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}
.container .contactInfo h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
}
.container .contactInfo ul.info {
  position: relative;
  margin: 20px 0;
}
.container .contactInfo ul.info li {
  position: relative;
  list-style: none;
  display: flex;
  margin: 20px 0;
  cursor: pointer;
  align-items: flex-start;
}
.container .contactInfo ul.info li span:nth-child(1) {
  width: 30px;
  min-width: 30px;
}
.container .contactInfo ul.info li span img {
  max-width: 100%;
  filter: invert(1);
}
.container .contactInfo ul.info li span:nth-child(2) {
  color: #fff;
  margin-left: 10px;
  font-weight: 300;
}
.container .contactInfo ul.sci {
  position: relative;
  display: flex;
}
.container .contactInfo ul.sci li {
  list-style: none;
  margin-right: 15px;
}
.container .contactInfo ul.sci li a {
  list-style: none;
}
.container .contactInfo ul.sci li a img {
  filter: invert(1);
}
.container .contactForm {
  position: absolute;
  padding: 70px 50px;
  padding-left: 250px;
  margin-left: 150px;
  width: calc(100% - 150px);
  height: 100%;
  background: #fff;
  box-shadow: 0 50px 50px rgba(0, 0, 0, 0.25);
}
.container .contactForm h2 {
  color: #0f3959;
  font-size: 24px;
  font-weight: 500;
}
.container .contactForm .formBox {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 30px;
}
.container .contactForm .formBox .inputBox {
  position: relative;
  margin: 0 0 35px 0;
}
.container .contactForm .formBox .inputBox.w50 {
  width: 47%;
}
.container .contactForm .formBox .inputBox.w100 {
  width: 100%;
}
.container .contactForm .formBox .inputBox input,
.container .contactForm .formBox .inputBox textarea {
  width: 100%;
  resize: none;
  padding: 5px 0;
  font-size: 18px;
  font-weight: 300;
  color: #333;
  border: none;
  outline: none;
  border-bottom: 1px solid #777;
}
.container .contactForm .formBox .inputBox textarea {
  min-height: 120px;
}
.container .contactForm .formBox .inputBox span {
  position: absolute;
  left: 0;
  padding: 5px 0;
  pointer-events: none;
  font-size: 18px;
  font-weight: 300;
  transition: 0.3s;
}
.container .contactForm .formBox .inputBox input:focus ~ span,
.container .contactForm .formBox .inputBox input:not(:placeholder-shown) ~ span,
.container .contactForm .formBox .inputBox textarea:focus ~ span,
.container
  .contactForm
  .formBox
  .inputBox
  textarea:not(:placeholder-shown)
  ~ span {
  transform: translateY(-20px);
  font-size: 12px;
  letter-spacing: 1px;
  color: #ffb727;
  font-weight: 500;
}

.container .contactForm .formBox .inputBox input[type="submit"] {
  position: relative;
  cursor: pointer;
  background: #ffb727;
  background-image: linear-gradient(62deg, #fbab7e 0%, #f7ce68 100%);
  color: #fff;
  border: none;
  max-width: 150px;
  padding: 12px;
}
.container .contactForm .formBox .inputBox input[type="submit"]:hover {
  background: #ffb727;
  background-image: linear-gradient(62deg, #f7ce68 0%, #fbab7e 100%);
}

@media (max-width: 1200px) {
  .container {
    max-width: 90%;
    min-width: auto;
    margin: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  }
  .container .contactInfo {
    position: relative;
    top: 0;
    height: 550px;
    box-shadow: none;
  }
  .container .contactForm {
    position: relative;
    width: calc(100% - 350px);
    height: 550px;
    padding-left: 0;
    margin-left: 0;
    padding: 40px;
    box-shadow: none;
  }
}

@media (max-width: 991px) {
  section::before {
    display: none;
  }
  .container {
    display: flex;
    flex-direction: column-reverse;
  }
  .container .contactInfo {
    width: 100%;
    height: auto;
    flex-direction: row;
  }
  .container .contactInfo ul.sci {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .container .contactForm {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .container .contactForm {
    height: auto;
    padding: 25px;
  }
  .container .contactForm .formBox .inputBox.w50 {
    width: 100%;
  }
  .container .contactInfo {
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
  }
  .container .contactInfo ul.sci {
    margin-top: 40px;
  }
}

a:link {
  text-decoration: none;
  color: white;
}

a:visited {
  text-decoration: none;
  color: white;
}

a:hover {
  text-decoration: none;
  color: white;
}

a:active {
  text-decoration: none;
  color: white;
}

a.anchor {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}

a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}
a[href^="mailto"] {
  color: inherit;
  text-decoration: none;
}

/*HERO*/
.hero-container {
  color: wheat;
  padding-top: 10em;
  text-align: center;
}
.hero-container h1 {
  font-size: 72px;
  background: -webkit-linear-gradient(62deg, #fbab7e 0%, #f7ce68 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 575px) {
  .hero-container h1 {
    font-size: 55px;
  }
}

.hero-container h2 {
  background: -webkit-linear-gradient(62deg, #fbab7e 0%, #f7ce68 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contactForm .formBox .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}
.contactForm .formBox .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #fbab7e;
  border-top-color: #eee;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}

@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.contactForm .formBox .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}
.contactForm .formBox .error-message br + br {
  margin-top: 25px;
}
.contactForm .formBox .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.d-block {
  display: block !important;
}
