/* ============================================================
   RESPONSIVE — Breakpoints mobile
   ============================================================ */

/* ─── Tablet (max 1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
  #services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2)::after {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .zone__content {
    grid-template-columns: 1fr;
  }

  #certifications-list {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ─── Mobile (max 768px) ──────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__phone span {
    display: none;
  }

  .nav {
    height: 64px;
  }

  .nav__logo img {
    height: 40px;
  }

  /* Hero */
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    display: none;
  }

  .section-hero {
    padding-top: 64px;
    min-height: auto;
    padding-bottom: var(--space-3xl);
  }

  .hero__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__badge {
    display: inline-flex;
  }

  /* Urgency */
  .urgency__inner {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Services */
  #services-grid {
    grid-template-columns: 1fr;
  }

  /* Process */
  #process-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Stats */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat::after {
    display: none !important;
  }

  /* Pourquoi me faire confiance */
  #certifications-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .trust-card {
    padding: var(--space-lg);
  }

  /* Zone */
  #map-container {
    min-height: 300px;
  }

  /* Contact */
  .contact__form-wrapper {
    padding: var(--space-xl);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Mobile CTA bar */
  .mobile-cta-bar {
    display: grid;
  }

  /* Ajout padding bottom pour le body pour la barre CTA mobile */
  body {
    padding-bottom: 80px;
  }

  /* Radio cards responsive */
  .radio-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .urgency-options {
    flex-direction: column;
  }

  /* Boutons */
  .btn--lg {
    width: 100%;
    padding: 16px 24px;
  }
}

/* ─── Small mobile (max 480px) ────────────────────────── */
@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .radio-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__trust {
    flex-direction: column;
    gap: var(--space-md);
  }

  #certifications-list {
    grid-template-columns: 1fr;
  }

  .trust-card {
    width: 100%;
  }
}

/* ─── Testimonials mobile carousel ───────────────────── */
@media (max-width: 1024px) {
  .testimonials-scroll-wrapper {
    position: relative;
    overflow: hidden;
  }

  #testimonials-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
    padding: 0 var(--space-md) var(--space-md);
    max-width: none !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  #testimonials-grid > .card {
    min-width: 280px;
    max-width: 320px;
    width: 80vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  /* Forcer le retour à la ligne du texte dans les cartes */
  #testimonials-grid .testimonial-card__text {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Flèche de navigation droite */
  .testimonials-scroll-arrow {
    position: absolute;
    right: 8px;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: opacity 300ms ease, transform 300ms ease;
    animation: nudge-right 1.5s ease-in-out infinite;
  }

  .testimonials-scroll-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
    animation: none;
  }

  @keyframes nudge-right {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(6px); }
  }

  /* Dots indicateurs */
  .testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: var(--space-sm);
  }

  .testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-medium);
    transition: background 200ms ease, transform 200ms ease;
  }

  .testimonials-dot.is-active {
    background: var(--brand-primary);
    transform: scale(1.3);
  }
}
