/* =============================================
   VAN TAXI PARIS – CSS MOBILE PRIORITAIRE
   Force tous les correctifs sur téléphone
   ============================================= */

@media screen and (max-width: 768px) {

  /* ===== BASE ===== */
  html, body {
    width: 100% !important;
    overflow-x: hidden !important;
    font-size: 15px !important;
  }
  .container {
    padding: 0 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .section-pad { padding: 44px 0 !important; }

  /* ===== FORMULAIRE DE RÉSERVATION ===== */
  #reservation { padding: 28px 0 !important; }

  .reservation-card {
    grid-template-columns: 1fr !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  #booking-form {
    padding: 18px 14px 22px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Onglets Aller simple / Aller-retour : TOUT visible */
  .trip-tabs {
    display: flex !important;
    width: 100% !important;
    padding: 4px !important;
    gap: 4px !important;
    margin-bottom: 18px !important;
    box-sizing: border-box !important;
  }
  .trip-tab {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    font-size: 0.82rem !important;
    padding: 11px 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
  }

  /* Grille 1 colonne */
  .form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    margin-bottom: 12px !important;
  }
  .form-group {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .form-group label {
    font-size: 0.75rem !important;
    margin-bottom: 5px !important;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100% !important;
    padding: 13px 12px !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
  }

  /* Steppers grands et ergonomiques */
  .stepper {
    display: flex !important;
    width: 100% !important;
    height: 52px !important;
    border-radius: 10px !important;
  }
  .step-btn {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.4rem !important;
    flex-shrink: 0 !important;
    min-width: 52px !important;
  }
  .step-val {
    flex: 1 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    line-height: 52px !important;
  }

  /* Code promo : bouton EN DESSOUS, pleine largeur */
  .promo-row { width: 100% !important; }
  .promo-input-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .promo-input-wrap input {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #apply-promo {
    width: 100% !important;
    padding: 13px !important;
    font-size: 0.92rem !important;
    text-align: center !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  /* Boutons pleine largeur */
  .btn-submit {
    width: 100% !important;
    padding: 16px !important;
    font-size: 1rem !important;
    margin-top: 12px !important;
    box-sizing: border-box !important;
  }
  .btn-gold {
    width: 100% !important;
    padding: 16px !important;
    font-size: 1rem !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Estimation */
  .estimate-box {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
  }
  .estimate-details {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* Carte */
  .map-container {
    width: 100% !important;
    min-height: 250px !important;
    height: 250px !important;
  }
  #map {
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
  }

  /* ===== VÉHICULES ===== */
  .vehicles-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .vehicle-card {
    width: 100% !important;
    overflow: hidden !important;
  }
  .vehicle-img {
    height: 200px !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .vehicle-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .vehicle-badge {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 3 !important;
  }
  .vehicle-info { padding: 18px 16px !important; }
  .vehicle-info .btn,
  .btn-outline-dark {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px !important;
    font-size: 0.92rem !important;
    box-sizing: border-box !important;
  }

  /* ===== BOUTONS FLOTTANTS - RONDS NORMAUX ===== */
  .floating-btns {
    position: fixed !important;
    bottom: 24px !important;
    right: 16px !important;
    left: auto !important;
    gap: 12px !important;
    z-index: 900 !important;
  }
  .float-btn {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 1.4rem !important;
    min-width: unset !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .float-label {
    display: none !important;
  }

  /* ===== HERO ===== */
  .hero-car-img { display: none !important; }
  .hero-content {
    padding: 110px 14px 50px !important;
    max-width: 100% !important;
  }
  .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  .hero-sub { font-size: 0.92rem !important; }
  .hero-ctas {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .hero-ctas .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .hero-stats {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 12px 8px !important;
    width: 100% !important;
  }
  .stat { padding: 8px 14px !important; }
  .stat strong { font-size: 1.15rem !important; }
  .stat span { font-size: 0.7rem !important; }
  .stat-sep { width: 1px !important; height: 34px !important; }

  /* ===== SERVICES ===== */
  .services-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .service-card { padding: 20px 14px !important; }
  .service-icon { width: 50px !important; height: 50px !important; font-size: 1rem !important; }
  .service-card h3 { font-size: 0.88rem !important; }
  .service-card p { font-size: 0.8rem !important; }

  /* ===== TARIFS ===== */
  .tarifs-grid { grid-template-columns: 1fr !important; }
  .tarif-card { padding: 16px !important; }

  /* ===== AVIS ===== */
  .reviews-grid { grid-template-columns: 1fr !important; }

  /* ===== CONTACT ===== */
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-form input,
  .contact-form textarea {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ===== FOOTER ===== */
  .footer-grid { grid-template-columns: 1fr !important; }
  .why-grid { grid-template-columns: 1fr !important; }
  .why-image { display: none !important; }

  /* ===== SECTION HEADER ===== */
  .section-header { margin-bottom: 30px !important; }
  .section-header h2 { font-size: 1.6rem !important; }
  .section-header p { font-size: 0.88rem !important; }

  /* ===== NAVBAR ===== */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 72vw !important;
    max-width: 290px !important;
    height: 100vh !important;
    background: rgba(13,13,13,0.98) !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 90px 26px 30px !important;
    gap: 20px !important;
    transition: right 0.3s ease !important;
    z-index: 999 !important;
  }
  .nav-links.open { right: 0 !important; }
  .burger { display: flex !important; }

  /* ===== MODAL ===== */
  .modal-box {
    padding: 28px 18px !important;
    width: 92% !important;
  }
}

/* ===== TRÈS PETIT MOBILE ≤480px ===== */
@media screen and (max-width: 480px) {

  .trip-tab { font-size: 0.78rem !important; padding: 10px 2px !important; }
  #booking-form { padding: 14px 12px 20px !important; }

  .step-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    font-size: 1.3rem !important;
  }
  .step-val { line-height: 48px !important; }
  .stepper { height: 48px !important; }

  .services-grid { grid-template-columns: 1fr !important; }
  .hero-content h1 { font-size: 1.75rem !important; }

  .vehicle-img { height: 180px !important; }

  .float-btn {
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 1.3rem !important;
    min-width: unset !important;
    width: 54px !important;
  }
  .float-label { display: none !important; }
  .floating-btns { right: 14px !important; bottom: 20px !important; gap: 10px !important; }
}

/* ===== ÉCRANS 360px et moins ===== */
@media screen and (max-width: 360px) {
  .hero-content h1 { font-size: 1.55rem !important; }
  .trip-tab { font-size: 0.72rem !important; }
  .brand-logo .logo-text { font-size: 0.95rem !important; }
  .logo-icon { width: 32px !important; height: 32px !important; }
  .stat { padding: 6px 10px !important; }
  .stat strong { font-size: 1rem !important; }
}
