body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* --- SECTION HEADER & MAIN --- */
main {
  padding: 50px;
  height: 20em;
  background-image: url("./pngtree-a-doctor-in-white-coat-holding-medical-clipboard-and-stethoscope-on-image_16019278.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover; /* s'adapte mieux à toutes tailles d'écran */
  color: #000000;
}

.topnav {
  background-color: #3852a8cc;
  color: white;
  overflow: hidden;
  padding: 1.2em 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Permet de passer sur 2 lignes sur petits écrans */
}

.link_nav {
  color: white;
  margin: 1em 2em;
  text-decoration: none;
}

.link_nav:hover {
  text-decoration: underline;
}

/* --- SECTION À PROPOS --- */
.about_me {
  margin: 4em 15em;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

p {
  color: rgb(56, 82, 168);
}

/* --- SECTION MAP + ADRESSE --- */
.maping {
  margin-top: 3em;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2em;
}

.map {
  width: 40%;
  object-fit: cover;
}

.address {
  width: 40%;
  font-size: 1.5em;
  text-align: left;
  color: rgb(56, 82, 168);
}

/* --- SECTION RENDEZ-VOUS --- */
.prendre_rendez_vous {
  background-color: #3852a8cc;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2em;
  padding: 1em;
}

.rdv_link {
  margin: 0.5em;
  padding: 0.5em 1em;
  background-color: #abc0f8cc;
  border-radius: 12px;
  color: white;
  text-decoration: none;
}

.rdv_link:hover {
  background-color: #2c354dcc;
}

/* ------------------------------------------------------
   ✅ MEDIA QUERIES POUR TABLETTES ET TÉLÉPHONES
------------------------------------------------------ */

/* Tablettes (jusqu'à 992px de large) */
@media (max-width: 992px) {
  .about_me {
    margin: 2em 5em;
    font-size: 1.2em;
  }

  .maping {
    flex-direction: column;
    align-items: center;
  }

  .map, .address {
    width: 80%;
    text-align: center;
  }
}

/* Téléphones (jusqu'à 600px de large) */
@media (max-width: 600px) {
  main {
    padding: 20px;
    height: auto;
    background-position: center;
  }

  h1 {
    font-size: 1.6em;
  }

  .tagline {
    font-size: 1em;
  }

  .topnav {
    flex-direction: column;
    align-items: center;
  }

  .link_nav {
    margin: 0.5em 0;
  }

  .about_me {
    margin: 2em 1em;
    font-size: 1em;
  }

  .maping {
    flex-direction: column;
    gap: 1em;
  }

  .map, .address {
    width: 90%;
  }

  .address {
    font-size: 1.1em;
    text-align: center;
  }

  .prendre_rendez_vous {
    padding: 0.8em;
  }

  .rdv_link {
    font-size: 1em;
  }
}
