/* Base responsive styles */
@media screen and (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1, .text-6xl {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }

  h2, .text-5xl {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  h3, .text-4xl {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }

  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .py-16 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .gap-12 {
    gap: 2rem !important;
  }

  .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1.5rem !important;
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  h1, .text-6xl {
    font-size: 2rem !important;
  }

  h2, .text-5xl {
    font-size: 1.75rem !important;
  }

  h3, .text-4xl {
    font-size: 1.5rem !important;
  }

  .px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-8 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .gap-8 {
    gap: 1.5rem !important;
  }
}

/* Improve image responsiveness */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive grid layouts */
.grid {
  display: grid;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media screen and (max-width: 767px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive navigation */
@media screen and (max-width: 768px) {
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-menu a {
    color: white;
    font-size: 1.25rem;
    margin: 1rem 0;
  }
}

/* Responsive swiper */
@media screen and (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
  }
}
/* Styles de base */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f3f3f3;
  scroll-behavior: smooth;
}

/* Menu mobile amélioré */
@media (max-width: 768px) {
  #mobileMenu {
    top: 100%; /* Position sous le header */
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  /* Ajustement des titres pour mobile */
  h2.text-6xl {
    font-size: 2.5rem !important;
  }

  .text-4xl {
    font-size: 2rem !important;
  }

  /* Ajustement des espacements */
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Amélioration des cartes de services */
  .grid-cols-1 > div {
    margin-bottom: 1rem;
  }
}

/* Section des statistiques responsive */
.services-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #004d26;
  padding: 2rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .services-stats {
    padding: 1.5rem 0.5rem;
  }

  .stat-item {
    width: 50%;
    margin: 1rem 0;
  }

  .stat-item .number {
    font-size: 2rem;
  }

  .stat-item p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
  }
}

/* Amélioration du sélecteur de langue pour mobile */
@media (max-width: 768px) {
  #language-dropdown {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  #language-menu {
    right: 0;
    width: 120px;
  }
}

/* Bouton retour en haut ajusté pour mobile */
@media (max-width: 768px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 15px;
    right: 15px;
  }
}