* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
  }
  
                                                                           /* ====== HEADER ====== */
  header {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    padding: 15px 5%;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .header-container{
    display: grid;
    grid-template-columns: 20% 20% 10%;
    column-gap: 20%;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .header-container a{
    text-decoration: none;
  }
  
  .header-container h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 1.5rem;
    color: #333;
  }

  .header-container h1 span{
     font-family: 'Parisienne', cursive;
    color: #0915c2;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
  }
  
  nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }
  
  nav a:hover {
    color: #d9912c;
  }

  .btn-rdv {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  text-align: center;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(79, 70, 229, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-rdv::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.5),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-rdv:hover::after {
  left: 100%;
}

.btn-rdv:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.5);
}
  
                                                                                          /* ====== HERO ====== */
  .hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
  }
  
  .hero-image img {
    width: 100%;
    height: 100vh;
    object-fit: cover;

  }
  
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
    position: relative;
    z-index: 2;
  }

  .hero-text-content {
    background: rgba(202, 179, 233, 0.479);
    padding: 2rem;
    border-radius: 12px;
    max-width: 80rem;
    margin-right: -10rem;
    margin-left: 10rem;
  }

  .hero-text-content-color{
    color: #7f79a0a2;
  }
  
  .hero-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    padding: 0.5rem;
  }
  
  .hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    color: #333;
    padding: 0.5rem;
  }

  /* ====== divider ====== */

  .section-divider {
  position: relative;
  text-align: center;
  margin: 3rem 0;
}

.section-divider::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, #d48806, #b87924);
  margin: 1rem auto;
  border-radius: 5px;
}

                                                                                       /* ====== services ====== */

  .services {
  padding: 4rem 2rem;
  background: #f9f9f9;
  text-align: center;
}

.services-titre h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #b792e7;
}

.services-titre p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.services-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5rem;
  flex-direction: row;
}

.services-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s; 
  background-color: #0915c2;
}

.services-card:hover .services-card-inner {
  transform: rotateY(180deg); 
}

.services-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 200px;
  height: 300px;
  perspective: 1000px;
}

.services-card h2 {
  padding: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.services-card-front, .services-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.services-card-front {
  background: #1e3b8a70;
  transform: rotateY(0deg);
}


.services-card-back {
  background: #dc2626; 
  transform: rotateY(180deg);
  padding: 0.5rem;
}

.services-card-img{
  transition: transform 0.8s ease, box-shadow 0.3s ease;
  height: 60vh;
}

.services-card-img:hover {
  transform: scale(1.05);
}

.services-card-img img {

  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.services-card-text{
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 2px solid #03023d;
  width: 60%;
  margin-top: -20%;
  z-index: 2;
  height: 15vh;
}

.services-card-text h2{
  font-weight: 100;

}



                                                                                          /* ====== Cabinet ====== */

  .cabinet {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 2rem;
    padding: 3rem;
  }

  .cabinet-titre {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .cabinet-titre h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #b792e7;
  }

  .cabinet-text {
    width: 60%;
    margin-top: 5%;
    text-align: center;
  }

  .cabinet-presentation{ 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 20rem;
  }

  .doctors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  }

  .doctor {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .doctor:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  }

  .doctor h2 {
    color: #4f46e5;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .specialty {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .review {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    width: 100%;
  }

  .review .author {
    font-weight: bold;
    color: #333;
  }

  .review .rating {
    color: #fbbf24; /* jaune pour les étoiles */
    font-size: 0.9rem;
  }

  .review .text {
    color: #555;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .btn-google {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: #4285F4; /* bleu Google */
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-google:hover {
  background: #3367d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


                                                                        /* ====== FOOTER ====== */

  .bas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #110549c9;
    padding: 2rem;
  }

  .bas-titre {
    margin: 2rem;
  }

  .bas-titre h2{
    text-align: center;
    color: #fff;
  } 

  .bas-card {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
  }
  .bas-card div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: aliceblue;
    width: 30%;
    height: 10vh;
    transition: transform 0.5s ease;
  }

  .bas-card div:hover {
    transform: scale(1.1);
  }

  /* ================= MOBILE ================= */
@media (max-width: 768px) {

  /* TYPO GLOBALE MOBILE */
  h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 4vw, 1.9rem); }
  h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
  p  { font-size: clamp(0.9rem, 2.5vw, 1rem); }

  header {
    padding: 10px 5%;
  }

  .header-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .btn-rdv {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* HERO */
  .hero {
    position: relative;
    flex-direction: column;
  }

  .hero-image img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }

  .hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }

  .hero-text-content {
    background: rgba(255,255,255,0.85);
    margin: 0;
    max-width: 90%;
    text-align: center;
    padding: 1.2rem;
  }

  .hero-text h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* SERVICES */
  .services-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  }

  .services-card {
    width: 150px;
    height: 80px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .services-card-inner {
    transform: none !important;
    transition: none;
  }

  .services-card-front {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1.5rem;
  }

  .services-card-back {
    display: none;
  }

  .services-card h2 {
    color: #4f46e5;
  }

  /* SERVICES TEXTE MOBILE */
.services h2 {
  font-size: 1.2rem;
}

.services p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.services-card h2 {
  font-size: 1.1rem;
}

.services-card p {
  font-size: 0.85rem;
}

.services-titre h2 {
  font-size: 1.6rem;
}

.services-titre p {
  font-size: 1rem;
}

  /* CABINET */
  .cabinet {
    padding: 1rem;
  }

  .cabinet h2 {
    font-size: 1.6rem;
  }

  .cabinet-text {
    width: 100%;
  }

  .cabinet-presentation {
    flex-direction: column;
    gap: 2rem;
    
  }

  .cabinet-presentation h2 {
    font-size: 1.1rem;
  }

  .cabinet-presentation p {
    font-size: 0.85rem;
  }

  .cabinet-presentation-texte p {
    font-size: 0.4rem;
  }

  .cabinet-presentation a {
    font-size: 0.85rem;
    text-align: center;
  }

  /* FOOTER */
  .bas-card {
    flex-direction: column;
    gap: 1rem;
  }

  .bas-card div {
    width: 90%;
    height: auto;
    padding: 1rem;
  }
}
  