/* ============================================
   VARIABLES & COULEURS HDM
   ============================================ */

:root {
    --hdm-red: #DC0A0A;
    --hdm-red-dark: #B00808;
    --hdm-red-light: #FF1A1A;
    --hdm-black: #000000;
    --hdm-dark: #2C2C2C;
    --hdm-gray: #5A5A5A;
    --hdm-light-gray: #F5F5F5;
    --hdm-white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}


/* ============================================
   LOADING SPINNER
   ============================================ */

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--hdm-gray);
    font-size: 14px;
}

.loading-spinner::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--hdm-light-gray);
    border-top: 2px solid var(--hdm-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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


/* ============================================
   RESET & BASE
   ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--hdm-light-gray);
    color: var(--hdm-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--hdm-black);
}


/* ============================================
   PAGE DE CONNEXION
   ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--hdm-dark) 0%, var(--hdm-black) 100%);
    padding: 20px;
}

.login-box {
    background: var(--hdm-white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 10px;
}

.logo-container h1 {
    display: none;
}

.tagline {
    display: none;
    letter-spacing: 1px;
    margin-top: 5px;
}

.login-form {
    margin-top: 30px;
}

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

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

.form-group label i {
    color: var(--hdm-red);
    margin-right: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--hdm-light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--hdm-red);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--hdm-red);
    color: var(--hdm-white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background: var(--hdm-red-dark);
}

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

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--hdm-gray);
    font-size: 0.85rem;
}


/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--hdm-white);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

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

.logo-mini {
    height: 70px;
    width: auto;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--hdm-red);
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.header-center h2 {
    color: var(--hdm-black);
    font-size: 1.5rem;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hdm-dark);
    font-weight: 600;
}

.user-info i {
    font-size: 1.8rem;
    color: var(--hdm-red);
}

.btn-logout {
    padding: 10px 20px;
    background: var(--hdm-dark);
    color: var(--hdm-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: var(--hdm-black);
}

.btn-logout i {
    margin-right: 5px;
}

.btn-migrate {
    padding: 10px 20px;
    background: var(--hdm-red);
    color: var(--hdm-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-right: 10px;
}

.btn-migrate:hover {
    background: var(--hdm-red-dark);
}

.btn-migrate i {
    margin-right: 5px;
}


/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 260px;
    height: calc(100vh - 70px);
    background: var(--hdm-dark);
    overflow-y: auto;
    z-index: 999;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--hdm-white);
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background: rgba(220, 10, 10, 0.1);
    border-left-color: var(--hdm-red);
}

.nav-item.active {
    background: var(--hdm-red);
    border-left-color: var(--hdm-white);
}

.nav-item i {
    font-size: 1.3rem;
    width: 25px;
}

.nav-item span {
    font-weight: 600;
    font-size: 1rem;
}


/* Style spécial pour le conteneur "Gestion Entreprise" */

.nav-item[data-page="gestion"] {
    cursor: pointer;
}


/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-top: 70px;
    margin-left: 260px;
    padding: 30px;
    min-height: calc(100vh - 70px);
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}


/* ============================================
   STATS GRID
   ============================================ */

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

.stat-card {
    background: var(--hdm-white);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.stat-card.red {
    border-left: 5px solid var(--hdm-red);
}

.stat-card.dark {
    border-left: 5px solid var(--hdm-dark);
}

.stat-icon {
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.stat-card.red .stat-icon {
    background: rgba(220, 10, 10, 0.1);
    color: var(--hdm-red);
}

.stat-card.dark .stat-icon {
    background: rgba(44, 44, 44, 0.1);
    color: var(--hdm-dark);
}

.stat-info h3 {
    font-size: 0.95rem;
    color: var(--hdm-gray);
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--hdm-black);
}


/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}


/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--hdm-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 20px 25px;
    background: var(--hdm-light-gray);
    border-bottom: 2px solid var(--hdm-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--hdm-black);
}

.card-header h3 i {
    color: var(--hdm-red);
}

