﻿ï»¿/**
 * ========================================================================
 * STYLES POUR RECHERCHE AVANCÃE - RÃFÃRENCE & MARQUE
 * ========================================================================
 * Styles pour l'affichage des mÃ©tadonnÃ©es dans l'autocomplÃ©tion
 * 
 * @version 1.0.0
 * @author Abdoul Khoudouss Sow
 * @date 2025-01-23
 */

/* ========== CORRECTION FLÃCHES SELECT VÃHICULE ========== */
.vehicle-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23333" d="M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 35px !important;
}

/* ========== MÃTADONNÃES DANS L'AUTOCOMPLÃTION ========== */

.search-autocomplete-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
}

.search-autocomplete-meta strong {
    font-weight: 600;
    color: #4b5563;
    margin-right: 4px;
}

/* Badge pour rÃÂ©fÃÂ©rence */
.search-autocomplete-meta.reference {
    display: inline-flex;
    align-items: center;
    background: rgba(26, 115, 232, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 4px;
    border-left: 2px solid rgba(26, 115, 232, 0.4);
}

/* Badge pour marque */
.search-autocomplete-meta.marque {
    display: inline-flex;
    align-items: center;
    background: rgba(40, 167, 69, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 4px;
    margin-left: 6px;
    border-left: 2px solid rgba(40, 167, 69, 0.4);
}

/* Container pour les badges */
.search-autocomplete-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

/* IcÃÂ´nes pour les mÃÂ©tadonnÃÂ©es */
.search-autocomplete-meta::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.search-autocomplete-meta.reference::before {
    content: 'Ã°Å¸ÂÂ·Ã¯Â¸Â';
    font-size: 0.75rem;
}

.search-autocomplete-meta.marque::before {
    content: 'Ã°Å¸ÂÂ­';
    font-size: 0.75rem;
}

/* ========== AMÃâ°LIORATION DU NOM DU PRODUIT ========== */

.search-autocomplete-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    line-height: 1.4;
    transition: color 0.2s ease;
    margin-bottom: 2px;
}

.search-autocomplete-item:hover .search-autocomplete-name {
    color: var(--primary-color);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .search-autocomplete-meta {
        font-size: 0.8rem;
    }
    
    .search-autocomplete-meta.reference,
    .search-autocomplete-meta.marque {
        font-size: 0.75rem;
        padding: 1px 6px;
    }
    
    .search-autocomplete-name {
        font-size: 0.9rem;
    }
}

/* ========== ANIMATION AU CHARGEMENT ========== */

@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-autocomplete-meta {
    animation: fadeInBadge 0.2s ease-out;
}

/* ========== AMÃâ°LIORATION DU CONTRASTE ========== */

.search-autocomplete-item:hover .search-autocomplete-meta {
    color: #374151;
}

.search-autocomplete-item:hover .search-autocomplete-meta strong {
    color: #111827;
}

/* Badge au survol */
.search-autocomplete-item:hover .search-autocomplete-meta.reference {
    background: rgba(26, 115, 232, 0.12);
    border-left-color: rgba(26, 115, 232, 0.6);
}

.search-autocomplete-item:hover .search-autocomplete-meta.marque {
    background: rgba(40, 167, 69, 0.12);
    border-left-color: rgba(40, 167, 69, 0.6);
}

/* ========== SÃâ°PARATEUR VISUEL ========== */

.search-autocomplete-content {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
}

/* Ligne de sÃÂ©paration subtile entre nom et mÃÂ©tadonnÃÂ©es */
.search-autocomplete-content > .search-autocomplete-name::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, transparent 100%);
    margin-top: 4px;
}

/* Masquer le sÃÂ©parateur si pas de mÃÂ©tadonnÃÂ©es */
.search-autocomplete-content:not(:has(.search-autocomplete-meta)) > .search-autocomplete-name::after {
    display: none;
}

/* ========== AMÃâ°LIORATION DE LA SURBRILLANCE ========== */

.search-autocomplete-name strong,
.search-autocomplete-meta strong {
    background: linear-gradient(120deg, rgba(26, 115, 232, 0.1) 0%, rgba(26, 115, 232, 0.05) 100%);
    padding: 1px 2px;
    border-radius: 2px;
}

/* ========== Ãâ°TAT FOCUS/ACTIVE ========== */

.search-autocomplete-item.active .search-autocomplete-meta.reference,
.search-autocomplete-item:focus .search-autocomplete-meta.reference {
    background: rgba(26, 115, 232, 0.15);
}

.search-autocomplete-item.active .search-autocomplete-meta.marque,
.search-autocomplete-item:focus .search-autocomplete-meta.marque {
    background: rgba(40, 167, 69, 0.15);
}
/* ============================================
   RECHERCHE AVANCÃâ°E PAR VÃâ°HICULE - STYLE PREMIUM
   ============================================ */

.vehicle-search-wrapper {
    /* Style identique ÃÂ  "RECHERCHER UNE PIÃËCE" (section hero) */
    background: linear-gradient(315deg, var(--secondary) 0%, var(--dark) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 0 !important; /* SupprimÃÂ© le margin-top pour ÃÂ©galiser */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* SUPPRESSION : transition, transform, hover effects */
    position: relative;
    overflow: hidden;
}

/* CORRECTION DESKTOP - Padding identique aux deux sections + largeur augmentÃÂ©e */
@media (min-width: 769px) {
    .vehicle-search-wrapper {
        padding: 1.5rem 1.8rem !important; /* AugmentÃÂ© de 1.5rem ÃÂ  1.8rem sur les cÃÂ´tÃÂ©s */
        margin-top: 0 !important; /* ForcÃÂ© ÃÂ  0 */
    }
}

/* S'assurer que le contenu reste au-dessus */
.vehicle-search-wrapper > * {
    position: relative;
    z-index: 1;
}

.vehicle-search-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem; /* AugmentÃÂ© pour correspondre au titre "RECHERCHER UNE PIÃËCE" */
    font-weight: 800; /* Plus gras pour l'effet 3D */
    color: #ffffff; /* Blanc pour correspondre au style hero */
    margin-bottom: 0.8rem; /* Ãâ°galisÃÂ© avec la section recherche rapide */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
    
    /* Effet 3D ÃÂ©lÃÂ©gant avec ombres progressives */
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
    
    transform: translateY(-2px);
}

/* IcÃÂ´ne voiture supprimÃÂ©e - pas de ::before */

/* Desktop: augmenter l'espacement du titre */
@media (min-width: 769px) {
    .vehicle-search-title {
        margin-bottom: 1.2rem; /* Plus d'espacement sur desktop */
    }
}

.vehicle-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.8rem; /* Ãâ°galisÃÂ© */
}

/* Desktop: Largeur augmentÃÂ©e des champs */
@media (min-width: 769px) {
    .vehicle-search-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* 5 champs */
    }
}

@media (max-width: 768px) {
    .vehicle-search-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
        gap: 0.5rem 0.6rem; /* gap vertical puis horizontal */
    }
    
    /* ===== INTERVERSION MOTORISATION / ANNÉE SUR MOBILE ===== */
    /* Année (5e enfant HTML) en 4e position visuelle */
    .vehicle-search-grid .vehicle-select-wrapper:nth-child(5) {
        order: 4 !important;
    }
    
    /* Motorisation (4e enfant HTML) en 5e position, pleine largeur */
    .vehicle-search-grid .vehicle-select-wrapper:nth-child(4) {
        order: 5 !important;
        grid-column: 1 / -1 !important;
    }
    
    .vehicle-search-wrapper {
        padding: 1rem;
        margin-top: 0rem !important; /* CollÃÂ© ÃÂ  la section du haut - pas d'espace */
        margin-bottom: 0rem !important;
        background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%) !important; /* Direction inversÃÂ©e sur mobile */
    }
    
    /* RÃÂ©duction des tailles de texte sur mobile */
    .vehicle-select {
        padding: 0.55rem 2rem 0.55rem 0.7rem;
        font-size: 0.75rem; /* Texte plus petit */
    }
    
    .vehicle-select-label {
        font-size: 0.65rem; /* Labels plus petits */
        margin-bottom: 0.3rem;
    }
    
    .vehicle-search-title {
        font-size: 0.95rem; /* AugmentÃÂ© pour mobile */
        margin-bottom: 1rem;
        text-align: center; /* Centrer le titre sur mobile */
        justify-content: center; /* Centrer le contenu flexbox */
    }
    
    /* FlÃÂ¨che plus petite */
    .vehicle-select-wrapper::after {
        font-size: 0.6rem;
        right: 0.7rem;
    }
}

