/* Styles de la page des occasions.
   Ils etaient en ligne dans occasion.php : plus de 3000 lignes
   retelechargees a chaque visite, sans mise en cache possible. */

        :root {
            --primary-color: #e63946;
        }

        /* Optimisations de performance globales */
        * {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Optimisations pour les éléments animés */
        .vehicle-card,
        .select-dropdown,
        .sort-btn,
        .btn-reset-filters {
            will-change: transform;
            transform: translateZ(0);
            /* Force l'accélération matérielle */
        }

        /* Désactiver les animations sur mobile si l'utilisateur préfère */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Lazy loading styles - Optimisé pour mobile */
        .lazy-load {
            opacity: 0;
            transition: opacity 0.2s ease-out;
            will-change: opacity;
        }

        .lazy-load.loaded {
            opacity: 1;
        }

        .lazy-load.loading {
            background: #f0f0f0;
            animation: none;
            /* Supprimé l'animation coûteuse */
        }

        /* Animation simplifiée pour mobile */
        @media (min-width: 769px) {
            .lazy-load.loading {
                background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
                background-size: 200% 100%;
                animation: loading 1.5s infinite;
            }

            @keyframes loading {
                0% {
                    background-position: 200% 0;
                }

                100% {
                    background-position: -200% 0;
                }
            }
        }

        /* Masquer la scrollbar */
        ::-webkit-scrollbar {
            display: none;
        }

        html {
            scrollbar-width: none;
            /* Firefox */
            -ms-overflow-style: none;
            /* Internet Explorer 10+ */
        }

        body {
            scrollbar-width: none;
            /* Firefox */
            -ms-overflow-style: none;
            /* Internet Explorer 10+ */
        }

        /* Styles pour les notifications client */
        .notification-bell-container {
            position: relative;
            display: inline-flex;
            align-items: center;
            margin-left: 1rem;
            vertical-align: middle;
            margin-top: -4px;
        }

        .notification-bell-wrapper {
            position: relative;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            box-sizing: border-box;
            transform: translateY(-4px);
        }

        .notification-bell-wrapper:hover {
            background: rgba(255, 107, 107, 0.1);
        }

        .notification-bell-wrapper i {
            font-size: 1.2rem;
            color: #fff;
            transition: transform 0.3s ease;
        }

        .notification-bell-wrapper:hover i {
            transform: scale(1.1);
        }

        .notification-badge-client {
            position: absolute;
            top: 0;
            right: 0;
            background: #ff6b6b;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 700;
            border: 2px solid #1a1a1a;
            transform: translate(25%, -25%);
            animation: pulse-notification 2s infinite;
        }

        .notification-badge-client.hidden {
            display: none !important;
        }

        @keyframes pulse-notification {

            0%,
            100% {
                transform: translate(25%, -25%) scale(1);
                box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
            }

            50% {
                transform: translate(25%, -25%) scale(1.1);
                box-shadow: 0 0 0 4px rgba(255, 107, 107, 0);
            }
        }

        /* Dropdown des notifications */
        .notification-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 350px;
            max-width: 90vw;
            background: #1a1a1a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            z-index: 3000;
            overflow: hidden;
        }

        .notification-dropdown.open {
            display: block;
            animation: slideDown 0.3s ease-out;
        }

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

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .notification-dropdown-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 107, 107, 0.05);
        }

        .notification-dropdown-header h3 {
            margin: 0;
            color: #fff;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .notification-close {
            background: none;
            border: none;
            color: #888;
            cursor: pointer;
            font-size: 1.1rem;
            padding: 0.25rem;
            transition: color 0.2s;
        }

        .notification-close:hover {
            color: #fff;
        }

        .notification-dropdown-content {
            max-height: 400px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 107, 107, 0.3) transparent;
        }

        .notification-dropdown-content::-webkit-scrollbar {
            width: 6px;
        }

        .notification-dropdown-content::-webkit-scrollbar-track {
            background: transparent;
        }

        .notification-dropdown-content::-webkit-scrollbar-thumb {
            background: rgba(255, 107, 107, 0.3);
            border-radius: 3px;
        }

        .notification-loading {
            padding: 2rem;
            text-align: center;
            color: #888;
        }

        .notification-loading i {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .notification-empty {
            padding: 2rem;
            text-align: center;
            color: #888;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .notification-loading i,
        .notification-empty i {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .notification-list {
            padding: 0.5rem 0;
        }

        .notification-item {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }

        .notification-item:hover {
            background: rgba(255, 107, 107, 0.1);
        }

        .notification-item.unread {
            background: rgba(255, 107, 107, 0.05);
            border-left: 3px solid #ff6b6b;
        }

        .notification-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #ff6b6b 0%, #e63946 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .notification-content {
            flex: 1;
            min-width: 0;
        }

        .notification-title {
            font-weight: 600;
            color: #fff;
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
        }

        .notification-message {
            color: #aaa;
            font-size: 0.85rem;
            line-height: 1.4;
            word-wrap: break-word;
        }

        .notification-time {
            color: #666;
            font-size: 0.75rem;
            margin-top: 0.25rem;
        }

        .notification-dropdown-footer {
            padding: 0.75rem 1.25rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .notification-mark-all-read {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            background: rgba(255, 107, 107, 0.1);
            border: 1px solid rgba(255, 107, 107, 0.3);
            color: #ff6b6b;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            width: 100%;
        }

        .notification-mark-all-read:hover {
            background: rgba(255, 107, 107, 0.2);
            border-color: rgba(255, 107, 107, 0.5);
            color: #fff;
        }

        .notification-mark-all-read:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .notification-view-all {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            color: #ff6b6b;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: color 0.2s;
        }

        .notification-view-all:hover {
            color: #fff;
        }

        /* Sur mobile, forcer le dropdown à droite */
        @media (max-width: 768px) {
            .notification-bell-container {
                position: relative;
                z-index: 3001;
            }

            .notification-dropdown {
                right: -4rem !important;
                left: auto !important;
                transform-origin: top right !important;
                width: calc(100vw - 2rem);
                max-width: 350px;
            }

            .notification-dropdown.open {
                right: -4rem !important;
                left: auto !important;
            }

            /* S'assurer que le nav-menu permet l'overflow sur mobile */
            #nav-menu {
                overflow: visible !important;
            }

            #user-menu {
                overflow: visible !important;
            }
        }

        @media (max-width: 480px) {

            /* Sur très petit écran, dropdown pleine largeur avec marge à droite */
            .notification-dropdown {
                width: calc(100vw - 1rem) !important;
                max-width: calc(100vw - 1rem) !important;
                right: -3rem !important;
            }

            .notification-dropdown.open {
                right: -3rem !important;
                left: auto !important;
            }
        }

        /* Sous-menu utilisateur */
        .user-dropdown {
            position: relative;
            display: inline-block;
        }

        .user-dropdown-toggle {
            min-width: 140px;
            /* ou 120px selon ton design */
            justify-content: center;
            cursor: pointer;
            display: flex;
            align-items: center;
        }

        .user-dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background: #222;
            min-width: 200px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            border-radius: 10px;
            z-index: 2000;
            padding: 0.5rem 0;
            margin-top: 0;
            min-width: 100%;
            left: 0;
            right: 0;
        }

        .user-dropdown.open .user-dropdown-menu {
            display: block;
        }

        .user-dropdown-menu a {
            display: block;
            padding: 0.7rem 1.5rem;
            color: #fff;
            text-decoration: none;
            font-size: 1rem;
            transition: background 0.2s;
        }

        .user-dropdown-menu a:hover {
            background: var(--primary-color);
            color: #fff;
        }

        .user-dropdown-menu hr {
            border: none;
            border-top: 1px solid #444;
            margin: 0.3rem 0;
        }

        .user-dropdown-menu a.logout-link {
            white-space: nowrap;
        }

        @media (max-width: 900px) {
            .user-dropdown-menu a.logout-link {
                white-space: nowrap;
            }
        }

        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            z-index: 4000;
        }

        body.no-scroll {
            overflow: hidden;
            touch-action: none;
            height: 100vh;
        }

        /* Location moderne */
        .location-hero {
            position: relative;
            background: url('Assets/Img/PDMV.webp');
            background-position: left 35%;
            background-size: cover;
            background-repeat: no-repeat;
            overflow: hidden;
            padding: 120px 0 80px;
            text-align: center;
            min-width: 100vw;
            min-height: 400px;
        }

        .hero-grid-reveal {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 2;
            display: grid;
            grid-template-columns: repeat(16, 1fr);
            grid-template-rows: repeat(8, 1fr);
            pointer-events: none;
        }

        .hero-grid-reveal .tile {
            background: #181818;
            opacity: 1;
        }

        .hero-grid-reveal .tile.revealed-anim {
            animation: tileReveal 0.3s forwards;
        }

        @keyframes tileReveal {
            from {
                opacity: 1;
            }

            to {
                opacity: 0;
            }
        }

        /* Animation fadeInUp pour les filtres */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Nouveau système de filtres responsive */
        .catalogue-filters {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            margin-bottom: 3rem;
            margin-top: 1rem;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
            border-radius: 20px;
            padding: 2rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            animation: fadeInUp 0.8s ease-out;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: visible;
        }

        /* Section de recherche */
        .search-section {
            width: 100%;
        }

        .search-input-wrapper {
            position: relative;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
        }

        .search-input-wrapper .search-icon {
            position: absolute;
            left: 1.2rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary-color);
            font-size: 1.2rem;
            z-index: 2;
        }

        .search-input-wrapper input {
            width: 100%;
            padding: 1rem 1rem 1rem 3rem;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            color: #fff;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            backdrop-filter: blur(10px);
        }

        .search-input-wrapper input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
            transform: translateY(-2px);
        }

        .search-input-wrapper input::placeholder {
            color: rgba(255, 255, 255, 0.6);
            transition: color 0.3s ease;
        }

        /* Filtres principaux (Catégorie + Places) */
        .main-filters {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            width: 100%;
        }

        /* Filtres prix et coffre */
        .price-chest-filters {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .filter-group label {
            color: #fff;
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.3rem;
            transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .filter-group:hover label {
            color: var(--primary-color);
        }

        .input-with-icon {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-with-icon i {
            position: absolute;
            left: 1rem;
            color: var(--primary-color);
            font-size: 0.9rem;
            z-index: 2;
        }

        .input-with-icon input {
            width: 100%;
            padding: 0.8rem 1rem 0.8rem 2.5rem;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            color: #fff;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            backdrop-filter: blur(10px);
        }

        .input-with-icon input::placeholder {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.9rem;
        }

        .input-with-icon input:focus {
            border-color: var(--primary-color);
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 0 15px rgba(230, 57, 70, 0.2);
            transform: translateY(-1px);
        }

        /* Styles de focus optimisés pour mobile */
        @media (max-width: 768px) {
            .input-with-icon input:focus {
                transform: none;
                /* Pas de déplacement sur mobile */
                box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.3);
                /* Ombre plus subtile */
                background: rgba(255, 255, 255, 0.12);
                /* Background plus subtil */
            }

            .search-input:focus {
                transform: none;
                /* Pas de déplacement sur mobile */
                box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.3);
                /* Ombre plus subtile */
            }

            .select-trigger:focus {
                transform: none;
                /* Pas de déplacement sur mobile */
                box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.3);
                /* Ombre plus subtile */
            }

            /* Améliorer le comportement de scroll sur mobile */
            .input-with-icon input {
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
                touch-action: manipulation;
            }

            /* Empêcher le zoom automatique sur iOS */
            .input-with-icon input[type="number"],
            .input-with-icon input[type="text"] {
                font-size: 16px;
                /* Empêche le zoom sur iOS */
            }

            /* Z-index optimisé pour mobile */
            #category-select {
                z-index: 1000;
            }

            #places-select {
                z-index: 999;
            }

            /* S'assurer que les dropdowns ouverts ont le bon z-index */
            .custom-select.open {
                z-index: 1001;
            }

            .custom-select.open .select-dropdown {
                z-index: 1002;
            }

            /* Règle spécifique pour éviter les conflits de z-index sur mobile */
            .custom-select:not(.open) {
                z-index: 999;
            }

            .custom-select.open {
                z-index: 1001;
            }

            .custom-select.open .select-dropdown {
                z-index: 1002;
            }

            /* Désactiver complètement le focus sur les selects sur mobile */
            .custom-select .select-trigger {
                outline: none !important;
                -webkit-tap-highlight-color: transparent !important;
            }

            .custom-select .select-trigger:focus {
                outline: none !important;
                border-color: rgba(255, 255, 255, 0.2) !important;
                box-shadow: none !important;
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
            }

            /* Focus uniquement quand le select est ouvert */
            .custom-select.open .select-trigger {
                border-color: var(--primary-color);
                box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.3);
            }
        }

        /* Supprimer les flèches des inputs numériques */
        .input-with-icon input[type="number"]::-webkit-inner-spin-button,
        .input-with-icon input[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .input-with-icon input[type="number"] {
            -moz-appearance: textfield;
        }

        .input-with-icon .unit {
            position: absolute;
            right: 1rem;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.8rem;
            font-weight: 500;
        }

        .sort-section {
            display: flex;
            justify-content: center;
            align-items: center;
            /* L'espacement appartient au conteneur : sans lui, chaque bouton
               devait porter sa propre marge, d'ou des ecarts inegaux. */
            gap: 1rem;
            flex-wrap: wrap;
            width: 100%;
        }

        .sort-btn {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 1rem 2rem;
            border-radius: 15px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            backdrop-filter: blur(15px);
        }

        /* Filtre actif : sans marque visible, on ne sait plus si la liste
           est restreinte ou si le stock est vide. */
        .sort-btn.actif {
            background: rgba(230, 57, 70, 0.25);
            border-color: #e63946;
        }

        .sort-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(230, 57, 70, 0.2);
        }

        .sort-btn:active {
            transform: translateY(0);
            box-shadow: 0 4px 15px rgba(230, 57, 70, 0.15);
        }

        .sort-btn i {
            color: var(--primary-color);
        }

        .sort-btn.asc .sort-arrow {
            transform: rotate(0deg);
        }

        .sort-btn.desc .sort-arrow {
            transform: rotate(180deg);
        }

        /* Bouton de réinitialisation des filtres */
        .btn-reset-filters {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 1rem 2rem;
            border-radius: 15px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            backdrop-filter: blur(15px);
        }

        .btn-reset-filters:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: #10b981;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
        }

        .btn-reset-filters:active {
            transform: translateY(0);
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
        }

        .btn-reset-filters i {
            color: #10b981;
        }

        .sort-arrow {
            transition: transform 0.3s ease;
        }

        /* Menus selectifs customisés */
        .custom-select {
            position: relative;
            width: 100%;
            user-select: none;
            z-index: 1000;
            isolation: isolate;
        }

        .select-trigger {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            padding: 0.8rem 1rem 0.8rem 2.5rem;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            color: #fff;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            position: relative;
        }

        .select-trigger:hover {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.12) 100%);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }

        .select-trigger:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
        }

        .select-trigger i:first-child {
            color: var(--primary-color);
            font-size: 0.9rem;
            position: absolute;
            left: 1rem;
        }

        .select-trigger .arrow {
            color: var(--primary-color);
            font-size: 0.8rem;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            margin-left: auto;
        }

        .custom-select.open .arrow {
            transform: rotate(180deg);
        }

        .select-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            margin-top: 0.5rem;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-10px) scale(0.95);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(20px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            transform-origin: top center;
            will-change: transform, opacity;
            pointer-events: none;
            /* Désactiver les clics quand fermé */
        }

        .custom-select.open .select-dropdown {
            max-height: 240px;
            /* Hauteur optimale */
            opacity: 1;
            transform: translateY(0) scale(1);
            overflow-y: auto;
            overflow-x: hidden;
            padding: 0.5rem 0 0.5rem 0;
            /* Padding équilibré */
            -webkit-overflow-scrolling: touch;
            /* Améliore le scroll sur iOS */
            scroll-behavior: smooth;
            /* Scroll fluide par défaut */
            pointer-events: auto;
            /* Réactiver les clics quand ouvert */
            z-index: 1002;
            /* S'assurer que le dropdown ouvert est au-dessus */
        }

        .select-option {
            padding: 0.6rem 1rem;
            color: #fff;
            cursor: pointer;
            transition: all 0.2s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            line-height: 1.3;
            min-height: 2.2rem;
            /* Hauteur minimale optimisée */
            display: flex;
            align-items: center;
        }

        .select-option:last-child {
            border-bottom: none;
            margin-bottom: 0.1rem;
            /* Espacement minimal */
        }

        .select-option:hover {
            background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(230, 57, 70, 0.1) 100%);
            color: var(--primary-color);
            transform: translateX(5px);
            box-shadow: inset 0 0 0 1px rgba(230, 57, 70, 0.2);
        }

        .select-option.selected {
            background: linear-gradient(135deg, rgba(230, 57, 70, 0.2) 0%, rgba(230, 57, 70, 0.15) 100%);
            color: var(--primary-color);
            font-weight: 600;
        }

        .select-option::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 3px;
            height: 100%;
            background: var(--primary-color);
            transform: scaleY(0);
            transition: transform 0.2s ease;
        }

        .select-option:hover::before,
        .select-option.selected::before {
            transform: scaleY(1);
        }

        /* Multi-sélection : checkmark */
        [data-multiselect] .select-option {
            padding-right: 2rem;
        }
        [data-multiselect] .select-option.selected::after {
            content: '✓';
            position: absolute;
            right: 0.8rem;
            font-weight: 700;
            font-size: 0.85rem;
        }

        /* Scrollbar personnalisée pour le dropdown */
        .select-dropdown::-webkit-scrollbar {
            width: 8px;
        }

        .select-dropdown::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 4px;
            margin: 2px 0;
        }

        .select-dropdown::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .select-dropdown::-webkit-scrollbar-thumb:hover {
            background: #ff4d5d;
            transform: scale(1.1);
        }

        .select-dropdown::-webkit-scrollbar-corner {
            background: transparent;
        }

        /* Scrollbar pour Firefox */
        .select-dropdown {
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
        }

        .custom-select input[type="hidden"] {
            display: none;
        }

        /* Style pour l'option sélectionnée par défaut */
        .select-option[data-value="all"] {
            font-weight: 600;
            color: var(--primary-color);
        }

        .select-option[data-value=""] {
            font-weight: 600;
            color: var(--primary-color);
        }

        /* Styles responsifs pour les filtres */
        @media (max-width: 1200px) {
            .price-chest-filters {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.2rem;
            }
        }

        @media (max-width: 900px) {
            .catalogue-filters {
                padding: 1.5rem;
                gap: 1.5rem;
            }

            .main-filters {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .price-chest-filters {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }

            .sort-btn {
                padding: 0.9rem 1.8rem;
                font-size: 0.95rem;
            }
        }

        @media (max-width: 768px) {
            .catalogue-filters {
                padding: 1.2rem;
                gap: 1.2rem;
            }

            .search-input-wrapper {
                max-width: 100%;
            }

            .price-chest-filters {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .select-dropdown {
                max-height: 200px;
            }

            .select-option {
                padding: 0.6rem 1rem;
                font-size: 0.95rem;
            }

            .filter-group label {
                font-size: 0.85rem;
            }

            .btn-reset-filters {
                padding: 0.8rem 1.5rem;
                font-size: 0.9rem;
            }

            .sort-btn {
                padding: 0.8rem 1.5rem;
                font-size: 0.9rem;
                gap: 0.6rem;
            }
        }

        @media (max-width: 600px) {
            .catalogue-filters {
                padding: 1rem;
                gap: 1rem;
            }

            .filter-group label {
                font-size: 0.8rem;
            }

            .input-with-icon input {
                padding: 0.7rem 1rem 0.7rem 2.2rem;
                font-size: 0.9rem;
            }

            .sort-section {
                flex-direction: column;
                gap: 1rem;
                align-items: center;
            }

            .btn-reset-filters {
                padding: 0.6rem 1.2rem;
                font-size: 0.8rem;
            }

            .sort-btn {
                padding: 0.7rem 1.2rem;
                font-size: 0.85rem;
                gap: 0.5rem;
                border-radius: 12px;
            }
        }

        @media (max-width: 480px) {
            .catalogue-filters {
                padding: 0.8rem;
                gap: 0.8rem;
            }

            .select-dropdown {
                max-height: 180px;
            }

            .select-option {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }

            .filter-group label {
                font-size: 0.75rem;
            }

            .sort-btn {
                padding: 0.6rem 1rem;
                font-size: 0.8rem;
                gap: 0.4rem;
            }

            .btn-reset-filters {
                padding: 0.6rem 1rem;
                font-size: 0.8rem;
            }

            .location-actions {
                gap: 0.4rem;
                padding: 0 0.8rem;
            }

            .btn-primary,
            .btn-secondary {
                padding: 0.4rem 0.4rem !important;
                font-size: 0.85rem !important;
            }
        }

        .location-hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .location-hero h1 {
            font-size: 3.5rem;
            font-weight: 800;
            color: var(--primary-color);
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }

        .location-hero p {
            font-size: 1.2rem;
            color: #fff;
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .location-stats {
            display: flex;
            justify-content: center;
            gap: 3rem;
            margin-top: 3rem;
            color: #fff;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary-color);
            display: block;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .location-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 4rem 2rem 4rem 2rem;
        }

        .location-filters {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 3rem;
            flex-wrap: wrap;
            margin-top: -1.2rem;
        }

        @media (max-width: 600px) {
            .location-filters {
                margin-top: 1rem;
                margin-bottom: -0.5rem;
            }
        }

        .filter-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 0.8rem 1.5rem;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            backdrop-filter: blur(10px);
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--primary-color);
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
        }

        .location-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .location-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            position: relative;
            z-index: 1;
        }

        .location-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border-color: var(--primary-color);
        }

        .location-image {
            position: relative;
            height: 210px;
            overflow: hidden;
        }

        .location-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: #181818;
            transition: transform 0.4s ease, opacity 0.4s ease;
        }

        .location-card:hover .location-image img {
            transform: scale(1.05);
            opacity: 0.85;
        }

        .location-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: var(--primary-color);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .electric-badge {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            padding: 0.4rem;
            border-radius: 50%;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
            width: 32px;
            height: 32px;
        }

        .full-perf-badge {
            position: absolute;
            bottom: 1rem;
            left: 1rem;
            background: rgba(251, 191, 36, 0.15);
            backdrop-filter: blur(8px);
            color: #fbbf24;
            padding: 0.35rem 0.6rem;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            border: 1px solid rgba(251, 191, 36, 0.3);
            white-space: nowrap;
        }

        .full-perf-badge i {
            font-size: 0.65rem;
            opacity: 0.9;
        }

        .preparation-badge {
            position: absolute;
            bottom: 1rem;
            left: 1rem;
            background: rgba(59, 130, 246, 0.15);
            backdrop-filter: blur(8px);
            color: #3b82f6;
            padding: 0.35rem 0.6rem;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            border: 1px solid rgba(59, 130, 246, 0.3);
            white-space: nowrap;
        }

        .preparation-badge i {
            font-size: 0.65rem;
            opacity: 0.9;
        }

        /* Badge NEW */
        .new-badge {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            padding: 0.35rem 0.6rem;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            z-index: 3;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
            animation: pulse-new 2s infinite;
        }

        @keyframes pulse-new {

            0%,
            100% {
                transform: scale(1);
                box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
            }

            50% {
                transform: scale(1.05);
                box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
            }
        }

        .new-badge i {
            font-size: 0.65rem;
        }

        /* Sur mobile, ajuster la taille des badges */
        @media (max-width: 768px) {

            .full-perf-badge,
            .preparation-badge {
                padding: 0.3rem 0.5rem;
                font-size: 0.65rem;
                gap: 0.3rem;
                bottom: 0.8rem;
                left: 0.8rem;
            }

            .full-perf-badge i,
            .preparation-badge i {
                font-size: 0.6rem;
            }

            .new-badge {
                padding: 0.3rem 0.5rem;
                font-size: 0.65rem;
                gap: 0.25rem;
                top: 0.8rem;
                left: 0.8rem;
            }
        }

        @media (max-width: 480px) {

            .full-perf-badge,
            .preparation-badge {
                padding: 0.25rem 0.4rem;
                font-size: 0.6rem;
                bottom: 0.6rem;
                left: 0.6rem;
            }

            .full-perf-badge span,
            .preparation-badge span {
                display: none;
                /* Masquer le texte sur très petit écran */
            }

            .full-perf-badge,
            .preparation-badge {
                width: 24px;
                height: 24px;
                border-radius: 50%;
                padding: 0;
                justify-content: center;
            }

            .new-badge {
                padding: 0.25rem 0.4rem;
                font-size: 0.6rem;
                top: 0.6rem;
                left: 0.6rem;
            }
        }

        .location-content {
            padding: 1.1rem 1.2rem 1.4rem 1.2rem;
        }

        .location-title-container {
            display: flex;
            align-items: flex-end;
            gap: 0.5rem;
            margin-bottom: 0.28rem;
            margin-top: -0.5rem;
            min-width: 0;
            flex: 1;
        }

        .location-title {
            font-size: 1.1rem;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .vehicle-model {
            color: #999;
            font-size: 0.85rem;
            font-weight: 400;
            margin: 0;
            transform: translateY(-2px);
        }

        .location-client {
            color: var(--primary-color);
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 1.5rem;
        }

        .location-specs {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 0.8rem;
            margin-bottom: 1rem;
        }

        .spec-item {
            flex: 0 1 auto;
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.22rem;
            font-size: 0.93rem;
            color: #ccc;
            text-align: left;
            white-space: nowrap;
        }

        .spec-item i {
            font-size: 1.1em;
            min-width: 20px;
            text-align: center;
        }

        .location-price {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            padding: 0.45rem 0 0.45rem 0;
            border-top: 1px solid #333;
            background: none;
            border-radius: 0;
            box-shadow: none;
            min-height: 0;
            gap: 0.3rem;
        }

        .price-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.8rem;
            flex-wrap: wrap;
        }

        .price-original {
            font-size: 1.1rem;
            font-weight: 600;
            color: #888;
            text-decoration: line-through;
            margin: 0;
        }

        .price-main {
            font-size: 1.32rem;
            font-weight: 800;
            color: var(--primary-color);
            margin: 0;
            background: none;
            border-radius: 0;
            box-shadow: none;
            padding: 0;
            display: block;
        }

        .price-days {
            font-size: 0.85rem;
            color: #bbb;
            font-weight: 500;
            margin-top: 0.1rem;
            letter-spacing: 0.03em;
        }

        .location-description {
            color: #ccc;
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 1.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .location-actions {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.75rem;
            padding: 0;
            margin: 0;
            width: 100%;
        }

        .btn-primary,
        .btn-secondary.reserve-btn {
            flex: 1 !important;
            padding: 0.5rem 0.5rem !important;
            border: none !important;
            border-radius: 12px !important;
            font-weight: 600 !important;
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            text-align: center !important;
            text-decoration: none !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            height: auto !important;
            min-height: 2.5rem !important;
            line-height: 1.5 !important;
            font-family: inherit !important;
            font-size: 1rem !important;
            margin: 0 !important;
            box-sizing: border-box !important;
        }

        .btn-primary {
            background: var(--primary-color) !important;
            color: white !important;
        }

        .btn-primary:hover {
            background: #ff4d5d !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3) !important;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1) !important;
            color: white !important;
            padding: 0.8rem 1.5rem !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
            border-radius: 12px !important;
            font-weight: 600 !important;
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            text-decoration: none !important;
            display: inline-block !important;
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2) !important;
            border-color: var(--primary-color) !important;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .occasion-card {
            animation: fadeInUp 0.6s ease forwards;
        }

        .occasion-card:nth-child(1) {
            animation-delay: 0.1s;
        }

        .occasion-card:nth-child(2) {
            animation-delay: 0.2s;
        }

        .occasion-card:nth-child(3) {
            animation-delay: 0.3s;
        }

        .occasion-card:nth-child(4) {
            animation-delay: 0.4s;
        }

        .occasion-card:nth-child(5) {
            animation-delay: 0.5s;
        }

        .occasion-card:nth-child(6) {
            animation-delay: 0.6s;
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .location-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1.5rem;
            }
        }

        @media (max-width: 900px) {
            .location-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .location-hero h1 {
                font-size: 2.5rem;
            }

            .location-stats {
                gap: 2rem;
            }

            .stat-number {
                font-size: 2rem;
            }

            .location-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
            }

            .location-specs {
                grid-template-columns: 1fr;
            }

            .location-actions {
                flex-direction: column;
            }

            .btn-secondary.reserve-btn {
                align-self: stretch !important;
                margin-left: 0 !important;
                flex: 1 !important;
            }
        }

        @media (max-width: 480px) {
            .location-hero h1 {
                font-size: 2rem;
            }

            .location-container {
                padding: 2rem 1rem;
            }

            .location-content {
                padding: 1.5rem;
            }

            .location-grid {
                grid-template-columns: 1fr;
                gap: 0.8rem;
            }
        }

        @media (max-width: 600px) {
            .location-hero {
                padding: 80px 0 40px;
            }

            .location-hero h1 {
                font-size: 1.3rem;
            }

            .location-hero p {
                font-size: 0.95rem;
            }

            .location-stats {
                flex-direction: column;
                gap: 1.2rem;
                margin-top: 1.5rem;
            }

            .stat-item {
                font-size: 0.95rem;
            }

            .stat-number {
                font-size: 1.3rem;
            }

            .location-container {
                padding: 0.5rem 0.1rem;
            }

            .location-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .location-card {
                border-radius: 24px;
                margin-bottom: 0.7rem;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
            }

            .location-content {
                padding: 0.7rem 0.5rem 0.7rem 0.5rem;
            }

            .location-title-container {
                margin-bottom: 0.2rem;
            }

            .location-title {
                font-size: 1rem;
                margin: 0;
            }

            .vehicle-model {
                font-size: 0.8rem;
            }

            .location-client {
                font-size: 0.8rem;
                margin-bottom: 0.7rem;
            }

            .location-specs {
                display: flex;
                flex-wrap: wrap;
                flex-direction: row;
                gap: 0.7rem;
                margin-bottom: 0.7rem;
            }

            .spec-item {
                font-size: 0.8rem;
            }

            .location-price {
                margin-bottom: 0.7rem;
                padding: 0.5rem 0.7rem;
            }

            .price-wrapper {
                gap: 0.5rem;
            }

            .price-original {
                font-size: 0.9rem;
            }

            .price-main {
                font-size: 1.1rem;
            }

            .price-days {
                font-size: 0.75rem;
            }

            .location-description {
                font-size: 0.8rem;
                margin-bottom: 0.7rem;
                -webkit-line-clamp: 2;
            }

            .location-image {
                height: 230px;
                border-radius: 20px 20px 0 0;
            }

            .btn-primary,
            .btn-secondary {
                padding: 0.5rem 0.5rem !important;
                font-size: 0.9rem !important;
            }

            .location-actions {
                gap: 0.5rem;
                padding: 0 0.5rem;
            }

            .btn-secondary.reserve-btn {
                align-self: stretch !important;
                margin-left: 0 !important;
                flex: 1 !important;
            }
        }

        /* Bulle de recherche */
        .search-bubble {
            position: static;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: 44px;
            min-width: 44px;
            height: 56px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 36px;
            box-shadow: none;
            transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.35s, background 0.2s;
            overflow: hidden;
        }

        .search-bubble.open {
            width: 830px;
            border-radius: 36px;
            background: rgba(255, 255, 255, 0.1);
        }

        .search-bubble .search-icon {
            color: #fff;
            font-size: 1.5rem;
            transition: opacity 0.2s;
            margin-left: 1rem;
        }

        .search-bubble.open .search-icon {
            opacity: 0.3;
        }

        .search-bubble-form {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s 0.1s;
            width: 0;
            margin-left: 0.7rem;
            padding: 0.3rem 0;
        }

        .search-bubble.open .search-bubble-form {
            opacity: 1;
            pointer-events: auto;
            width: auto;
        }

        .search-bubble input[type="text"],
        .search-bubble input[type="number"] {
            background: #181818;
            border: 1px solid #444;
            color: #fff;
            border-radius: 8px;
            padding: 0.5rem 1rem;
            font-size: 1.08rem;
            width: 90px;
            transition: background 0.2s, border 0.2s;
            outline: none;
        }

        .search-bubble input[type="text"] {
            width: 130px;
        }

        .search-bubble input[type="text"]:focus,
        .search-bubble input[type="number"]:focus {
            border: 1.5px solid var(--primary-color, #e63946);
            background: #222;
        }

        .search-bubble input[type="number"]::-webkit-inner-spin-button,
        .search-bubble input[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .search-bubble select {
            font-size: 1.08rem !important;
            padding: 0.5rem 1rem !important;
        }

        .search-bubble .close-btn {
            background: none;
            border: none;
            color: #fff;
            font-size: 1.1rem;
            margin-left: 0.1rem;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.2s;
        }

        .search-bubble .close-btn:hover {
            opacity: 1;
        }

        @media (max-width: 700px) {
            .search-bubble {
                width: 36px;
                height: 36px;
                min-width: 36px;
                margin-right: 0.3rem;
            }

            .search-bubble.open {
                width: 99vw;
                border-radius: 0 0 18px 18px;
            }
        }

        .categories-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
            width: 100%;
            margin-bottom: 0.2rem;
        }

        .search-bubble input[type="number"]#min-price,
        .search-bubble input[type="number"]#max-price {
            width: 110px;
        }

        .search-bubble input[type="number"]#min-chest,
        .search-bubble input[type="number"]#max-chest {
            width: 85px !important;
        }

        .tri-btn {
            background: rgba(255, 255, 255, 0.13);
            border: 1px solid #444;
            color: #fff;
            border-radius: 8px;
            padding: 0.5rem 1.1rem;
            font-size: 1.08rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: background 0.2s, border 0.2s;
            outline: none;
        }

        .tri-btn:hover {
            background: rgba(255, 255, 255, 0.22);
            border-color: var(--primary-color, #e63946);
        }

        .tri-btn .arrow {
            font-size: 1.2em;
            margin-left: 0.2rem;
            display: flex;
            align-items: center;
        }

        #places-filter {
            color: #757575 !important;
        }

        .vehicle-modal {
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100vw;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .vehicle-modal-overlay {
            position: absolute;
            left: 0;
            top: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(2px);
        }

        .vehicle-modal-content {
            position: relative;
            background: #181818;
            border-radius: 28px;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
            max-width: 600px;
            width: 99vw;
            padding: 0 0 1.2rem 0;
            z-index: 2;
            display: flex;
            flex-direction: column;
        }

        .vehicle-modal-close {
            position: absolute;
            top: 2px;
            right: 24px;
            font-size: 2rem;
            color: #fff;
            cursor: pointer;
            z-index: 10;
            transition: color 0.2s ease;
        }

        .vehicle-modal-close:hover {
            color: var(--primary-color);
        }

        .vehicle-modal-body {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            padding: 0 1.1rem;
        }

        .vehicle-modal-img-wrap {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            margin-bottom: 1.1rem;
        }

        .vehicle-modal-img-wrap img {
            width: 100%;
            max-width: 600px;
            border-radius: 18px 18px 0 0;
            box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
            margin-bottom: 0;
        }

        .vehicle-modal-perfs {
            width: 100%;
            margin-top: 0rem;
        }

        .vehicle-modal-infos {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            margin-bottom: 0.5rem;
        }

        .vehicle-modal-infos h2 {
            font-size: 1.5rem;
            color: #fff;
            margin-bottom: 0.1rem;
            font-weight: 800;
        }

        .vehicle-modal-price {
            font-size: 1.2rem;
            color: var(--primary-color);
            font-weight: 800;
            margin-bottom: 0.5rem;
            margin-top: 0.2rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .vehicle-modal-price-original {
            font-size: 1rem;
            color: #888;
            text-decoration: line-through;
            font-weight: 600;
        }

        .vehicle-modal-specs {
            display: flex;
            gap: 0.7rem;
            margin-bottom: 0.7rem;
            color: #fff;
            font-size: 0.98rem;
        }

        .vehicle-modal-specs i {
            color: var(--primary-color);
            margin-right: 0.3rem;
        }

        .vehicle-modal-perfs h3 {
            color: #fff;
            font-size: 1rem;
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .vehicle-modal-desc {
            margin-top: 0.2rem;
            color: #eee;
            font-size: 0.95rem;
            line-height: 1.6;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
            padding: 0.7rem 0.8rem;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
            min-height: 40px;
            word-break: break-word;
            margin-bottom: -1.5rem;
        }

        .vehicle-modal-perfs-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem 1rem;
        }

        .vehicle-perf-block {
            background: rgba(30, 30, 30, 0.92);
            border-radius: 14px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
            display: flex;
            align-items: center;
            gap: 1.1rem;
            padding: 0.6rem 0.7rem;
            margin-bottom: 0.5rem;
            min-width: 0;
        }

        .vehicle-perf-icon {
            background: rgba(0, 0, 0, 0.22);
            border-radius: 10px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: #fff;
            flex-shrink: 0;
        }

        .vehicle-perf-info {
            flex: 1 1 0;
            min-width: 0;
        }

        .vehicle-perf-title {
            color: #fff;
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 0.2rem;
            letter-spacing: 0.01em;
        }

        .vehicle-perf-bar {
            display: flex;
            gap: 0.18rem;
        }

        .vehicle-perf-segment {
            width: 11px;
            height: 7px;
            border-radius: 3px;
            background: #181818;
            border: 1px solid #222;
            transition: background 0.2s;
        }

        .vehicle-perf-segment.active {
            background: #fff;
            border-color: #fff;
        }

        @media (max-width: 900px) {
            .vehicle-modal-content {
                max-width: 99vw;
            }

            .vehicle-modal-img-wrap img {
                max-width: 100vw;
            }

            .vehicle-modal-body {
                padding: 0 0.5rem;
            }
        }

        @media (max-width: 600px) {
            .vehicle-modal-close {
                top: 8px;
                right: 12px;
                font-size: 1.8rem;
            }

            .vehicle-modal-content {
                max-width: 99vw;
                padding: 0 0 1.2rem 0;
                border-radius: 28px;
            }

            .vehicle-modal-img-wrap {
                margin-bottom: 1.1rem;
            }

            .vehicle-modal-img-wrap img {
                width: 100%;
                max-width: 600px;
                border-radius: 18px 18px 0 0;
                box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
                margin-bottom: 0;
            }

            .vehicle-modal-body {
                padding: 0 1.1rem;
            }

            .vehicle-modal-infos {
                width: 100%;
                margin-bottom: 1.5rem;
            }

            .vehicle-modal-infos h2 {
                font-size: 1.5rem;
                margin-bottom: 0.1rem;
            }

            .vehicle-modal-price {
                font-size: 1.2rem;
                margin-bottom: 0.5rem;
            }

            .vehicle-modal-specs {
                font-size: 0.98rem;
                gap: 0.7rem;
                margin-bottom: 0.7rem;
            }

            .vehicle-modal-desc {
                font-size: 0.95rem;
                padding: 0.7rem 0.8rem;
                margin-bottom: -3rem;
            }

            .vehicle-modal-perfs h3 {
                font-size: 1rem;
                margin-bottom: 0.5rem;
            }

            .vehicle-perf-block {
                padding: 0.6rem 0.7rem;
                margin-bottom: 0.5rem;
                border-radius: 14px;
            }

            .vehicle-perf-icon {
                width: 32px;
                height: 32px;
                font-size: 1.1rem;
                border-radius: 10px;
            }

            .vehicle-perf-title {
                font-size: 0.8rem;
                margin-bottom: 0.2rem;
            }

            .vehicle-perf-segment {
                width: 11px;
                height: 7px;
                border-radius: 3px;
            }
        }

        ::selection {
            background: #757575;
            color: #fff;
        }

        ::-moz-selection {
            background: #757575;
            color: #fff;
        }

        /* Bouton retour en haut */
        .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            z-index: 1000;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
        }

        .scroll-to-top:hover {
            background: #ff4d5d;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
        }

        .scroll-to-top.show {
            display: flex;
            animation: fadeInUp 0.3s ease;
        }

        @media (max-width: 768px) {
            .scroll-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }
        }

        .btn-secondary.reserve-btn {
            background: rgba(255, 255, 255, 0.13) !important;
            color: #fff !important;
        }

        .btn-secondary.reserve-btn:hover:not(:disabled) {
            background: #757575 !important;
            color: #fff !important;
            box-shadow: 0 8px 25px rgba(99, 99, 99, 0.18) !important;
            transform: translateY(-2px) !important;
        }

        .btn-secondary.reserve-btn:disabled,
        .btn-secondary.reserve-btn[disabled] {
            background: #888 !important;
            color: #eee !important;
            cursor: not-allowed !important;
            opacity: 0.7 !important;
            box-shadow: none !important;
            transform: none !important;
        }

        /* Modal Réservation amélioré */
        #reservation-modal.vehicle-modal {
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        #reservation-modal .vehicle-modal-content {
            background: #181818;
            border-radius: 22px;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
            max-width: 420px;
            width: 98vw;
            padding: 0 0 1.2rem 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            margin: 0 auto;
        }

        #reservation-modal .vehicle-modal-body {
            width: 100%;
            padding: 1.2rem 1.5rem 0.5rem 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: stretch;
        }

        #reservation-modal h2 {
            color: #fff;
            font-size: 1.35rem;
            font-weight: 800;
            margin-bottom: 1.2rem;
            text-align: center;
        }

        #reservation-modal label {
            color: #fff;
            font-size: 1rem;
            margin-bottom: 0.3rem;
            font-weight: 600;
        }

        #reservation-modal input[type="date"],
        #reservation-modal input[type="time"] {
            background: #222;
            border: 1.5px solid #444;
            color: #fff;
            border-radius: 10px;
            padding: 0.6rem 1rem;
            font-size: 1.08rem;
            margin-bottom: 1rem;
            outline: none;
            transition: border 0.2s, box-shadow 0.2s;
        }

        #reservation-modal input[type="date"]:focus,
        #reservation-modal input[type="time"]:focus {
            border: 1.5px solid var(--primary-color, #e63946);
            box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.13);
        }

        #reservation-modal input[type="checkbox"] {
            accent-color: var(--primary-color, #e63946);
            margin-right: 0.5rem;
            transform: scale(1.15);
        }

        #reservation-modal .btn-primary {
            background: var(--primary-color, #e63946);
            color: #fff;
            border: none;
            border-radius: 12px;
            font-weight: 700;
            font-size: 1.08rem;
            padding: 0.7rem 0;
            margin-top: 1.1rem;
            box-shadow: 0 4px 18px rgba(230, 57, 70, 0.13);
            transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
        }

        #reservation-modal .btn-primary:hover {
            background: #ff4d5d;
            box-shadow: 0 8px 25px rgba(230, 57, 70, 0.18);
            transform: translateY(-2px);
        }

        #reservation-modal .vehicle-modal-close {
            position: absolute;
            top: 10px;
            right: 24px;
            font-size: 2rem;
            color: #fff;
            cursor: pointer;
            z-index: 10;
            transition: color 0.2s;
        }

        #reservation-modal .vehicle-modal-close:hover {
            color: var(--primary-color, #e63946);
        }

        #reservation-modal .vehicle-modal-overlay {
            position: absolute;
            left: 0;
            top: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(2px);
            z-index: 1;
        }

        #reservation-modal form {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }

        #reservation-modal .reservation-commit-wrap {
            margin: 0.7rem 0 0.2rem 0;
            display: flex;
            align-items: center;
        }

        #reservation-modal .reservation-commit-wrap label {
            font-size: 0.97rem;
            font-weight: 500;
            color: #eee;
            margin-bottom: 0;
        }

        /* Sélecteurs personnalisés pour date et heure */
        .custom-date-picker,
        .custom-time-picker {
            position: relative;
            width: 100%;
        }

        .date-picker-dropdown,
        .time-picker-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #222;
            border: 1.5px solid #444;
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            z-index: 10001;
            margin-top: 5px;
            padding: 1rem;
        }

        .date-picker-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            color: #fff;
        }

        .date-nav-btn {
            background: #333;
            border: 1px solid #555;
            color: #fff;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
        }

        .date-nav-btn:hover {
            background: var(--primary-color);
        }

        .date-picker-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
            margin-bottom: 0.5rem;
            text-align: center;
            color: #888;
            font-size: 0.9rem;
        }

        .date-picker-days {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
        }

        .date-day {
            padding: 0.5rem;
            text-align: center;
            cursor: pointer;
            border-radius: 5px;
            color: #fff;
            font-size: 0.9rem;
        }

        .date-day:hover {
            background: #333;
        }

        .date-day.selected {
            background: var(--primary-color);
            color: #fff;
        }

        .date-day.disabled {
            color: #555;
            cursor: not-allowed;
        }

        .date-day.today {
            border: 2px solid var(--primary-color);
        }

        .time-picker-columns {
            display: flex;
            gap: 1rem;
        }

        .time-column {
            flex: 1;
            text-align: center;
        }

        .time-column-title {
            color: #888;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .time-options {
            max-height: 200px;
            overflow-y: auto;
        }

        .time-option {
            padding: 0.5rem;
            cursor: pointer;
            border-radius: 5px;
            color: #fff;
            font-size: 0.9rem;
            margin-bottom: 2px;
        }

        .time-option:hover {
            background: #333;
        }

        .time-option.selected {
            background: var(--primary-color);
            color: #fff;
        }

        /* Switch Apple-like pour la case à cocher du modal (alignement propre) */
        .reservation-commit-wrap {
            margin: 0.7rem 0 0.2rem 0;
            display: flex;
            align-items: center;
            gap: 1.1rem;
            flex-wrap: nowrap;
        }

        .reservation-switch {
            position: relative;
            display: inline-block;
            width: 48px;
            height: 28px;
            flex-shrink: 0;
        }

        .reservation-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .reservation-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #e5e5e5;
            border-radius: 14px;
            transition: background 0.25s cubic-bezier(.4, 0, .2, 1);
            border: 1.5px solid #d1d1d1;
        }

        .reservation-slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 2.5px;
            top: 1.2px;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
            transition: transform 0.25s cubic-bezier(.4, 0, .2, 1);
        }

        .reservation-switch input:checked+.reservation-slider {
            background: #e63946;
            border-color: #e63946;
        }

        .reservation-switch input:checked+.reservation-slider:before {
            transform: translateX(20px);
        }

        .reservation-commit-wrap .reservation-commit-label {
            font-size: 0.97rem;
            font-weight: 500;
            color: #eee;
            margin-bottom: 0;
            cursor: pointer;
            flex: 1 1 0;
            min-width: 0;
            word-break: break-word;
            max-width: 340px;
            display: flex;
            align-items: center;
        }

        @media (max-width: 600px) {
            .reservation-commit-wrap {
                flex-direction: row;
                align-items: center;
                gap: 0.8rem;
            }

            .reservation-commit-wrap .reservation-commit-label {
                max-width: 100%;
                flex: 1;
                font-size: 0.9rem;
            }

            .reservation-switch {
                width: 44px;
                height: 26px;
                flex-shrink: 0;
            }

            .reservation-slider:before {
                height: 20px;
                width: 20px;
                left: 2px;
                top: 1px;
            }

            .reservation-switch input:checked+.reservation-slider:before {
                transform: translateX(18px);
            }
        }

        @media (max-width: 600px) {
            #reservation-modal .vehicle-modal-content {
                max-width: 99vw;
                padding: 0 0 1.2rem 0;
                border-radius: 18px;
            }

            #reservation-modal .vehicle-modal-body {
                padding: 1.1rem 0.5rem 0.5rem 0.5rem;
            }

            #reservation-modal .vehicle-modal-close {
                top: 8px;
                right: 12px;
                font-size: 1.8rem;
            }
        }

        #reservation-modal .btn-primary:disabled {
            background: #b0b0b0;
            color: #fff;
            cursor: not-allowed;
            opacity: 0.7;
            box-shadow: none;
            transform: none;
        }

        .user-btn {
            width: 200px;
            /* exemple, adapte à ta taille réelle */
        }

        .dropdown-menu {
            width: 100%;
            /* ou la même valeur que .user-btn si le menu est dans le même conteneur */
            min-width: 200px;
            /* pour forcer la même largeur si besoin */
            box-sizing: border-box;
        }

        /* Podium Logo Link - Toujours visible */
        .podium-logo-link {
            display: inline-flex;
            align-items: center;
            margin-left: -1rem;
            text-decoration: none;
            vertical-align: middle;
            margin-top: -4px;
        }

        .podium-logo-wrapper {
            position: relative;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
            border: 1px solid rgba(255, 215, 0, 0.2);
            width: 40px;
            height: 40px;
            box-sizing: border-box;
        }

        .podium-logo-wrapper:hover {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
            border-color: rgba(255, 215, 0, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
        }

        .podium-logo-wrapper i {
            font-size: 1.2rem;
            color: #ffd700;
            transition: transform 0.3s ease;
        }

        .podium-logo-wrapper:hover i {
            transform: scale(1.15) rotate(-5deg);
            color: #ffed4e;
        }
