/* Variables CSS avec couleurs bleu clair/cyan du branding */
:root {
    --primary-color: #00bcd4; /* Cyan du logo */
    --primary-dark: #0097a7;
    --primary-light: #26c6da;
    --secondary-color: #4fc3f7; /* Bleu clair */
    --accent-color: #81d4fa;
    --dark-bg: #1a1a1a;
    --dark-surface: #2d2d2d;
    --text-light: #ffffff;
    --text-dark: #333333;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --admin-red: #c62828; /* Rouge bordeaux pour l'admin */
    --admin-red-dark: #8e0000;
}

/* Thème clair (30% plus clair que le sombre) */
[data-theme="light"] {
    --primary-color: #26c6da;
    --secondary-color: #4fc3f7;
    --accent-color: #81d4fa;
    --text-light: #2c2c2c;
    --text-dark: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(38, 198, 218, 0.3);
    --dark-surface: #f8f9fa;
    --dark-bg: #ffffff;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f0fdff 0%, #e1f8fc 100%);
    color: var(--text-light);
}

[data-theme="light"] .vehicle-card,
[data-theme="light"] .filter-section,
[data-theme="light"] .admin-login-modal,
[data-theme="light"] .vehicle-form-modal {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 151, 167, 0.2);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .vehicle-name,
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3 {
    color: var(--primary-color);
}

[data-theme="light"] .banner {
    background: linear-gradient(135deg, rgba(240, 253, 255, 0.95) 0%, rgba(225, 248, 252, 0.95) 100%);
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(38, 198, 218, 0.2);
    backdrop-filter: blur(15px);
}

[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 151, 167, 0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.sun-pattern {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.sun-1 { top: 10%; left: 10%; animation-delay: 0s; }
.sun-2 { top: 20%; right: 15%; animation-delay: 1s; }
.sun-3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.sun-4 { bottom: 10%; right: 10%; animation-delay: 3s; }
.sun-5 { top: 50%; left: 50%; animation-delay: 4s; }
.sun-6 { top: 70%; right: 30%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Test Banner */
.test-banner {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    z-index: 1000;
    position: relative;
}

.test-banner a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Header */
header {
    position: relative;
}

.banner {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
    min-height: 40vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(79, 195, 247, 0.1) 100%);
}

/* Navigation */
nav {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    margin: 20px;
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(0, 188, 212, 0.1);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(79, 195, 247, 0.2) 100%);
    border: 1px solid rgba(0, 188, 212, 0.3);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
}

.btn-primary.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    transform: translateY(-1px);
}

/* Admin Section */
.admin-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.3);
}

.admin-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.logout-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.logout-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* Theme Switch */
.theme-switch {
    position: relative;
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background: var(--glass-bg);
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    overflow: hidden;
}

.switch:hover {
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

.switch i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: all 0.4s ease;
    z-index: 2;
}

.switch .fa-moon {
    left: 8px;
    color: #4fc3f7;
    text-shadow: 0 0 12px rgba(79, 195, 247, 0.8);
    filter: drop-shadow(0 0 4px rgba(79, 195, 247, 0.6));
}

.switch .fa-sun {
    right: 8px;
    color: #ffa726;
    text-shadow: 0 0 12px rgba(255, 167, 38, 0.8);
    filter: drop-shadow(0 0 4px rgba(255, 167, 38, 0.6));
}

/* Slider circulaire */
.switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.7) 0%, rgba(79, 195, 247, 0.7) 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
    z-index: 1;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#theme-toggle {
    display: none;
}

/* État activé (thème clair) - pastille va à droite */
#theme-toggle:checked + .switch::before {
    transform: translateX(30px);
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.7) 0%, rgba(255, 167, 38, 0.7) 100%);
    box-shadow: 0 2px 8px rgba(255, 183, 77, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#theme-toggle:checked + .switch {
    background: rgba(255, 183, 77, 0.1);
    border-color: rgba(255, 183, 77, 0.3);
}

#theme-toggle:checked + .switch .fa-sun {
    color: #ff9800;
    text-shadow: 0 0 20px rgba(255, 152, 0, 1);
    filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.8));
    transform: scale(1.2);
}

#theme-toggle:checked + .switch .fa-moon {
    color: rgba(79, 195, 247, 0.3);
    text-shadow: none;
    filter: none;
    transform: scale(0.9);
}

/* Banner Content */
.banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
}

.logo-img-hero {
    height: 100px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 188, 212, 0.3));
}

