/* style.css - Design Moderne Gold avec Menu Hamburger Responsive + Réservations */

:root {
    --gold-primary: #D4AF37;
    --gold-light: #F4E5C2;
    --gold-dark: #B8941F;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4E5C2 50%, #B8941F 100%);
    --gold-gradient-hover: linear-gradient(135deg, #B8941F 0%, #D4AF37 50%, #F4E5C2 100%);
    
    --dark-bg: #0a0a0a;
    --dark-card: #1a1a1a;
    --dark-lighter: #2d2d2d;
    --dark-border: #404040;
    
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --text-dark: #333333;
    
    --success: #4CAF50;
    --danger: #f44336;
    --info: #2196F3;
    --warning: #FF9800;
    
    --shadow-sm: 0 2px 10px rgba(212, 175, 55, 0.1);
    --shadow-md: 0 5px 20px rgba(212, 175, 55, 0.2);
    --shadow-lg: 0 10px 40px rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

/* ==================== NAVIGATION AVEC HAMBURGER ==================== */
.navbar {
    background: linear-gradient(180deg, var(--dark-card) 0%, var(--dark-bg) 100%);
    border-bottom: 2px solid var(--gold-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Menu hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gold-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    display: block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.15);
}

/* ==================== CONTAINER & LAYOUT ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold-primary);
}

.page-title {
    font-size: 2.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-dark);
}

.card:hover::before {
    opacity: 1;
}

.card-gold {
    background: linear-gradient(135deg, var(--dark-card) 0%, #2a2516 100%);
    border: 2px solid var(--gold-primary);
}

/* ==================== CAR CARDS ==================== */
.car-card {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--dark-border);
    position: relative;
}

.car-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.car-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--dark-lighter);
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image {
    transform: scale(1.1);
}

.car-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.car-body {
    padding: 1.5rem;
}

