/* ═══════════════════════════════════════════
   TeamSportive · mobile.css · v1.0
   Responsive & mobile-first optimisation
   Breakpoints : 900px · 480px · 360px
═══════════════════════════════════════════ */

/* ──────────────────────────────────────────
   HAMBURGER BUTTON (caché sur desktop)
────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  transition: background 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger:hover  { background: rgba(255,255,255,0.08); }
.nav-hamburger:active { background: rgba(255,255,255,0.12); }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.25s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Li CTA dans le menu mobile — caché sur desktop */
.nav-mobile-buy-li { display: none !important; }

/* ──────────────────────────────────────────
   TABLETTE + MOBILE  (max-width: 900px)
────────────────────────────────────────── */
@media (max-width: 900px) {

  /* === NAV === */
  .nav-hamburger { display: flex; }
  .nav-cta       { display: none !important; }

  /* Tiroir mobile : effondré par défaut */
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(13, 27, 42, 0.99) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding: 0 20px !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding    0.3s ease !important;
    list-style: none !important;
    gap: 0 !important;
    z-index: 99 !important;
  }

  .nav-links.mobile-open {
    max-height: 520px !important;
    padding: 8px 20px 24px !important;
  }

  .nav-links li {
    width: 100% !important;
  }

  .nav-links li a {
    display: flex !important;
    align-items: center !important;
    min-height: 52px !important;
    padding: 0 4px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.7) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    letter-spacing: 0 !important;
  }
  .nav-links li:last-of-type a { border-bottom: none !important; }
  .nav-links li a:hover,
  .nav-links li a.active { color: #fff !important; }

  /* CTA "Acheter ce projet" dans le tiroir */
  .nav-mobile-buy-li { display: block !important; }
  .nav-mobile-buy {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 50px !important;
    margin-top: 14px !important;
    background: #E63946 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    text-align: center !important;
    border-bottom: none !important;
    transition: opacity 0.2s !important;
  }
  .nav-mobile-buy:hover { opacity: 0.88 !important; }

  /* === HERO === */
  .hero         { padding: 100px 20px 60px !important; }
  .hero-grid    { grid-template-columns: 1fr !important; gap: 40px !important; }
  .hero h1      { font-size: 50px !important; line-height: 1 !important; }
  .hero-desc    { font-size: 16px !important; max-width: 100% !important; }

  /* === PAGE HERO === */
  .page-hero    { padding: 110px 20px 64px !important; }
  .page-hero h1 { font-size: 48px !important; }
  .page-hero p  { font-size: 16px !important; }

  /* === SECTIONS === */
  section       { padding: 64px 20px !important; }
  .s-title      { font-size: 36px !important; }
  .s-desc       { font-size: 16px !important; }

  /* === GRIDS === */
  .targets-grid                     { grid-template-columns: 1fr !important; }
  .events-grid                      { grid-template-columns: 1fr !important; }
  .vision-grid                      { grid-template-columns: 1fr !important; gap: 40px !important; }
  .marche-grid                      { grid-template-columns: 1fr !important; }
  .contact-inner                    { grid-template-columns: 1fr !important; gap: 40px !important; }
  .form-row                         { grid-template-columns: 1fr !important; }
  .faq-grid                         { grid-template-columns: 1fr !important; }
  .diff-grid                        { grid-template-columns: 1fr 1fr !important; }
  .forces-grid                      { grid-template-columns: 1fr 1fr !important; }
  .steps                            { grid-template-columns: 1fr 1fr !important; }
  .footer-top                       { grid-template-columns: 1fr 1fr !important; }

  /* === TOUCH TARGETS (min 44px) === */
  .btn-primary,
  .btn-outline-light,
  .btn-white,
  .btn-outline-w,
  .btn-mid-white,
  .btn-mid-outline,
  .nav-cta,
  .form-submit,
  .tab,
  .pill {
    min-height: 44px;
  }

  /* Inputs : 16px pour éviter le zoom iOS */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* === MID CTA === */
  .mid-cta {
    flex-direction: column !important;
    gap: 20px !important;
    text-align: center !important;
    padding: 40px 20px !important;
  }
  .mid-cta-actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
  }

  /* === FLOAT CTA === */
  .float-cta-sub { display: none !important; }
  .float-cta     { bottom: 20px !important; right: 16px !important; }
  .float-cta-btn { font-size: 13px !important; padding: 12px 20px !important; }

  /* === FOOTER === */
  .footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }

  /* === CONTACT TABS === */
  .tabs    { gap: 8px !important; }
  .tab     { min-height: 44px !important; font-size: 14px !important; padding: 10px 18px !important; }
}