.btn-add {
    padding: 8px 15px;
    background: var(--hdm-red);
    color: var(--hdm-white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add:hover {
    background: var(--hdm-red-dark);
}

.btn-add i {
    margin-right: 5px;
}

.card-body {
    padding: 25px;
}


/* ============================================
   TABLES
   ============================================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--hdm-dark);
    color: var(--hdm-white);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--hdm-light-gray);
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: rgba(220, 10, 10, 0.05);
}


/* ============================================
   BADGES
   ============================================ */

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.badge-success {
    background: #28a745;
    color: var(--hdm-white);
}

.badge-warning {
    background: #ffc107;
    color: var(--hdm-black);
}

.badge-danger {
    background: var(--hdm-red);
    color: var(--hdm-white);
}

.badge-info {
    background: #17a2b8;
    color: var(--hdm-white);
}


/* ============================================
   TIMELINE
   ============================================ */

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--hdm-red);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--hdm-red);
    border: 3px solid var(--hdm-white);
    box-shadow: 0 0 0 2px var(--hdm-red);
}

.timeline-time {
    font-size: 0.85rem;
    color: var(--hdm-gray);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-content strong {
    color: var(--hdm-black);
    display: block;
    margin-bottom: 3px;
}

.timeline-content p {
    color: var(--hdm-gray);
    font-size: 0.9rem;
}


/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 1.3rem;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.alert-danger {
    background: #f8d7da;
    border-left: 4px solid var(--hdm-red);
    color: #721c24;
}


/* ============================================
   BOUTONS DE NAVIGATION GESTION ENTREPRISE
   ============================================ */

.gestion-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gestion-button {
    background: var(--hdm-white);
    border: 2px solid var(--hdm-red);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.gestion-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: rgba(220, 10, 10, 0.05);
}

.gestion-button i {
    font-size: 3rem;
    color: var(--hdm-red);
    margin-bottom: 15px;
    display: block;
}

.gestion-button h3 {
    color: var(--hdm-black);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.gestion-button p {
    color: var(--hdm-gray);
    font-size: 0.95rem;
    margin-top: 10px;
}


/* ============================================
   SOUS-ONGLETS GESTION ENTREPRISE
   ============================================ */

.sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.sub-tab {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--hdm-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-tab:hover {
    background: #e9ecef;
    color: var(--hdm-dark);
    transform: translateY(-2px);
}

.sub-tab.active {
    background: var(--hdm-red);
    color: white;
    border-color: var(--hdm-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 10, 10, 0.3);
}

.sub-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.sub-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Styles pour les boutons d'action dans les sous-onglets */

.btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-info {
    padding: 6px 12px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #138496;
    transform: scale(1.05);
}


/* Badges pour les statuts */

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

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

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


/* ============================================
   GESTION VÉHICULES - MENU DÉROULANT ET CARTES
   ============================================ */


/* Styles pour le menu déroulant de sélection de catégorie */

#categorieVehiculeSelect {
    appearance: none;
    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='%23DC0A0A' 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: 20px;
    padding-right: 45px !important;
}

#categorieVehiculeSelect:focus {
    border-color: #DC0A0A;
    box-shadow: 0 0 0 3px rgba(220, 10, 10, 0.1);
    outline: none;
}

#categorieVehiculeSelect:hover {
    border-color: #B00808;
}


/* Styles pour les éléments de véhicules en liste */

.vehicule-item {
    position: relative;
    overflow: hidden;
}

.vehicule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #DC0A0A, #ff4444);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.vehicule-item:hover::before {
    transform: scaleY(1);
}


/* Animation pour les boutons d'action des véhicules */

.vehicule-item button {
    position: relative;
    overflow: hidden;
}

.vehicule-item button::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: width 0.3s ease, height 0.3s ease;
}

.vehicule-item button:hover::before {
    width: 100px;
    height: 100px;
}


/* Styles pour le conteneur des véhicules */

#vehiculesContainer {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Styles pour le message d'information */

#messageInfo {
    animation: fadeIn 0.5s ease-in;
}


