        /* Pulsing Badge Vert */
        .pulse-badge-green {
            display: inline-block;
            width: 8px;
            height: 8px;
            background: #2ecc71;
            border-radius: 50%;
            box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
            animation: pulse-green 1.5s infinite;
        }

        .nouveautes-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(46, 204, 113, 0.08);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(46, 204, 113, 0.2);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.72rem;
            font-weight: 800;
            color: #2ecc71;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 0 15px rgba(46, 204, 113, 0.1);
            text-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
            margin-bottom: 5px;
        }

        @keyframes pulse-green {
            0% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
            }
            70% {
                transform: scale(1);
                box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
            }
            100% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
            }
        }

        @keyframes pulse-red-text {
            0% { opacity: 0.7; text-shadow: 0 0 4px rgba(255, 59, 48, 0.3); }
            50% { opacity: 1; text-shadow: 0 0 12px rgba(255, 59, 48, 0.8); }
            100% { opacity: 0.7; text-shadow: 0 0 4px rgba(255, 59, 48, 0.3); }
        }
        .pulse-red-text {
            color: #ff3b30 !important;
            animation: pulse-red-text 1.5s infinite !important;
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
        }
        .favoris-count-row {
            color: #ff9500 !important;
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            display: flex;
            justify-content: center !important;
            align-items: center !important;
            background: rgba(255, 149, 0, 0.08) !important;
            border: 1px solid rgba(255, 149, 0, 0.3) !important;
        }

        @keyframes heartbeat {
            0% { transform: scale(1); }
            14% { transform: scale(1.15); }
            28% { transform: scale(1); }
            42% { transform: scale(1.15); }
            70% { transform: scale(1); }
        }

        :root {
            --glass-bg: rgba(255, 255, 255, 0.03);
            --glass-border: rgba(255, 255, 255, 0.08);
            --accent-blue: #007aff;
            --accent-gold: #c5a059;
            --card-width: 240px;
        }

        html, body {
            height: 100% !important;
            overflow: hidden !important;
        }

        body {
            background-color: #0f111a;
            color: #fff;
            margin: 0;
            padding: 20px;
            font-family: 'Inter', sans-serif;
            display: flex !important;
            flex-direction: column;
        }

        /* Ajustement pour que le layout occupe tout l'espace sous la nav */
        .page-wrapper {
            flex: 1;
            min-height: 0;
            margin: 0 !important;
            padding: 0 20px 20px 20px !important;
        }

        /* Personnalisation du scrollbar pour un look premium */
        .table-wrapper::-webkit-scrollbar {
            width: 8px;
        }
        .table-wrapper::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.02);
        }
        .table-wrapper::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.1);
            border-radius: 4px;
        }
        .table-wrapper::-webkit-scrollbar-thumb:hover {
            background: var(--accent-blue);
        }

        /* --- PREMIUM TITLE STYLING --- */
        .premium-title-wrapper {
            display: flex;
            align-items: center;
            gap: 25px;
            margin-bottom: 45px; /* Aération harmonisée */
            padding-top: 5px;
        }

        .title-accent-bar {
            width: 4px;
            height: 36px;
            background: linear-gradient(180deg, #007aff 0%, #00c6ff 100%);
            border-radius: 2px;
            box-shadow: 0 0 15px rgba(0, 122, 255, 0.6);
        }

        .premium-page-title {
            margin: 0;
            display: flex;
            align-items: center;
            gap: 25px;
            font-family: 'Inter', sans-serif;
            font-size: 1.6rem;
            font-weight: 800;
            letter-spacing: 2px;
            color: #fff;
            text-transform: uppercase;
        }

        .title-main-text {
            background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            white-space: nowrap;
        }

        .title-sep {
            color: rgba(255, 255, 255, 0.4);
            font-weight: 400;
            margin: 0 5px;
            font-size: 1.4rem;
        }

        .title-sub-text {
            color: #007aff;
            text-shadow: 0 0 25px rgba(0, 122, 255, 0.4);
            white-space: nowrap;
        }

        .title-count-badge {
            background: rgba(0, 122, 255, 0.1);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(0, 122, 255, 0.2);
            padding: 5px 16px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
            color: #00c6ff;
            margin-left: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 0 15px rgba(0, 122, 255, 0.1);
        }

        .marketplace-header {
            background: transparent;
            padding: 40px 20px 20px;
            text-align: center;
        }

        .marketplace-header h1 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 5px;
        }

        .marketplace-header p {
            color: rgba(255, 255, 255, 0.6);
            font-size: 1rem;
            margin: 0;
        }

        .search-bar-container {
            background: transparent;
            padding: 20px 0;
            max-width: 800px;
            margin: 0 auto;
        }

        .mega-search-input {
            width: 100%;
            padding: 15px 25px;
            border-radius: 20px;
            background: rgba(31, 34, 46, 0.9);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1.1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            outline: none;
            transition: all 0.3s ease;
        }

        .mega-search-input:focus {
            border-color: var(--accent-blue);
            box-shadow: 0 10px 30px rgba(0, 122, 255, 0.2);
        }

        .marketplace-layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 30px;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        .filters-sidebar {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 25px;
            height: fit-content;
            position: sticky;
            top: 300px; /* Aligné avec le bas du sticky header + marge */
            z-index: 100;
        }

        .filter-group {
            margin-bottom: 25px;
        }

        .filter-group h3 {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.4);
            margin-bottom: 15px;
        }

        .filter-select {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 10px;
            border-radius: 10px;
            outline: none;
        }

        .items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(var(--card-width), 1fr));
            gap: 25px;
        }

        .item-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 15px;
            transition: all 0.3s ease;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        /* Typographie Responsive Proportionnelle */
        .item-card .yt-number {
            font-size: clamp(0.75rem, calc(var(--zoom-val) * 0.0042 * 1rem), 1.05rem) !important;
            line-height: 1.2 !important;
        }
        .item-card .item-name {
            font-size: clamp(0.85rem, calc(var(--zoom-val) * 0.0048 * 1rem), 1.2rem) !important;
            line-height: 1.2 !important;
        }
        .item-card .price-tag {
            font-size: clamp(0.95rem, calc(var(--zoom-val) * 0.0055 * 1rem), 1.35rem) !important;
            color: #10b981 !important;
            line-height: 1.2 !important;
        }
        .item-card .condition-badge {
            font-size: clamp(0.6rem, calc(var(--zoom-val) * 0.0035 * 1rem), 0.9rem) !important;
            line-height: 1.2 !important;
        }
        .item-card .seller-info {
            font-size: clamp(0.65rem, calc(var(--zoom-val) * 0.0038 * 1rem), 0.95rem) !important;
            line-height: 1.2 !important;
        }
        .item-card .btn-action {
            font-size: clamp(0.7rem, calc(var(--zoom-val) * 0.0042 * 1rem), 1.05rem) !important;
            line-height: 1.2 !important;
        }

        /* Ajustements spécifiques pour les pastilles d'état (Photo Dot) */
        .item-card .yt-number {
            display: flex;
            align-items: center;
            gap: clamp(4px, calc(var(--zoom-val) * 0.03px), 10px);
        }

        .item-card .photo-dot {
            display: inline-block;
            width: clamp(6px, calc(var(--zoom-val) * 0.04px), 12px);
            height: clamp(6px, calc(var(--zoom-val) * 0.04px), 12px);
            border-radius: 50%;
            flex-shrink: 0;
            transition: transform 0.2s ease;
            cursor: help;
        }

        .item-card .photo-dot:hover {
            transform: scale(1.3);
        }

        .dot-reference {
            background: #f39c12;
            box-shadow: 0 0 8px rgba(243, 156, 18, 0.6);
        }

        .dot-reelle {
            background: #2ecc71;
            box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
        }

        .item-card .price-tag, 
        .item-card .item-name, 
        .item-card .yt-number {
            font-weight: 700 !important;
        }

        .item-card .btn-action {
            padding: clamp(3px, calc(var(--zoom-val) * 0.03px), 10px) !important;
            margin-top: clamp(4px, calc(var(--zoom-val) * 0.04px), 12px) !important;
            font-weight: 700 !important;
        }

        .item-card .yt-number {
            font-weight: 700 !important;
        }

        .item-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .img-container {
            width: 100%;
            aspect-ratio: 1;
            background: #1a1d26;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-bottom: 15px;
        }

        .stamp-img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

        .item-card:hover .stamp-img {
            transform: scale(1.05);
        }

        .item-info {
            flex: 1;
        }

        .yt-number {
            font-size: 1.125em; /* Utilisation de em */
            font-weight: 700;
            color: var(--accent-blue);
            margin-bottom: 5px;
        }

        .item-name {
            font-size: 1.125em; /* Utilisation de em */
            font-weight: 600;
            margin-bottom: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .item-meta-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .price-tag {
            font-size: 1.2em; /* Utilisation de em */
            font-weight: 800;
            color: #fff;
        }

        .condition-badge {
            font-size: 0.7em; /* Utilisation de em */
            background: rgba(255, 255, 255, 0.1);
            padding: 4px 10px;
            border-radius: 6px;
            color: rgba(255, 255, 255, 0.7);
        }

        .seller-info {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8em;
            color: rgba(255, 255, 255, 0.5);
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .seller-verified {
            color: #2ecc71;
            font-size: 0.9em;
        }

        .btn-action {
            width: 100%;
            padding: 12px;
            border-radius: 12px;
            font-weight: 700;
            text-align: center;
            text-decoration: none;
            transition: all 0.2s ease;
            margin-top: 15px;
            cursor: pointer;
            border: none;
        }

        .btn-buy {
            background: rgba(52, 211, 153, 0.12) !important;
            color: #34c759 !important;
            border: 1px solid rgba(52, 211, 153, 0.3) !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            text-shadow: 0 0 8px rgba(52, 211, 153, 0.3) !important;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
            font-weight: 700 !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        .btn-buy:hover {
            background: rgba(52, 211, 153, 0.22) !important;
            color: #fff !important;
            border: 1px solid rgba(52, 211, 153, 0.5) !important;
            box-shadow: 0 8px 32px 0 rgba(52, 211, 153, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.2) !important;
            transform: translateY(-2px) scale(1.02) !important;
            text-shadow: none !important;
        }

        .btn-login {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .btn-login:hover {
            background: rgba(255, 255, 255, 0.15);
        }



        /* Pagination Style */
        .pagination-sticky-bottom {
            background: rgba(26, 29, 39, 0.95);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 15px 30px;
            display: flex;
            justify-content: flex-end; /* Alignement à droite */
            align-items: center;
            border-radius: 0 0 18px 18px;
            z-index: 100;
        }

        .mega-boutique-header-fixed {
            background: #0f111a;
            padding: 20px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 100;
        }

        .pagination-links {
            display: flex;
            gap: 5px;
        }

        .pagination-links a, .pagination-links span {
            padding: 8px 14px;
            border-radius: 8px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            color: white;
            text-decoration: none;
            transition: all 0.2s;
        }

        .pagination-links a:hover {
            background: rgba(255,255,255,0.1);
        }

        .pagination-links .current-page {
            background: var(--accent-blue);
            border-color: var(--accent-blue);
        }

        .per-page-container select, .goto-page-form input {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
        }

        .goto-page-form button {
            background: var(--accent-blue);
            border: none;
            color: white;
            padding: 5px 15px;
            border-radius: 5px;
            cursor: pointer;
        }

        /* Responsive */
        @media (max-width: 900px) {
            .marketplace-layout {
                grid-template-columns: 1fr;
            }
            .filters-sidebar {
                position: static;
            }
        }

        /* Styles Modale Invitation Vente */
        .invitation-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(10, 12, 16, 0.85); backdrop-filter: blur(25px);
            display: none; justify-content: center; align-items: center; z-index: 10000;
        }
        .invitation-modal {
            background: rgba(52, 152, 219, 0.15); border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 40px; padding: 50px; max-width: 550px; width: 90%; text-align: center;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6); position: relative;
        }
        .invitation-icon { font-size: 5rem; margin-bottom: 25px; display: block; }
        .invitation-modal h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 15px; color: white; }
        .invitation-modal p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.8); line-height: 1.6; margin-bottom: 30px; }
        .btn-invitation-action { 
            display: inline-block; padding: 15px 40px; border-radius: 50px; 
            font-weight: 700; background: var(--accent-blue); color: white; 
            text-decoration: none; box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
            transition: transform 0.2s;
        }
        .btn-invitation-action:hover { transform: translateY(-3px); }
        .close-invitation { position: absolute; top: 20px; right: 25px; color: rgba(255,255,255,0.4); cursor: pointer; font-size: 1.5rem; }

        /* Animation d'incitation à la vente */
        @keyframes sellingPulse {
            0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); transform: scale(1); }
            50% { box-shadow: 0 0 0 12px rgba(0, 122, 255, 0); transform: scale(1.03); }
            100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); transform: scale(1); }
        }
        .btn-selling-pulse {
            animation: sellingPulse 3s infinite cubic-bezier(0.66, 0, 0, 1);
            border-color: rgba(0, 122, 255, 0.5) !important;
            background: rgba(0, 122, 255, 0.15) !important;
            color: #fff !important;
        }

                            @keyframes vs-spin {
                                0% { transform: rotate(0deg); }
                                100% { transform: rotate(360deg); }
                            }

        /* --- FAVORITES AND MODAL SLEEK STYLES --- */
        .btn-favorite {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 20;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(15, 23, 42, 0.4);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            padding: 0;
        }

        .btn-favorite svg {
            width: 18px;
            height: 18px;
            fill: transparent;
            transition: all 0.2s ease;
        }

        .btn-favorite:hover {
            background: rgba(15, 23, 42, 0.6);
            border-color: rgba(255, 255, 255, 0.25);
            color: #ff4757;
            transform: scale(1.1);
        }

        .btn-favorite.is-active {
            color: #ff4757;
            border-color: rgba(255, 71, 87, 0.3);
            background: rgba(255, 71, 87, 0.1);
        }

        .btn-favorite.is-active svg {
            fill: #ff4757;
            stroke: #ff4757;
            animation: pulse-heart 0.3s ease-out;
        }

        @keyframes pulse-heart {
            0% { transform: scale(1); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }

        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }
        
        .shimmer-element {
            background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 8px;
        }

        @keyframes spin_ex {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Masquer la barre de défilement pour Chrome, Safari et Opera */
        .latest-carousel-scroll::-webkit-scrollbar {
            display: none !important;
        }

        /* --- Carrousel Nouveautés --- */
        .latest-carousel-container {
            margin-bottom: 25px;
            padding: 15px 20px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            transition: all 0.3s ease;
        }

        .latest-carousel-title {
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: margin-bottom 0.3s ease;
        }

        .latest-carousel-container.collapsed .latest-carousel-title {
            margin-bottom: 0;
        }

        /* Boutons de contrôle */
        .carousel-control-btn {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease, width 0.3s ease, opacity 0.3s ease, margin 0.3s ease, border-width 0.3s ease;
            font-size: 0.8rem;
            overflow: hidden;
        }

        .carousel-control-btn:hover {
            background: rgba(255,255,255,0.15);
        }

        .btn-scroll-left,
        .btn-scroll-right {
            opacity: 1;
        }

        /* Masquer les boutons de défilement quand le carrousel est replié */
        .latest-carousel-container.collapsed .btn-scroll-left,
        .latest-carousel-container.collapsed .btn-scroll-right {
            opacity: 0;
            width: 0;
            margin: 0;
            border-width: 0;
            pointer-events: none;
        }

        .carousel-controls {
            display: flex;
            gap: 8px;
        }

        .latest-carousel-scroll {
            display: flex;
            overflow-x: auto;
            gap: 15px;
            padding-bottom: 5px;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        /* Wrapper pour transition hauteur/opacité */
        .latest-carousel-scroll-wrapper {
            max-height: 500px;
            opacity: 1;
            overflow: hidden;
            transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
            margin-top: 10px;
        }

        .latest-carousel-scroll-wrapper.collapsed {
            max-height: 0;
            opacity: 0;
            margin-top: 0;
            pointer-events: none;
        }

        /* Vignette Agrandie */
        .latest-vignette {
            flex: 0 0 200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .latest-vignette:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-3px);
        }

        .latest-vignette-ref {
            font-size: 0.85rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 8px;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .latest-vignette-img-container {
            width: 100%;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 6px;
            margin-bottom: 10px;
            overflow: hidden;
        }

        .latest-vignette-img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

        .latest-vignette:hover .latest-vignette-img {
            transform: scale(1.08);
        }

        .latest-vignette-price {
            font-size: 1rem;
            font-weight: 800;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
        }
