/* Base styles */
body, html {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: #fefefe;
  color: #333;
}

/* Typography */
.hero h1, .features h2, .contact h2, .logo span {
  font-family: 'Lora', serif;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #6D4C41;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  animation: logoFadeIn 1s ease-out forwards;
  animation-delay: 0.3s;
}

.logo img {
  height: 55px;
  width: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.logo span {
  font-size: 1.5rem;
  color: white;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #4CAF50, #81C784);
  color: white;
}

.hero h1,
.hero p,
.hero .btn {
  opacity: 0;
  transform: translateY(40px);
  animation-fill-mode: forwards;
  animation-duration: 1s;
  animation-timing-function: ease-out;
}

/* Ensuite les delays individuels */
.hero h1 {
  animation-name: fadeSlideIn;
  animation-delay: 0.2s;
}

.hero p {
  animation-name: fadeSlideIn;
  animation-delay: 0.5s;
}

.hero .btn {
  animation-name: fadeSlideIn;
  animation-delay: 0.8s;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Features Section */
.features {
  padding: 3rem 2rem;
  background: #fff;
  text-align: center;
}

.features .definition {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-card {
  position: relative;
  width: 300px;
  background: #f4f4f4;
  border-left: 4px solid #4CAF50;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  padding: 1.5rem;
  text-align: left;
  cursor: default;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.service-card .description {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.service-card:hover .description {
  max-height: 300px;
  opacity: 1;
}


.grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border: 1px solid #4CAF50;
  border-radius: 8px;
  color: #4CAF50;
  width: 250px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Contact Section */
.contact {
  padding: 3rem 2rem;
  background: #e0e0e0;
  text-align: center;
}

.contact form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Open Sans', sans-serif;
}

.contact button {
  padding: 1rem;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact button:hover {
  background: #388E3C;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #6D4C41;
  color: #fff;
}

/* Animations */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

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

  .card {
    width: 80%;
  }

  .contact form {
    width: 100%;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  footer p {
    font-size: 0.9rem;
  }
}


/* Actualités et articles */
.blog-article {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem;
  background: #f9f9f9;
  border-left: 4px solid #4CAF50;
  border-radius: 8px;
}

.article-thumb {
  width: 100px;
  height: auto;
  border-radius: 4px;
}

.article-content h3 {
  margin: 0 0 0.5rem;
}

.article-content em {
  font-size: 0.9rem;
  color: #555;
}


.blog, .archive {
  padding: 3rem 2rem;
  background: #fff;
  text-align: center;
}

.blog-archive-list .card {
  display: flex;
  gap: 1rem;
  margin: 1rem auto;
  padding: 1rem;
  max-width: 700px;
  background: #f9f9f9;
  border-left: 4px solid #4CAF50;
  border-radius: 8px;
}


.blog-preview, .blog-archive-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.blog-preview .card, .blog-archive-list .card {
  max-width: 600px;
  text-align: left;
  padding: 1.5rem;
  background: #f4f4f4;
  border-radius: 8px;
  border-left: 5px solid #4CAF50;
}

/* carousel du blog */
#carousel-container {
  max-width: 700px;
  margin: 2rem auto;
}

.carousel-slide:hover {
  background: #e0f2f1;
}

.carousel-slide img {
  width: 90px;
  height: auto;
  border-radius: 6px;
}

.carousel-slide h3 {
  margin-bottom: 0.5rem;
}
.carousel-wrapper {
  position: relative;
  max-width: 700px;
  margin: 2rem auto;
  overflow: hidden;
}

.carousel-slide {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
  border-radius: 10px;
  background: #f7f7f7;
  border-left: 4px solid #4CAF50;
  opacity: 0;
  transition: opacity 0.6s ease;
  max-width: 700px;
  margin: 1rem auto;
}

.carousel-slide.show {
  opacity: 1;
}

.carousel-slide img {
  width: 90px;
  height: auto;
  border-radius: 6px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(76, 175, 80, 0.8);
  color: white;
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.carousel-nav.prev {
  left: -10px;
}

.carousel-nav.next {
  right: -10px;
}

.carousel-nav:hover {
  background: #388e3c;
}


/* Bouton de prise de rendez-vous */
.btn-appointment {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

/* Bouton fixe lors du défilement */
.btn-appointment.fixed {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 5px;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-container form {
  flex: 1;
  min-width: 300px;
  margin-right: 20px;
}

.map-container {
  flex: 1;
  min-width: 300px;
}

/* Photo profil */
.about {
  padding: 3rem 2rem;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
}

.about-container {
  display: flex;
  max-width: 1000px;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-photo {
  flex-shrink: 0;
  width: 220px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-photo:hover img {
  transform: scale(1.05);
}


.about-text {
  flex: 1;
  font-size: 1.1rem;
  text-align: left;
  max-width: 650px;
}

.about-text h2 {
  font-family: 'Lora', serif;
  color: #4CAF50;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-photo {
    width: 180px;
  }
}

/* Bouton prise de rdv */
.btn-doctolib {
  background-color: #0074E4;
  color: #fff;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-doctolib:hover {
  background-color: #005bbd;
}

.btn-icon {
  width: 26px;
  height: 26px;
  margin-right: 0.7rem;
  object-fit: contain;
}

.main-cta.fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.main-cta.fixed .btn-icon {
  width: 20px;
  height: 20px;
}


