/* Styles généraux pour mobile */
@media screen and (max-width: 768px) {
  /* Ajustements texte */
  h1, h2, h3 {
    font-size: 1.5rem !important;
  }
  
  h4, h5, h6 {
    font-size: 1.2rem !important;
  }
  
  p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
  
  /* Ajustement des boutons */
  .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Ajustement de l'image de fond du hero */
  section[style*="background-image"] {
    background-size: cover !important;
    height: auto !important;
    min-height: 70vh !important;
  }
  
  /* Ajuster la marquee et le texte défilant */
  .marquee {
    background-color: rgba(255, 255, 255, 0.7) !important;
    padding: 10px !important;
  }
  
  .display-1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }
  
  /* Optimisation des colonnes */
  .row > [class*="col-"] {
    margin-bottom: 15px !important;
  }
  
  /* Adaptation des boutons dans la bannière */
  .marginbutton .btn {
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
  }
  
  .d-flex.gap-3.marginbutton {
    flex-direction: column !important;
  }
  
  /* Correction du footer */
  .footer-menu {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .contact-address {
    margin: 0 auto 15px auto !important;
    text-align: center !important;
  }
}

/* Styles pour les très petits écrans */
@media screen and (max-width: 480px) {
  /* Ajustement de l'image hero */
  section[style*="background-image"] {
    min-height: 50vh !important;
    background-position: center top !important;
  }
  
  /* Taille des titres encore plus petits */
  h1, h2, h3 {
    font-size: 1.3rem !important;
  }
  
  .display-1 {
    font-size: 1.5rem !important;
  }
  
  /* Ajustement des cards d'actualités */
  .post-item .card-img-top {
    height: 180px !important;
  }
  
  .post-title {
    font-size: 1.1rem !important;
  }
}

/* Forcer le viewport à s'adapter */
@media only screen and (max-width: 768px) {
  body {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .container, .container-fluid, .container-lg {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Assurer que les images sont responsives */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}