/* ============================================
   MODAL POUR AJOUTER VÉHICULE
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease;
    margin: auto;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, #DC0A0A, #ff4444);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
}

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

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #DC0A0A;
    font-size: 1rem;
}

.modal-body .form-group label i {
    margin-right: 8px;
}

.modal-body input,
.modal-body select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.modal-body input:focus,
.modal-body select:focus {
    outline: none;
    border-color: #DC0A0A;
    box-shadow: 0 0 0 3px rgba(220, 10, 10, 0.1);
}

.modal-body input::placeholder {
    color: #999;
    font-style: italic;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-primary {
    padding: 12px 20px;
    background: #DC0A0A;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #B00808;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 10, 10, 0.3);
}

.btn-secondary {
    padding: 12px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}


/* Animation pour la modal */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive pour la modal */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px;
    }
    .modal-footer {
        flex-direction: column;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}


/* Responsive pour les éléments de véhicules en liste */

@media (max-width: 768px) {
    .vehicule-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    .vehicule-item>div:last-child {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    #categorieVehiculeSelect {
        font-size: 0.9rem;
        padding: 10px 12px !important;
    }
    .vehicule-item {
        padding: 15px !important;
    }
    .vehicule-item h4 {
        font-size: 1.1rem !important;
    }
    .vehicule-item button {
        padding: 8px 12px !important;
        font-size: 0.9rem;
    }
    .vehicule-item button span {
        display: none;
    }
}


/* ============================================
   PAGE ÉQUIPEMENT - GRILLE DE CARTES
   ============================================ */

.equipement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.equipement-card {
    background: var(--hdm-white);
    border-radius: 16px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.equipement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hdm-red), var(--hdm-red-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.equipement-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(220, 10, 10, 0.15);
    border-color: rgba(220, 10, 10, 0.3);
}

.equipement-card:hover::before {
    transform: scaleX(1);
}

.equipement-photo {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.equipement-photo:hover {
    background: linear-gradient(135deg, rgba(220, 10, 10, 0.08) 0%, rgba(220, 10, 10, 0.12) 100%);
}

.equipement-photo:hover img {
    transform: scale(1.05);
}

.equipement-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.equipement-photo-placeholder {
    color: var(--hdm-gray);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.equipement-photo-placeholder i {
    font-size: 3rem;
    color: var(--hdm-red);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.equipement-photo:hover .equipement-photo-placeholder {
    opacity: 1;
}

.equipement-photo:hover .equipement-photo-placeholder i {
    opacity: 1;
    transform: scale(1.1);
}

.equipement-photo input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.equipement-photo-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 10, 10, 0.95), rgba(255, 26, 26, 0.95));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-weight: 600;
    text-align: center;
    padding: 10px;
    backdrop-filter: blur(4px);
}

.equipement-photo:hover .equipement-photo-upload-overlay {
    opacity: 1;
}

.equipement-photo-upload-overlay i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    animation: pulse 2s infinite;
}

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

.equipement-photo-upload-overlay span {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}


/* Styles pour le drag & drop */

.equipement-photo.drag-over {
    background: rgba(220, 10, 10, 0.2);
    border: 3px dashed var(--hdm-red);
}

.equipement-photo.drag-over .equipement-photo-placeholder {
    color: var(--hdm-red);
}


/* Bouton de suppression d'image */

.equipement-photo-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    z-index: 10;
}

.equipement-photo:hover .equipement-photo-remove {
    display: flex;
}

.equipement-photo-remove:hover {
    background: linear-gradient(135deg, #ee3846, #ff5766);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
}

.equipement-photo-remove:active {
    transform: scale(0.95);
}

.equipement-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.8));
}

