* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
html {
  scroll-behavior: smooth;
}

.hero {
  position: relative;
  height: 100vh;
  background: url("doctor.jpg") center/cover no-repeat;
  color: #333;
  padding-bottom: 120px;
}

.hero-overlay {
  position: absolute;
  inset: 1;
  background: rgba(255, 255, 255, 0.85);
}

.hero-header {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
}

.logo {
  font-weight: bold;
  font-size: 22px;
  color: #39c6b8;
}
.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #444;
  font-size: 14px;
}
a:hover {
  color: rgb(1, 84, 83);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 120px 60px;
}

.hero-content h1 {
  font-size: 42px;
  line-height: 1.3;
}

.hero-content h1 span {
  color: #39c6b8;
  font-weight: bold;
}

.heartbeat {
  width: 120px;
  height: 2px;
  background: #39c6b8;
  margin: 25px 0;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #39c6b8;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  border-radius: 50px;
}
@media (max-width: 900px) {
  .booking {
    margin-top: -40px;
    padding: 20px;
    border-radius: 10px;
  }
}

.booking {
  background: #39c6b8;
  padding: 30px 60px;
  margin-top: -80px; /* 🔥 fait monter le bloc sur l’image */
  position: relative;
  z-index: 5;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  color: #fff;
  font-size: 12px;
  margin-bottom: 6px;
}

.field input,
.field select {
  padding: 10px;
  border: none;
  border-radius: 3px;
  font-size: 14px;
}

.booking-btn {
  padding: 12px;
  background: #2bb0a2;
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  border-radius: 3px;
  height: 42px;
}

.specialities-chain {
  padding: 80px 20px;
  background: #f7f7f7;
  text-align: center;
}

.specialities-chain h2 {
  font-size: 36px;
  color: #39c6b8;
  margin-bottom: 60px;
}

.chain-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
}

.circle {
  background: #fff;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.circle img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.circle:hover {
  transform: translateY(-10px);
}

.circle:hover img {
  transform: scale(1.2);
}

.circle p {
  font-size: 14px;
  color: #39c6b8;
  font-weight: bold;
}

/* Ligne entre cercles */
/* Ligne entre cercles */
.line {
  flex: 1;
  height: 6px; /* un peu plus épaisse pour style */
  background: linear-gradient(90deg, #39c6b8, #2bb0a2); /* dégradé horizontal */
  border-radius: 3px; /* arrondi sur les bords */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* légère ombre */
  margin: 0 -3px; /* pour que la ligne touche les cercles */
  position: relative;
  z-index: 1;
  transition: 0.3s;
}

/* Effet hover : la ligne “pulse” en couleur */
.circle:hover ~ .line,
.line:hover {
  background: linear-gradient(90deg, #2bb0a2, #39c6b8);
}
.line {
  flex: 1;
  height: 6px;
  background: #39c6b8;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2bb0a2, #39c6b8);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.chain-container:hover .line::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .chain-container {
    flex-direction: column;
  }
  .line {
    width: 4px;
    height: 60px;
    margin: -2px 0; /* ajuster la ligne verticale */
  }
}

.doctors-clinic {
  padding: 80px 20px;
  background: #f7f7f7;
  text-align: center;
}

.doctors-clinic h2 {
  font-size: 36px;
  color: #39c6b8;
  margin-bottom: 50px;
  font-weight: 600;
}

.doctors-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
}

.doctor-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 220px;
  text-align: center;
  cursor: pointer;
}

.doctor-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.doctor-info {
  padding: 15px;
}

.doctor-info h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
}

.doctor-info p {
  font-size: 14px;
  color: #39c6b8;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
  .doctors-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .doctors-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.latest-news {
  padding: 80px 20px;
  background: #f7f7f7;
  text-align: center;
}

.latest-news h2 {
  font-size: 36px;
  color: #39c6b8;
  margin-bottom: 50px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 300px;
  cursor: pointer;
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-info {
  padding: 15px;
  text-align: left;
}

.news-date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.news-info h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.news-info p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.footer {
  background: #222;
  color: #fff;
  padding: 60px 20px 20px;
  font-size: 14px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 22px;
  font-weight: bold;
  color: #39c6b8;
  margin-bottom: 15px;
}

.footer-column h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #39c6b8;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #39c6b8;
}

.footer-column p {
  margin-bottom: 8px;
  line-height: 1.5;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: invert(100%);
  transition: filter 0.3s;
}

.social-icons a:hover img {
  filter: invert(50%) sepia(1) saturate(5) hue-rotate(160deg);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 13px;
  color: #ccc;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-bottom {
    font-size: 12px;
  }
}

/* ===========================
   TABLETTE (≤ 1024px)
=========================== */
@media (max-width: 1024px) {
  /* HERO */
  .hero-header {
    padding: 20px 30px;
  }

  .hero-content {
    padding: 100px 30px;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  /* BOOKING */
  .booking {
    padding: 25px 30px;
    margin-top: -50px;
  }

  .booking-form {
    grid-template-columns: repeat(3, 1fr);
  }

  .booking-btn {
    grid-column: span 3;
  }

  /* SPECIALITIES */
  .circle {
    width: 100px;
    height: 100px;
  }

  .circle img {
    width: 42px;
    height: 42px;
  }

  /* DOCTORS */
  .doctors-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* NEWS */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   MOBILE (≤ 768px)
=========================== */
@media (max-width: 768px) {
  /* HEADER */

  /* HERO */
  .hero {
    height: auto;
    padding-bottom: 60px;
  }

  .hero-content {
    padding: 80px 20px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .heartbeat {
    width: 80px;
  }

  /* BOOKING */
  .booking {
    margin-top: 20px;
    border-radius: 12px;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .booking-btn {
    grid-column: span 1;
    width: 100%;
  }

  /* SPECIALITIES */
  .chain-container {
    flex-direction: column;
  }

  .line {
    width: 4px;
    height: 50px;
  }

  /* DOCTORS */
  .doctors-container {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    width: 100%;
    max-width: 320px;
  }

  /* NEWS */
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    width: 100%;
    max-width: 340px;
  }
}

/* ===========================
   SMALL MOBILE (≤ 480px)
=========================== */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 24px;
  }

  .btn {
    font-size: 16px;
    padding: 10px 22px;
  }

  .booking {
    padding: 20px;
  }
}

/* ===== BURGER ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #39c6b8;
  border-radius: 2px;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .burger {
    display: flex;
    z-index: 20;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px 0;
    display: none;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }

  .nav a {
    padding: 12px 0;
    margin: 0;
    color: #333;
    font-size: 16px;
  }

  .nav.active {
    display: flex;
  }
}
