body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}
.content-photo {
  max-height: 400px;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.content-photo img {
  width: 100%;
  display: block;
  max-width: 100%;
  margin: 0;
}
.content-photo h2 {
  position: absolute;
  z-index: 10;
  background: #258e57;
  color: #fff;
  padding: 10px;
  font-size: 2em;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  box-sizing: border-box;
}
header {
  background: #000; /* Rouge */
  color: #fff;
  padding: 10px 0;
}
header h1 {
  margin: 0;
  font-size: 2.5rem;
  text-align: center;
}
header p {
  text-align: center;
  margin: 5px 0;
  font-size: 1.2rem;
}
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 10px 0;
  flex-direction: row;
  flex-wrap: wrap;
}
nav ul li {
  margin: 0 15px;
}
nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding: 10px 15px;
  border: 2px solid #fff; /* Liseret autour des boutons */
  border-radius: 5px;
  transition: all 0.3s ease;
  background: transparent;
  font-size: 15px;
}
nav ul li a:hover {
  background: #fff;
  color: #000;
}
.hero-image {
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}
.hero-image h2 {
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 5px;
}
.intro, .services-details, .contact-info, .reparations-details, .urgence-details {
  text-align: center;
  padding: 20px 0;
}
.intro p {
  margin: 10px 0;
}
ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: left;
}
.center-button {
  margin-top: 20px;
}
.btn {
  text-decoration: none;
  background: #900;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  border: 2px solid #fff; /* Liseret autour des boutons */
}
.btn:hover {
  background: #fff;
  color: #900;
}
footer {
  background: #000;
  color: #fff;
  padding: 10px 0;
  text-align: center;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
}
footer p {
  max-width: 800px;
  margin: 0 auto;
  display: block;
  width: 100%;
}
footer a {
  color: #fff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
header a {
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1;
  gap: 5px;
  background: #0f0;
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 20px;
  font-weight: 700;
  max-width: max-content;
  margin: 0 auto;
}
header a span {
  font-size: 34px;
  line-height: 1;
}
.mail-contact {
  background: #000000;
  position: sticky;
  bottom: 0;
  padding: 15px;
  z-index: 1;
}
.mail-contact a {
  display: flex;
  background: #0F0;
  color: #000;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 100px;
  max-width: max-content;
  margin: 0 auto;
  padding: 10px;
  font-size: 20px;
  font-weight: 800;
}
iframe {
  width: 100%;
  max-width: 100%;
  display: block;
  margin-top: 2em
}
.fixed_phone {
  padding: 20px
}
/* Adaptation responsive pour les écrans plus petits */
@media screen and (max-width: 768px) {
  .menu {
    gap: 3px; /* Réduit l'espacement entre les boutons */
  }
  .menu a {
    padding: 5px 8px; /* Boutons légèrement plus petits */
    font-size: 0.8em; /* Texte encore plus petit */
  }
  .fixed_phone {
    position: fixed;
    background: #000;
    top: 0;
    padding: 10px 0 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    max-width: 100%;
    z-index: 1000;
    box-sizing: border-box;
  }
  nav {
    margin-top: 119px;
    width: 100%;
    box-sizing: border-box;
  }
  .intro .container {
    padding: 0 1em;
    margin: 0;
  }
  .services-preview .container {
    padding: 0 1em
  }
  header h1 {
    margin: 0 0 5px;
    font-size: 20px;
    line-height: 1;
    text-transform: uppercase;
  }
  .img_abs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .img_abs {
    height: 300px;
  }
  .menu {
    margin: 0 20px
  }
}
@media screen and (max-width: 480px) {
  .menu {
    /* flex-direction: row; */ /* Les boutons s'empilent verticalement */
    /* Alignement centré des boutons */
    gap: 10px; /* Espacement vertical entre les boutons */
    margin: 0;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: scroll;
    justify-content: flex-start;
    padding: 0 1em;
  }
  .menu a {
    width: 100%; /* Boutons prennent une largeur adaptée au mobile */
    text-align: center; /* Texte centré dans chaque bouton */
    font-size: 15px;
    display: flex;
    box-sizing: border-box;
  }
  .pano h2 {
    font-size: 20px;
  }
  .diapo h2 {
    font-size: 20px;
  }
  footer {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 1em;
    border-radius: 0;
  }
  .content-photo h2 {
    font-size: 15px;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  nav ul li a {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    text-transform: uppercase;
    border: 2px solid #0f0;
    background: transparent;
  }
  .hero-image h2 {
    font-size: 22px;
    max-width: 70%;
    text-transform: uppercase;
    line-height: 1.2;
  }
}