.car-title {
    color: var(--gold-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.car-price {
    font-size: 1.8rem;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-period {
    font-size: 0.5em;
    opacity: 0.7;
    font-weight: 400;
}

.car-details {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.car-detail {
    background: var(--dark-bg);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.car-detail:hover {
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

.car-description {
    color: var(--text-muted);
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dark-border);
}

.car-owner {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    box-shadow: var(--shadow-md);
}

.btn-gold:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--dark-bg);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-info {
    background: var(--info);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: var(--dark-lighter);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    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='%23D4AF37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    accent-color: var(--gold-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ==================== TABLES ==================== */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dark-card);
}

.table thead {
    background: var(--gold-gradient);
}

.table th {
    color: var(--dark-bg);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--dark-border);
    color: var(--text-light);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* ==================== GRID SYSTEM ==================== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ==================== STATISTICS ==================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--dark-card) 0%, #2a2516 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--gold-dark);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    position: relative;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--info);
    color: var(--info);
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-gold {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gold {
    background: var(--gold-gradient);
    color: var(--dark-bg);
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-info {
    background: var(--info);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

/* ==================== UPLOAD AREA ==================== */
.upload-area {
    border: 2px dashed var(--gold-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: rgba(212, 175, 55, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-light);
}

.upload-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.upload-text {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== FLATPICKR CALENDAR STYLES ==================== */
.flatpickr-calendar {
    background: var(--dark-card) !important;
    border: 2px solid var(--gold-primary) !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3) !important;
    border-radius: 12px !important;
}

.flatpickr-months {
    background: var(--dark-bg) !important;
    border-radius: 12px 12px 0 0 !important;
}

.flatpickr-current-month {
    color: var(--gold-primary) !important;
}

.flatpickr-weekday {
    color: var(--gold-light) !important;
    font-weight: 600 !important;
}

.flatpickr-day {
    color: var(--text-light) !important;
    border-radius: 8px !important;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
    background: rgba(212, 175, 55, 0.2) !important;
    border-color: var(--gold-primary) !important;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange {
    background: var(--gold-primary) !important;
    color: var(--dark-bg) !important;
    border-color: var(--gold-primary) !important;
    font-weight: 700 !important;
}

.flatpickr-day.today {
    border-color: var(--gold-primary) !important;
}

.flatpickr-day.today:hover {
    background: rgba(212, 175, 55, 0.3) !important;
}

.flatpickr-day.disabled, 
.flatpickr-day.flatpickr-disabled {
    color: var(--danger) !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
    opacity: 0.5 !important;
}

.flatpickr-day.inRange {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: transparent !important;
    box-shadow: -2px 0 0 rgba(212, 175, 55, 0.3), 2px 0 0 rgba(212, 175, 55, 0.3) !important;
}

/* Navigation mois */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: var(--gold-primary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--gold-light) !important;
}

.flatpickr-monthDropdown-months {
    background: var(--dark-card) !important;
    color: var(--gold-primary) !important;
}

.numInputWrapper:hover {
    background: rgba(212, 175, 55, 0.1) !important;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-card);
    border-top: 2px solid var(--gold-primary);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
    color: var(--text-muted);
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

/* ==================== LOADING ==================== */
.spinner {
    border: 3px solid var(--dark-border);
    border-top: 3px solid var(--gold-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .car-view-grid {
        grid-template-columns: 1fr;
    }
}

/* Smartphones et petits appareils */
@media (max-width: 768px) {
    /* Navigation mobile avec menu hamburger */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-card);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Overlay pour le menu mobile */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 280px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: -1;
    }
    
    /* Layouts responsive */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .car-view-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stats-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .car-image-wrapper {
        height: 200px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Hero section responsive */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-bar {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-input {
        border-bottom: 1px solid var(--dark-border);
    }
}

/* Très petits smartphones */
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .car-card {
        margin-bottom: 1.5rem;
    }
    
    .car-title {
        font-size: 1.1rem;
    }
    
    .car-price {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .form-control {
        font-size: 16px; /* Empêche le zoom automatique sur iOS */
    }
    
    .car-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustements pour les écrans extra larges */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .page-title {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

/* Mode paysage pour smartphones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .nav-menu {
        padding-top: 4rem;
    }
}

/* ==================== RESPONSIVE TABLE ==================== */
@media (max-width: 768px) {
    .table-responsive table, 
    .table-responsive thead, 
    .table-responsive tbody, 
    .table-responsive th, 
    .table-responsive td, 
    .table-responsive tr { 
        display: block; 
    }
    
    .table-responsive thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-responsive tr { 
        border: 1px solid var(--dark-border);
        margin-bottom: 1rem;
        display: block;
        border-radius: 12px;
    }
    
    .table-responsive td { 
        border: none;
        border-bottom: 1px solid #2a2a2a;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    
    .table-responsive td:before { 
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--gold-light);
        text-align: left;
        text-transform: uppercase;
        font-size: 0.7rem;
    }
}

/* ==================== STATUS BADGES ==================== */
.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending_approval, 
.status-pending_payment, 
.status-pending {
    background-color: var(--warning);
    color: var(--dark-bg);
}

.status-approved, 
.status-confirmed {
    background-color: var(--success);
    color: white;
}

.status-paid {
    background-color: var(--success);
    color: white;
}

.status-rejected, 
.status-cancelled {
    background-color: var(--danger);
    color: white;
}

.status-completed {
    background-color: var(--info);
    color: white;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--dark-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== DASHBOARD SPECIFIC ==================== */
.dashboard-header {
    background: linear-gradient(135deg, var(--dark-card) 0%, #2a2516 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid var(--gold-primary);
}

.welcome-text {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.role-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gold-gradient);
    color: var(--dark-bg);
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.free-badge {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.action-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-light);
    display: block;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-md);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.action-title {
    font-weight: 600;
    color: var(--gold-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.action-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== DATA TABLE ==================== */
.data-table {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--dark-border);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, 
.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--dark-border);
}

.data-table th {
    background-color: #2a2a2a;
    color: var(--gold-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.data-table tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

/* ==================== PRICE DISPLAY ==================== */
.car-price-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.car-price-secondary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.price-secondary-item {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-icon {
    font-size: 0.85rem;
    color: var(--gold-primary);
}

.price-currency {
    font-size: 0.6em;
    opacity: 0.9;
}

/* ==================== LOCATION BADGE ==================== */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ==================== AVAILABILITY BADGE ==================== */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--success);
    backdrop-filter: blur(10px);
}

/* ==================== CAR INFO GRID ==================== */
.car-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.car-info-item {
    background: var(--dark-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.car-info-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.car-info-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.car-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.car-info-value {
    font-size: 1rem;
    color: var(--gold-light);
    font-weight: 600;
}

/* ==================== SELLER CARD ==================== */
.seller-card {
    position: sticky;
    top: 100px;
}

/* ==================== PRICING SECTION ==================== */
.pricing-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2516 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.price-option {
    background: var(--dark-card);
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--dark-border);
    transition: all 0.3s;
}

.price-option:hover {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.price-period-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

/* ==================== IMAGE GALLERY ==================== */
.car-gallery {
    position: relative;
    margin-bottom: 2rem;
}

.car-gallery img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.image-thumbnails img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.image-thumbnails img:hover {
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

/* ==================== DELETE IMAGE BUTTON ==================== */
.delete-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-image-btn:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* ==================== PHONE DISPLAY ==================== */
.phone-display a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* ==================== UTILITIES ==================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .footer,
    .btn,
    .nav-toggle,
    .dashboard-actions {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .car-card {
        page-break-inside: avoid;
    }
}

/* ==================== ACCESSIBILITY ==================== */
*:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==================== SCROLLBAR STYLING ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--dark-bg);
}

/* ==================== SELECTION STYLING ==================== */
::selection {
    background: var(--gold-primary);
    color: var(--dark-bg);
}

::-moz-selection {
    background: var(--gold-primary);
    color: var(--dark-bg);
}

/* ==================== TRANSITIONS ==================== */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms;
}

/* ==================== HOVER EFFECTS ==================== */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ==================== LOADING STATES ==================== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gold-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==================== SKELETON LOADERS ==================== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--dark-card) 25%,
        var(--dark-lighter) 50%,
        var(--dark-card) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==================== TOOLTIP ==================== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--dark-card);
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

[data-tooltip]:hover::before {
    opacity: 1;
}

/* ==================== MODAL (if needed) ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--dark-card);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* ==================== CUSTOM CHECKBOX & RADIO ==================== */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--gold-primary);
    cursor: pointer;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    .dashboard-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .car-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-actions {
        grid-template-columns: 1fr;
    }
    
    .car-info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== FIN DU FICHIER ==================== */