.banner-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Main Content */
main {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    margin-bottom: 50px;
    padding: 50px;
    min-height: 300px;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-content {
    max-width: 1000px;
    margin: 0 auto;
}

.search-bar {
    margin-bottom: 30px;
}

.search-bar input {
    width: 100%;
    padding: 15px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Filtres horizontaux */
.filters-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
}

.price-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.price-separator {
    color: var(--primary-color);
    font-weight: bold;
    margin: 0 5px;
}

/* Mode responsive pour les filtres */
@media (max-width: 768px) {
    .filters-horizontal {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-item {
        justify-content: space-between;
        width: 100%;
    }
    
    .filter-select {
        min-width: 150px;
    }
    
    .price-range {
        justify-content: center;
    }
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
}

.price-filter {
    max-width: 400px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group input,
.filter-group select {
    padding: 12px 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    backdrop-filter: blur(10px);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300bcd4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.filter-group select option {
    background: var(--dark-surface);
    color: var(--text-light);
    padding: 10px;
    border: none;
}

.filter-group select option:checked,
.filter-group select option:hover {
    background: var(--primary-color);
    color: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
}

.price-inputs span {
    color: var(--primary-color);
    font-weight: bold;
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.vehicle-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 188, 212, 0.2);
}

.vehicle-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.vehicle-info {
    padding: 25px;
}

.vehicle-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.vehicle-brand {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.vehicle-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
}

.vehicle-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.vehicle-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.vehicle-stat i {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-surface);
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.heart {
    color: var(--admin-red);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.admin-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.admin-login-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #3a3a3a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.admin-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.admin-login-modal .admin-modal-header {
    background: linear-gradient(135deg, #00bcd4 0%, #4fc3f7 100%) !important;
}

.admin-modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.admin-modal-header .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.admin-modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-login-content {
    padding: 30px;
}

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

.admin-login-content .form-group label {
    display: block;
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.admin-login-content .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: #4a4a4a;
    border: 1px solid #555555;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-login-content .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.admin-login-content .form-group input::placeholder {
    color: #888888;
}

.connect-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

.connect-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.3);
}

/* Modal d'ajout de véhicule */
.vehicle-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.vehicle-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.vehicle-form-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: var(--dark-surface);
    border-radius: 15px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.vehicle-form-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.vehicle-form-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vehicle-form-content {
    padding: 40px;
}

.vehicle-form-content h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    backdrop-filter: blur(10px);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300bcd4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select option {
    background: var(--dark-surface);
    color: var(--text-light);
    padding: 10px;
    border: none;
}

.form-group select option:checked {
    background: var(--primary-color);
    color: white;
}

.form-group select option:hover {
    background: rgba(0, 188, 212, 0.2);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* États d'affichage */
.admin-modal.show {
    display: block;
}

.vehicle-modal.show {
    display: block;
}

#adminNavItem.show,
#adminPanelItem.show {
    display: block !important;
}

.btn-admin {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white !important;
    padding: 10px 18px !important;
    border-radius: 20px !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.3);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.notification-error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.notification-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.notification i {
    font-size: 1.2rem;
}

/* ===== STYLES ORGANIGRAMME ===== */
.organigramme-page {
    padding: 2rem;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.organigramme-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.organigramme-header {
    text-align: center;
    margin-bottom: 3rem;
}

.organigramme-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.organigramme-header i {
    font-size: 2.2rem;
}

.organigramme-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.organigramme-tree {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.level {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    position: relative;
}

.level-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.employee-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    min-width: 280px;
    max-width: 320px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.2);
    border-color: var(--primary-color);
}

.employee-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.employee-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
}

.employee-info {
    text-align: center;
}

.employee-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.employee-grade {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.3rem 1rem;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.employee-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.employee-phone i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.organigramme-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.organigramme-info i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.error-message {
    text-align: center;
    color: #f44336;
    font-size: 1.1rem;
    padding: 2rem;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Responsive pour l'organigramme */
@media (max-width: 1200px) {
    .organigramme-container {
        max-width: 1000px;
        padding: 2rem;
    }
    
    .employee-card {
        min-width: 250px;
        max-width: 280px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .organigramme-page {
        padding: 1rem;
    }
    
    .organigramme-container {
        padding: 1.5rem;
    }
    
    .organigramme-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .level {
        gap: 1rem;
    }
    
    .level-group {
        gap: 1rem;
    }
    
    .employee-card {
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .employee-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .employee-name {
        font-size: 1.2rem;
    }
}
.container-glass {
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
