/* ═══════════════════════════════════════════
   GEOMBMAP — responsive.css
═══════════════════════════════════════════ */

/* ─── FIX OVERFLOW GLOBAL ─── */
html, body {
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

section {
  width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  box-sizing: border-box;
}

/* ─── TOPBAR ─── */
@media (max-width: 768px) {
  .topbar { display: none; }
}

/* ─── NAVBAR ─── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; height: 60px; }
  .nav-logo-text { font-size: 18px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    z-index: 998;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    width: 100%;
    box-sizing: border-box;
  }
  .nav-menu.open { display: flex; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    display: block;
    width: 100%;
  }
}

/* ─── HERO ─── */
@media (max-width: 768px) {
  .hero { padding: 40px 16px; min-height: auto; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-image { display: none; }
  .hero-title { font-size: 26px; }
  .hero-btns-wrap { justify-content: center; flex-direction: column; align-items: center; }
  .hero-btns-wrap .btn-primary,
  .hero-btns-wrap .btn-outline { width: 100%; max-width: 320px; text-align: center; }
  .floating-badge { display: none; }
}

/* ─── SECTIONS ─── */
@media (max-width: 768px) {
  .section { padding: 40px 16px; }
  .section-title { font-size: 22px; }
  .section-sub { font-size: 14px; }
  .section-header { margin-bottom: 28px; }

  /* Fix padding inline sur les sections */
  section[style*="padding"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Fix max-width inline */
  div[style*="max-width:1200px"],
  div[style*="max-width: 1200px"] {
    max-width: 100% !important;
    width: 100%;
  }
}

/* ─── GRIDS ─── */
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img { display: none; }
  .testimonial-img { display: none; }
  .form-row { grid-template-columns: 1fr; }

  /* Fix stats témoignage */
  .testimonial-content > div {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ─── PRICING ─── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .payment-btns { flex-direction: column; }
  .btn-stripe, .btn-paypal { width: 100%; justify-content: center; }
}

/* ─── OFFRES ─── */
@media (max-width: 900px) {
  .offers-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs-wrap { top: 0; position: static; }
}
@media (max-width: 600px) {
  .offers-grid { grid-template-columns: 1fr; }
  .tab-btn { padding: 10px 14px; font-size: 12px; }
}

/* ─── FOOTER ─── */
@media (max-width: 768px) {
  .footer { padding: 40px 0 0; }
  .footer-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-desc { max-width: 100%; }
  .footer-col { width: 100%; }
  .footer-col ul li a { white-space: normal; }
  .footer-bottom { padding: 20px 16px; }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ─── CHECKOUT ─── */
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-card { position: static; }
}
@media (max-width: 480px) {
  .checkout-form-body { padding: 20px 16px; }
  .payment-section { padding: 20px 16px; }
  .btn-place-order { margin: 16px; width: calc(100% - 32px); }
  #card-fields-wrap input { font-size: 13px; }
}

/* ─── PAGE HERO ─── */
@media (max-width: 768px) {
  .page-hero { padding: 36px 16px; }
  .page-hero-title { font-size: 22px; }
  .breadcrumb { font-size: 12px; flex-wrap: wrap; justify-content: center; }
}

/* ─── CONFIRMATION ─── */
@media (max-width: 480px) {
  .confirm-wrap { padding: 30px 12px; }
  .confirm-box { padding: 28px 16px; border-radius: 12px; }
  .confirm-title { font-size: 20px; }
  .order-code { font-size: 30px; letter-spacing: 3px; }
  .confirm-btns { flex-direction: column; }
  .confirm-btns a { width: 100%; text-align: center; justify-content: center; }
}

/* ─── CONTRAT ─── */
@media (max-width: 768px) {
  .contract-wrap { padding: 20px 12px; }
  .contract-box { padding: 24px 16px; }
}

/* ─── CERTIFICATIONS ─── */
@media (max-width: 768px) {
  .certs-logos { gap: 24px; }
  .cert-logo-item img { height: 60px; }
}

/* ─── BUTTONS ─── */
@media (max-width: 480px) {
  .btn-primary, .btn-outline {
    padding: 12px 20px;
    font-size: 12px;
  }
}