/* ==========================================================================
   COMPONENTS - SERVICES
   ========================================================================== */
.services {
  text-align: center;
}

.services__list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 120px;

  padding: 0 10px 20px;
}

.services__list li {
  width: 120px;
}

.services i {
  margin-bottom: 10px;
}

.services p {
  margin: 5px;
}

/* ==========================================================================
   COMPONENTS - CAROUSEL
   ========================================================================== */
.carousel {
  position: relative;
  height: 600px;
  color: black;
  background-color: black;
  justify-content: center;
  overflow: hidden;
}
.carousel__chevron-left,
.carousel__chevron-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 40px;
  opacity: 0;
  transition: all 0.3s;
}
.carousel:hover .carousel__chevron-left,
.carousel:hover .carousel__chevron-right {
  opacity: 1;
}
.carousel__chevron-left {
  left: 5px;
}
.carousel__chevron-right {
  right: 5px;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: all 0.5s;
}

.carousel__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.carousel__slide__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: var(--color-overlay);
  color: var(--color-text);
  z-index: 50;
}

.carousel__title {
  font-size: 80px;
  font-weight: 200;
}

.carousel__text {
  font-size: 28px;
  text-align: center;
}

.slide-in {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   COMPONENTS - EXPERTS
   ========================================================================== */
.our-experts {
  position: relative;
  /* padding-bottom: 30px; */
}

.hidden {
  display: none !important;
}

.experts {
  display: flex;
  gap: 20px;
  align-items: center;
  overflow-y: hidden;
  overflow-x: auto;
  width: 75%;
  margin: auto;
  margin-bottom: 50px;
  padding-bottom: 10px;
}

/*  Chrome, Safari, Edge */
.experts::-webkit-scrollbar {
  height: 10px;
  background-color: transparent;
}

.experts::-webkit-scrollbar-track {
  background-color: rgb(35, 35, 35);
  border-radius: 10px;
}

.experts::-webkit-scrollbar-thumb {
  background-color: var(--color-first);
  border-radius: 10px;
}
/* Firefox */
@-moz-document url-prefix() {
  .experts {
    scrollbar-width: auto;
    scrollbar-color: var(--color-first) rgb(35, 35, 35);
  }
}

.experts__description {
  text-align: center;
  font-size: 20px;
  color: var(--color-text-secondary);
  width: 75%;
  margin: 30px auto;
}

.experts__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.experts__card:hover {
  transform: scale(1.05);
}

.experts__card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.experts__card h3 {
  margin: 10px;
  font-size: 18px;
}

.experts__card .social-media {
  margin-left: 5px;
}

.experts__card i {
  margin-left: 5px;
  font-size: 20px;
}

.experts__card__description {
  display: flex;
  flex-direction: column;
  justify-content: start;
  text-align: start;
  word-wrap: break-word;
  margin-left: 15px;
}

.experts__card__description li:first-child {
  color: var(--color-first);
  display: inline;
  font-weight: bold;
  margin: 0 0 10px;
  font-size: 18px;
}

.experts__card__description li {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 5px;
}

.experts__card__description .fab {
  font-size: 20px;
  margin-right: 10px;
}

.experts__card__description .fab:hover {
  color: var(--color-first);
}

/* ==========================================================================
   COMPONENTS - MODAL
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: auto;
  background-color: var(--color-overlay);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  background-color: black;
  padding: 25px 30px;
  border: 1px solid var(--color-first);
  width: max-content;
  border-radius: 10px;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.5);
}

.modal-header {
  text-align: center;
  padding: 20px;
}

.modal-header .modal-pseudo {
  margin: 0;
  font-size: 30px;
}

.modal-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgb(67, 67, 67);
}

.modal-description {
  font-size: 18px;
  max-width: 500px;
}

.modal-description .expert-title {
  color: var(--color-first);
  font-size: 25px;
  margin: -30px 0 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  transition: transform 0.1s ease;
}

.close:hover,
.close:focus {
  color: white;
  cursor: pointer;
  transform: scale(1.1);
}

/* ==========================================================================
   COMPONENTS - CONTACT
   ========================================================================== */

.contact a {
  text-decoration: underline;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 35px;
}

.form {
  width: 100%;
  max-width: 550px;
}

.form label {
  display: block;
  color: var(--color-first);
  margin-bottom: 10px;
}

.form textarea,
.form input {
  background-color: #686868;
  border: 0;
  width: 100%;
  min-height: 40px;
  padding: 10px;
  color: var(--color-text);
  margin-bottom: 15px;
  font-size: 15px;
}

.form textarea {
  resize: none;
  height: 150px;
}

.form textarea:focus,
.form input:focus {
  outline: 2px solid var(--color-first);
  filter: brightness(1.1);
}

.form .button {
  cursor: pointer;
  width: 100%;
  min-height: 40px;
  margin-top: 20px;
  border: 0;
  background-color: var(--color-first);
  font-weight: bold;
  color: var(--color-text);
}

.form-description {
  text-align: justify;
  min-width: 350px;
  width: 500px;
  margin-top: 15px;
}
.form #inputCaptcha {
  margin-bottom: 0;
}
.captchaImg {
  width: 100%;
  height: 40px;
  margin-bottom: 15px;
}

.contact-success {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-first);
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 1.8rem;
  font-weight: bold;
}

/* ==========================================================================
   COMPONENTS - PRODUCTS
   ========================================================================== */
.products {
  padding: 40px 0;
}

.products__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding-bottom: 20px;
  text-align: center;
}

.products__list p {
  margin: 5px;
}

.products__link {
  display: block;
  color: inherit;
  width: 100%;
  height: 100%;
  padding: 5px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.products__link:hover {
  transform: scale(1.15);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

@media screen and (max-width: 768px) {
  /* Masquer la barre de défilement sur mobile */
  .experts {
    -ms-overflow-style: none; /* Pour Internet Explorer et Edge */
    scrollbar-width: none; /* Pour Firefox */
  }

  .experts::-webkit-scrollbar {
    display: none; /* Pour Chrome, Safari et Opera */
  }

  .carousel {
    height: 250px;
  }

  .carousel__slide__content {
    padding: 50px 20px 0;
    box-sizing: border-box;
  }

  .carousel__title {
    font-size: 35px;
    margin: 0;
    text-align: center;
  }

  .carousel__text {
    font-size: 15px;
  }

  .modal-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
  }

  .modal-description {
    text-align: center;
  }

  .modal-description .expert-title {
    margin: 0;
  }

  .modal-description li {
    text-wrap: wrap;
    margin: 15px 0;
  }

  .contact-container {
    flex-direction: column;
    padding: 0;
    gap: 0;
    width: 100%;
  }

  .form {
    max-width: 100%;
  }
  .form-description {
    min-width: auto;
    width: 100%;
  }

  .services__list {
    gap: 50px;
  }

  .services li div {
    margin: 0 20px;
  }

  .services p {
    font-size: 12px;
  }
}
