/* Améliorations responsive pour Sports Équilibre - Mobile First */

/* ============================================
   MOBILE - Petits écrans (< 768px)
   ============================================ */
@media screen and (max-width: 768px) {
  /* Forcer l'affichage des colonnes Bootstrap sur mobile */
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, 
  .col-md-5, .col-md-6, .col-md-7, .col-md-8, 
  .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Navigation mobile */
  #fh5co-header {
    padding: 10px 0 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  #fh5co-header .nav-brand {
    font-size: 18px !important;
    padding: 8px 15px;
    font-weight: 600;
  }
  
  #fh5co-header .nav-links {
    display: none !important; /* Le menu burger gère ça */
  }
  
  /* Menu burger visible et bien positionné */
  .js-fh5co-nav-toggle {
    display: block !important;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
  }
  
  .js-fh5co-nav-toggle i {
    font-size: 24px;
    color: #000;
  }
  
  /* Hero section */
  .fh5co-hero h1 {
    font-size: 28px !important;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  .fh5co-hero .lead {
    font-size: 16px !important;
    margin-bottom: 20px;
  }
  
  .fh5co-hero .btn {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 12px 20px;
    font-size: 16px;
  }
  
  /* Sections */
  .fh5co-section {
    padding: 50px 0 !important;
  }
  
  /* Espacement pour le header fixe */
  #fh5co-page {
    padding-top: 60px !important;
  }
  
  .fh5co-lead {
    font-size: 24px !important;
    line-height: 1.4;
    margin-bottom: 20px;
  }
  
  .fh5co-label {
    font-size: 12px !important;
    margin-bottom: 10px;
  }
  
  /* Cards - Détachées du fond avec ombres prononcées */
  .offer-card, .feature-card, .testimonial-card, .note-card {
    padding: 24px 20px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .offer-card h3, .feature-card h3, .testimonial-card h3 {
    font-size: 20px !important;
    margin-bottom: 15px;
  }
  
  /* Prix et textes */
  .price {
    font-size: 18px !important;
  }
  
  .pricing-line {
    font-size: 16px !important;
  }
  
  /* Listes */
  .bullet-clean {
    padding-left: 20px;
  }
  
  .bullet-clean li {
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin-bottom: 10px;
  }
  
  /* Témoignages */
  .testimonial-card {
    margin-bottom: 25px;
  }
  
  .testimonial-content p {
    font-size: 15px !important;
    line-height: 1.7;
    margin-bottom: 15px;
  }
  
  .testimonial-carousel {
    margin-top: 20px;
  }
  
  .testimonial-carousel .item img {
    height: auto !important;
    max-height: 250px;
    width: 100%;
    object-fit: cover;
  }
  
  /* Colonnes - Forcer l'empilement vertical sur mobile */
  .row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }
  
  [class*="col-md-"] {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
    margin-bottom: 25px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    clear: both !important;
    flex: 0 0 100% !important;
  }
  
  .row > [class*="col-"] {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 100% !important;
  }
  
  /* Cards visibles et bien espacées */
  .offer-card, .feature-card, .testimonial-card, .note-card {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px;
    box-sizing: border-box;
  }
  
  /* Rows */
  .row {
    margin-left: -10px !important;
    margin-right: -10px !important;
  }
  
  .row > [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  /* Espacements */
  .row-bottom-padded-sm {
    margin-bottom: 20px;
  }
  
  .row-bottom-padded-md {
    margin-bottom: 30px;
  }
  
  /* Contact */
  .contact-big a {
    font-size: 18px !important;
    word-break: break-word;
  }
  
  /* Footer */
  #fh5co-footer {
    padding: 30px 0;
    text-align: center;
  }
  
  #fh5co-footer .fh5co-footer-widget {
    margin-bottom: 25px;
  }
  
  /* Boutons */
  .btn {
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    margin: 8px auto;
    display: block;
  }
  
  .btn-lg {
    padding: 14px 28px;
    font-size: 18px;
  }
}

/* ============================================
   MOBILE TRÈS PETIT (< 480px)
   ============================================ */
