/* Styles existants... */
:where([class^="ri-"])::before { content: "\f3c2"; }

/* --- Responsive Design for Mobile --- */

/* Styles pour les écrans jusqu'à 768px (tablettes et mobiles) */
@media (max-width: 768px) {

    /* --- Top Bar --- */
    #top-bar .container {
        flex-direction: column;
        gap: 0.75rem; /* Espace entre les blocs contact et garanties */
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    #top-bar .container > div {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem; /* Espace entre les éléments (tél/adresse, etc.) */
        text-align: center;
    }

    /* --- Sections --- */
    section {
        padding: 4rem 1.5rem; /* Espacement vertical réduit, horizontal augmenté */
    }

    /* --- Typographie --- */
    h1, .h1 {
        font-size: 2.5rem; /* Taille de titre H1 réduite */
        line-height: 1.2;
    }

    h2, .h2 {
        font-size: 2rem; /* Taille de titre H2 réduite */
    }

    /* --- Section Hero --- */
    #hero {
        padding-top: 6rem; /* Plus d'espace sous le header */
        padding-bottom: 4rem;
    }

    #hero .grid {
        grid-template-columns: 1fr; /* Passage en une seule colonne */
        text-align: center; /* Centrer le texte */
    }

    #hero .hero-content {
        order: 2; /* Le texte passe après l'image */
    }

    #hero .hero-image-container {
        order: 1; /* L'image passe avant le texte */
        margin-bottom: 2rem;
    }

    /* Affichage des images hero sur mobile */
    .hero-images-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
        grid-template-rows: auto auto; /* 2 rangées */
        gap: 1rem;
        margin-top: 3rem;
        padding: 0 1rem;
        max-width: 300px; /* Largeur maximale pour un meilleur contrôle */
        margin-left: auto;
        margin-right: auto;
    }

    .hero-images-mobile img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-radius: 0.75rem;
        border: 2px solid #FBBF24;
    }

    /* Première image en haut à gauche */
    .hero-images-mobile img:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    /* Deuxième image en haut à droite */
    .hero-images-mobile img:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    /* Troisième image centrée en bas */
    .hero-images-mobile img:nth-child(3) {
        grid-column: 1 / 3; /* S'étend sur les 2 colonnes */
        grid-row: 2;
        max-width: 140px; /* Largeur réduite pour qu'elle soit centrée visuellement */
        margin: 0 auto; /* Centrage horizontal */
    }

    .floating-badge {
        display: none; /* Cacher les badges flottants qui surchargent */
    }

    /* --- Section Produits --- */
    #products .grid {
        grid-template-columns: 1fr; /* Grille en une seule colonne */
        gap: 2rem; /* Espacement entre les cartes */
    }

    .product-card img {
        height: 250px; /* Hauteur d'image fixe pour la cohérence */
        object-fit: cover;
        width: 100%;
    }

    /* --- Section 'À Propos' --- */
    #about .grid {
        grid-template-columns: 1fr; /* Passage en une seule colonne */
        gap: 2rem;
    }

    #about .about-image {
        margin-bottom: 2rem;
    }

    /* --- Section Contact --- */
    #contact .grid {
        grid-template-columns: 1fr; /* Passage en une seule colonne */
        gap: 2rem;
    }

    #contact form {
        padding: 1.5rem;
    }

    /* --- Footer --- */
    footer .grid {
        grid-template-columns: 1fr; /* Passage en une seule colonne */
        text-align: center;
    }

    footer .grid > div {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrer horizontalement les enfants */
    }

    footer .grid > div {
        margin-bottom: 2rem;
    }

    footer ul {
        justify-content: center;
    }

}

/* Styles spécifiques pour les très petits écrans (en dessous de 480px) */
@media (max-width: 480px) {
    h1, .h1 {
        font-size: 2rem;
    }

    h2, .h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.25rem; /* Boutons légèrement plus petits */
        font-size: 0.9rem;
    }
}

