/* ==========================================
   LOCATION VOITURES - Style Jaune Hertz
   ========================================== */

/* Reset & Variables */
:root {
    --primary: #FFD100;
    --primary-dark: #E6BC00;
    --primary-light: #FFF3B0;
    --secondary: #1A1A2E;
    --dark: #16213E;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: var(--white);
    margin-left: 15px;
    opacity: 0.9;
}

.top-bar a:hover {
    opacity: 1;
    color: var(--primary);
}

.top-bar a i {
    margin-right: 5px;
}

.top-bar-right .btn-register {
    background: var(--primary);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.top-bar-right .btn-register:hover {
    background: var(--primary-dark);
    color: var(--secondary);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo-text i {
    color: var(--primary);
    margin-right: 8px;
}

.main-nav ul {
    display: flex;
    gap: 5px;
}

.main-nav a {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary);
    color: var(--secondary);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    background: var(--white);
    padding: 20px;
    border-bottom: 3px solid var(--primary);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray);
    font-weight: 500;
}

.mobile-nav a:hover {
    color: var(--primary-dark);
    padding-left: 20px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(22,33,62,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    width: 100%;
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ==========================================
   SEARCH ENGINE
   ========================================== */
.search-engine {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 1000px;
    margin: -60px auto 40px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary);
}

.search-engine h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 1.3rem;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field select,
.search-field input {
    padding: 12px 15px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--gray-light);
}

.search-field select:focus,
.search-field input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,209,0,0.2);
}

.btn-search {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,209,0,0.4);
}

.btn-search i {
    margin-right: 8px;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-title h2 span {
    color: var(--primary-dark);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   MARQUES
   ========================================== */
.marques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.marque-card {
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.marque-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.marque-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.marque-card h4 {
    font-size: 0.9rem;
    color: var(--secondary);
}

/* ==========================================
   VEHICULES CARDS
   ========================================== */
.vehicules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.vehicule-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.vehicule-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.vehicule-card .card-image {
    height: 200px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.vehicule-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicule-card .card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vehicule-card .card-body {
    padding: 20px;
}

.vehicule-card .card-body h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.vehicule-card .card-features {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.vehicule-card .card-features span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.vehicule-card .card-features i {
    color: var(--primary-dark);
}

.vehicule-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray);
}

.vehicule-card .card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

.vehicule-card .card-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
}

.btn-reserver {
    background: var(--primary);
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reserver:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ==========================================
   FEATURES / AVANTAGES
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    background: var(--gray-light);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--secondary);
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,209,0,0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
}

/* ==========================================
   FORMS
   ========================================== */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,209,0,0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ==========================================
   ALERTS
   ========================================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--white);
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.footer-col .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-col .contact-list li i {
    color: var(--primary);
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================================
   ADMIN PANEL
   ========================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--secondary);
    color: var(--white);
    padding: 20px 0;
}

.admin-sidebar .sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.admin-sidebar .sidebar-header h3 {
    color: var(--primary);
    font-size: 1.1rem;
}

.admin-sidebar .sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.95rem;
}

.admin-sidebar .sidebar-menu a:hover,
.admin-sidebar .sidebar-menu a.active {
    opacity: 1;
    background: rgba(255,209,0,0.1);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.admin-sidebar .sidebar-menu a i {
    width: 20px;
    text-align: center;
}

.admin-main {
    padding: 30px;
    background: var(--gray-light);
}

.admin-main .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-main .page-header h1 {
    font-size: 1.8rem;
    color: var(--secondary);
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.admin-card h3 {
    margin-bottom: 20px;
    color: var(--secondary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* Admin Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-card .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th {
    background: var(--secondary);
    color: var(--white);
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray);
    font-size: 0.9rem;
}

.admin-table tr:hover {
    background: var(--gray-light);
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .actions a,
.admin-table .actions button {
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit {
    background: var(--primary);
    color: var(--secondary);
}

.btn-delete {
    background: var(--danger);
    color: var(--white);
}

.btn-toggle {
    background: var(--success);
    color: var(--white);
}

.btn-toggle.inactive {
    background: var(--text-light);
}

/* ==========================================
   CLIENT DASHBOARD
   ========================================== */
.client-layout {
    padding-top: 20px;
}

.reservation-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.reservation-card .reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reservation-card .status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-en_attente { background: var(--warning); color: var(--secondary); }
.status-confirmee { background: var(--success); color: var(--white); }
.status-annulee { background: var(--danger); color: var(--white); }
.status-terminee { background: var(--text-light); color: var(--white); }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none;
    }
    
    .admin-sidebar.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        z-index: 9999;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        justify-content: center;
    }
    
    .top-bar-left {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .search-engine {
        margin: -30px 15px 30px;
        padding: 20px;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .vehicules-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 25px;
        margin: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-main {
        padding: 15px;
    }
    
    .admin-main .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .marques-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.py-20 { padding: 20px 0; }
