/* ============================================
   RESPONSIVE DESIGN - Premium B2B SaaS
   ============================================ */

/* ---- XL screens (1200-1399px) ---- */
@media (max-width: 1399.98px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .ai-hub-wrapper {
    width: 460px;
    height: 460px;
  }
  .orbit-system {
    width: 350px;
    height: 350px;
  }
  .orbit-3 {
    width: 350px;
    height: 350px;
    margin-top: -175px;
    margin-left: -175px;
  }
  .orbit-2 {
    width: 260px;
    height: 260px;
    margin-top: -130px;
    margin-left: -130px;
  }
  .dash-card-leads {
    right: -5%;
  }
  .dash-card-conversion {
    left: 0;
  }
}

/* ---- Large screens (992-1199px) ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-grid {
    gap: 2rem;
  }
  .ai-hub-wrapper {
    width: 400px;
    height: 400px;
  }
  .orbit-system {
    width: 300px;
    height: 300px;
  }
  .orbit-1 {
    width: 160px;
    height: 160px;
    margin-top: -80px;
    margin-left: -80px;
  }
  .orbit-2 {
    width: 230px;
    height: 230px;
    margin-top: -115px;
    margin-left: -115px;
  }
  .orbit-3 {
    width: 300px;
    height: 300px;
    margin-top: -150px;
    margin-left: -150px;
  }
  .platform-icon {
    width: 44px;
    height: 44px;
  }
  .platform-icon img {
    width: 22px !important;
    height: 22px !important;
  }
  .platform-icon svg {
    width: 20px;
    height: 20px;
  }
  .dash-card-leads {
    right: -15px;
    width: 200px;
    padding: 0.875rem 1rem;
  }
  .dash-card-conversion {
    left: -10px;
    width: 180px;
    padding: 0.875rem 1rem;
  }
  .dash-card-value {
    font-size: 1.5rem;
  }
  .trust-metrics-card {
    width: 95%;
    padding: 2.5rem 2rem;
  }
}

/* ---- Tablet (768-991px) ---- */
@media (max-width: 991.98px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .hero-section {
    padding: 8rem 0 10rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-checklist {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* Visual */
  .hero-visual {
    order: 2;
  }

  .ai-hub-wrapper {
    width: 400px;
    height: 400px;
    margin: 0 auto;
  }

  .orbit-system {
    width: 300px;
    height: 300px;
  }

  .orbit-1 {
    width: 160px;
    height: 160px;
    margin-top: -80px;
    margin-left: -80px;
  }
  .orbit-2 {
    width: 230px;
    height: 230px;
    margin-top: -115px;
    margin-left: -115px;
  }
  .orbit-3 {
    width: 300px;
    height: 300px;
    margin-top: -150px;
    margin-left: -150px;
  }

  .dash-card-leads {
    right: 5%;
    top: 0;
    width: 210px;
  }

  .dash-card-conversion {
    left: 5%;
    bottom: 0;
    width: 190px;
  }

  /* Trust Metrics */
  .trust-metrics-section {
    margin-top: -60px;
  }

  .trust-metrics-card {
    width: 95%;
    padding: 24px 16px;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .trust-metric-divider {
    display: none;
  }

  .trust-metric-number {
    font-size: 1.5rem;
  }

  /* Partners */
  .partners-logos {
    gap: 2rem;
  }

  /* Method cards */
  .methode-section .row {
    flex-direction: column !important;
    align-items: center !important;
    max-width: 100% !important;
    gap: 1.25rem !important;
  }
  .methode-section .col-md-4 {
    width: 80% !important;
    max-width: 400px !important;
  }

  .methode-section,
  .campagnes-section,
  .crm-section,
  .temoignages-section,
  .cta-section {
    padding: 4rem 0;
  }

  .campagnes-section {
    overflow: hidden;
  }

  .crm-image-wrapper {
    margin-bottom: 3rem;
  }

  .crm-screenshot {
    transform: none;
  }

  /* Campaign slider tablet rules moved below (min-width: 769px) */
}

/* ---- Tablet only (769-991px): campaign slider tweaks ---- */
@media (min-width: 769px) and (max-width: 991.98px) {
  .campagnes_content {
    height: 550px;
  }
  .campagnes_content label {
    width: 220px;
    height: 540px;
  }

  /* Reduce slider translate offsets */
  #t1:checked ~ #tslide4,
  #t2:checked ~ #tslide1,
  #t3:checked ~ #tslide2,
  #t4:checked ~ #tslide3 { transform: translate3d(-130%, 0, 0) !important; }
  #t1:checked ~ #tslide3,
  #t2:checked ~ #tslide4,
  #t3:checked ~ #tslide1,
  #t4:checked ~ #tslide2 { transform: translate3d(130%, 0, 0) !important; }

  #a1:checked ~ #aslide4,
  #a2:checked ~ #aslide1,
  #a3:checked ~ #aslide2,
  #a4:checked ~ #aslide3 { transform: translate3d(-130%, 0, 0) !important; }
  #a1:checked ~ #aslide3,
  #a2:checked ~ #aslide4,
  #a3:checked ~ #aslide1,
  #a4:checked ~ #aslide2 { transform: translate3d(130%, 0, 0) !important; }

  #au1:checked ~ #auslide4,
  #au2:checked ~ #auslide1,
  #au3:checked ~ #auslide2,
  #au4:checked ~ #auslide3 { transform: translate3d(-130%, 0, 0) !important; }
  #au1:checked ~ #auslide3,
  #au2:checked ~ #auslide4,
  #au3:checked ~ #auslide1,
  #au4:checked ~ #auslide2 { transform: translate3d(130%, 0, 0) !important; }

  #b1:checked ~ #bslide4,
  #b2:checked ~ #bslide1,
  #b3:checked ~ #bslide2,
  #b4:checked ~ #bslide3 { transform: translate3d(-130%, 0, 0) !important; }
  #b1:checked ~ #bslide3,
  #b2:checked ~ #bslide4,
  #b3:checked ~ #bslide1,
  #b4:checked ~ #bslide2 { transform: translate3d(130%, 0, 0) !important; }
}

/* ---- Mobile (max 768px) ---- */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    word-break: break-word;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.125rem;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }

  .hero-section {
    padding: 7rem 0 8rem;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-buttons .btn-yellow-lg,
  .hero-buttons .btn-outline-dark,
  .hero-buttons .btn-outline-lg {
    width: 100%;
    max-width: 320px;
    text-align: center;
    justify-content: center;
  }

  /* Disable expensive glow blur on mobile */
  .hero-bg-glow {
    filter: none;
    opacity: 0.5;
  }

  /* Visual */
  .ai-hub-wrapper {
    width: 320px;
    height: 320px;
  }

  .orbit-system {
    width: 240px;
    height: 240px;
  }

  .orbit-1 {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-left: -60px;
  }
  .orbit-2 {
    width: 180px;
    height: 180px;
    margin-top: -90px;
    margin-left: -90px;
  }
  .orbit-3 {
    width: 240px;
    height: 240px;
    margin-top: -120px;
    margin-left: -120px;
  }

  .platform-icon {
    width: 40px;
    height: 40px;
  }

  .platform-icon img {
    width: 20px !important;
    height: 20px !important;
  }

  .platform-icon svg {
    width: 18px;
    height: 18px;
  }

  .ai-center-core {
    width: 52px;
    height: 52px;
  }

  .ai-center-core svg {
    width: 24px;
    height: 24px;
  }

  .ai-center-pulse {
    width: 90px;
    height: 90px;
  }

  .dash-card {
    padding: 0.875rem 1rem;
    border-radius: 14px;
  }

  .dash-card-leads {
    width: 185px;
    right: 0;
    top: -5%;
  }

  .dash-card-conversion {
    width: 165px;
    left: 0;
    bottom: -5%;
  }

  .dash-card-value {
    font-size: 1.35rem;
  }

  .dash-card-label {
    font-size: 0.5625rem;
  }

  /* Trust Metrics */
  .trust-metrics-section {
    margin-top: -50px;
  }

  .trust-metrics-card {
    width: 95%;
    padding: 24px 16px;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
  }

  .trust-metric-number {
    font-size: 1.5rem;
  }

  .trust-metric-label {
    font-size: 0.75rem;
  }

  /* Partners */
  .partners-section {
    padding: 3rem 0 4rem;
  }

  .partners-logos {
    gap: 1.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .partners-logos::-webkit-scrollbar {
    display: none;
  }

  .partner-logo {
    flex-shrink: 0;
  }

  .partner-logo img {
    max-height: 40px;
    max-width: 100px;
  }

  .partner-logo svg {
    height: 32px;
    max-width: 100px;
  }

  /* Method cards */
  .methode-section .col-md-4 {
    width: 100% !important;
    max-width: 100% !important;
  }
  .methode-section .row {
    max-width: 100% !important;
    padding: 0 0.5rem;
  }
  .method-card {
    padding: 1.5rem;
  }
  .method-card h4 {
    font-size: 1.25rem;
  }

  /* Campaign slider mobile — overridden by refonte-polish.css marquee (kept for legacy) */

  .testimonial-card {
    padding: 1.5rem;
  }

  .cta-info {
    padding: 2rem 1.5rem;
  }
  .cta-info h3 {
    font-size: 1.5rem;
  }
  .contact-form-wrapper {
    padding: 1.5rem !important;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .footer-nav a {
    font-size: 0.8125rem;
  }
}

/* ---- Small mobile (max 575px) ---- */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .btn-yellow,
  .btn-outline-pill {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .hero-content h1 {
    font-size: 1.875rem;
  }

  .trust-metrics-card {
    grid-template-columns: 1fr;
  }

  .trust-metric-number {
    font-size: 1.375rem;
  }

  /* Campaign filter badges */
  .campaign-filters {
    gap: 0.5rem;
  }
  .campaign-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    gap: 0.4rem;
  }
  .badge-icon {
    font-size: 1rem;
  }

  /* Campaign slider — overridden by refonte-polish.css marquee */

  /* Ekomi row */
  .ekomi-row {
    flex-direction: column;
    text-align: center;
  }
  .ekomi-seal {
    width: 50px;
    height: 50px;
  }
  .ekomi-info {
    align-items: center;
  }
  .ekomi-score {
    font-size: 0.8125rem;
  }

}