.hero-bg {
  background-image: url('https://readdy.ai/api/search-image?query=professional%20car%20trailer%20on%20modern%20road%20with%20clean%20white%20background%20premium%20quality%20automotive%20equipment%20bright%20daylight%20minimal%20composition%20high%20end%20commercial%20photography%20style&width=1920&height=1080&seq=hero1&orientation=landscape');
  background-size: cover;
  background-position: center;
}
.dark-mode {
background-color: #0f172a;
color: #f1f5f9;
}
.dark-mode .bg-white {
background-color: #1e293b !important;
}
.dark-mode .text-gray-900 {
color: #f1f5f9 !important;
}
.dark-mode .text-gray-600 {
color: #94a3b8 !important;
}
.dark-mode .border-gray-200 {
border-color: #334155 !important;
}
.animate-fade-in {
animation: fadeIn 0.6s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
animation: slideUp 0.8s ease-out;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(40px); }
to { opacity: 1; transform: translateY(0); }
}
.hover-scale {
transition: transform 0.3s ease;
}
.hover-scale:hover {
transform: scale(1.05);
}
.card-shadow {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
transition: box-shadow 0.3s ease;
}
.card-shadow:hover {
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
} 

.toast-notification {
position: fixed;
top: 24px;
right: 24px;
background: white;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 16px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
z-index: 50;
opacity: 0;
transform: translateX(100%);
transition: all 0.3s ease;
}
.toast-notification.show {
opacity: 1;
transform: translateX(0);
}
@keyframes cartBounce {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.2); }
}
.cart-bounce {
animation: cartBounce 0.5s ease;
} 