/* SÃÂ©lecteurs personnalisÃÂ©s */
.vehicle-select-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vehicle-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Desktop: Taille de police rÃÂ©duite */
@media (min-width: 769px) {
    .vehicle-select {
        font-size: 0.65rem; /* RÃÂ©duit significativement pour desktop */
    }
}

/* FlÃ¨che personnalisÃ©e - SUPPRIMÃE - Maintenant gÃ©rÃ©e par background-image du select */
/* Ancien code .vehicle-select-wrapper::after supprimÃ© pour Ã©viter les caractÃ¨res bizarres */

.vehicle-select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.vehicle-select:hover {
    border-color: #bfdbfe;
}

/* Ancien code hover sur flÃ¨che - SupprimÃ© */

/* Ancien code rotation - SupprimÃ© */

/* Options dÃÂ©sactivÃÂ©es */
.vehicle-select option:disabled {
    color: #9ca3af;
    font-style: italic;
}

/* Premier option (placeholder) */
.vehicle-select option:first-child {
    color: #9ca3af;
}

/* Options normales */
.vehicle-select option:not(:first-child) {
    color: #1f2937;
    font-weight: 500;
}

/* Ãâ°tat dÃÂ©sactivÃÂ© */
.vehicle-select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

/* Ancien code disabled - SupprimÃ© */

/* Labels au-dessus des selects */
.vehicle-select-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9); /* Blanc lÃÂ©gÃÂ¨rement transparent */
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Boutons d'action */
.vehicle-search-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.vehicle-search-btn,
.vehicle-reset-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vehicle-search-btn {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.vehicle-search-btn:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
    transform: translateY(-2px);
}

.vehicle-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.vehicle-search-btn::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.vehicle-reset-btn {
    background: #ffffff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vehicle-reset-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vehicle-reset-btn:active {
    background: #f3f4f6;
}

/* Ancienne icÃÂ´ne supprimÃÂ©e - utilisation du SVG dans le HTML */

/* Taille de l'icÃÂ´ne SVG sur desktop */
.vehicle-reset-btn svg {
    width: 20px !important;
    height: 20px !important;
    margin-right: 6px !important;
    flex-shrink: 0 !important;
}

@media (max-width: 768px) {
    .vehicle-search-actions {
        flex-direction: row !important; /* ChangÃÂ© de column ÃÂ  row pour mettre les boutons cÃÂ´te ÃÂ  cÃÂ´te */
        gap: 0.6rem;
        align-items: stretch !important; /* Pour que les boutons aient la mÃÂªme hauteur */
    }
    
    .vehicle-search-btn,
    .vehicle-reset-btn {
        flex: 1 !important; /* Partager l'espace ÃÂ©quitablement */
        padding: 0.4rem 0.5rem !important; /* Padding encore plus rÃÂ©duit avec !important */
        font-size: 0.7rem !important; /* Texte encore plus petit avec !important */
        min-height: 36px !important; /* Hauteur fixe pour alignement */
        height: 36px !important; /* Hauteur fixe pour alignement */
    }
    
    /* RÃÂ©duire la taille du SVG sur mobile */
    .vehicle-reset-btn svg {
        width: 14px !important;
        height: 14px !important;
        margin-right: 4px !important;
    }
    
    /* RÃÂ©duire la taille de l'icÃÂ´ne du bouton rechercher */
    .vehicle-search-btn::before {
        font-size: 1rem;
    }
}

/* Badge de rÃÂ©sultats - MASQUÃâ° */
.vehicle-results-badge {
    display: none !important;
}

/* Animation de chargement */
.vehicle-search-loading {
    display: none;
    text-align: center;
    padding: 1rem;
    color: #6b7280;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.vehicle-search-loading.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.vehicle-search-loading::before {
    content: 'Ã¢ÂÂ³';
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive - trÃÂ¨s petits ÃÂ©crans */
@media (max-width: 480px) {
    .vehicle-search-grid {
        gap: 0.4rem 0.5rem;
    }
    
    .vehicle-select {
        padding: 0.5rem 1.8rem 0.5rem 0.6rem;
        font-size: 0.7rem; /* Encore plus petit */
    }
    
    .vehicle-select-label {
        font-size: 0.6rem;
        margin-bottom: 0.25rem;
    }
    
    .vehicle-search-title {
        font-size: 0.8rem;
        gap: 0.4rem;
        text-align: center; /* Centrer le titre sur trÃÂ¨s petits ÃÂ©crans */
        justify-content: center; /* Centrer le contenu flexbox */
    }
    
    /* IcÃÂ´ne voiture supprimÃÂ©e - pas de ::before */
    
    .vehicle-select-wrapper::after {
        font-size: 0.55rem;
        right: 0.6rem;
    }
    
    .vehicle-search-wrapper {
        padding: 0.8rem;
    }
    
    /* Boutons encore plus compacts sur trÃÂ¨s petits ÃÂ©crans */
    .vehicle-search-btn,
    .vehicle-reset-btn {
        padding: 0.5rem 0.8rem; /* Hauteur minimale */
        font-size: 0.75rem; /* Texte plus petit */
    }
    
    .vehicle-search-btn::before {
        font-size: 0.9rem; /* IcÃÂ´nes plus petites */
    }
    
    .vehicle-search-actions {
        gap: 0.5rem; /* Gap rÃÂ©duit entre les boutons */
    }
}
/* ========================================================================
   AJUSTEMENTS RESPONSIVE POUR LES SECTIONS DE RECHERCHE
   ======================================================================== */

/* RÃÂ©duire l'espace entre les deux sections de recherche sur mobile */
@media (max-width: 768px) {
    /* RÃÂ©duire le margin-bottom de la section RECHERCHE RAPIDE */
    .filters {
        margin-bottom: 0.5rem !important;
        padding: 1rem !important; /* RÃÂ©duire le padding pour diminuer la hauteur */
    }
    
    /* RÃÂ©duire la hauteur des champs de recherche */
    .filters input[type="text"],
    .filters select,
    #searchInput {
        height: 38px !important; /* Hauteur rÃÂ©duite de 45px ÃÂ  38px */
        padding: 0.5rem 2.5rem 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    /* RÃÂ©duire le margin-top de la section RECHERCHEZ PAR VÃâ°HICULE */
    .vehicle-search-wrapper {
        margin-top: 0rem !important;
        margin-bottom: 1.5rem !important; /* Augmenter l'espace avec les fiches produits */
    }
}
/**
 * STYLES POUR LE BADGE DE FILTRES COMBINÃâ°S
 * AlloPieceDetachee.sn
 * 
 * Design EXACT selon la maquette client
 * 
 * @author Abdoul Khoudouss Sow
 * @version 2.0
 */

/* Container principal du badge - SCROLL TARGET */
.combined-filters-badge {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin: 0 0 1rem 0; /* Pas de marge en haut pour ÃÂªtre visible immÃÂ©diatement aprÃÂ¨s le scroll */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.3s ease-out;
    position: relative;
    scroll-margin-top: 100px; /* Espace de scroll pour ne pas ÃÂªtre cachÃÂ© sous le header */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* En-tÃÂªte du badge - Ã°Å¸âÂ 1 rÃÂ©sultat */
.badge-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.badge-icon {
    font-size: 1.1rem;
}

.badge-count {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333333;
    letter-spacing: 0.2px;
}

/* Bouton effacer tout - Ã¢Åâ¢ dans le coin */
.badge-clear {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    background: #f44336;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
}

.badge-clear:hover {
    background: #e53935;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(244, 67, 54, 0.4);
}

.badge-clear:active {
    transform: scale(0.95);
}

/* Container des filtres - Recherche: "cri" */
.badge-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding-left: 0.2rem;
}

/* Item de filtre individuel - Plus petit et gris */
.badge-filter-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #757575;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1px;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .combined-filters-badge {
        padding: 0.7rem 0.9rem;
        margin: 0.6rem 0 0.8rem 0;
        border-radius: 6px;
    }
    
    .badge-header {
        gap: 0.4rem;
        margin-bottom: 0.3rem;
    }
    
    .badge-icon {
        font-size: 1rem;
    }
    
    .badge-count {
        font-size: 0.85rem;
    }
    
    .badge-clear {
        width: 22px;
        height: 22px;
        font-size: 13px;
        top: 0.5rem;
        right: 0.7rem;
    }
    
    .badge-filter-item {
        font-size: 0.7rem;
    }
}

