/* Conteneur du grid sevices */
/* Conteneur général */
#services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 20px;
}

/* Carte individuelle */
.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Titre */
.service-card h2 {
  font-size: 1.4rem;
  background: #f4f4f4;
  padding: 1rem;
  margin: 0;
}

/* Carousel */
.service-carousel {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.service-carousel img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: none;
  transition: opacity 0.15s;
}

.service-carousel img.active {
  display: block;
}
/* --- Hover zoom pour images de service --- */
.servive img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service img:hover {
  transform: scale(2.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Boutons carousel */
.service-carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.5rem;
}

.service-carousel .prev { left: 10px; }
.service-carousel .next { right: 10px; }

/* Description */
.service-description {
  padding: 1rem;
  line-height: 1.5;
  max-height: 150px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.service-description.expanded {
  max-height: 1000px;
}

/* Bouton Lire plus */
.read-more {
  background: #007BFF;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.read-more:hover {
  background: #0056b3;
}

/* Bouton Calendly */
.contact-button {
  background: #28a745;
  color: #fff;
  text-decoration: none;
  text-align: center;
  display: block;
  padding: 0.5rem 1rem;
  margin: 0.5rem 1rem 1rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.contact-button:hover {
  background: #1e7e34;
}






/* === SERVICES GRID STYLE ISOLÉ === */
#services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.service-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #007bff;
}

.service-description {
  margin-top: 10px;
  line-height: 1.6;
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.service-description.expanded {
  max-height: none;
}

.read-more {
  background: #e1a409;
  color: #fff;
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  border-radius: 4px;
  margin-top: 5px;
}

.read-more:hover {
  background: #007bff;
}

.contact-button {
  display: inline-block;
  margin-top: 10px;
  background-color: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
}

.contact-button:hover {
  background-color: #0056b3;
}

/* Carousel spécifique pour services */
.service-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 6px;
}

.service-carousel img {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.service-carousel img.active {
  display: block;
}

.service-carousel button {
  position: absolute;
  top: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
  transform: translateY(-50%);
}

.service-carousel .prev {
  left: 5px;
}

.service-carousel .next {
  right: 5px;
}



/* --- Correction visibilité du bloc intro --- */
#intro {
  display: block;
  opacity: 1;
  visibility: visible;
  padding: 2rem;
}

.intro-non-refer,
.intro-invalid,
.intro-refer {
  display: block;
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 900px;
  text-align: center;
  color: #333;
}

.intro-non-refer h2,
.intro-invalid h2,
.intro-refer h2 {
  color: #00704A;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.intro-non-refer p,
.intro-invalid p,
.intro-refer p {
  font-size: 1.1rem;
  line-height: 1.6;
}
/* style.css */
/* Correction affichage intro */
.intro-default,
.intro-refer,
.intro-invalid {
  opacity: 1 !important;
  display: block !important;
  animation: fadeIn 0.8s ease;
}

/* Correction animations AOS */
[data-aos].aos-animate {
  opacity: 1 !important;
  transform: none !important;
}

/* Style fallback */
.cta-link {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: underline;
}