/* ──────────────────────────────────────────
   PETIT SMARTPHONE  (max-width: 480px)
────────────────────────────────────────── */
@media (max-width: 480px) {

  /* === NAV === */
  nav { height: 60px !important; padding: 0 16px !important; }

  /* === HERO === */
  .hero         { padding: 86px 16px 48px !important; }
  .hero h1      { font-size: 38px !important; }
  .hero-desc    { font-size: 15px !important; }
  .hero-eyebrow { letter-spacing: 2px !important; }

  /* CTA en colonne pleine largeur */
  .hero-actions              { flex-direction: column !important; gap: 12px !important; }
  .hero-actions a            {
    width: 100% !important;
    text-align: center !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Stats */
  .hero-stats { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .stat-card  { padding: 20px 14px !important; }
  .stat-num   { font-size: 34px !important; }

  /* === PAGE HERO === */
  .page-hero    { padding: 88px 16px 44px !important; }
  .page-hero h1 { font-size: 34px !important; }
  .page-hero p  { font-size: 15px !important; }

  /* === SECTIONS === */
  section { padding: 48px 16px !important; }
  .s-title { font-size: 30px !important; }
  .s-desc  { font-size: 15px !important; }
  .eyebrow { font-size: 10px !important; letter-spacing: 2px !important; }

  /* === GRIDS : 1 colonne === */
  .steps       { grid-template-columns: 1fr !important; }
  .diff-grid   { grid-template-columns: 1fr !important; }
  .forces-grid { grid-template-columns: 1fr !important; }
  .swot-grid   { grid-template-columns: 1fr !important; }
  .footer-top  { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* === MID CTA === */
  .mid-cta         { padding: 32px 16px !important; }
  .mid-cta-actions { flex-direction: column !important; align-items: stretch !important; }
  .btn-mid-white,
  .btn-mid-outline {
    text-align: center !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* === FLOAT CTA : bannière fixe en bas === */
  .float-cta {
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    flex-direction: row !important;
    z-index: 1000 !important;
  }
  .float-cta-btn {
    width: 100% !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 0 24px !important;
    height: 56px !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    animation: none !important;
    box-shadow: 0 -4px 24px rgba(230,57,70,0.35) !important;
  }

  /* Ajouter de l'espace sous le contenu pour la bannière */
  body { padding-bottom: 56px; }

  /* === INPUTS === */
  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 48px !important;
    padding: 12px 14px !important;
  }

  /* === FAQ & SWOT === */
  .faq-item   { padding: 20px !important; }
  .swot-cell  { padding: 24px 18px !important; }

  /* === FOOTER === */
  .footer-bottom { gap: 10px !important; }
  .footer-desc   { max-width: 100% !important; }

  /* === TERMS === */
  .article-block  { padding: 24px 18px !important; }
  .buyer-cta-block { padding: 32px 20px !important; }
}

/* ──────────────────────────────────────────
   TRÈS PETIT  (max-width: 360px)
────────────────────────────────────────── */
@media (max-width: 360px) {
  .hero h1      { font-size: 32px !important; }
  .s-title      { font-size: 26px !important; }
  .page-hero h1 { font-size: 28px !important; }
  .stat-num     { font-size: 28px !important; }
  .step-num     { font-size: 48px !important; }
}

/* ──────────────────────────────────────────
   NOUVELLES SECTIONS — RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 900px) {
  .testi-grid      { grid-template-columns: 1fr !important; }
  .formules-grid   { grid-template-columns: 1fr !important; }
  .data-grid       { grid-template-columns: 1fr 1fr !important; }
  .trust-badges    { gap: 14px !important; }
  /* Forces page new sections */
  .growth-track    { flex-direction: column !important; gap: 12px !important; }
  .growth-node:not(:last-child)::after { content: '↓'; right: 50% !important; top: auto !important; bottom: -18px !important; transform: translateX(50%) !important; }
  .tendances-grid  { grid-template-columns: 1fr !important; }
  .opps-grid       { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 480px) {
  .testi-card      { padding: 28px 20px !important; }
  .formule-card    { padding: 32px 22px !important; }
  .data-grid       { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .data-num        { font-size: 38px !important; }
  .formule-price   { font-size: 40px !important; }
  .growth-val      { font-size: 36px !important; }
  .opps-grid       { grid-template-columns: 1fr !important; }
  .tend-card       { padding: 28px 22px !important; }
  .opp-card        { padding: 24px 20px !important; }
}
