/* ================================================================
   RESPONSIVE — Mobile-First Premium
   ================================================================ */

/* ── TABLETTE ≤ 1024px ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image-wrapper { order: -1; max-width: 580px; margin: 0 auto; }
  .badge-top  { left: .5rem; }
  .badge-bottom { right: .5rem; }
  .hero-line { display: none; }
  .services-grid    { grid-template-columns: 1fr 1fr; }
  .tarifs-grid      { grid-template-columns: 1fr 1fr; }
  .vehicule-specs   { grid-template-columns: 1fr 1fr; }
  .temoignages-grid { grid-template-columns: 1fr 1fr; }
  .devis-wrapper    { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ── MOBILE ≤ 768px ── */
@media (max-width: 768px) {

  /* Nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(8,8,16,.99);
    flex-direction: column;
    padding: 1.75rem var(--pad) 3rem;
    gap: 0;
    align-items: stretch;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .32s var(--ease);
    z-index: 850;
    border-top: 1px solid var(--border-soft);
  }
  .nav-links.open { transform: translateX(0); }

  .nav-links li {
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links li:last-child { border-bottom: none; margin-top: 1.25rem; }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem .25rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 0;
    background: none;
  }
  .nav-links a:hover { color: var(--gold); background: none; }

  .nav-cta {
    width: 100% !important;
    justify-content: center !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    border-radius: var(--r-lg) !important;
  }

  /* Hero */
  .hero { min-height: auto; padding: var(--nav-h) 0 2rem; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; text-align: center; padding: 0; }
  .hero-image-wrapper { order: -1; max-width: 100%; margin: 0; }
  .hero-badge-float { display: none; }
  .hero-scroll-hint { display: none; }
  .hero-line { display: none; }
  .hero::before { display: none; }
  .hero-particles { display: none; }

  .hero-slideshow { border-radius: 0; box-shadow: none; }
  .hero-slide img { height: 52vw; min-height: 200px; max-height: 280px; }

  .hero-content { padding: 1.75rem var(--pad) 0; }
  .hero-badge { font-size: .68rem; padding: .3rem .8rem; margin-bottom: 1rem; align-self: flex-start; }

  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); margin-bottom: .85rem; }
  .hero-subtitle { font-size: .9rem; margin-bottom: 1.5rem; padding: 0 .1rem; }
  .hero-subtitle br { display: none; }

  .hero-cta-group {
    flex-direction: column;
    gap: .7rem;
    margin-bottom: 1.75rem;
    padding: 0 .1rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    padding: .95rem 1rem;
    font-size: .97rem;
    border-radius: var(--r-lg);
  }

  .hero-stats { gap: 1rem; justify-content: center; }
  .stat strong { font-size: 1.45rem; }
  .stat span   { font-size: .66rem; }

  /* Sections */
  .section { padding: clamp(2.25rem,6vw,3.25rem) 0; }
  .section-header { margin-bottom: 1.75rem; }
  .section-header h2 { font-size: clamp(1.65rem,6.5vw,2.2rem); }
  .section-header p  { font-size: .87rem; }

  /* Services — 1 colonne */
  .services-grid { grid-template-columns: 1fr; gap: .9rem; display: grid !important; }
  .service-card  { padding: 1.5rem 1.3rem; }
  .service-card h3 { font-size: 1.08rem; }
  .service-card p  { font-size: .84rem; }
  .service-icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 1rem; }
  .service-features li { font-size: .8rem; }

  /* Tarifs — 1 colonne */
  .tarifs-grid { grid-template-columns: 1fr; gap: .65rem; }
  .tarif-card  { padding: 1rem 1.2rem; }
  .tarif-trajet { font-size: .87rem; }
  .tarif-prix   { font-size: 1.3rem; }

  /* Galerie — hauteur réduite */
  .galerie-slide { height: 60vw; min-height: 200px; max-height: 300px; }
  .galerie-wrapper { border-radius: var(--r-lg); margin-bottom: 1.25rem; }
  .galerie-arrow { display: none; }

  .vehicule-specs { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .spec-item { padding: .9rem 1rem; gap: .65rem; }
  .spec-item i { font-size: 1.1rem; }
  .spec-item strong { font-size: .83rem; }
  .spec-item span   { font-size: .7rem; }

  /* Devis */
  .devis-wrapper    { grid-template-columns: 1fr; gap: 1.75rem; }
  .devis-info h2    { font-size: clamp(1.55rem,6vw,1.9rem); }
  .devis-info p     { font-size: .87rem; }
  .devis-form-wrapper { padding: 1.5rem 1.1rem; border-radius: var(--r-lg); }
  .form-row { grid-template-columns: 1fr; gap: .85rem; }
  .form-group label { font-size: .7rem; }

  /* ANTI-ZOOM iOS : inputs à 16px */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px !important; padding: .82rem .9rem; border-radius: var(--r-md); }

  .btn-full { padding: 1rem; border-radius: var(--r-md); font-size: .97rem; }

  /* Paiement — colonne unique avec icône gauche */
  .paiement-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .paiement-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 1.25rem;
    text-align: left;
    border-radius: var(--r-md);
  }
  .paiement-icon { width: 46px; height: 46px; font-size: 1.15rem; flex-shrink: 0; margin: 0; }
  .pi-wero { font-size: 1.45rem; }
  .paiement-card h3 { font-size: .95rem; margin-bottom: .2rem; }
  .paiement-card p  { font-size: .8rem; margin-bottom: 0; }
  .paiement-action  { font-size: .78rem; margin-top: .3rem; display: inline-flex; }

  /* Témoignages — 1 colonne */
  .temoignages-grid { grid-template-columns: 1fr; gap: .85rem; }
  .temoignage-card  { padding: 1.35rem; }
  .tem-txt          { font-size: .86rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand p { font-size: .84rem; margin: .75rem 0 1.1rem; }
  .footer-col h4  { margin-bottom: .6rem; }
  .footer-col li,
  .footer-col a   { font-size: .84rem; }
  .footer-link    { font-size: .84rem; }
  .footer-bottom  { flex-direction: column; text-align: center; gap: .6rem; font-size: .74rem; }
  .footer-legal   { justify-content: center; }

  /* Float */
  .floating-cta { bottom: 1.1rem; right: 1.1rem; }
  .float-btn    { width: 50px; height: 50px; font-size: 1.2rem; }
}

/* ── TRÈS PETITS MOBILES ≤ 380px ── */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.95rem; }
  .vehicule-specs { grid-template-columns: 1fr 1fr; }
  .galerie-slide  { height: 55vw; }
  .btn            { font-size: .88rem; }
}

/* ── ACCESSIBILITÉ ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-animate] { opacity: 1 !important; transform: none !important; }
  .galerie-track { transition: none !important; }
  .hero-slide.fade-in { animation: none !important; }
}

/* ── TOUCH FEEDBACK ── */
@media (hover: none) {
  .btn:active,
  .service-card:active,
  .paiement-card:active,
  .tarif-card:active,
  .temoignage-card:active { transform: scale(.97); transition: transform .08s; }
  .float-btn:active { transform: scale(.9); }
}

/* ── Nav mobile : hamburger à GAUCHE, logo au centre ── */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
  }
  /* Mettre toggle à gauche via order */
  .nav-toggle { order: -1; }
  .logo       { order: 0; position: absolute; left: 50%; transform: translateX(-50%); }
  /* Espace pour équilibrer */
  .nav-container::after {
    content: '';
    width: 40px;
    flex-shrink: 0;
  }
}
