/**********
HEADER
**********/
.header {
  width: 100%;
  background-image: url('../assets/img/team-of-customer-service-agents-with-headsets-work-NLU7BGP.jpg');
  background-position: center 40%;
  background-size: cover;
  padding-top: 20vh;
  padding-bottom: 10vh;
  color: #fff;
  position: relative;
  text-align: center;
}
.header::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.header__title {
  font-size: 1.6em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 300;
  position: relative;
  z-index: 100;
}
.header__subtitle {
  font-size: 2em;
  font-weight: 700;
  position: relative;
  z-index: 100;
}
/**********
CONTACT FORM
**********/
.contact-form {
  padding: 10vh 0;
  padding-bottom: 20vh;
  background-color: #f7f7f7;
}
.contact-form input:active,
.contact-form input:focus,
.contact-form textarea:active,
.contact-form textarea:focus {
  outline: none;
}
.contact-form__container {
  width: 60vw;
  margin: 0 auto;
}
.contact-form__title {
  color: #d29723;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 3vh;
}
.contact-form__inner {
  width: 100%;
  height: auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 3vh;
}
.contact-form__form {
  width: 85%;
  height: max-content;
}
.contact-form__input {
  width: 100%;
  background-color: #fff;
  font-family: inherit;
  font-size: inherit;
  padding: 2vh 1vw;
  border: 1px solid #f1f1f1;
  margin-bottom: 2vh;
  border-radius: 0.25rem;
}
.contract-form__two-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1vw;
  margin-bottom: 2vh;
}
.contact-form__textarea {
  width: 100%;
  min-height: 15vh;
  background-color: #fff;
  font-family: inherit;
  font-size: inherit;
  padding: 2vh 1vw;
  border: 1px solid #f1f1f1;
  margin-bottom: 2vh;
  resize: none;
  border-radius: 0.25rem;
}
.contact-form__captcha {
  display: flex;
  align-items: center;
  height: max-content;
}
.contact-form__captcha > .contact-form__input {
  width: 25%;
  margin-right: 1vw;
}
.contact-form__captcha__refresh {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #5b93f4;
  width: 3vw;
  height: 3vw;
  margin-left: 1vw;
}
.contact-form__captcha__refresh > img {
  width: 50%;
  height: auto;
}
.contract-form__two-inputs > .contact-form__input,
.contact-form__captcha > .contact-form__input {
  margin-bottom: 0;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  border: 1px solid #d29723;
}
.contact-form__submit {
  font-family: inherit;
  font-size: 1.3em;
  text-transform: uppercase;
  display: block;
  width: max-content;
  height: max-content;
  border-radius: 2rem;
  background-color: #d29723;
  padding: 1.5vh 2.5vw;
  color: #fff;
  font-weight: 500;
  border: none;
}
.contact-form__networks {
  width: 10%;
  background-color: #d29723;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.contact-form__network {
  width: 4vw;
  height: 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  background-color: #fff;
}
.contact-form__network > img {
  width: 50%;
  height: auto;
}
.contact-form__network__line {
  width: 4vw;
  height: 1px;
  background-color: #fff;
}
.contact-form__errors {
  width: max-content;
  background-color: #d08282;
  color: #d22323;
  padding: 1.5vh 1.5vw;
  padding-top: 3vh;
  padding-right: 3vw;
  margin-bottom: 1.5vh;
  border-radius: 0.25rem;
  position: relative;
  font-weight: 700;
}
.contact-form__success {
  width: max-content;
  background-color: #79cb90;
  color: #09571f;
  padding: 1.5vh 1.5vw;
  padding-top: 3vh;
  padding-right: 3vw;
  margin-bottom: 1.5vh;
  border-radius: 0.25rem;
  position: relative;
  font-weight: 700;
}
.contact-form__errors span,
.contact-form__success span {
  font-size: 1.2em;
  position: absolute;
  top: 0.5vh;
  right: 0.75vw;
  font-weight: 700;
  cursor: pointer;
}
/***********
LOCATIONS
***********/
.locations {
  width: 60vw;
  margin: 0 auto;
  margin-top: -10vh;
  margin-bottom: 5vh;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.locations__cards {
  width: 26vw;
}
.locations__card {
  width: 100%;
  border-radius: 0.25rem;
  color: #fff;
  perspective: 90em;
  cursor: pointer;
}
.locations__card__inner {
  width: 100%;
  height: auto;
  position: relative;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition: transform 1000ms ease;
  transform-style: preserve-3d;
}
.locations__card:hover .locations__card__inner {
  transform: rotateY(-0.5turn);
}
.locations__card__front,
.locations__card__back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.locations__card__back {
  transform: rotateY(0.5turn);
}
.locations__card__body {
  padding: 4vh 2vw;
  padding-top: 2vh;
  width: 100%;
  height: max-content;
  background-position: center center;
  background-size: cover;
  position: relative;
  border-radius: 0.25rem;
}
.locations__card__body::after {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
  border-radius: 0.25rem;
  z-index: 0;
  background-color: rgb(0, 0, 0, 0.2);
}
.locations__card__body--mobile {
  opacity: 0;
  visibility: hidden;
}
.locations__card__front > .locations__card__body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  width: 100%;
  height: 100%;
}
.locations__card__back > .locations__card__body::after {
  background-color: rgb(210, 151, 35, 0.8);
}
.locations__card--france {
  margin-bottom: 4vh;
}
.locations__card--france .locations__card__body {
  background-image: url('../assets/img/img-contact-3.jpg');
}
.locations__card--ivory .locations__card__body {
  background-image: url('../assets/img/img-contact-4.png');
  padding: 4vh 2vw;
}
.locations__card__country {
  width: max-content;
  margin: 0 auto;
  font-size: 2.7em;
  font-weight: 500;
  margin-bottom: 1vh;
  position: relative;
  z-index: 100;
  transform: translateZ(4rem);
}
.locations__card__phone,
.locations__card__mail {
  font-size: 1.1em;
  font-weight: 500;
  display: block;
  width: max-content;
  color: #fff;
  position: relative;
  z-index: 100;
  transform: translateZ(4rem);
}
.locations__card__mail {
  margin-bottom: 2vh;
}
.locations__card__phone:hover,
.locations__card__mail:hover {
  text-decoration: underline;
}
.locations__card__locals {
  width: 100%;
  display: flex;
  padding: 2vh 0;
  justify-content: space-between;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: 2vh;
  font-size: 0.9em;
  position: relative;
  z-index: 100;
  transform: translateZ(4rem);
}
.locations__card__locals > p {
  font-weight: 300;
}
.locations__card__locals > p > strong {
  font-weight: 500;
}
.locations__map {
  width: 32vw;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

.locations__map > iframe {
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 1024px) {
  .locations__card__front,
  .locations__card__back {
    display: none;
  }
  .locations__card__body--mobile {
    opacity: 1;
    visibility: visible;
  }
  .locations__card:hover .locations__card__inner {
    transform: rotateY(0turn);
  }
  .locations__card__body::after {
    background-color: rgb(0, 0, 0, 0.4);
  }
}

@media only screen and (max-width: 768px) {
  .contact-form {
    padding-bottom: 20vh;
  }
  .contact-form__container {
    width: 85vw;
  }
  .contact-form__title {
    font-size: 1.8em;
  }
  .contact-form__inner {
    align-items: flex-start;
  }
  .contact-form__form {
    width: 85%;
    height: max-content;
  }
  .contact-form__input {
    padding: 1vh 2vw;
    margin-bottom: 1vh;
  }
  .contract-form__two-inputs {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }
  .contact-form__textarea {
    padding: 1vh 2vw;
    margin-bottom: 1vh;
  }
  .contact-form__captcha {
    flex-wrap: wrap;
  }
  .contact-form__captcha > .contact-form__input {
    width: 100%;
    min-width: 100%;
    margin-right: 0;
  }
  .contact-form__captcha__refresh {
    width: 8vw;
    height: 8vw;
    margin-left: 2vw;
  }
  .contract-form__two-inputs > .contact-form__input,
  .contact-form__captcha > .contact-form__input {
    margin-bottom: 1vh;
  }
  .contact-form__submit {
    padding: 1vh 3vw;
  }
  .contact-form__networks {
    width: 10%;
  }
  .contact-form__network {
    width: 5vw;
    height: 5vw;
    margin: 3vh 0;
  }
  .contact-form__network__line {
    width: 5vw;
  }
  .locations {
    width: 85vw;
    display: block;
  }
  .locations__cards {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3vw;
    align-items: stretch;
    margin-bottom: 6vh;
  }
  .locations__card__body {
    padding: 2vh 4vw !important;
  }
  .locations__card--france {
    margin-bottom: 0;
  }
  .locations__card__country {
    font-size: 2.4em;
    transform: translateZ(0);
  }
  .locations__card__phone,
  .locations__card__mail {
    font-size: 1.1em;
    transform: translateZ(0);
  }
  .locations__card__mail {
    margin-bottom: 1.5vh;
  }
  .locations__card__locals {
    width: 100%;
    display: block;
    padding: 1.5vh 0;
    margin-bottom: 1.5vh;
    font-size: 1em;
    transform: translateZ(0);
  }
  .locations__card__locals > p {
    font-weight: 300;
  }
  .locations__card__locals > p > strong {
    font-weight: 500;
  }
  .locations__map {
    width: 100%;
    height: 30vh;
  }
}

@media only screen and (max-width: 420px) {
  .locations {
    width: 90vw;
  }
  .locations__cards {
    column-gap: 2vw;
  }
}
