/* ========================================================
   assets/css/responsive.css
   iPhone & Gaming Store - Refonte Responsive Mobile & Tablette
   Compatibilité complète : iOS Safari, Android Chrome, iPad, Desktop
   ======================================================== */

/* --------------------------------------------------------
   0. RESET GLOBAL & PRÉVENTION DU SCROLL HORIZONTAL
   -------------------------------------------------------- */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Utilitaires globaux de responsivité */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  width: 100%;
}

/* Éviter le zoom automatique intempestif sur iOS Safari */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* --------------------------------------------------------
   1. MENU MOBILE, NAVIGATION & BACKDROP
   -------------------------------------------------------- */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

/* Liens mobiles spécifiques */
.mobile-menu-item-search {
  display: none;
  padding: 12px 14px 6px;
  width: 100%;
}

.mobile-search-form {
  position: relative;
  width: 100%;
}

.mobile-search-form input {
  width: 100%;
  padding: 12px 42px 12px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mobile-search-form input:focus {
  border-color: var(--accent-apple);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
  background: #ffffff;
}

.mobile-search-form button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-menu-item-lang {
  display: none;
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

.mobile-lang-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mobile-lang-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-lang-chip {
  flex: 1;
  min-width: 80px;
  padding: 8px 10px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-lang-chip.active {
  background: var(--accent-apple);
  color: #ffffff;
  border-color: var(--accent-apple);
}

.mobile-menu-item-support {
  display: none;
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mobile-menu-item-support a {
  color: var(--accent-apple);
  font-weight: 700;
  text-decoration: none;
}

/* --------------------------------------------------------
   1.1. SLIDER TRACK HORIZONTAL PRO & PRODUITS
   -------------------------------------------------------- */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #fbfbfd;
}

.hero-slider {
  display: flex !important;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slide {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  align-items: center !important;
  background: #fbfbfd;
  box-sizing: border-box;
}

.slide.slide-iphone16 {
  background: radial-gradient(ellipse at 75% 50%, rgba(212, 175, 55, 0.12) 0%, rgba(255, 255, 255, 0.95) 55%, #fbfbfd 100%);
}

.slide.slide-occasion {
  background: radial-gradient(ellipse at 75% 50%, rgba(79, 70, 229, 0.08) 0%, rgba(248, 250, 252, 0.95) 55%, #f8faff 100%);
}

.slide.slide-gaming {
  background: radial-gradient(ellipse at 75% 50%, rgba(59, 130, 246, 0.12) 0%, rgba(240, 245, 255, 0.95) 55%, #f0f4ff 100%);
}

.slide-overlay {
  display: none !important;
}

.slide-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
}

.slide-content {
  flex: 1 1 540px;
  max-width: 580px;
  z-index: 2;
  opacity: 1 !important;
  transform: none !important;
}

.slide-badge,
.slide-title,
.slide-subtitle,
.slide-actions {
  opacity: 1 !important;
  transform: none !important;
}

/* Chips des spécifications techniques */
.hero-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.slide-product-showcase {
  flex: 0 0 440px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.slide-product-img {
  max-height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
  transition: transform 0.4s ease;
}

.product-glass-badge {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Liens Top Bar */
.top-bar-link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.top-bar-link:hover {
  color: var(--accent-apple);
}

.top-bar-dot {
  opacity: 0.4;
  margin: 0 2px;
}

/* Par défaut masqué sur desktop */
.mobile-only-link {
  display: none !important;
}

/* --------------------------------------------------------
   2. BREAKPOINT TABLETTE LARGE (max-width: 1024px)
   -------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .header-search {
    max-width: 180px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px;
  }

  .shop-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .product-gallery {
    position: static !important;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

/* --------------------------------------------------------
   3. BREAKPOINT MOBILE & TABLETTE PORTRAIT (max-width: 860px)
   -------------------------------------------------------- */
@media (max-width: 860px) {
  /* Layouts 2 colonnes transformés en 1 colonne */
  .about-story-grid,
  .contact-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 24px !important;
  }

  .contact-layout > div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  div[style*="grid-template-columns: 1fr 1.2fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Formulaire d'inscription */
  .form-row-2col,
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* --------------------------------------------------------
   4. BREAKPOINT MOBILE PRINCIPAL (max-width: 768px)
   -------------------------------------------------------- */
@media (max-width: 768px) {
  /* Header compact */
  .top-bar {
    display: none !important;
  }

  .main-header {
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .navbar {
    height: 60px;
    padding: 0;
  }

  .logo {
    font-size: 1.05rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .header-search {
    display: none !important;
  }

  /* Bouton hamburger tactile */
  .mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 1.3rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-toggle:active {
    transform: scale(0.92);
  }

  /* Tiroir de navigation mobile */
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 14px 16px 28px;
    gap: 2px;
    border-bottom: 1px solid var(--border-subtle);
    display: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    display: flex !important;
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-menu-item-search,
  .mobile-menu-item-lang,
  .mobile-menu-item-support,
  .mobile-only-link {
    display: block !important;
  }

  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent-apple);
  }

  /* Hero Slider Mobile */
  .hero-slider-container {
    height: auto !important;
    min-height: 520px !important;
    overflow: hidden !important;
  }

  .slide {
    height: auto !important;
    min-height: 520px !important;
    padding: 0 !important;
  }

  .slide-inner {
    flex-direction: column-reverse !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 24px 16px 36px !important;
    gap: 16px !important;
    text-align: center;
  }

  .slide-content {
    flex: 1 1 auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .slide-title {
    font-size: 1.75rem !important;
    line-height: 1.18 !important;
    margin-bottom: 10px !important;
  }

  .slide-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
  }

  .hero-specs-row {
    justify-content: center !important;
    gap: 6px !important;
    margin-bottom: 18px !important;
  }

  .spec-chip {
    font-size: 0.76rem !important;
    padding: 4px 10px !important;
  }

  .slide-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .slide-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .slide-product-showcase {
    flex: 0 0 auto !important;
    max-width: 220px !important;
    height: 180px !important;
    margin: 0 auto !important;
  }

  .slide-product-img {
    max-height: 175px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
  }

  .product-glass-badge {
    display: none !important;
  }

  .slider-controls {
    display: none !important;
  }

  .slider-dots {
    bottom: 10px !important;
  }

  /* Bannières Boutique Gaming & Accessoires */
  .shop-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 24px 18px !important;
    min-height: auto !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .shop-banner-gaming,
  .shop-banner-accessoires,
  div[style*="linear-gradient(135deg, #0f0f1a"],
  div[style*="linear-gradient(135deg, #090e17"] {
    min-height: auto !important;
    padding: 22px 18px !important;
    overflow: hidden !important;
  }

  /* Masquer complètement les images flottantes sur mobile pour éliminer tout débordement */
  .shop-banner-images,
  div[style*="position: absolute; right: -20px"],
  div[style*="position: absolute; right: 10px"] {
    display: none !important;
  }

  .shop-banner-content,
  div[style*="max-width: 580px"],
  div[style*="max-width: 600px"] {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    z-index: 5 !important;
  }

  .shop-banner h1,
  div[style*="font-size: 2.2rem"] {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
  }

  .shop-banner p {
    font-size: 0.9rem !important;
  }

  /* Reçu & Facture */
  .receipt-card {
    padding: 20px 16px !important;
    border-radius: var(--radius-md) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .receipt-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .receipt-header > div:last-child {
    text-align: left !important;
  }

  .receipt-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    margin-bottom: 20px !important;
  }

  .receipt-items-table {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 0.8rem !important;
  }

  .receipt-items-table th,
  .receipt-items-table td {
    padding: 8px 6px !important;
    font-size: 0.8rem !important;
  }

  /* Sidebar Boutique */
  .shop-sidebar {
    position: static !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
  }

  .shop-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .shop-toolbar select {
    width: 100% !important;
  }

  /* Grille Produits Boutique & Accueil */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card {
    border-radius: var(--radius-md) !important;
  }

  .product-thumb {
    height: 170px !important;
    padding: 10px !important;
  }

  .product-body {
    padding: 12px !important;
  }

  .product-title {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    height: 2.6em;
    overflow: hidden;
  }

  .product-price {
    font-size: 1.05rem !important;
  }

  .add-cart-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  /* Détail Produit */
  .product-main-image {
    min-height: 280px !important;
    height: auto !important;
    padding: 16px !important;
  }

  .product-main-image img {
    max-height: 260px !important;
  }

  .product-detail-title {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }

  .product-action-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .product-action-row .qty-control {
    width: 100% !important;
    justify-content: center !important;
  }

  .product-action-row .btn {
    width: 100% !important;
  }

  /* Panier Mobile en Mode Carte */
  .cart-table thead {
    display: none !important;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr {
    display: block !important;
    width: 100% !important;
  }

  .cart-table tr {
    background: #ffffff !important;
    border-bottom: 2px solid var(--border-subtle) !important;
    padding: 14px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    position: relative !important;
  }

  .cart-table td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
  }

  .cart-item-info {
    flex: 1 1 100% !important;
    gap: 12px !important;
  }

  .cart-item-img {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
  }

  .cart-table td:nth-child(2) {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
  }

  .cart-table td:nth-child(3) {
    flex: 1 !important;
  }

  .cart-table td:nth-child(4) {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
  }

  .cart-table td:nth-child(5) {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
  }

  /* Barre d'action bas de panier */
  div[style*="padding: 20px; display: flex; justify-content: space-between"] {
    flex-direction: column !important;
    gap: 12px !important;
  }

  div[style*="padding: 20px; display: flex; justify-content: space-between"] .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Formulaire Paiement & Récapitulatif */
  .form-card {
    padding: 20px 16px !important;
    border-radius: var(--radius-lg) !important;
  }

  .cart-summary-card {
    padding: 20px 16px !important;
    border-radius: var(--radius-lg) !important;
  }

  /* Page Paiement SEPA & Modes */
  .payment-method-options,
  div[style*="grid-template-columns:repeat(auto-fill,minmax(150px"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .payment-steps,
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .copy-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 12px 14px !important;
  }

  .copy-row-label {
    min-width: auto !important;
  }

  .copy-row-value {
    width: 100% !important;
    word-break: break-all !important;
  }

  .btn-copy {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 6px !important;
    padding: 10px !important;
  }

  /* Bannière RGPD Cookies Mobile */
  #gdpr-cookie-banner {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    padding: 14px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    text-align: left !important;
  }

  #gdpr-cookie-banner > div:last-child {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  #gdpr-cookie-banner .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }
}

/* --------------------------------------------------------
   5. BREAKPOINT PETITS SMARTPHONES (max-width: 480px)
   -------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .section {
    padding: 32px 0 !important;
  }

  .section-title {
    font-size: 1.45rem !important;
  }

  .section-subtitle {
    font-size: 0.9rem !important;
  }

  /* Cartes catégories en 1 colonne sur petit écran */
  .categories-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .category-card {
    height: 180px !important;
  }

  /* Features en 1 colonne */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Produits : 2 colonnes bien optimisées */
  .products-grid {
    gap: 8px !important;
  }

  .product-thumb {
    height: 145px !important;
    padding: 8px !important;
  }

  .product-body {
    padding: 10px !important;
  }

  .product-title {
    font-size: 0.85rem !important;
  }

  .product-price {
    font-size: 0.98rem !important;
  }

  /* Page Paiement : 1 colonne pour les boutons de paiement si très petit */
  .payment-method-options,
  div[style*="grid-template-columns:repeat(auto-fill,minmax(150px"] {
    grid-template-columns: 1fr !important;
  }

  /* Avantages Inscription */
  div[style*="margin-top:28px;display:grid;grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
    /* FIX FINALISER COMMANDE - DEBORDEMENT MOBILE */
  .checkout-page, main, .page-content {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  /* La bannière trop grande */
  .page-header {
    height: 130px !important;
    padding: 15px 12px !important;
  }
  .page-header h1 {
    font-size: 18px !important;
  }

  /* 2 colonnes -> 1 colonne */
  .checkout-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }

  /* Les formulaires qui dépassent */
  .checkout-form, .checkout-summary {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  
  .checkout-form input,
  .checkout-form select {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* --------------------------------------------------------
   6. ULTRA-PETITS MOBILES (max-width: 360px)
   -------------------------------------------------------- */
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr !important;
  }

  .product-thumb {
    height: 200px !important;
  }

  .slide-title {
    font-size: 1.45rem !important;
  }

  .logo-text {
    font-size: 0.95rem !important;
  }
}
/* FIX DEFINITIF CHECKOUT ANDROID - COUPE A DROITE */
@media (max-width: 480px) {
  /* Bloque tout débordement */
  .checkout-page, #checkout-page, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Votre Commande - carte */
  .order-summary, .votre-commande, [class*="commande"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px !important;
  }

  /* LE VRAI BUG : nom produit trop long */
  .order-item, .cart-item {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .order-item-title, .product-name {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  /* Prix qui sortent */
  .order-totals, .order-summary-row {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  /* Bouton bleu coupé */
  .btn-checkout, button[class*="Paiement"] {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 15px !important;
    white-space: normal !important;
    padding: 14px 10px !important;
    box-sizing: border-box !important;
  }
}
/* FIX NUCLEAIRE - PAGE FINALISER ANDROID */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* Toutes les divs de la page */
  .checkout-page *, 
  [class*="checkout"] *, 
  [class*="commande"] * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Force le texte long à passer à la ligne - C'EST TON BUG ICI */
    * {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  /* Le bloc Votre Commande qui sort */
  div[style*="background"], 
  div[style*="border-radius"] {
    width: 100% !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }

  /* Le produit avec image + titre */
  div[style*="display: flex"] {
    flex-wrap: wrap !important;
  }
}
/* FIX FINAL ANDROID - PAGE FINALISER COUPEE */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
  }

  /* Ton container principal */
  main, .container, .page-wrapper, body > div {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Titres qui sont coupés à gauche sur ta photo */
  h1, h2, p {
    max-width: 100% !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Tous les inputs Prénom, Nom... */
  input, select, textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Le select France et Colissimo qui déborde */
  select, div[class*="select"] {
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