/* Badge compact pour petits ÃÂ©crans */
@media (max-width: 480px) {
    .combined-filters-badge {
        padding: 0.6rem 0.8rem;
        margin: 0.5rem 0 0.7rem 0;
    }
    
    .badge-count {
        font-size: 0.8rem;
    }
    
    .badge-filter-item {
        font-size: 0.65rem;
    }
}
/**
 * COMPACTAGE DES SECTIONS DE RECHERCHE - DESKTOP UNIQUEMENT
 * AlloPieceDetachee.sn
 * 
 * RÃÂ©duit l'espace vertical des sections de recherche sur desktop
 * 
 * @author Abdoul Khoudouss Sow
 * @version 1.0
 */

/* ========== DESKTOP UNIQUEMENT (769px et plus) ========== */
@media (min-width: 769px) {
    
    /* ========== SECTION RECHERCHE TEXTUELLE ========== */
    .filters {
        padding: 0.6rem 1rem !important;
        margin-bottom: 0.6rem !important;
        border-radius: 12px !important;
    }
    
    .filters h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
    }
    
    .filter-group {
        gap: 0.5rem !important;
    }
    
    /* Champs de recherche */
    .search-autocomplete-wrapper input,
    #searchInput {
        padding: 0.5rem 40px 0.5rem 36px !important;
        font-size: 0.82rem !important;
        height: 36px !important;
        border-radius: 10px !important;
    }
    
    .search-icon {
        font-size: 0.95rem !important;
        left: 11px !important;
    }
    
    .search-clear-btn,
    #searchClearBtn {
        width: 24px !important;
        height: 24px !important;
        font-size: 16px !important;
        right: 8px !important;
    }
    
    #categoryFilter {
        padding: 0.5rem 2.2rem 0.5rem 0.9rem !important;
        font-size: 0.82rem !important;
        height: 36px !important;
        border-radius: 10px !important;
    }
    
    /* ========== SECTION RECHERCHE VÃâ°HICULE ========== */
    .vehicle-search-wrapper {
        padding: 0.7rem 1rem !important;
        margin-top: 0.6rem !important;
        border-radius: 12px !important;
    }
    
    .vehicle-search-title {
        font-size: 1rem !important;
        margin-bottom: 1rem !important; /* AugmentÃÂ© pour plus d'espacement */
        gap: 0.4rem !important;
    }
    
    /* IcÃÂ´ne voiture supprimÃÂ©e - pas de ::before */
    
    .vehicle-search-grid {
        gap: 0.5rem !important;
        margin-bottom: 0.6rem !important;
        grid-template-columns: repeat(5, 1fr) !important;
    }
    
    .vehicle-select-label {
        font-size: 0.65rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .vehicle-select {
        padding: 0.5rem 2rem 0.5rem 0.8rem !important;
        font-size: 0.9rem !important;
        height: 42px !important;
        border-radius: 10px !important;
    }
    
    .vehicle-select-wrapper::after {
        font-size: 0.7rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        right: 0.8rem !important;
    }
    
    .vehicle-search-actions {
        gap: 0.5rem !important;
        margin-top: 0.6rem !important;
    }
    
    .vehicle-search-btn,
    .vehicle-reset-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.82rem !important;
        height: 36px !important;
        border-radius: 10px !important;
        gap: 0.4rem !important;
        max-width: 140px !important;
    }
    
    .vehicle-search-btn::before {
        font-size: 0.95rem !important;
    }
    
    /* ========== BADGE DE RÃâ°SULTATS ========== */
    .combined-filters-badge {
        padding: 0.6rem 0.9rem !important;
        margin: 0.5rem 0 0.8rem 0 !important;
        border-radius: 10px !important;
    }
    
    .badge-header {
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .badge-icon {
        font-size: 1.1rem !important;
    }
    
    .badge-count {
        font-size: 0.85rem !important;
    }
    
    .badge-clear {
        width: 26px !important;
        height: 26px !important;
        font-size: 15px !important;
    }
    
    .badge-filters {
        gap: 0.4rem !important;
    }
    
    .badge-filter-item {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.6rem !important;
        border-radius: 14px !important;
    }
    
    /* ========== ESPACEMENTS GLOBAUX ========== */
    main {
        padding-top: 0.6rem !important;
    }
    
    .container {
        padding-top: 0 !important;
    }
    
    /* RÃÂ©duire l'espace entre le badge et la grille de produits */
    .products-grid {
        margin-top: 0.5rem !important;
    }
}