@media screen and (max-width: 480px) {
  /* Navigation */
  #fh5co-header .nav-brand {
    font-size: 16px !important;
  }
  
  /* Hero */
  .fh5co-hero h1 {
    font-size: 24px !important;
  }
  
  .fh5co-hero .lead {
    font-size: 14px !important;
  }
  
  /* Titres */
  h1, .fh5co-lead {
    font-size: 22px !important;
  }
  
  h2 {
    font-size: 20px !important;
  }
  
  h3 {
    font-size: 18px !important;
  }
  
  /* Sections */
  .fh5co-section {
    padding: 30px 0 !important;
  }
  
  /* Cards */
  .offer-card, .feature-card, .testimonial-card {
    padding: 15px !important;
  }
  
  /* Textes */
  body {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .bullet-clean li {
    font-size: 14px !important;
  }
  
  /* Témoignages */
  .testimonial-content p {
    font-size: 14px !important;
  }
  
  .testimonial-carousel .item img {
    max-height: 200px;
  }
  
  /* Prix */
  .price {
    font-size: 16px !important;
  }
  
  /* Boutons */
  .btn {
    padding: 10px 20px;
    font-size: 15px;
  }
  
  .btn-lg {
    padding: 12px 24px;
    font-size: 16px;
  }
}

/* ============================================
   TABLETTE (769px - 992px)
   ============================================ */
@media screen and (min-width: 769px) and (max-width: 992px) {
  .testimonial-carousel .item img {
    height: auto !important;
    max-height: 350px;
  }
  
  .offer-card, .feature-card {
    padding: 25px;
  }
  
  .fh5co-lead {
    font-size: 32px;
  }
}

/* ============================================
   AMÉLIORATIONS GÉNÉRALES MOBILE
   ============================================ */

/* Images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Carousel fixes */
.carousel-inner > .item {
  transition: transform 0.6s ease-in-out;
}

.carousel-inner > .item > img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Assurer que le carousel se réinitialise correctement */
#ariane-carousel.carousel {
  position: relative;
}

#ariane-carousel .carousel-inner {
  overflow: hidden;
  border-radius: 8px;
}

#ariane-carousel .item {
  display: none;
}

#ariane-carousel .item.active {
  display: block;
}

/* Conteneurs */
@media screen and (max-width: 768px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Touch-friendly */
a, button, .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Amélioration de la lisibilité */
p {
  margin-bottom: 1.2em;
}

/* Espacement vertical amélioré */
.row {
  margin-left: -10px;
  margin-right: -10px;
}

.row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

/* Menu burger visible sur mobile */
@media screen and (max-width: 768px) {
  .js-fh5co-nav-toggle {
    display: block !important;
  }
}

/* Amélioration du menu offcanvas mobile */
@media screen and (max-width: 768px) {
  #fh5co-offcanvas {
    width: 100% !important;
    max-width: 100% !important;
    left: -100% !important;
    right: auto !important;
    z-index: 9999 !important;
    background: #000 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 60px 0 30px 0 !important;
  }
  
  .offcanvas-visible #fh5co-offcanvas {
    left: 0 !important;
  }
  
  /* Ne pas décaler le contenu sur mobile */
  .offcanvas-visible #fh5co-page {
    transform: none !important;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  #fh5co-offcanvas ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  #fh5co-offcanvas ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 !important;
    padding: 0;
  }
  
  #fh5co-offcanvas ul li a {
    padding: 18px 24px !important;
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    display: block;
    width: 100%;
    text-decoration: none;
    transition: background 0.2s;
  }
  
  #fh5co-offcanvas ul li a:hover,
  #fh5co-offcanvas ul li a:active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
  }
  
  #fh5co-offcanvas ul li.active a {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.1);
  }
  
  /* Overlay sombre quand le menu est ouvert */
  .offcanvas-visible #fh5co-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    pointer-events: auto;
  }
}

/* Hero responsive */
@media screen and (max-width: 768px) {
  .js-fullheight {
    min-height: 60vh !important;
  }
  
  .fh5co-intro {
    padding: 20px 0;
  }
}

/* Amélioration des témoignages sur mobile */
@media screen and (max-width: 768px) {
  .testimonial-list {
    margin-top: 20px;
  }
  
  .testimonial-link {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }
}
