@import url("contactBanner.css");

/* Style de base */
body {
  background-color: #fff;
  height: auto;
}

section {
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 15px 15px -15px rgba(0, 0, 0, 0.1);
}

h1,
h2 {
  text-align: center;
  color: #333;
  font-size: 40px;
  color: var(--primary-color);
}

li {
  list-style: none;
}

/* Section de bienvenue */
.welcome-title {
  font-size: 4em;
  margin-bottom: 50px;
}

.highlight {
  color: black; /* Change la couleur à noir */
}

/* Conteneur texte-image */
.text-image-container {
  display: flex;
  flex-direction: row;
  /* flex-wrap: wrap; */
  justify-content: space-around; /* Assure l'espace entre texte et image */
  margin: 20px 10px 0 10px;
  min-height: 300px;
  gap: 32px;
}

.welcome-text,
.welcome-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 49%;
  margin: 10px 0;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Texte de bienvenue */
.welcome-text {
  justify-content: center;
  color: black;
  font-size: 1.2em;
  margin: 0;
}

/* Image de bienvenue */
.welcome-image {
  height: auto;
  margin: 0;
  padding: 0;
}

/* Section des services */
.services-section h2 {
  margin-bottom: 20px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
  margin: 10px 0;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card i {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.service-card h3 {
  margin: 10px 0;
  font-size: 24px;
}

.service-card p {
  margin: 10px 0;
  color: #666;
  font-size: 20px;
}

.service-card .price-home {
  font-weight: 600;
}

.service-card:hover {
  transform: scale(1.05); /* Zoom léger */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée */
}

/* Section des témoignages */
/* .testimonials {
  position: relative;
  overflow: hidden;
} */

.testimonials {
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 15px 15px -15px rgba(0, 0, 0, 0.1);
  display: block;
}

.testimonials h2 {
  margin-bottom: 20px;
}

.elfsight-app-b275199e-62f0-4b76-af77-46f9d09dc381 {
  display: block !important;
  min-height: 50px;
}

.testimonials-list {
  display: flex;
  overflow: hidden;
  flex-wrap: nowrap;
  justify-content: center;
  padding: 0;
  min-height: 185px;
}

.testimonials-list li {
  position: relative;
  flex: 0 0 400px;
  margin: 0 10px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
}

.testimonials-list li::before {
  content: "";
  position: absolute;
  bottom: -20px; /* Ajuster la position pour qu'elle touche le bas de la carte */
  left: 50%; /* Centrer la flèche */
  transform: translateX(-50%); /* Centrer horizontalement la flèche */
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff; /* Couleur de la bulle */
  border-radius: 0 0 8px 8px; /* Coins arrondis en bas */
}

.testimonials-list li strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.stars {
  color: var(--secondary-color);
  margin: 10px 0;
}

.carousel-controls {
  display: none;
}

.certification-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.certification-container:hover {
  transform: scale(1.05);
}

.stamp-container {
  position: relative;
  animation: stampEffect 1s ease-out;
}

.stamp-image {
  width: 60px;
  height: 60px;
  opacity: 0.8;
}

.certification-text {
  font-weight: bold;
  color: #4CAF50;
}

.certification-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.certificate-image {
  max-width: 100%;
  max-height: 80vh;
}

.close-modal {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

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

.cookie-banner.slide-out {
  transform: translateX(-100%);
  opacity: 0;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
}

.cookie-content p a {
  color: var(--primary-color, #0055ff);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

.cookie-accept {
  background-color: var(--primary-color, #0055ff);
  color: #fff;
}

.cookie-accept:hover {
  background-color: #0033cc;
}

.cookie-refuse {
  background-color: #e0e0e0;
  color: #333;
}

.cookie-refuse:hover {
  background-color: #ccc;
}

.cookie-customize {
  background-color: transparent;
  color: var(--primary-color, #0055ff);
  border: 1px solid var(--primary-color, #0055ff);
}

.cookie-customize:hover {
  background-color: rgba(0, 85, 255, 0.1);
}

.cookie-customize-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.cookie-customize-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
}

.cookie-customize-panel input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.cookie-save {
  background-color: var(--primary-color, #0055ff);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
}

.cookie-save:hover {
  background-color: #0033cc;
}

@media screen and (max-width: 600px) {
  .cookie-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 15px;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-buttons button {
    width: 100%;
    text-align: center;
  }
}

/* Lien de gestion des cookies dans le footer */
.cookie-settings-link {
  color: white;
  text-decoration: none;
  font-size: inherit;
}

.cookie-settings-link:hover {
  text-decoration: none;
}

/* Style pour le message de refus des cookies */
.cookie-message p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.cookie-message a.cookie-reopen {
  color: var(--primary-color, #136aad);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-message a.cookie-reopen:hover {
  color: #0f568a;
}

@keyframes stampEffect {
  0% {
    transform: scale(2) rotate(-30deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 0.8;
  }
}

/* Responsive Design */
@media (max-width: 1110px) {
  .testimonials-list li {
    flex: 1 0 250px;
  }
}

@media (max-width: 1024px) {
  .welcome-text {
    max-width: 45%;
    margin-bottom: 0px;
  }
  .welcome-title {
    font-size: 3em;
  }
}

@media (max-width: 960px) {
  .text-image-container{
    align-items: center;
    gap: 0;
    margin: 20px 0 0 0;
  }
  /* .welcome-text {
    max-height: 283px;
  } */
  .welcome-image {
    position: relative;
    top: 5px;
    max-height: 325px;
  }
  .testimonials-list li {
    flex: 1 0 200px;
  }
}

@media (max-width: 810px) {
  .testimonials-list li {
    flex: 1 0 180px;
  }
}

@media (max-width: 768px) {
  .text-image-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .welcome-text,
  .welcome-image {
    width: 100%;
    max-width: 100%;
  }

  .welcome-text {
    width: 95%;
    margin-bottom: 20px;
  }

  .welcome-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .services-container {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
  }

  .testimonials-list {
    flex-direction: column;
    align-items: center;
  }

  .testimonials-list li {
    flex: 1 1 auto;
    margin: 10px 0;
    width: 90%;
  }

  .text-image-container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1,
  h2 {
    font-size: 24px; /* Réduction de la taille des titres */
  }

  .text-image-container {
    flex-direction: column;
    align-items: center;
  }

  .welcome-text {
    font-size: 18px;
    width: 100%;
    max-width: 350px; 
  }

  .welcome-image {
    width: 390px;
  }

  .welcome-title {
    font-size: 2.3em;
    margin-bottom: 20px;
  }

  .testimonials-list li {
    padding: 10px;
  }
}

@media (min-width: 376px) and (max-width: 420px){
  .welcome-text {
    width: 87%;
  }
}

@media (max-width: 375px){
  .welcome-text {
    width: 87%;
  }
}