/* HERO MODERNE */
.hero-bg .bg-gradient-to-br {
  pointer-events: none;
}
.animate-bounce {
  animation: bounce 1.2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.drop-shadow-lg {
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.25));
}
.shadow-xl {
  box-shadow: 0 10px 32px -4px rgba(30,64,175,0.18), 0 2px 8px -2px rgba(0,0,0,0.08);
}
/* Badge N°1 */
.hero-bg .badge-num1 {
  background: linear-gradient(90deg, #fde047 60%, #fffbe6 100%);
  color: #b45309;
  font-weight: bold;
  border-radius: 9999px;
  box-shadow: 0 4px 16px -2px rgba(253,224,71,0.25);
  padding: 0.5rem 1.5rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
} 

/* HEADER ÉPURÉ */
header {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 2px 8px -6px #0001;
  transition: none;
}
.font-pacifico {
  font-family: 'Pacifico', serif;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.nav-link {
  position: relative;
  color: #1e293b;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.15rem 0.5rem;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: #1e40af;
}
.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #fde047;
  border-radius: 2px;
  transition: width 0.3s;
  margin-top: 2px;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
header .badge-num1 { display: none; }
@media (max-width: 1024px) {
  .font-pacifico { font-size: 1rem; }
}

/* HERO SURCHARGÉE */
.hero-halo {
  z-index: 0;
  pointer-events: none;
}
.hero-particles {
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, #fde04755 0 8px, transparent 40px),
    radial-gradient(circle at 80% 60%, #38bdf855 0 10px, transparent 50px),
    radial-gradient(circle at 60% 20%, #fbbf2455 0 6px, transparent 30px),
    radial-gradient(circle at 40% 80%, #1e40af33 0 12px, transparent 60px);
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.7;
  pointer-events: none;
}
.animate-bounce-slow {
  animation: bounce 2.2s infinite;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.animate-glow {
  box-shadow: 0 0 16px 2px #1e40af55, 0 2px 8px -2px #0002;
  animation: glow 1.5s alternate infinite;
}
@keyframes glow {
  from { box-shadow: 0 0 16px 2px #1e40af55, 0 2px 8px -2px #0002; }
  to { box-shadow: 0 0 32px 8px #fde04788, 0 2px 8px -2px #0002; }
} 

/* HERO ÉPURÉE */
.hero-halo {
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, #fde04755 0%, transparent 70%);
}
.badge-num1 {
  font-size: 0.95rem;
  padding: 0.25rem 1.1rem;
  margin-left: 0.5rem;
  box-shadow: 0 2px 8px -2px #fde04733;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.02em;
}
.hero-bg .text-base {
  font-size: 1.08rem;
}
.hero-bg .text-xl {
  font-size: 1.35rem;
}
.hero-bg .text-2xl {
  font-size: 1.7rem;
}
.hero-bg .text-5xl {
  font-size: 2.7rem;
}
@media (min-width: 768px) {
  .hero-bg .text-5xl {
    font-size: 3.5rem;
  }
  .hero-bg .text-7xl {
    font-size: 5rem;
  }
}
.hero-bg .drop-shadow-lg {
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.18));
} 

/* HERO COMPACTE & FOND GRIS FONCÉ */
/* (SUPPRIMÉ car on doit garder l'image d'origine) */
.hero-bg .bg-black\/70 {
  padding: 1rem 1.2rem;
  border-radius: 1.1rem;
}
.hero-bg .text-2xl { font-size: 1.4rem; }
.hero-bg .text-5xl { font-size: 2.2rem; }
.hero-bg .text-6xl { font-size: 2.7rem; }
.hero-bg .text-base { font-size: 1rem; }
.hero-bg .w-8, .hero-bg .h-8 { width: 2rem; height: 2rem; }
.hero-bg .mb-2 { margin-bottom: 0.5rem; }
.hero-bg .mb-4 { margin-bottom: 1rem; }
.hero-bg .mb-6 { margin-bottom: 1.2rem; }
.hero-bg .gap-2 { gap: 0.5rem; }
.hero-bg .gap-3 { gap: 0.7rem; }
.hero-bg .px-6 { padding-left: 1.1rem; padding-right: 1.1rem; }
.hero-bg .py-3 { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.hero-bg .px-3 { padding-left: 0.7rem; padding-right: 0.7rem; }
.hero-bg .py-1 { padding-top: 0.2rem; padding-bottom: 0.2rem; }
@media (min-width: 768px) {
  .hero-bg .bg-black\/70 { padding: 1.7rem 2.2rem; }
  .hero-bg .text-5xl { font-size: 2.8rem; }
  .hero-bg .text-6xl { font-size: 3.7rem; }
  .hero-bg .w-10, .hero-bg .h-10 { width: 2.5rem; height: 2.5rem; }
}

/* RESPONSIVE HEADER & HERO */
@media (max-width: 768px) {
  header .font-pacifico { font-size: 1.5rem; }
  header .badge-num1 { font-size: 0.8rem; padding: 0.15rem 0.7rem; }
  .hero-bg .text-3xl { font-size: 2rem; }
  .hero-bg .text-5xl { font-size: 2.5rem; }
  .hero-bg .text-7xl { font-size: 3rem; }
  .hero-bg .p-10, .hero-bg .md\:p-10 { padding: 1.25rem !important; }
  .hero-bg .rounded-2xl { border-radius: 1rem; }
  .hero-bg .flex-row { flex-direction: column; gap: 1.25rem; }
  .hero-bg .w-10, .hero-bg .h-10 { width: 2.2rem; height: 2.2rem; }
  .hero-bg .px-8 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-bg .py-4 { padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .hero-bg .max-w-3xl { max-width: 100%; }
}
#mobileMenu {
  transition: opacity 0.2s;
}
#mobileMenu .nav-link {
  font-size: 1.2rem;
  padding: 0.7rem 0;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}
#mobileMenu .nav-link:last-child { border-bottom: none; } 

/* RESPONSIVE HEADER CATALOG */
@media (max-width: 768px) {
  header .font-pacifico { font-size: 1.5rem; }
  header .badge-num1 { font-size: 0.8rem; padding: 0.15rem 0.7rem; }
}
#mobileMenu {
  transition: opacity 0.2s;
}
#mobileMenu .nav-link {
  font-size: 1.2rem;
  padding: 0.7rem 0;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}
#mobileMenu .nav-link:last-child { border-bottom: none; } 

/* POURQUOI NOUS CHOISIR - CARTES & ANIMATIONS */
.why-card {
  box-shadow: 0 2px 8px -2px #0001;
  transition: box-shadow 0.3s, transform 0.3s;
}
.why-card:hover {
  box-shadow: 0 8px 32px -4px #1e293b22, 0 2px 8px -2px #0002;
  transform: translateY(-8px) scale(1.04);
}
.why-icon {
  transition: background 0.3s, transform 0.3s;
}
.why-card:hover .why-icon {
  transform: scale(1.10) rotate(-6deg);
  filter: brightness(1.08);
}
.why-card .bg-yellow-100, .why-card .bg-green-100, .why-card .bg-blue-100, .why-card .bg-red-100 {
  transition: background 0.3s;
}
.why-card:hover .bg-yellow-100 { background: #fef08a; }
.why-card:hover .bg-green-100 { background: #bbf7d0; }
.why-card:hover .bg-blue-100 { background: #bae6fd; }
.why-card:hover .bg-red-100 { background: #fecaca; }
.why-card .shadow {
  box-shadow: 0 2px 8px -2px #fde04755;
}
.why-card .bg-yellow-400 {
  box-shadow: 0 2px 8px -2px #fde04755;
} 

/* AVATARS & TÉMOIGNAGES */
.avatar {
  box-shadow: 0 2px 8px -2px #0002;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  user-select: none;
}
.testimonial-card {
  box-shadow: 0 2px 8px -2px #0001;
  transition: box-shadow 0.3s, transform 0.3s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px -4px #1e293b22, 0 2px 8px -2px #0002;
  transform: translateY(-8px) scale(1.03);
}
.testimonial-card .bg-green-100 {
  background: #bbf7d0;
}
.testimonial-card .bg-primary {
  background: #1e40af;
}
.testimonial-card .bg-secondary {
  background: #059669;
}
.testimonial-card .bg-yellow-500 {
  background: #f59e42;
} 

/* PRODUITS PHARES - CARTES & BOUTONS */
.product-card {
  box-shadow: 0 2px 8px -2px #0001;
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover {
  box-shadow: 0 8px 32px -4px #1e293b22, 0 2px 8px -2px #0002;
  transform: translateY(-8px) scale(1.03);
}
.product-card .shadow {
  box-shadow: 0 2px 8px -2px #1e40af22;
}
.product-card button,
.product-card .bg-primary {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.product-card button:hover,
.product-card .hover\:bg-blue-700:hover {
  background: #fde047 !important;
  color: #1f2937 !important;
  box-shadow: 0 4px 16px -2px #fde04755;
  transform: scale(1.07);
}
.product-card .hover\:scale-105:hover {
  transform: scale(1.07);
}
.product-card .rounded-lg { border-radius: 0.7rem; }
.product-card .bg-red-500, .product-card .bg-green-500, .product-card .bg-green-600, .product-card .bg-orange-500 {
  box-shadow: 0 2px 8px -2px #fde04733;
} 

/* FORMULAIRE PREMIUM */
#contactForm input, #contactForm textarea {
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
}
#contactForm input:focus, #contactForm textarea:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 2px #1e40af22;
}
#contactForm .relative i {
  opacity: 0.7;
  font-size: 1.1em;
}
#contactForm button[type="submit"] {
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px -2px #1e40af22;
}
#contactForm button[type="submit"]:hover {
  background: #1e40af;
  color: #fff;
  box-shadow: 0 8px 32px -4px #1e40af33;
  transform: translateY(-2px) scale(1.03);
}
#contactSuccess {
  animation: fadeIn 0.6s;
}
#contactForm .accent-primary {
  accent-color: #1e40af;
}
@media (max-width: 900px) {
  #contactForm { padding: 1.5rem !important; }
} 