/* ========== TRÃËS GRANDS Ãâ°CRANS (1400px et plus) ========== */
@media (min-width: 1400px) {
    
    /* Optimisation pour grands ÃÂ©crans */
    .vehicle-search-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .filters,
    .vehicle-search-wrapper,
    .combined-filters-badge {
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
/* ========================================================================
   RÃâ°AMÃâ°NAGEMENT DES SECTIONS DE RECHERCHE - DESKTOP UNIQUEMENT
   Design ÃÂ©lÃÂ©gant et professionnel cÃÂ´te ÃÂ  cÃÂ´te
   Largeur augmentÃÂ©e + Section VÃâ°HICULE encore plus large + Alignement horizontal parfait
   ======================================================================== */

/* Application uniquement sur desktop (>768px) */
@media (min-width: 769px) {
    
    /* ===== CONTENEUR PRINCIPAL - CENTRÃâ° ET 90% DE LARGEUR ===== */
    .search-sections-container {
        display: grid; /* ChangÃÂ© de flex ÃÂ  grid pour forcer hauteurs ÃÂ©gales */
        grid-template-columns: 280px 1fr;
        gap: 1.2rem;
        margin-bottom: 1.5rem; /* RÃÂ©duit pour remonter les fiches */
        max-width: 98%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* ===== SECTION RECHERCHE RAPIDE - Largeur augmentÃÂ©e (1 part) ===== */
    .filters {
        /* flex: 1; supprimÃÂ© car on utilise grid maintenant */
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        min-width: 340px; /* Largeur minimale augmentÃÂ©e pour afficher les textes longs */
    }
    
    /* Titre de la section recherche rapide */
    .filters h3 {
        margin-bottom: 0.8rem; /* RÃÂ©duit pour compacter la hauteur */
        font-size: 0.95rem !important; /* Taille rÃÂ©duite pour compacter */
        text-align: center;
        height: auto; /* Hauteur automatique */
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-weight: 800; /* Plus gras pour l'effet 3D */
        letter-spacing: 0.5px;
        color: #ffffff; /* Blanc sur fond bleu */
        text-transform: uppercase;
        padding: 0; /* Pas de padding supplÃÂ©mentaire */
        
        /* Effet 3D ÃÂ©lÃÂ©gant avec ombres progressives */
        text-shadow: 
            0 1px 0 #ccc,
            0 2px 0 #c9c9c9,
            0 3px 0 #bbb,
            0 4px 0 #b9b9b9,
            0 5px 0 #aaa,
            0 6px 1px rgba(0,0,0,.1),
            0 0 5px rgba(0,0,0,.1),
            0 1px 3px rgba(0,0,0,.3),
            0 3px 5px rgba(0,0,0,.2),
            0 5px 10px rgba(0,0,0,.25),
            0 10px 10px rgba(0,0,0,.2),
            0 20px 20px rgba(0,0,0,.15);
        
        transform: translateY(-2px);
    }
    
    /* Grid pour superposer les champs */
    .filters .filter-group {
        display: flex;
        flex-direction: column; /* Superposition verticale */
        gap: 0.5rem; /* Ultra compact */
        flex: 1; /* Prendre tout l'espace disponible */
        margin-bottom: 0 !important; /* ForcÃÂ© ÃÂ  0 */
    }
    
    /* Champs recherche rapide */
    .filters .filter-group .search-autocomplete-wrapper,
    .filters .filter-group select {
        width: 100% !important;
        max-width: 100%;
    }
    
    /* Ajustement de la hauteur des champs */
    .filters .filter-group input,
    .filters .filter-group select {
        height: 38px;
        font-size: 0.9rem; /* Taille de police augmentÃÂ©e pour meilleure lisibilitÃÂ© */
        padding: 0 1rem; /* Padding pour meilleure lisibilitÃÂ© */
    }
    
    /* ===== SECTION VÃâ°HICULE - Largeur augmentÃÂ©e (2x) pour afficher textes longs ===== */
    .vehicle-search-wrapper {
        /* flex: 2; supprimÃÂ© car on utilise grid maintenant */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
    }
    
    /* Titre de la section vÃÂ©hicule */
    .vehicle-search-title {
        margin-bottom: 0.8rem; /* RÃÂ©duit pour compacter la hauteur */
        font-size: 0.95rem !important; /* Taille rÃÂ©duite pour compacter */
        text-align: center;
        height: auto; /* Hauteur automatique */
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-weight: 800; /* Plus gras pour l'effet 3D */
        letter-spacing: 0.5px;
        color: #ffffff; /* Blanc sur fond bleu */
        text-transform: uppercase;
        padding: 0; /* Pas de padding supplÃÂ©mentaire */
        
        /* Effet 3D ÃÂ©lÃÂ©gant avec ombres progressives */
        text-shadow: 
            0 1px 0 #ccc,
            0 2px 0 #c9c9c9,
            0 3px 0 #bbb,
            0 4px 0 #b9b9b9,
            0 5px 0 #aaa,
            0 6px 1px rgba(0,0,0,.1),
            0 0 5px rgba(0,0,0,.1),
            0 1px 3px rgba(0,0,0,.3),
            0 3px 5px rgba(0,0,0,.2),
            0 5px 10px rgba(0,0,0,.25),
            0 10px 10px rgba(0,0,0,.2),
            0 20px 20px rgba(0,0,0,.15);
        
        transform: translateY(-2px);
    }
    
    /* Grid des champs vÃÂ©hicule - 2 COLONNES (2x2) avec largeur suffisante */
    .vehicle-search-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 5 champs auto */
        gap: 0.8rem; /* Espacement augmentÃÂ© pour meilleure lisibilitÃÂ© */
        flex: 1; /* Prend l'espace disponible */
        margin-bottom: 0 !important; /* ForcÃÂ© ÃÂ  0 */
    }
    
    /* Les champs vÃÂ©hicule bÃÂ©nÃÂ©ficient de la largeur encore accrue */
    .vehicle-select-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Ajustement de la hauteur des selects */
    .vehicle-select {
        height: 38px;
        font-size: 0.9rem; /* Taille de police lÃÂ©gÃÂ¨rement augmentÃÂ©e */
        padding: 0 1rem; /* Padding pour meilleure lisibilitÃÂ© */
    }
    
    /* Actions vÃÂ©hicule */
    .vehicle-search-actions {
        margin-top: 0.5rem; /* Ultra compact */
        display: flex;
        gap: 0.6rem;
        justify-content: center;
    }
    
    /* Boutons d'action */
    .vehicle-search-btn,
    .vehicle-reset-btn {
        flex: 1;
        max-width: 130px;
        height: 38px;
        font-size: 0.86rem;
        font-weight: 700;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    /* Bouton Rechercher - Bleu comme sur responsive */
    .vehicle-search-btn {
        background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
        color: white;
        border: none;
        box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
    }
    
    .vehicle-search-btn:hover {
        background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
    }
    
    /* Bouton RÃÂ©initialiser - Gris */
    .vehicle-reset-btn {
        background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
        color: white;
        border: none;
        box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    }
    
    .vehicle-reset-btn:hover {
        background: linear-gradient(135deg, #5a6268 0%, #545b62 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
    }
    
    /* ===== HARMONISATION DES STYLES ===== */
    
    /* Bordures et ombres cohÃÂ©rentes - STYLE HEADER NAVIGATION */
    .filters,
    .vehicle-search-wrapper {
        background: linear-gradient(315deg, #1A1A2E 0%, #004E89 100%);
        padding: 1rem !important; /* Padding ultra compact pour rÃÂ©duire la hauteur */
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: none;
        color: #ffffff;
    }
    
    /* ICÃâNE LOUPE Ãâ¬ GAUCHE DU CHAMP DE RECHERCHE - CENTRAGE FORCÃâ° */
    .filters .search-autocomplete-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .filters .search-autocomplete-wrapper .search-icon,
    .filters .search-icon,
    .search-sections-container .filters .search-icon {
        position: absolute !important;
        left: 12px !important; /* Position ÃÂ  gauche */
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.1rem !important;
        color: #6c757d !important;
        opacity: 0.6 !important;
        pointer-events: none !important;
        z-index: 2 !important;
        transition: all 0.3s ease !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    
    .filters .search-autocomplete-wrapper input,
    .search-sections-container .filters input#searchInput {
        padding-right: 45px !important; /* Espace pour le X */
        padding-left: 42px !important; /* Espace augmentÃÂ© pour la loupe */
        height: 38px !important;
        box-sizing: border-box !important;
    }
    
    /* Bouton de suppression (croix rouge) - CENTRAGE FORCÃâ° */
    .filters .search-clear-btn,
    .filters .search-autocomplete-wrapper .search-clear-btn,
    .search-sections-container .filters #searchClearBtn,
    button#searchClearBtn {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        vertical-align: middle !important;
        display: none !important; /* MasquÃÂ© par dÃÂ©faut */
    }
    
    /* Afficher le bouton X uniquement quand il y a du texte */
    .filters .search-autocomplete-wrapper.has-text .search-clear-btn,
    .search-autocomplete-wrapper.has-text .search-clear-btn,
    .search-autocomplete-wrapper.has-text #searchClearBtn {
        display: inline-flex !important;
    }
    
    /* Animation au focus */
    .filters .search-autocomplete-wrapper input:focus ~ .search-icon {
        opacity: 1 !important;
        color: #1a73e8 !important;
    }
    
    .filters .search-autocomplete-wrapper.has-text .search-icon {
        opacity: 0.8 !important;
        color: #495057 !important;
    }
    
    /* Inputs et selects harmonisÃÂ©s */
    .filters input,
    .filters select,
    .vehicle-select {
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        padding: 0 1rem;
        font-family: 'Montserrat', sans-serif;
        transition: all 0.3s ease;
        background: white;
    }
    
    .filters input:focus,
    .filters select:focus,
    .vehicle-select:focus {
        border-color: #1a73e8;
        outline: none;
        box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    }
    
    /* Labels harmonisÃÂ©s */
    .vehicle-select-label {
        font-size: 0.8rem;
        font-weight: 600;
        color: #ffffff; /* Blanc sur fond bleu */
        margin-bottom: 0.3rem;
        display: block;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        text-align: center;
    }
    
    /* Effet de survol ÃÂ©lÃÂ©gant sur les sections - DÃâ°SACTIVÃâ° */
    .filters:hover,
    .vehicle-search-wrapper:hover {
        /* Aucun effet de survol */
    }
}

/* ===== RESPONSIVE - TABLETTE ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* RÃÂ©duction des gaps pour tablettes */
    .search-sections-container {
        gap: 1rem;
    }
    
    .vehicle-search-grid,
    .filters .filter-group {
        gap: 0.8rem;
    }
    
    /* Boutons plus compacts */
    .vehicle-search-btn,
    .vehicle-reset-btn {
        font-size: 0.9rem;
        height: 42px;
    }
}

/* ===== RESPONSIVE - MOBILE (<768px) ===== */
@media (max-width: 768px) {
    /* Section RECHERCHE RAPIDE - Fond opaque et z-index ÃÂ©levÃÂ© */
    .filters {
        background: linear-gradient(135deg, #1A1A2E 0%, #004E89 100%) !important;
        padding: 1rem !important;
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
        position: relative !important;
        z-index: 100 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Titre RECHERCHE RAPIDE */
    .filters h3 {
        color: #ffffff !important;
        font-size: 0.95rem !important;
        margin-bottom: 0.8rem !important;
        text-align: center !important;
        font-weight: 800 !important; /* Plus gras pour l'effet 3D */
        
        /* Effet 3D ÃÂ©lÃÂ©gant sur mobile (version allÃÂ©gÃÂ©e) */
        text-shadow: 
            0 1px 0 #ccc,
            0 2px 0 #bbb,
            0 3px 0 #aaa,
            0 4px 1px rgba(0,0,0,.1),
            0 1px 3px rgba(0,0,0,.3),
            0 3px 5px rgba(0,0,0,.2),
            0 5px 10px rgba(0,0,0,.2) !important;
        
        transform: translateY(-1px);
    }
    
    /* Groupe de filtres */
    .filters .filter-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        position: relative !important;
        z-index: 101 !important;
    }
    
    /* Champs de recherche */
    .filters input,
    .filters select {
        background: white !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 8px !important;
        height: 45px !important;
        position: relative !important;
        z-index: 102 !important;
    }
    
    /* Menu autocomplete - Fond blanc opaque */
    .search-autocomplete-results {
        background: #ffffff !important;
        border: none !important;
        border-radius: 0 !important; /* BORDS DROITS - pas de coins arrondis */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 
                    0 2px 8px rgba(0, 0, 0, 0.08),
                    0 0 0 1px rgba(0, 0, 0, 0.04) !important;
        position: absolute !important;
        top: 100% !important; /* COLLÃâ° DIRECTEMENT AU CHAMP */
        margin-top: 0 !important; /* PAS DE MARGIN */
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        max-height: 250px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important; /* EmpÃÂªche dÃÂ©bordement horizontal */
    }
    
    /* Items du menu */
    .search-autocomplete-item {
        background: #ffffff !important;
        padding: 12px 14px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    }
    
    .search-autocomplete-item:hover {
        background: linear-gradient(90deg, rgba(26, 115, 232, 0.04) 0%, transparent 100%) !important;
    }
    
    /* Titre RECHERCHEZ PAR VÃâ°HICULE - CentrÃÂ© sur mobile */
    .vehicle-search-title {
        text-align: center !important;
        justify-content: center !important;
    }
}
/**
 * STYLES POUR LE SCROLL AUTOMATIQUE VERS LES RÃâ°SULTATS
 * AlloPieceDetachee.sn
 * 
 * Assure que la barre de rÃÂ©sultats et la grille de produits 
 * sont bien visibles lors du scroll automatique
 * 
 * @author Abdoul Khoudouss Sow
 * @version 1.0
 */

/* Grille de produits - margin et scroll target */
.products-grid {
    scroll-margin-top: 150px; /* Espace de scroll uniforme desktop/mobile */
    margin-top: 0;
}

/* Badge de rÃÂ©sultats - PrioritÃÂ© de scroll */
.combined-filters-badge {
    scroll-margin-top: 150px; /* MÃÂªme valeur que la grille */
    margin-top: 0;
}

/* S'assurer que le scroll est fluide */
html {
    scroll-behavior: smooth;
}

/* Responsive - garder la mÃÂªme valeur partout pour cohÃÂ©rence */
@media (max-width: 768px) {
    .products-grid,
    .combined-filters-badge {
        scroll-margin-top: 150px; /* Valeur uniforme */
    }
}

@media (max-width: 480px) {
    .products-grid,
    .combined-filters-badge {
        scroll-margin-top: 150px; /* Valeur uniforme */
    }
}
/**
 * FIX RECHERCHE RAPIDE - RATTACHEMENT DU MENU ET Z-INDEX
 * 
 * Corrections appliquÃÂ©es :
 * 1. Menu autocomplete SOLIDEMENT rattachÃÂ© au champ (ne bouge pas avec le scroll)
 * 2. Pas de scroll automatique lors de la frappe
 * 3. Scroll uniquement lors du clic sur un ÃÂ©lÃÂ©ment du menu (desktop ET mobile)
 * 4. Z-index corrigÃÂ© pour passer SOUS la navbar lors du scroll
 * 
 * @author Abdoul Khoudouss Sow
 * @version 1.2
 */

/* DESKTOP : Rattachement solide du menu */
@media (min-width: 769px) {
    /* IMPORTANT : Le conteneur principal doit avoir position relative */
    .filters,
    .filters .filter-group {
        position: relative !important;
    }
    
    /* Container de recherche : position relative pour ancrer le menu */
    .search-autocomplete-wrapper {
        position: relative !important;
        /* Z-index infÃÂ©rieur ÃÂ  la navbar (navbar = 1000) */
        z-index: 100 !important;
    }
    
    /* Menu autocomplete : reste SOLIDEMENT attachÃÂ© au champ */
    .search-autocomplete-results {
        position: absolute !important;
        top: calc(100% + 4px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        /* Le menu ne bouge PAS avec le scroll de la page */
        transform: none !important;
        margin: 0 !important;
        /* Z-index ÃÂ©levÃÂ© mais infÃÂ©rieur ÃÂ  la navbar */
        z-index: 999 !important;
    }
    
    /* EmpÃÂªcher tout comportement de scroll pendant la saisie */
    .search-autocomplete-wrapper input:focus,
    .search-autocomplete-wrapper.has-text {
        /* Pas de scroll automatique */
        scroll-behavior: auto !important;
    }
    
    /* S'assurer que le menu reste visible mÃÂªme si on scroll la page */
    .search-autocomplete-results.show {
        position: absolute !important;
        /* Toujours attachÃÂ© au champ, jamais fixed */
        display: block !important;
    }
    
    /* Le champ de recherche lui-mÃÂªme */
    .search-autocomplete-wrapper input {
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* CORRECTION Z-INDEX : S'assurer que tout passe SOUS la navbar */
    .filters,
    .search-sections-container,
    .vehicle-search-wrapper {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* Mobile : comportement normal */
@media (max-width: 768px) {
    .search-autocomplete-wrapper {
        position: relative;
        z-index: 100;
    }
    
    .search-autocomplete-results {
        position: absolute;
        top: calc(100% + 2px);
        left: 0;
        right: 0;
        width: 100%;
        z-index: 999;
    }
    
    /* Mobile : tout passe aussi sous la navbar */
    .filters,
    .search-sections-container {
        position: relative;
        z-index: 1;
    }
}
/**
 * CORRECTION CRITIQUE - TRANSPARENCE DU MENU DE RECHERCHE
 * 
 * Ce fichier DOIT ÃÂªtre chargÃÂ© EN TOUT DERNIER aprÃÂ¨s tous les autres CSS.
 * Il force le fond blanc opaque du menu de recherche rapide en mode responsive.
 * 
 * @author Abdoul Khoudouss Sow
 * @version 1.0
 * @priority MAXIMALE - Ãâ¬ charger en DERNIER aprÃÂ¨s search-override-final.css
 */

/* ========== CORRECTION UNIVERSELLE - TOUS LES MODES ========== */

/* Menu autocomplete - FOND BLANC OPAQUE FORCÃâ° - SÃÂ©lecteur ultra-spÃÂ©cifique */
.search-autocomplete-results,
.filters .search-autocomplete-results,
.search-autocomplete-wrapper .search-autocomplete-results,
#searchAutocomplete,
div.search-autocomplete-results,
div#searchAutocomplete {
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
}

/* Items du menu - FOND BLANC OPAQUE FORCÃâ° */
.search-autocomplete-item,
.search-autocomplete-results .search-autocomplete-item,
div.search-autocomplete-item {
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
}

/* Badge de comptage de rÃÂ©sultats */
.search-results-count {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    opacity: 1 !important;
}

/* Message "Aucun rÃÂ©sultat" */
.search-autocomplete-empty {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%) !important;
    opacity: 1 !important;
}

/* ========== MODE RESPONSIVE - FORCER ENCORE PLUS ========== */
@media (max-width: 768px) {
    /* Section RECHERCHE RAPIDE - Fond bleu opaque */
    .filters,
    div.filters,
    .search-sections-container .filters {
        background: linear-gradient(135deg, #1A1A2E 0%, #004E89 100%) !important;
        opacity: 1 !important;
    }
    
    /* Menu autocomplete - Triple sÃÂ©lecteur pour forcer */
    .search-autocomplete-results,
    .filters .search-autocomplete-results,
    .search-autocomplete-wrapper .search-autocomplete-results,
    #searchAutocomplete,
    div.search-autocomplete-results,
    div#searchAutocomplete,
    .filters div.search-autocomplete-results {
        background: #ffffff !important;
        background-color: #ffffff !important;
        opacity: 1 !important;
        z-index: 9999 !important;
    }
    
    /* Items - Triple sÃÂ©lecteur */
    .search-autocomplete-item,
    .search-autocomplete-results .search-autocomplete-item,
    div.search-autocomplete-item,
    .filters .search-autocomplete-item {
        background: #ffffff !important;
        background-color: #ffffff !important;
        opacity: 1 !important;
    }
    
    /* Au survol sur mobile */
    .search-autocomplete-item:hover,
    .search-autocomplete-item:active,
    .search-autocomplete-item:focus {
        background: linear-gradient(90deg, rgba(26, 115, 232, 0.04) 0%, transparent 100%) !important;
        opacity: 1 !important;
    }
}

/* ========== MODE DESKTOP - MÃÅ ME CORRECTION ========== */
@media (min-width: 769px) {
    /* Menu autocomplete - Fond blanc garanti */
    .search-autocomplete-results,
    .filters .search-autocomplete-results,
    .search-autocomplete-wrapper .search-autocomplete-results,
    #searchAutocomplete {
        background: #ffffff !important;
        background-color: #ffffff !important;
        opacity: 1 !important;
    }
    
    /* Items */
    .search-autocomplete-item {
        background: #ffffff !important;
        background-color: #ffffff !important;
        opacity: 1 !important;
    }
}
/* =====================================================
   SYSTÃËME D'ICÃâNES - RECHERCHE RAPIDE
   Version: 4.0 AVEC IMAGE PNG
   Auteur: Abdoul Khoudouss Sow
   Description: Utilise une vraie image PNG au lieu de SVG
   ===================================================== */

/* ========== 1. ICÃâNE LOUPE (GAUCHE) - IMAGE PNG ========== */

.search-autocomplete-wrapper .search-icon,
.search-autocomplete-wrapper svg.search-icon,
.filters .search-icon,
.filters svg.search-icon,
svg.search-icon,
body .search-icon {
    /* MASQUER le SVG */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* NOUVELLE ICÃâNE PNG via pseudo-ÃÂ©lÃÂ©ment */
.search-autocomplete-wrapper::after {
    content: '' !important;
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    
    /* Dimensions */
    width: 20px !important;
    height: 20px !important;
    
    /* Image loupe PNG en data URI */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%236c757d" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    
    /* VisibilitÃÂ© */
    opacity: 0.7 !important;
    display: block !important;
    visibility: visible !important;
    
    /* Comportement */
    pointer-events: none !important;
    z-index: 10 !important;
    
    /* Transition douce */
    transition: all 0.3s ease !important;
}

/* Animation au focus du champ */
.search-autocomplete-wrapper input:focus ~ *,
.search-autocomplete-wrapper.has-text ~ * {
    /* DÃÂ©jÃÂ  gÃÂ©rÃÂ© par le ::after */
}

.search-autocomplete-wrapper input:focus::after,
.search-autocomplete-wrapper.has-text::after {
    opacity: 0.9 !important;
    transform: translateY(-50%) scale(1.05) !important;
}

/* ========== 2. BOUTON CROIX (DROITE) ========== */

.search-autocomplete-wrapper .search-clear-btn,
button.search-clear-btn,
#searchClearBtn {
    /* Position */
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    
    /* Dimensions */
    width: 28px !important;
    height: 28px !important;
    
    /* Style */
    background: linear-gradient(135deg, #ff3838 0%, #ff0000 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    
    /* Texte */
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    
    /* Comportement */
    cursor: pointer !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Z-index */
    z-index: 11 !important;
    
    /* Ombre */
    box-shadow: 0 3px 12px rgba(255, 0, 0, 0.4) !important;
    
    /* Transition */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Mobile - EmpÃÂªcher le zoom sur double-tap */
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 71, 87, 0.2) !important;
}

/* Afficher quand il y a du texte */
.search-autocomplete-wrapper.has-text .search-clear-btn {
    display: flex !important;
    animation: fadeInScale 0.25s ease-out !important;
}

/* Effet survol */
.search-clear-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff3838 100%) !important;
    transform: translateY(-50%) scale(1.15) !important;
    box-shadow: 0 5px 18px rgba(255, 0, 0, 0.6) !important;
}

/* Effet clic */
.search-clear-btn:active {
    background: linear-gradient(135deg, #e84118 0%, #c23616 100%) !important;
    transform: translateY(-50%) scale(0.95) !important;
}

/* Zone tactile ÃÂ©largie (invisible) pour meilleure UX mobile */
.search-clear-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 44px !important;
    height: 44px !important;
    z-index: -1 !important;
}

/* Animation d'apparition */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* ========== 3. PADDING DU CHAMP DE RECHERCHE ========== */

.search-autocomplete-wrapper input,
#searchInput {
    padding-left: 48px !important;  /* Espace pour la loupe */
    padding-right: 52px !important; /* Espace pour la croix */
}

/* ========== 4. RESPONSIVE - MOBILE & TABLETTE ========== */

/* Smartphones (max 768px) */
@media (max-width: 768px) {
    /* ICÃâNE LOUPE PNG */
    .search-autocomplete-wrapper::after {
        width: 21px !important;
        height: 21px !important;
        left: 12px !important;
        opacity: 0.8 !important;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="21" height="21" viewBox="0 0 24 24" fill="none" stroke="%236c757d" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') !important;
    }
    
    /* BOUTON CROIX */
    .search-autocomplete-wrapper .search-clear-btn,
    button.search-clear-btn,
    #searchClearBtn {
        width: 26px !important;
        height: 26px !important;
        right: 10px !important;
        font-size: 18px !important;
    }
    
    /* Afficher quand texte prÃÂ©sent */
    .search-autocomplete-wrapper.has-text .search-clear-btn {
        display: flex !important;
    }
    
    /* Padding ajustÃÂ© */
    .search-autocomplete-wrapper input,
    #searchInput {
        padding-left: 46px !important;
        padding-right: 50px !important;
    }
}

