@import "../../node_modules/bootstrap/dist/css/bootstrap.min.css";


:root {
    --primary-gradient: linear-gradient(135deg, #007afd 0%, #68aaf2 100%);
    --secondary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --shadow-primary: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 50px rgba(102, 126, 234, 0.3);
    --bg-base: linear-gradient(135deg, #0c0c1d 0%, #1a1a2e 50%, #16213e 100%);
    --particle-color: rgba(102, 126, 234, 0.6);
    --bg-overlay: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse at bottom right, rgba(67, 233, 123, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse at bottom left, rgba(79, 172, 254, 0.12) 0%, transparent 70%);
}

/* Light theme variables */
[data-theme="light"] {
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-primary: #1a202c;
    --text-secondary: rgba(26, 32, 44, 0.8);
    --shadow-primary: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 50px rgba(102, 126, 234, 0.2);
    --bg-base: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    --particle-color: rgba(102, 126, 234, 0.4);
    --bg-overlay: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse at bottom right, rgba(34, 197, 94, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-base);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    transition: all 0.3s ease;
}

/* Background overlay for better visual depth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    pointer-events: none;
    z-index: 0;
}

/* Animated particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--particle-color);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Header avec effet néon */
.header {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.brand-logo {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    position: relative;
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    z-index: -1;
    opacity: 0.3;
}

/* Glass morphism cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary),
    0 0 50px rgba(102, 126, 234, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero section avec effet 3D */
.hero-section {
    position: relative;
    padding: 4rem 0;
    perspective: 1000px;
}

.car-showcase {
    position: relative;
    padding: 4rem;
    transform-style: preserve-3d;
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

.car-brand-badge {
    width: 120px;
    height: 120px;
    background: var(--primary-gradient);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin: 0 auto 3rem;
    position: relative;
    box-shadow: var(--shadow-primary),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.car-brand-badge::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--primary-gradient);
    border-radius: 33px;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.car-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #047afd 0%, #a8c8ec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    position: relative;
}

/* Image container avec effet holographique */
.car-image-container {
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: zoom-in;
}

.car-image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent, rgba(67, 233, 123, 0.1), transparent);
    animation: rotate 10s linear infinite;
    z-index: 1;
}

.car-image-container::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(15, 15, 35, 0.8);
    border-radius: 28px;
    z-index: 2;
}

[data-theme="light"] .car-image-container::after {
    background: rgba(248, 250, 252, 0.9);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.car-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 3;
    position: relative;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
}

.car-image-container:hover img {
    transform: scale(1.05) rotateY(5deg);
}

/* Navigation arrows futuristes - améliorés pour le thème light */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 10;
    font-size: 1.5rem;
    box-shadow: var(--shadow-primary);
}

/* Amélioration pour le thème light */
[data-theme="light"] .nav-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #1a202c;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.nav-arrow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    color: white;
    border-color: transparent;
}

[data-theme="light"] .nav-arrow:hover {
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.nav-arrow:hover::before {
    opacity: 1;
}

.nav-arrow.left {
    left: 2rem;
}

.nav-arrow.right {
    right: 2rem;
}

/* Indicateurs carousel néon - améliorés pour le thème light */
.carousel-indicators {
    position: static;
    margin: 2rem 0 0 0;
    justify-content: center;
    gap: 1rem;
}

.carousel-indicators button {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
}

/* Amélioration pour le thème light */
[data-theme="light"] .carousel-indicators button {
    background: rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.carousel-indicators button::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.carousel-indicators button.active,
.carousel-indicators button:hover {
    background: white;
    transform: scale(1.2);
}

[data-theme="light"] .carousel-indicators button.active,
[data-theme="light"] .carousel-indicators button:hover {
    background: #667eea;
}

.carousel-indicators button.active::before {
    opacity: 1;
}

/* Modal de zoom pour les images */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-zoom-modal.active img {
    transform: scale(1);
}

.image-zoom-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-zoom-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Cards d'information avec néomorphisme */
.info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.info-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.info-card-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.info-card-icon.purple {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.info-card-icon.green {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.info-card-icon.yellow {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

/* Tableaux de données stylisés */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-row:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1rem;
    border-radius: 12px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Section offres ultra-moderne */
.bid-section {
    text-align: center;
    position: relative;
}

.bid-header {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(67, 233, 123, 0.5);
}

.bid-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-primary);
}

.bid-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bid-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.bid-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary),
    0 0 50px rgba(102, 126, 234, 0.4);
}

.bid-btn:hover:not(:disabled)::before {
    width: 400px;
    height: 400px;
}

.bid-input {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.2rem 2rem;
    color: var(--text-primary);
    width: 100%;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.bid-input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2),
    0 0 30px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.bid-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bid-input::placeholder {
    color: var(--text-secondary);
}

/* Alerts personnalisées */
.custom-alert {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.custom-alert.success {
    border-color: rgba(67, 233, 123, 0.4);
}

.custom-alert.info {
    border-color: rgba(79, 172, 254, 0.4);
}

.custom-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

/* Grid caractéristiques */
.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .car-title {
        font-size: 2.5rem;
    }

    .nav-arrow {
        width: 60px;
        height: 60px;
    }

    .nav-arrow.left {
        left: 1rem;
    }

    .nav-arrow.right {
        right: 1rem;
    }

    .car-showcase {
        padding: 2rem;
    }

    .info-card {
        padding: 2rem;
    }

    .image-zoom-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loading-shimmer {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: var(--shadow-primary);
}

.theme-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

/* Theme specific adjustments */
[data-theme="light"] .custom-alert.success {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
}

[data-theme="light"] .custom-alert.info {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .bid-input {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .bid-input:focus {
    background: rgba(255, 255, 255, 0.95);
}

/* Smooth theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.success-message {
    color: green;
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}

.error-message {
    color: red;
    background-color: #ffebee;
    border: 1px solid #ef9a9a;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}

/* Styles spécifiques pour les SELECT uniquement */
select.bid-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 12px;
    padding-right: 3rem;
}

/* Thème sombre - select */
[data-theme="dark"] select.bid-input {
    color: #e2e8f0;
    background-color: rgba(30, 41, 59, 0.8);
}

[data-theme="dark"] select.bid-input option {
    background-color: #1e293b;
    color: #e2e8f0;
}

/* Focus - select uniquement */
[data-theme="dark"] select.bid-input:focus {
    background-color: rgba(30, 41, 59, 0.95);
}

/* Masquer les erreurs d'extensions tierces */
[class*="ext_in_form"] {
    display: none !important;
}