.equipement-section {
    border: 1.5px solid rgba(220, 10, 10, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--hdm-white);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.equipement-section:hover {
    border-color: rgba(220, 10, 10, 0.4);
    box-shadow: 0 4px 12px rgba(220, 10, 10, 0.1);
}

.equipement-section:focus-within {
    border-color: rgba(220, 10, 10, 0.6);
    box-shadow: 0 0 0 4px rgba(220, 10, 10, 0.1);
}

.equipement-section h4 {
    color: var(--hdm-black);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.equipement-section p {
    color: var(--hdm-gray);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.equipement-section input,
.equipement-section textarea {
    width: 100%;
    border: none;
    background: #f8f9fa;
    font-size: 0.95rem;
    text-align: center;
    color: var(--hdm-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: default;
    user-select: text;
}

.equipement-section input:focus,
.equipement-section textarea:focus {
    outline: none;
    color: var(--hdm-red);
    transform: scale(1.02);
}

.equipement-section input[readonly],
.equipement-section textarea[readonly] {
    background: #f8f9fa;
    cursor: default;
}

.equipement-section input:not([readonly]),
.equipement-section textarea:not([readonly]) {
    background: white;
    cursor: text;
    box-shadow: 0 0 0 2px rgba(220, 10, 10, 0.2);
}

.equipement-section textarea {
    resize: vertical;
    min-height: 40px;
}

.equipement-actions {
    padding: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    display: flex;
    gap: 12px;
    justify-content: center;
}

.equipement-actions button {
    padding: 10px 18px;
    border: 1.5px solid rgba(220, 10, 10, 0.3);
    border-radius: 10px;
    background: var(--hdm-white);
    color: var(--hdm-dark);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.equipement-actions button:hover {
    background: linear-gradient(135deg, var(--hdm-red), var(--hdm-red-light));
    color: white;
    border-color: var(--hdm-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 10, 10, 0.3);
}

.equipement-actions button:active {
    transform: translateY(0);
}

.equipement-actions button.delete {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
    border-color: #ff4757;
}

.equipement-actions button.delete:hover {
    background: linear-gradient(135deg, #ee3846, #ff5766);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}


/* Bouton d'édition en bas à droite de la carte */

.equipement-edit-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 10, 10, 0.9), rgba(255, 68, 68, 0.9));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(220, 10, 10, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0.8);
    z-index: 5;
}

.equipement-card:hover .equipement-edit-btn {
    opacity: 1;
    transform: scale(1);
}

.equipement-edit-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(220, 10, 10, 0.6);
    background: linear-gradient(135deg, rgba(220, 10, 10, 1), rgba(255, 68, 68, 1));
}

.equipement-edit-btn:active {
    transform: scale(0.95);
}


/* Fenêtre modale */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.equipement-modal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}


/* Styles pour les logos prédéfinis */

.logo-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 10, 10, 0.4);
}

.logo-option.selected {
    border-color: #28a745 !important;
    background: #28a745 !important;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #DC0A0A, #ff4444);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

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

.modal-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: #DC0A0A;
    box-shadow: 0 0 0 4px rgba(220, 10, 10, 0.1);
}

.modal-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #fafafa;
    border-radius: 0 0 20px 20px;
}

.modal-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modal-btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.modal-btn-cancel:hover {
    background: #e0e0e0;
}

.modal-btn-save {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.modal-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.modal-btn-delete {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
}

.modal-btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}


/* Boutons d'action en haut */

.btn-save-equipements:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-add-equipement-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 10, 10, 0.4);
}

.btn-save-equipements:active,
.btn-add-equipement-small:active {
    transform: translateY(-1px);
}


/* Responsive pour les boutons d'action */

@media (max-width: 768px) {
    .btn-save-equipements span,
    .btn-add-equipement-small span {
        display: none;
    }
    .btn-save-equipements,
    .btn-add-equipement-small {
        padding: 12px !important;
    }
}


/* Responsive pour la grille d'équipement */