/* TrÃÂ¨s petits smartphones (max 480px) */
@media (max-width: 480px) {
    /* ICÃâNE LOUPE PNG */
    .search-autocomplete-wrapper::after {
        width: 19px !important;
        height: 19px !important;
        left: 10px !important;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="%236c757d" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') !important;
    }
    
    /* BOUTON CROIX */
    .search-autocomplete-wrapper .search-clear-btn,
    button.search-clear-btn,
    #searchClearBtn {
        width: 24px !important;
        height: 24px !important;
        right: 8px !important;
        font-size: 16px !important;
    }
    
    /* Afficher quand texte prÃÂ©sent */
    .search-autocomplete-wrapper.has-text .search-clear-btn {
        display: flex !important;
    }
    
    /* Padding ajustÃÂ© */
    .search-autocomplete-wrapper input,
    #searchInput {
        padding-left: 42px !important;
        padding-right: 46px !important;
    }
}

/* ========== 5. GARANTIES SUPPLÃâ°MENTAIRES ========== */

/* S'assurer que le wrapper est bien positionnÃÂ© */
.search-autocomplete-wrapper {
    position: relative !important;
}

/* Pas d'autre pseudo-ÃÂ©lÃÂ©ment before qui interfÃÂ¨re */
.search-autocomplete-wrapper::before {
    content: none !important;
    display: none !important;
}

