/* Box-sizing globale */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Styles Globaux */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #333;
  color: #fff;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-container {
  display: flex;
  align-items: center;
}
.logo-container img {
  height: 40px;
  margin-right: 10px;
}
.site-title {
  font-size: 1.25rem;
  font-weight: bold;
}
nav ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}
nav ul.menu li {
  margin-left: 20px;
}
nav ul.menu li a, .logo-container a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
nav ul.menu li a:hover {
  color: #f39c12;
}

/* Espace pour le contenu principal */
main {
  margin-top: 80px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: #f0f0f0;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}
.hero .cta {
  background: #333;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 3px;
  font-size: 1.1rem;
  display:block;
  max-width:500px;
  margin:auto !Important;
}

/* SERVICES */
.services {
  padding: 40px 20px;
  text-align: center;
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.service {
  flex: 1 1 200px;
  max-width: 250px;
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s;
}
.service:hover {
  background: #f8f8f8;
}
.service i {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Détails des Services */
.service-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.service-detail .text {
  flex: 1 1 300px;
  padding: 20px;
}
.service-detail img {
  flex: 1 1 300px;
  width: 100%;
  max-width: 500px;
  height: auto;
max-height: 650px;
object-fit: cover;
}
.service-detail.reverse {
  flex-direction: row-reverse;
}

/* GALLERY */
.gallery {
  padding: 40px 20px;
  text-align: center;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur grand écran */
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Liens contenant les images */
.grid a {
  display: block;
  width: 100%;
  transition: transform 0.3s ease-in-out;
}

.grid a:hover {
  transform: scale(1.05); /* Effet zoom au survol */
}

/* Images */
.grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur tablette */
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(1, 1fr); /* 1 colonne sur petits écrans */
  }
}



/* TESTIMONIALS */
.testimonials {
  padding: 40px 20px;
  text-align: center;
}
.testimonial-slider {
  margin: 0 auto;
  max-width: 1200px;
}
.testimonial {
  padding: 20px;
  font-style: italic;
}
.testimonial span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #f39c12;
}

/* CONTACT (FULL WIDTH) */
.contact-section {
  padding: 40px 0;
  width: 100%;
  background: #f9f9f9;
}
.contact-section h2 {
  text-align: center;
  margin-bottom: 20px;
}
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.contact-form {
  flex: 1 1 300px;
  max-width: 500px;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  width: 100%;
}
.contact-form button {
  padding: 10px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
}
.contact-info {
  margin-top: 20px;
}
.contact-info h3 {
  margin-bottom: 10px;
}
.contact-info p {
  margin: 5px 0;
}
.contact-info a {
  color: inherit;
  text-decoration: none;
}

/* MAP */
.contact-map {
  flex: 1 1 300px;
  max-width: 500px;
}

/* FOOTER */
footer {
  background: #333;
  color: #fff;
  padding: 40px 20px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-column {
  flex: 1 1 200px;
  max-width: 300px;
}
.footer-column h3 {
  margin-bottom: 15px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column ul li {
  margin: 10px 0;
  display: flex;
  align-items: center;
}
.footer-column ul li i {
  margin-right: 10px;
}
footer a {
  color: #fff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* BOUTON STICKY */
.sticky-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: red;
  color: #fff;
  padding: 15px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.sticky-button:hover {
  background: darkred;
}

/* Service-detail en 50/50 avec alternance */
.service-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.service-detail .text,
.service-detail img {
flex: 0 0 50%;
max-width: 50%;
max-height: 650px;
object-fit: cover;
}

/* Pour les sections en mode reverse (texte à droite, image à gauche) */
.service-detail.reverse {
  flex-direction: row-reverse;
}

/* Assurer que les images s'adaptent bien */
.service-detail img {
  width: 100%;
  max-width: 100%;
  max-height: 650px;
  height: auto;
  object-fit: cover; /* Assure un bon affichage sans distorsion */
  display: block;
}

/* Responsive (pour écrans plus petits, passage en colonne) */
@media (max-width: 768px) {
  .service-detail .text,
  .service-detail img {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .services-grid {
    flex-direction: column;
  }
  .service-detail,
  .service-detail.reverse {
    flex-direction: column;
  }
  .contact-container {
    flex-direction: column;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .service, .contact-form, .contact-map {
    max-width: none;
}
}
/* Container du logo */
.logo-container {
  display: flex;
  align-items: center; /* Alignement vertical au centre */
  gap: 10px; /* Espacement entre le logo et le texte */
}

/* Lien qui englobe le logo et le texte */
.logo-container a {
  display: flex;
  align-items: center; /* Assure que l’image et le texte sont bien alignés */
  text-decoration: none;
  color: inherit;
}

/* Image du logo */
.logo-container img {
  height: 50px; /* Ajustez selon la taille souhaitée */
  width: auto;
}

/* Texte du titre */
.site-title {
  font-size: 1.25rem;
  font-weight: bold;
  white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