@media (max-width: 1200px) {
    .equipement-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .equipement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    .equipement-photo {
        height: 150px;
    }
    .equipement-info {
        padding: 12px;
        gap: 12px;
    }
    .equipement-section {
        padding: 10px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .equipement-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    .equipement-photo {
        height: 120px;
    }
    .equipement-actions {
        flex-direction: column;
        gap: 8px;
    }
    .equipement-actions button {
        width: 100%;
    }
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    .nav-item span {
        display: none;
    }
    .nav-item {
        justify-content: center;
        padding: 15px;
    }
    .main-content {
        margin-left: 70px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .header-center h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 15px;
    }
    .company-name {
        font-size: 1.3rem;
    }
    .user-info span {
        display: none;
    }
    .main-content {
        padding: 15px;
    }
}


/* ============================================
   NOUVEAU DESIGN MODERNE ÉQUIPEMENTS
   ============================================ */


/* Header moderne */

.equipement-header-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.equipement-header-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.equipement-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.equipement-header-title h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.equipement-header-title h1 i {
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

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

.btn-add-modern {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 14px 28px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-add-modern:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-add-modern i {
    font-size: 1.2rem;
}


/* Stats cards */

.equipement-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-info h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}


/* Filtres et recherche */

.equipement-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.search-box {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-box i {
    color: white;
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
}

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

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.filter-btn i {
    font-size: 0.9rem;
}


/* Responsive pour le nouveau header */

@media (max-width: 1200px) {
    .equipement-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .equipement-header-content {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .equipement-header-title h1 {
        font-size: 2rem;
    }
    .equipement-stats {
        grid-template-columns: 1fr;
    }
    .equipement-filters {
        flex-direction: column;
    }
    .search-box {
        width: 100%;
    }
    .filter-buttons {
        flex-wrap: wrap;
        width: 100%;
    }
    .filter-btn {
        flex: 1;
        justify-content: center;
    }
}


/* ============================================
   NOUVEAU DESIGN VÉHICULES MODERNE
   ============================================ */


/* Header véhicules */

.vehicules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #DC0A0A 0%, #ff4444 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(220, 10, 10, 0.3);
}

.header-title-section h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.header-title-section h1 i {
    margin-right: 12px;
}

.header-title-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

.btn-add-vehicule {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-add-vehicule:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-add-vehicule i {
    font-size: 1.1rem;
}


/* Stats bar */

.vehicules-stats-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-mini {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-mini i {
    font-size: 2rem;
    color: #DC0A0A;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}


/* Controls */

.vehicules-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.search-wrapper,
.filter-wrapper {
    flex: 1;
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-wrapper i,
.filter-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #DC0A0A;
    font-size: 1.1rem;
}

.search-wrapper input,
.filter-wrapper select {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
}

.filter-wrapper select {
    padding-left: 45px;
    cursor: pointer;
}


/* Container véhicules */

.vehicules-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* Carte véhicule */

.vehicule-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #DC0A0A;
}

.vehicule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.vehicule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #f0f0f0;
    cursor: pointer;
}

.vehicule-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vehicule-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #DC0A0A, #ff4444);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.vehicule-info h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
    font-weight: 700;
}

.vehicule-info p {
    margin: 4px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

.vehicule-actions {
    display: flex;
    gap: 10px;
}

.btn-vehicule-action {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #4facfe;
    color: white;
}

.btn-edit:hover {
    background: #3d8bf5;
    transform: scale(1.1);
}

.btn-delete {
    background: #ff6b6b;
    color: white;
}

.btn-delete:hover {
    background: #ee5a5a;
    transform: scale(1.1);
}


/* Corps de la carte (collapsible) */

.vehicule-body {
    display: none;
    padding: 25px;
    background: #fafafa;
}

.vehicule-body.active {
    display: block;
}

.vehicule-body-content {
    display: grid;
    grid-template-columns: 250px 350px 1fr;
    gap: 25px;
}

.vehicule-photo {
    width: 250px;
    height: 200px;
    background: #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

.vehicule-photo img {
    object-fit: contain;
}

.vehicule-infos,
.vehicule-equipements {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.vehicule-infos h4,
.vehicule-equipements h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vehicule-infos h4 i,
.vehicule-equipements h4 i {
    color: #DC0A0A;
}

.info-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: #DC0A0A;
    width: 20px;
}

.info-item span {
    color: #666;
    font-size: 0.95rem;
}

.equipement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.equipement-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.equipement-list li:last-child {
    border-bottom: none;
}

.equipement-list li i {
    color: #DC0A0A;
    font-size: 0.8rem;
}


/* Responsive */

@media (max-width: 1200px) {
    .vehicule-body-content {
        grid-template-columns: 1fr;
    }
    .vehicule-photo {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .vehicules-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .header-title-section h1 {
        font-size: 1.8rem;
    }
    .vehicules-stats-bar {
        flex-direction: column;
    }
    .vehicules-controls {
        flex-direction: column;
    }
    .vehicule-card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .vehicule-actions {
        align-self: flex-end;
    }
}