/* Forcer le masquage du SVG */
body .search-autocomplete-wrapper .search-icon,
body .filters .search-icon,
body .search-autocomplete-wrapper svg.search-icon,
body .filters svg.search-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ========== FIN DU FICHIER ========== */
/* =====================================================
   CORRECTIF URGENT - ICÃâNE LOUPE SUR MOBILE
   ===================================================== */

/* FORCER l'affichage de l'icÃÂ´ne loupe via ::after sur TOUS les devices */
.search-autocomplete-wrapper::after {
    content: '' !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    
    /* Dimensions */
    width: 20px !important;
    height: 20px !important;
    
    /* Image loupe PNG en data URI */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%236c757d" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    
    /* FORCER LA VISIBILITÃâ° */
    opacity: 0.8 !important;
    display: block !important;
    visibility: visible !important;
    
    /* Z-INDEX Ãâ°LEVÃâ° */
    z-index: 100 !important;
    
    /* Comportement */
    pointer-events: none !important;
}

/* MOBILE - Ajustements spÃÂ©cifiques */
@media (max-width: 768px) {
    .search-autocomplete-wrapper::after {
        width: 21px !important;
        height: 21px !important;
        left: 12px !important;
        opacity: 0.9 !important;
        z-index: 100 !important;
    }
    
    /* S'assurer que le champ a le bon padding */
    .search-autocomplete-wrapper input,
    #searchInput {
        padding-left: 46px !important;
        padding-right: 50px !important;
    }
}

/* TrÃÂ¨s petits ÃÂ©crans */
@media (max-width: 480px) {
    .search-autocomplete-wrapper::after {
        width: 19px !important;
        height: 19px !important;
        left: 10px !important;
        opacity: 0.9 !important;
    }
    
    .search-autocomplete-wrapper input,
    #searchInput {
        padding-left: 42px !important;
        padding-right: 46px !important;
    }
}

