@import url('https://fonts.googleapis.com/css?family=Varela+Round');

body {
  background-color: #e0d2b8;
  text-align: center;
  font-family: Arial;
  color: #4a4b4b;
  font-size: 16px;
}

h1 {
  display: inline-block; /* Ajoute cette ligne pour que le background soit autour du texte */
  font-size: 40px;
  font-family: 'Varela Round', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  margin: 5px 0 20px 0;
  background-color: #6baaaa;
  color: #ffffff;
  font-weight: bold;
  padding: 5px 5px; /* Ajoute du padding pour un meilleur rendu */
}

h2 {
  font-size: 1.4em;
  font-family: 'Varela Round', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0.1rem;
  margin-bottom: 1.6em;
}

p {
  margin: 0 auto 0 auto;
  color: #4a4b4b;
  font-size: 18px;
  line-height: 1.5em;
  max-width: 680px; /* Ajoute une largeur maximale pour les paragraphes */
  text-align: justify;
}

.illustration {
  display: block;
  height: 250px;
  margin: 0 auto;
}

ul.social {
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

ul.social li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.text-green-highlight {
  color: #6baaaa;
  font-weight: bold;
}

ul.social li a {
  display: block;
  width: 48px;
  height: 48px;
  background: #fff;
  margin-right: 1em;
  font-size: 1.2em;
  line-height: 48px;
  border-radius: 499em;
  color: #313131;
  margin-bottom: 0.5em;
}

ul.social li a:hover {
  color: #fff;
  background: #35c2be;
}

.container {
  max-width: 1000px; /* Limite la largeur à 1200px */
  margin: 0 auto 20px auto; /* Centre la section */
  padding: 0 20px; /* Ajoute un peu de padding sur les côtés */
}

/* Amélioration de la grille des services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  padding: 0;
}

/* Remplacement des service-tile par service-card */
.service-card {
  background: #ffffff;
  border: 2px solid #e0d2b8;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(107, 170, 170, 0.2);
  border-color: #6baaaa;
}

.service-card:hover .service-icon i {
  transform: scale(1.1);
  color: #6baaaa;
}

.service-icon {
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-icon i {
  font-size: 3rem;
  color: #6baaaa;
  transition: all 0.3s ease;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #4a4b4b;
  margin-bottom: 1rem;
  font-family: 'Varela Round', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.05rem;
}

.service-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: none;
  text-align: center;
}

/* Suppression des anciens styles service-tile */
.service-tile {
  display: none;
}

/* Responsive pour les services */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-icon i {
    font-size: 2.5rem;
  }
  
  .service-card h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .service-card {
    padding: 1.2rem;
  }
  
  .service-icon i {
    font-size: 2rem;
  }
  
  .service-card h3 {
    font-size: 1.1rem;
  }
  
  .service-card p {
    font-size: 0.9rem;
  }
}

.container {
  margin-top: 20px;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 8px;
}

ul {
  list-style: none; /* Supprime les puces par défaut */
  padding: 0;
  margin: 20px auto; /* Centre la liste */
  max-width: 680px; /* Limite la largeur de la liste pour correspondre aux paragraphes */
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Deux colonnes de largeur égale */
  gap: 20px; /* Espace entre les éléments de la liste */
}

ul li {
  margin: 10px 0; /* Espace entre les éléments de la liste */
  padding: 10px 15px; /* Padding à l'intérieur des éléments de la liste */
  display: flex; /* Utilisation de flexbox pour aligner les éléments */
  align-items: center; /* Aligne les éléments verticalement au centre */
  text-align: left;
  color: #4a4b4b;
}

ul li i {
  margin-right: 10px; /* Ajustez cette valeur selon vos besoins */
  font-size: 30px;
}

.logo-container {
  top: 0;
  z-index: 1000; /* Assurez-vous que le logo reste au-dessus des autres éléments */
}

.sticky-logo {
  max-width: 300px; /* Taille initiale du logo */
  transition: width 0.3s ease; /* Transition pour le redimensionnement */
}

.logo-container .illustration {
  width: 100%; /* Le logo prendra toute la largeur de son conteneur */
  max-width: 700px; /* Taille maximale du logo */
  height: auto; /* Maintient le ratio d'aspect */
}

.tarifs-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Deux colonnes de largeur égale */
  gap: 20px; /* Espace entre les colonnes */
  align-items: center; /* Aligne les éléments verticalement au centre */
}

.tarifs-text {
  font-size: 1.1em;
  line-height: 1.5em;
}

.tarifs-image img {
  max-width: 100%;
  border-radius: 8px; /* Ajoute des coins arrondis à l'image */
}

@media only screen and (max-width: 1020px) {
  body {
    padding-top: 3em;
    padding-left: 2em;
    padding-right: 2em;
  }
  h1 {
    font-size: 2.6em;
  }
  h2 {
    font-size: 1.2em;
    letter-spacing: 0.2rem;
    margin-bottom: 2em;
  }
  p {
    max-width: 680px;
  }
}

@media only screen and (max-width: 768px) {
  body {
    padding-top: 1.6em;
  }
  h1 {
    font-size: 2.2em;
    letter-spacing: 0.2rem;
  }
  h2 {
    font-size: 1.1em;
    letter-spacing: 0.2rem;
  }
  p {
    margin-top: 1.5em;
    font-size: 1em;
  }
  ul.social li a {
    width: 38px;
    height: 38px;
    font-size: 1.1em;
    line-height: 39px;
    margin-right: 0.5em;
  }
  ul {
    grid-template-columns: 1fr; /* Une seule colonne */
  }
}

@media only screen and (max-width: 480px) {
  body {
    padding-left: 1em;
    padding-right: 1em;
  }
  h1 {
    font-size: 1.6em;
  }
  h2 {
    font-size: 0.9em;
  }
  p {
    margin-top: 1.5em;
    font-size: 0.9em;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

/* Media queries pour rendre la page responsive */
@media (max-width: 992px) {
  .service-tile {
    width: calc(50% - 40px); /* 2 colonnes avec un espace de 20px entre chaque tuile */
  }
}

@media (max-width: 768px) {
  .service-tile {
    width: calc(100% - 40px); /* 1 colonne avec un espace de 20px entre chaque tuile */
  }
}

.logo-fixed {
  position: fixed;
  top: 0;
  left: 0;
  padding: 10px;
  z-index: 1000; /* Assurez-vous que le logo reste au-dessus des autres éléments */
}

.small-logo {
  width: 300px; /* Taille réduite du logo */
  height: auto; /* Maintient le ratio d'aspect */
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 60%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.site-footer {
  width: 100%;
  background-color: #6baaaa; /* Couleur de fond distincte */
  color: #fff; /* Couleur du texte */
  padding: 20px 0;
  position: relative;
  bottom: 0;
  text-align: centrer;
}

.footer-content {
  max-width: 1000px; /* Utilisez la même largeur maximale que le div .container */
  margin: 0 auto;
  text-align: center;
  padding: 0 20px; /* Ajoutez du padding pour correspondre au div .container */
}

.footer-content p {
  margin: 5px 0;
}

.footer-content a {
  color: #fff;
  text-decoration: underline;
}

.footer-content a:hover {
  text-decoration: none;
}

.section {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}
.section-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #6baaaa;
  margin-bottom: 10px;
}
.section-content {
  font-size: 1em;
  text-align: justify;
  color: #4a4b4b;
}
.important {
  font-weight: bold;
  color: #cc0000;
}
.note {
  font-style: italic;
  color: #555;
  text-align: left;
  margin: 0;
}