/* MASQUER COMPLÃËTEMENT TOUS LES SVG DANS LE WRAPPER */
.search-autocomplete-wrapper svg,
.search-autocomplete-wrapper svg.search-icon,
body .search-autocomplete-wrapper svg {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* S'assurer que le wrapper est bien positionnÃÂ© */
.search-autocomplete-wrapper {
    position: relative !important;
}
/* =====================================================
   COMPACTAGE DU MENU DE RECHERCHE AUTOCOMPLETE
   Version: 1.0
   Auteur: Abdoul Khoudouss Sow
   Description: RÃÂ©duit les espacements pour un menu plus compact
   ===================================================== */

/* ========== RÃâ°DUCTION DES ESPACEMENTS GÃâ°NÃâ°RAUX ========== */

.search-autocomplete-results {
    max-height: 250px !important; /* RÃÂ©duit de 420px ÃÂ  320px */
}

/* Items du menu - Padding rÃÂ©duit */
.search-autocomplete-item {
    padding: 10px 14px !important; /* RÃÂ©duit de 14px 18px */
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* ========== NOM DU PRODUIT - Plus compact ========== */

.search-autocomplete-name {
    font-size: 0.88rem !important; /* RÃÂ©duit de 0.95rem */
    line-height: 1.3 !important; /* RÃÂ©duit de 1.4 */
    margin-bottom: 1px !important; /* RÃÂ©duit de 2px */
}

/* ========== MÃâ°TADONNÃâ°ES - Plus compactes ========== */

.search-autocomplete-meta {
    font-size: 0.78rem !important; /* RÃÂ©duit de 0.85rem */
    margin-top: 1px !important; /* RÃÂ©duit de 2px */
    line-height: 1.2 !important; /* RÃÂ©duit de 1.4 */
}

/* Badge rÃÂ©fÃÂ©rence et marque */
.search-autocomplete-meta.reference,
.search-autocomplete-meta.marque {
    font-size: 0.72rem !important; /* RÃÂ©duit de 0.8rem */
    padding: 1px 6px !important; /* RÃÂ©duit de 2px 8px */
    margin-top: 2px !important; /* RÃÂ©duit de 4px */
}

.search-autocomplete-meta.marque {
    margin-left: 4px !important; /* RÃÂ©duit de 6px */
}

/* Container pour les badges */
.search-autocomplete-badges {
    gap: 4px !important; /* RÃÂ©duit de 6px */
    margin-top: 3px !important; /* RÃÂ©duit de 6px */
}

/* ========== ICÃâNES - Taille rÃÂ©duite ========== */

.search-autocomplete-meta.reference::before,
.search-autocomplete-meta.marque::before {
    font-size: 0.68rem !important; /* RÃÂ©duit de 0.75rem */
    margin-right: 2px !important; /* RÃÂ©duit de 4px */
}

/* ========== SÃâ°PARATEUR - Margin rÃÂ©duit ========== */

.search-autocomplete-content {
    padding: 1px 0 !important; /* RÃÂ©duit de 2px 0 */
}

.search-autocomplete-content > .search-autocomplete-name::after {
    margin-top: 2px !important; /* RÃÂ©duit de 4px */
}

/* ========== BADGE DE RÃâ°SULTATS - Plus compact ========== */

.search-results-count {
    padding: 3px 10px !important; /* RÃÂ©duit de 4px 12px */
    font-size: 0.7rem !important; /* RÃÂ©duit de 0.75rem */
}

/* ========== MESSAGE "AUCUN RÃâ°SULTAT" - Plus compact ========== */

.search-autocomplete-empty {
    padding: 24px 18px !important; /* RÃÂ©duit de 32px 24px */
    font-size: 0.9rem !important; /* RÃÂ©duit de 0.95rem */
}

.search-autocomplete-empty::before {
    font-size: 2rem !important; /* RÃÂ©duit de 2.5rem */
    margin-bottom: 8px !important; /* RÃÂ©duit de 12px */
}

/* ========== RESPONSIVE - MOBILE ========== */

@media (max-width: 768px) {
    .search-autocomplete-results {
        max-height: 250px !important; /* RÃÂ©duit de 320px */
    }
    
    .search-autocomplete-item {
        padding: 8px 12px !important; /* RÃÂ©duit de 10px 14px */
    }
    
    .search-autocomplete-name {
        font-size: 0.85rem !important; /* RÃÂ©duit de 0.9rem */
        line-height: 1.25 !important;
    }
    
    .search-autocomplete-meta {
        font-size: 0.75rem !important; /* RÃÂ©duit de 0.8rem */
    }
    
    .search-autocomplete-meta.reference,
    .search-autocomplete-meta.marque {
        font-size: 0.7rem !important; /* RÃÂ©duit de 0.75rem */
        padding: 1px 5px !important; /* RÃÂ©duit de 1px 6px */
    }
    
    .search-results-count {
        padding: 2px 8px !important; /* RÃÂ©duit de 3px 10px */
        font-size: 0.65rem !important; /* RÃÂ©duit de 0.7rem */
    }
    
    .search-autocomplete-empty {
        padding: 18px 14px !important; /* RÃÂ©duit de 24px 18px */
        font-size: 0.85rem !important; /* RÃÂ©duit de 0.9rem */
    }
    
    .search-autocomplete-empty::before {
        font-size: 1.8rem !important; /* RÃÂ©duit de 2rem */
        margin-bottom: 6px !important; /* RÃÂ©duit de 8px */
    }
}

/* ========== TRÃËS PETITS Ãâ°CRANS ========== */

@media (max-width: 480px) {
    .search-autocomplete-results {
        max-height: 250px !important; /* Encore plus compact */
    }
    
    .search-autocomplete-item {
        padding: 7px 10px !important; /* Encore plus rÃÂ©duit */
    }
    
    .search-autocomplete-name {
        font-size: 0.82rem !important;
    }
    
    .search-autocomplete-meta {
        font-size: 0.72rem !important;
    }
}

/* ========== GAP ENTRE LES Ãâ°LÃâ°MENTS - RÃÂ©duit ========== */

.search-autocomplete-item + .search-autocomplete-item {
    margin-top: 0 !important; /* Pas d'espace supplÃÂ©mentaire */
}

/* ========== SCROLLBAR - Plus fine ========== */

.search-autocomplete-results {
    scrollbar-width: thin !important;
}

.search-autocomplete-results::-webkit-scrollbar {
    width: 6px !important; /* RÃÂ©duit de 8px */
}

.search-autocomplete-results::-webkit-scrollbar-thumb {
    border-radius: 3px !important; /* RÃÂ©duit de 4px */
}

/* ========== OPTIMISATION DE L'ESPACEMENT VERTICAL ========== */

/* Supprimer les marges inutiles */
.search-autocomplete-content * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* ========== ICÃâNE FLÃËCHE/LOUPE - Plus petite ========== */

.search-autocomplete-item::after {
    font-size: 0.9rem !important; /* RÃÂ©duit de 1rem */
    margin-right: 2px !important; /* RÃÂ©duit de 4px */
}

/* ========== Ãâ°TAT HOVER - Bordure plus fine ========== */

.search-autocomplete-item:hover {
    border-left-width: 2px !important; /* RÃÂ©duit de 3px */
    padding-left: 12px !important; /* AjustÃÂ© en consÃÂ©quence */
}

@media (max-width: 768px) {
    .search-autocomplete-item:hover {
        padding-left: 10px !important; /* AjustÃÂ© pour mobile */
    }
}

/* ========== FIN DU FICHIER ========== */
/**
 * CORRECTIF ULTRA-PUISSANT - ESPACEMENT MENU AUTOCOMPLETE
 * Version: 2.0 - FORCE MAXIMALE
 * Auteur: Abdoul Khoudouss Sow
 * Description: Force le collage du menu au champ avec prioritÃÂ© maximale
 */

/* ========== FORCE MAXIMALE - TOUS LES SÃâ°LECTEURS POSSIBLES ========== */

.search-autocomplete-results,
#searchAutocomplete,
.filters .search-autocomplete-results,
.search-autocomplete-wrapper .search-autocomplete-results,
div.search-autocomplete-results,
body .search-autocomplete-results {
    top: 100% !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding-top: 0px !important;
    position: absolute !important;
}

/* Desktop spÃÂ©cifique */
@media (min-width: 769px) {
    .search-autocomplete-results,
    #searchAutocomplete,
    .filters .search-autocomplete-results,
    .search-autocomplete-wrapper .search-autocomplete-results {
        top: 100% !important;
        margin-top: 0px !important;
    }
}

/* Mobile spÃÂ©cifique */
@media (max-width: 768px) {
    .search-autocomplete-results,
    #searchAutocomplete {
        top: 100% !important;
        margin-top: 0px !important;
    }
}

/* Wrapper - supprimer tout espacement */
.search-autocomplete-wrapper {
    position: relative !important;
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

/* Input - supprimer tout espacement en bas */
.search-autocomplete-wrapper input,
#searchInput {
    margin-bottom: 0px !important;
    padding-bottom: 0.5rem !important;
}

/* Supprimer tout pseudo-ÃÂ©lÃÂ©ment qui pourrait crÃÂ©er un espace */
.search-autocomplete-wrapper::before,
.search-autocomplete-wrapper::after {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

/* Animation - sans dÃÂ©calage */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(0px); /* Pas de translateY nÃÂ©gatif */
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.search-autocomplete-results {
    animation: slideDown 0.25s ease-out !important;
}

/* ========== FIN DU FICHIER ========== */
/*
 * CORRECTION FINALE - MENU RECHERCHE BORDS DROITS
 * Fichier de prioritÃÂ© maximale pour forcer les bords droits
 * sur desktop ET mobile
 * 
 * @version 1.1
 * @date 2025-02-02
 */

/* ========== BORDS DROITS - PRIORITÃâ° ABSOLUE ========== */

/* DESKTOP ET MOBILE - Tous les sÃÂ©lecteurs possibles */
.search-autocomplete-results,
div.search-autocomplete-results,
#searchAutocomplete,
.filters .search-autocomplete-wrapper .search-autocomplete-results,
.search-autocomplete-wrapper .search-autocomplete-results {
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* ========== SCROLLBAR INTÃâ°RIEURE - BORDS DROITS ========== */

/* Scrollbar Webkit (Chrome, Safari, Edge) */
.search-autocomplete-results::-webkit-scrollbar {
    width: 8px !important;
}

.search-autocomplete-results::-webkit-scrollbar-track {
    background: #f3f4f6 !important;
    border-radius: 0 !important; /* BORDS DROITS */
}

.search-autocomplete-results::-webkit-scrollbar-thumb {
    background: #d1d5db !important;
    border-radius: 0 !important; /* BORDS DROITS */
    transition: background 0.3s !important;
}

.search-autocomplete-results::-webkit-scrollbar-thumb:hover {
    background: #9ca3af !important;
}

/* Scrollbar Firefox */
.search-autocomplete-results {
    scrollbar-width: thin !important;
    scrollbar-color: #d1d5db #f3f4f6 !important;
}

/* ========== MOBILE SPÃâ°CIFIQUE ========== */
@media (max-width: 768px) {
    /* Forcer ENCORE PLUS les bords droits sur mobile */
    .search-autocomplete-results,
    div.search-autocomplete-results,
    #searchAutocomplete,
    .filters .search-autocomplete-wrapper .search-autocomplete-results {
        border-radius: 0 !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        -webkit-border-radius: 0 !important;
        -moz-border-radius: 0 !important;
        /* ESPACEMENT MOBILE - Petit espace entre champ et menu */
        top: calc(100% + 4px) !important; /* 4px d'espace */
        margin-top: 0 !important;
    }
    
    /* Scrollbar mobile plus fine */
    .search-autocomplete-results::-webkit-scrollbar {
        width: 6px !important;
    }
    
    .search-autocomplete-results::-webkit-scrollbar-track {
        border-radius: 0 !important; /* BORDS DROITS */
    }
    
    .search-autocomplete-results::-webkit-scrollbar-thumb {
        border-radius: 0 !important; /* BORDS DROITS */
    }
}

/* ========== DESKTOP SPÃâ°CIFIQUE ========== */
@media (min-width: 769px) {
    .search-autocomplete-results,
    div.search-autocomplete-results,
    #searchAutocomplete {
        border-radius: 0 !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        /* ESPACEMENT DESKTOP - Rapprocher sans coller */
        top: calc(100% + 2px) !important; /* 2px d'espace */
        margin-top: 0 !important;
    }
    
    .search-autocomplete-results::-webkit-scrollbar {
        width: 8px !important;
    }
    
    .search-autocomplete-results::-webkit-scrollbar-track {
        border-radius: 0 !important; /* BORDS DROITS */
    }
    
    .search-autocomplete-results::-webkit-scrollbar-thumb {
        border-radius: 0 !important; /* BORDS DROITS */
    }
}


/* ========== CORRECTION DEBORDEMENT BOUTONS MOBILE - v2 ========== */
@media (max-width: 768px) {
    .vehicle-search-actions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        align-items: stretch !important;
    }

    .vehicle-search-btn,
    .vehicle-reset-btn {
        flex: 1 1 calc(50% - 0.2rem) !important;
        min-width: 0 !important;
        padding: 0.45rem 0.25rem !important;
        font-size: 0.62rem !important;
        min-height: 36px !important;
        height: auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        gap: 0.2rem !important;
        letter-spacing: 0 !important;
    }

    .vehicle-search-btn::before {
        width: 13px !important;
        height: 13px !important;
        flex-shrink: 0 !important;
    }

    .vehicle-reset-btn svg {
        width: 13px !important;
        height: 13px !important;
        margin-right: 3px !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 400px) {
    .vehicle-search-btn,
    .vehicle-reset-btn {
        font-size: 0.56rem !important;
        padding: 0.4rem 0.15rem !important;
    }
}
/* ========== FIN CORRECTION DEBORDEMENT BOUTONS MOBILE ========== */


/* ========================================================================
   AGRANDISSEMENT ET CENTRAGE LABELS MARQUE / MODÈLE / MOTORISATION
   ========================================================================
   Appliqué en dernier pour écraser toutes les règles précédentes.
   @version 2.0 - 2026-09-23
   ======================================================================== */

/* --- Base : label principal visible partout --- */
.vehicle-select-label,
.vehicle-search-grid .vehicle-select-label,
.vehicle-search-wrapper .vehicle-select-label {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: rgba(255, 255, 255, 1) !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

/* --- Desktop : label encore plus lisible --- */
@media (min-width: 769px) {
    .vehicle-select-label,
    .vehicle-search-grid .vehicle-select-label {
        font-size: 1rem !important;
        font-weight: 800 !important;
        margin-bottom: 0.5rem !important;
        letter-spacing: 0.6px !important;
    }

    /* Select pleine largeur et texte centré */
    .vehicle-select-wrapper {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .vehicle-select,
    .vehicle-search-grid .vehicle-select {
        width: 100% !important;
        font-size: 0.92rem !important;
        text-align: center !important;
        text-align-last: center !important;
    }
}

/* --- Mobile 768px --- */
@media (max-width: 768px) {
    .vehicle-select-label {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.4rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    .vehicle-select {
        text-align: center !important;
        text-align-last: center !important;
    }
}

/* --- Mobile 480px --- */
@media (max-width: 480px) {
    .vehicle-select-label {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.3rem !important;
        text-align: center !important;
        width: 100% !important;
    }
}

/* ========== FIN AGRANDISSEMENT LABELS ========== */


/* ========================================================================
   CORRECTION GRILLE + AGRANDISSEMENT MARQUE / MODÈLE / MOTORISATION
   ========================================================================
   Remplacement du repeat(5,1fr) par repeat(3,1fr) car seulement 3 champs.
   @version 3.0 - 2026-09-23
   ======================================================================== */

/* --- DESKTOP : 3 colonnes égales pleine largeur --- */
@media (min-width: 769px) {

    .vehicle-search-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.2rem !important;
        margin-bottom: 0.8rem !important;
    }

    .vehicle-select-wrapper {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .vehicle-select-label,
    .vehicle-search-grid .vehicle-select-label,
    .vehicle-search-wrapper .vehicle-select-label {
        font-size: 1rem !important;
        font-weight: 800 !important;
        color: rgba(255, 255, 255, 1) !important;
        margin-bottom: 0.5rem !important;
        letter-spacing: 0.6px !important;
        text-transform: uppercase !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }

    .vehicle-select,
    .vehicle-search-grid .vehicle-select {
        width: 100% !important;
        font-size: 0.92rem !important;
        height: 42px !important;
        text-align: center !important;
        text-align-last: center !important;
    }
}

/* --- MOBILE : 1 colonne pleine largeur pour les 3 champs --- */
@media (max-width: 768px) {

    .vehicle-search-grid {
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
    }

    /* Annuler le order mobile (interversion Motorisation/Année) inutile ici */
    .vehicle-search-grid .vehicle-select-wrapper:nth-child(4),
    .vehicle-search-grid .vehicle-select-wrapper:nth-child(5) {
        order: unset !important;
        grid-column: unset !important;
    }

    .vehicle-select-label {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        margin-bottom: 0.4rem !important;
    }

    .vehicle-select {
        width: 100% !important;
        text-align: center !important;
        text-align-last: center !important;
        font-size: 0.85rem !important;
        height: 42px !important;
    }
}

/* ========== FIN CORRECTION GRILLE 3 COLONNES ========== */
