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

body {
    font-family: "Inter", Arial, sans-serif;
    background: #f2f3f7;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------------
   PAGE CONTAINER
--------------------------------------------------------- */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.content-container {
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------------
   TITRES
--------------------------------------------------------- */
.page-title {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 35px;
    color: #111;
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 25px 0 10px;
    color: #222;
}

/* ---------------------------------------------------------
   NAVIGATION
--------------------------------------------------------- */
.navbar {
    text-align: center;
    margin-bottom: 25px;
}

.navbar a,
.navbar span {
    margin: 0 12px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.navbar a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   TAB NAVIGATION - NEW DESIGN
--------------------------------------------------------- */
.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    position: relative;
    z-index: 1;
}

.beta-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.beta-badge svg {
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.3));
}

.tab-navigation {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* Language switcher styling */
.language-switcher {
    border: 2px solid #e5e7eb;
    background: white;
}

.language-switcher:hover {
    background: #f9fafb;
    border-color: #cbd5e1;
    transform: scale(1.05);
}

.nav-tab:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.nav-tab.active {
    background: #dbeafe;
    color: #1e40af;
}

.nav-icon {
    font-size: 18px;
    line-height: 1;
}

.nav-label {
    white-space: nowrap;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.auth-icon {
    font-size: 18px;
}

.btn-login {
    background: transparent;
    color: #4b5563;
}

.btn-login:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-register {
    background: #3b82f6;
    color: white;
	width: 100%;
}

.btn-register:hover {
    background: #2563eb;
}

.btn-logout {
    background: transparent;
    color: #4b5563;
}

.btn-logout:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 968px) {
    .main-nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-navigation {
        justify-content: center;
    }
    
    .auth-buttons {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .nav-tab {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
    
    .btn-auth {
        flex: 1;
        justify-content: center;
    }
}

/* ---------------------------------------------------------
   SEARCH BAR
--------------------------------------------------------- */
.search-bar {
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-bar form {
    display: flex;
    gap: 12px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    background: #fff;
}

.search-bar button {
    padding: 12px 20px;
    background: #111;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.search-bar button:hover {
    background: #333;
}

/* ---------------------------------------------------------
   WARNING BOX
--------------------------------------------------------- */
.warning-box {
    max-width: 800px;
    margin: 0 auto 30px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.15);
}

.warning-box h2 {
    color: #856404;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box p {
    color: #856404;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.warning-box ul {
    margin-left: 20px;
    color: #856404;
}

.warning-box li {
    margin: 6px 0;
    font-size: 15px;
}

/* ---------------------------------------------------------
   WARNING MODAL - Modern Design
--------------------------------------------------------- */
.modal-warning .modal-content {
    max-width: 600px;
    width: 90%;
    border-radius: 16px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: none;
    overflow: hidden;
}

.modal-warning-content {
    text-align: center;
    padding: 0;
}

.warning-header {
    padding: 30px 40px 20px;
}

.warning-icon-circle {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0;
}

.warning-body {
    padding: 30px 40px;
}

.modal-warning-content h2 {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0;
}

.modal-warning-content p {
    font-size: 15px;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.6;
}

.btn-warning-ok {
    padding: 14px 0;
    background: #2d7a7a;
    color: white;
    border: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: none;
    letter-spacing: 0;
}

.btn-warning-ok:hover {
    background: #236262;
    transform: none;
    box-shadow: none;
}

/* ---------------------------------------------------------
   ERROR BOX
--------------------------------------------------------- */
.error-box {
    max-width: 650px;
    margin: 20px auto;
    background: #fee;
    border: 2px solid #f44336;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2);
}

.error-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
}

.error-box p {
    color: #c00;
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0;
    text-align: center;
}

.error {
    color: #c00;
    font-weight: 600;
    margin: 10px 0;
    padding: 10px;
    background: #fee;
    border-left: 4px solid #f44336;
    border-radius: 4px;
}

/* ---------------------------------------------------------
   FILTERS
--------------------------------------------------------- */
.filters {
    max-width: 900px;
    margin: 0 auto 30px;
}

.filters form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filters select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: white;
    font-size: 15px;
}

.filters button {
    padding: 12px 20px;
    background: #111;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.filters button:hover {
    background: #333;
}

/* ---------------------------------------------------------
   SEARCH FILTERS CONTAINER - UNIFIED
--------------------------------------------------------- */
.search-filters-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 15px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.unified-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.search-input-wrapper {
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1a73e8;
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.filter-select:hover {
    border-color: #1a73e8;
    background: white;
}

.filter-select:focus {
    outline: none;
    border-color: #1a73e8;
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

@media (max-width: 1100px) {
    .search-filters-container {
        flex-wrap: wrap;
    }
    
    .unified-search-form {
        width: 100%;
    }
    
    .view-toggle {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .search-filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .unified-search-form {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .search-input-wrapper {
        min-width: 0;
    }
}

/* ---------------------------------------------------------
   GRID DE VÉHICULES
--------------------------------------------------------- */
.vehicles-grid,
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
}

.vehicle-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: 0.25s ease;
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* Validation status styling */
.vehicle-pending {
    border: 2px solid #ffd700;
    background: #ffff99;
}

.vehicle-rejected {
    border: 2px solid #ff8c00;
    background: #ffb366;
}

.validation-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.validation-pending {
    background: #ffd700;
    color: #664d00;
}

.validation-rejected {
    background: #ff8c00;
    color: white;
}

.rejection-reason {
    margin-top: 5px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    max-width: 200px;
    word-wrap: break-word;
}

.vehicle-photo img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.vehicle-info {
    padding: 18px;
}

.vehicle-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.vehicle-info p {
    margin: 4px 0;
    color: #555;
    font-size: 15px;
}

/* ---------------------------------------------------------
   VEHICLES LIST VIEW
--------------------------------------------------------- */
.vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vehicle-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.vehicle-list-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.vehicle-list-item.vehicle-pending {
    background: #ffff99;
    border: 2px solid #ffd700;
}

.vehicle-list-item.vehicle-rejected {
    background: #ffb366;
    border: 2px solid #ff8c00;
}

.vehicle-list-photo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.vehicle-list-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-list-info {
    flex: 1;
    min-width: 0;
}

.vehicle-list-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111;
}

.vehicle-list-details {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vehicle-list-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.vehicle-list-state {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.vehicle-list-country {
    display: inline-block;
    padding: 4px 12px;
    background: #faf0fa;
    color: #666;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.vehicle-list-registration {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.vehicle-list-price {
    padding: 8px 16px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.vehicle-list-actions {
    flex-shrink: 0;
}

.btn-view-vehicle {
    display: inline-block;
    padding: 10px 20px;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-view-vehicle:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

@media (max-width: 768px) {
    .vehicle-list-item {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .vehicle-list-photo {
        width: 60px;
        height: 60px;
    }
    
    .vehicle-list-registration,
    .vehicle-list-price {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ---------------------------------------------------------
   BOUTONS
--------------------------------------------------------- */
.btn,
.btn-details {
    display: block;
    margin: 15px;
    padding: 12px 15px;
    background: #111;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: 0.2s;
}

.btn:hover,
.btn-details:hover {
    background: #333;
}

.btn-sale-ad {
    display: block;
    margin: 15px;
    padding: 12px 15px;
    background: #1b5e20 !important;
    color: white !important;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: 0.2s;
}

.btn-sale-ad:hover {
    background: #2e7d32 !important;
    color: white !important;
}

.vehicle-actions {
    display: flex;
    gap: 10px;
    margin: 15px;
}

.vehicle-actions .btn-sale-ad,
.vehicle-actions .btn-details {
    flex: 1;
    margin: 0;
}

.btn-danger {
    background: #c62828;
}

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

/* ---------------------------------------------------------
   OWNERS GRID
--------------------------------------------------------- */
.owners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.owner-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.owner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.owner-card-highlight {
    border-color: #1a73e8;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.15);
}

.owner-card-highlight:hover {
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.25);
}

.owner-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto;
}

.owner-card-highlight .owner-icon {
    background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 100%);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

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

.owner-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 5px;
}

.owner-badge {
    display: inline-block;
    background: #1a73e8;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 5px 0;
}

.owner-stats {
    font-size: 16px;
    color: #333;
    margin: 8px 0 5px;
}

.owner-stats strong {
    color: #1a73e8;
    font-size: 20px;
}

.owner-date {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.owner-link {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
    margin-top: auto;
}

.owner-link:hover {
    background: #1a73e8;
    color: white;
}

.owner-card-highlight .owner-link {
    background: #e3f2fd;
}

/* ---------------------------------------------------------
   OWNER ACTIONS BUTTONS
--------------------------------------------------------- */
.owner-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-edit-owner,
.btn-delete-owner {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-owner {
    background: #1a73e8;
    color: white;
}

.btn-edit-owner:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

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

.btn-delete-owner:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ---------------------------------------------------------
   OWNER ACTIONS (Vehicle View)
--------------------------------------------------------- */
.owner-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-edit,
.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-edit {
    background: #1a73e8;
    color: white;
}

.btn-edit:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

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

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ---------------------------------------------------------
   VIEW TOGGLE BUTTONS
--------------------------------------------------------- */
.view-toggle {
    display: flex;
    gap: 5px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.view-btn.active {
    background: white;
    color: #1a73e8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ---------------------------------------------------------
   OWNERS LIST VIEW
--------------------------------------------------------- */
.owners-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.owner-list-item {
    background: white;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

.owner-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

.owner-list-item-highlight {
    border-color: #1a73e8;
    background: linear-gradient(90deg, #f0f7ff 0%, #ffffff 100%);
    box-shadow: 0 3px 10px rgba(26, 115, 232, 0.12);
}

.owner-list-item-highlight:hover {
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.2);
}

.owner-list-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.owner-list-item-highlight .owner-list-icon {
    background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 100%);
    box-shadow: 0 3px 8px rgba(26, 115, 232, 0.25);
}

.owner-list-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.owner-list-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.owner-list-stats {
    min-width: 120px;
    text-align: center;
    font-size: 15px;
    color: #333;
}

.owner-list-stats strong {
    color: #1a73e8;
    font-size: 18px;
}

.owner-list-date {
    min-width: 100px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.owner-list-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-edit-owner-small,
.btn-delete-owner-small,
.btn-view-vehicles {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f5f5f5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-edit-owner-small:hover {
    background: #1a73e8;
    color: white;
    transform: scale(1.1);
}

.btn-delete-owner-small:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.btn-view-vehicles {
    color: #1a73e8;
    font-weight: 600;
}

.btn-view-vehicles:hover {
    background: #1a73e8;
    color: white;
    transform: scale(1.1);
}

/* Responsive pour la vue liste */
@media (max-width: 768px) {
    .owner-list-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .owner-list-stats,
    .owner-list-date {
        min-width: auto;
        flex: 1;
    }
    
    .owner-list-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ---------------------------------------------------------
   HOME PAGE STYLES
--------------------------------------------------------- */
.beta-watermark {
    position: absolute;
    top: 100px;
    right: 20px;
    width: 180px;
    height: 180px;
    opacity: 0.65;
    pointer-events: none;
    z-index: 100;
    transform: rotate(-15deg);
}

.beta-watermark svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.2));
}

/* Version mobile du badge BETA */
@media (max-width: 768px) {
    .beta-watermark {
        width: 120px;
        height: 120px;
        top: 10px;
        right: 10px;
    }
}

.home-content {
    padding: 20px 0;
}

.welcome-section {
    background: white;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.intro-text {
    margin-top: 20px;
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 15px;
    color: #444;
    font-size: 16px;
    position: relative;
}

/* VIN Photo Icon and Tooltip */
.tooltip-wrap {
    position: relative;
    display: inline-block;
}

/* Default placement: under the icon/wrapper (JS will adjust when needed) */
.tooltip-wrap .vin-photo-tooltip,
.tooltip-wrap .info-tooltip {
    top: 100%;
}

.vin-photo-icon {
    cursor: pointer;
    font-size: 18px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.2s;
}

.vin-photo-icon:hover {
    transform: scale(1.2);
}

.vin-photo-tooltip {
    display: none;
    position: absolute;
    z-index: 10001;
    background: white;
    border: 2px solid #1a73e8;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin-top: 10px;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(560px, 92vw);
    max-height: 80vh;
    overflow: auto;
}

.vin-photo-tooltip img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 4px;
    display: block;
}

.vin-photo-icon:hover + .vin-photo-tooltip,
.vin-photo-tooltip:hover {
    display: block;
}

/* More robust hover: keep tooltip visible while hovering the wrapper (icon + tooltip) */
.tooltip-wrap:hover .vin-photo-tooltip,
.tooltip-wrap:hover .info-tooltip {
    display: block;
}

/* Information Icon and Tooltip (text) */
.info-icon {
    cursor: help;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #1a73e8;
    color: #1a73e8;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    user-select: none;
}

.info-tooltip {
    display: none;
    position: absolute;
    z-index: 10001;
    background: white;
    border: 1px solid #1a73e8;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin-top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: min(460px, 90vw);
    max-height: 70vh;
    overflow: auto;
    color: #444;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.info-icon:hover + .info-tooltip,
.info-tooltip:hover {
    display: block;
}

.info-tooltip a {
    color: #1a73e8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .vin-photo-tooltip img {
        max-width: 100%;
    }
}

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

.feature-card {
    background: white;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-card-highlight {
    border-color: #1a73e8;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.feature-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.feature-link:hover {
    background: #1a73e8;
    color: white;
    transform: scale(1.05);
}

.feature-link-primary {
    background: #1a73e8;
    color: white;
}

.feature-link-primary:hover {
    background: #0d47a1;
}

.info-section {
    background: white;
    border-radius: 14px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.info-content {
    margin-top: 20px;
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 15px;
    color: #444;
    font-size: 15px;
}

.stats-section {
    margin: 30px 0;
}

.stats-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 30px 0;
}
.stat-box {
	background: white;
	padding: 25px;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	text-align: center;
	border-left: 4px solid #667eea;
}
.stat-box-number {
	font-size: 42px;
	font-weight: 800;
	color: #667eea;
	margin-bottom: 8px;
}
.stat-box-label {
	font-size: 14px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}
.stats-table {
	width: 100%;
	max-width: 1200px;
	margin: 30px auto;
	border-collapse: collapse;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.stats-table th {
	background: #f8f9fa;
	color: #333;
	padding: 12px 16px;
	font-weight: 600;
	text-align: left;
	font-size: 14px;
	border-bottom: 2px solid #e9ecef;
}
.stats-table th:first-child {
	text-align: left;
}
.stats-table th:not(:first-child) {
	text-align: center;
}
.stats-table td {
	padding: 12px 16px;
	text-align: center;
	border-bottom: 1px solid #f1f3f5;
	font-size: 14px;
	color: #495057;
}
.stats-table tbody tr:last-child td {
	border-bottom: none;
}
.stats-table tbody tr:nth-child(even) {
	background: #fafbfc;
}
.stats-table tbody tr:hover:not(:last-child) {
	background: #f1f5f9;
}
.stats-table .row-header {
	font-weight: 600;
	text-align: left;
	color: #212529;
}
.stats-table .total-col {
	font-weight: 700;
	color: #212529;
	font-size: 14px;
}
.stats-table tbody tr:last-child {
	border-top: 2px solid #dee2e6;
	background: #f8f9fa !important;
}
.stats-table tbody tr:last-child .row-header,
.stats-table tbody tr:last-child td {
	font-weight: 700;
}
.section-title-stats {
	font-size: 20px;
	font-weight: 600;
	margin: 50px auto 20px;
	max-width: 1200px;
	color: #212529;
}
.zero-value {
	color: #adb5bd;
}


.content-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}
.page-title {
	font-size: 28px;
	font-weight: 700;
	text-align: center;
	margin: 30px 0;
	color: #212529;
}
.gta-col {
	background: #fff3e0 !important;
	font-weight: 600;
	color: #e65100;
}
.stats-table th.gta-header {
	background: #ff9800;
	color: white;
}

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

.stat-card {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Navbar active link */
.navbar a.active {
    background: #1a73e8;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   MODAL
--------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-content h2 {
    margin: 0;
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 16px 16px 0 0;
    font-size: 22px;
    font-weight: 700;
}

.modal-close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-content form {
    padding: 30px;
    margin: 0;
    box-shadow: none;
    background: white;
    border-radius: 0 0 16px 16px;
}

/* ---------------------------------------------------------
   LOGIN MODAL SPECIFIC
--------------------------------------------------------- */
.modal-login {
    max-width: 450px;
}

.modal-login h2 {
    text-align: center;
    color: #1a73e8;
}

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

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

.modal-login .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.modal-login .form-group input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.modal-login .btn-submit {
    width: 100%;
    padding: 14px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-login .btn-submit:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.modal-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

.modal-footer p {
    margin: 0;
    color: #666;
}

.modal-footer a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   MODAL D'INSCRIPTION
--------------------------------------------------------- */
.modal-register {
    max-width: 600px;
}

.modal-register h2 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 25px;
    font-size: 28px;
}

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

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

.modal-register .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #444;
    font-weight: 500;
    font-size: 14px;
}

.modal-register .form-group input,
.modal-register .form-group select,
.modal-register .form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.modal-register .form-group input:focus,
.modal-register .form-group select:focus,
.modal-register .form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.modal-register textarea {
    min-height: 60px;
    resize: vertical;
}

.modal-register .btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d5bbf 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.modal-register .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

@media (max-width: 600px) {
    .modal-register .form-row {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   MODAL AJOUT VÉHICULE
--------------------------------------------------------- */
.modal-vehicle-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 700px;
    max-height: 85vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: visible;
    padding: 40px;
    animation: slideIn 0.3s ease;
    margin: 0;
}

.modal-vehicle-form h2 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 25px;
    margin-top: 0;
    font-size: 28px;
}

.modal-vehicle-form .form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a73e8;
    margin: 20px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e3f2fd;
}

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

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

.modal-vehicle-form .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #444;
    font-weight: 500;
    font-size: 14px;
}

.modal-vehicle-form .form-group input,
.modal-vehicle-form .form-group select,
.modal-vehicle-form .form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.modal-vehicle-form .form-group input:focus,
.modal-vehicle-form .form-group select:focus,
.modal-vehicle-form .form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.modal-vehicle-form textarea {
    resize: vertical;
}

.modal-vehicle-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.modal-vehicle-form .checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.modal-vehicle-form .btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d5bbf 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.modal-vehicle-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.photos-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.photo-preview-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-vehicle-form::-webkit-scrollbar {
    width: 8px;
}

.modal-vehicle-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-vehicle-form::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-vehicle-form::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 600px) {
    .modal-vehicle-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   MODAL ADD VEHICLE - INTRO + VIN CHECK + FIELDSET
--------------------------------------------------------- */
.modal-intro-text {
    background: #f0f7ff;
    border-left: 4px solid #1a73e8;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 14px;
    color: #1e3a5f;
    line-height: 1.6;
}

.modal-intro-text p {
    margin: 0 0 8px;
    font-weight: 600;
}

.modal-intro-text ul {
    margin: 0;
    padding-left: 20px;
}

.modal-intro-text li {
    margin: 4px 0;
}

/* Ligne VIN + bouton vérification */
.vin-check-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.vin-input-field {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 14px !important;
}

.btn-vin-check {
    flex-shrink: 0;
    padding: 10px 18px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.btn-vin-check:hover {
    background: #0d5bbf;
    transform: translateY(-1px);
}

.btn-vin-check:disabled {
    background: #9db8d9;
    cursor: not-allowed;
    transform: none;
}

/* Résultat du check VIN */
.vin-check-result {
    margin-top: 8px;
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    min-height: 0;
    transition: all 0.2s;
}

.vin-check-result:empty {
    display: none;
}

.vin-result-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vin-result-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.vin-result-loading {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Fieldset grisé */
.form-body-fieldset {
    border: none;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s;
}

.form-body-fieldset:disabled,
.form-body-disabled {
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

/* Séparateurs */
.form-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

/* Preview photos plaques */
.single-photo-preview {
    margin-top: 8px;
    width: 100%;
    max-height: 160px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.single-photo-preview:empty {
    display: none;
}

.single-photo-preview img {
    max-height: 156px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Disclaimer sous le bouton de soumission */
.submit-disclaimer {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.5;
    font-style: italic;
}

@media (max-width: 768px) {
    .modal-vehicle-form {
        width: 90%;
        max-height: 85vh;
        padding: 20px;
    }
}

/* ---------------------------------------------------------
   PROFILE PHOTO SECTION
--------------------------------------------------------- */
.profile-photo-section {
    text-align: center;
    margin-bottom: 25px;
}

.profile-photo-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #e0e0e0;
}

.photo-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #1a73e8;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.photo-upload-btn:hover {
    background: #0d47a1;
}

/* ---------------------------------------------------------
   FORM GROUPS
--------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

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

/* ---------------------------------------------------------
   FORM ERRORS
--------------------------------------------------------- */
.form-errors {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    display: none;
}

.form-errors:not(:empty) {
    display: block;
}

.form-errors p {
    margin: 5px 0;
    color: #c00;
    font-size: 14px;
}

/* ---------------------------------------------------------
   MODAL ACTIONS
--------------------------------------------------------- */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

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

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

.btn-submit {
    background: #1a73e8;
    color: white;
}

.btn-submit:hover {
    background: #0d47a1;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* ---------------------------------------------------------
   REGISTER FORM
--------------------------------------------------------- */
.register-form {
    max-width: 650px;
}

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

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

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

.register-form .form-group input,
.register-form .form-group select,
.register-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.register-form .form-group input:focus,
.register-form .form-group select:focus,
.register-form .form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.register-form .btn-submit {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .register-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Error box styling */
.error-box {
    background: #fff3f3;
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 650px;
}

.error-icon {
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
}

.error-box p {
    color: #dc3545;
    margin: 5px 0;
    font-weight: 600;
}

/* ---------------------------------------------------------
   FORMULAIRES
--------------------------------------------------------- */
form {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    /*! padding: 30px; */
    border-radius: 16px;
    /*! box-shadow: 0 8px 25px rgba(0,0,0,0.08); */
}

label {
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 15px;
}

input[type="text"],
input[type="date"],
input[type="url"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-top: 6px;
    font-size: 15px;
    background: #fafafa;
}

textarea {
    resize: vertical;
}

/* ---------------------------------------------------------
   PAGE DÉTAIL
--------------------------------------------------------- */
.vehicle-detail {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.vehicle-detail img {
    max-width: 100%;
    border-radius: 12px;
    margin: 10px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 25px;
}

.detail-item {
    background: #f0f1f4;
    padding: 15px;
    border-radius: 12px;
}

.detail-item strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

/* ---------------------------------------------------------
   ERREURS
--------------------------------------------------------- */
.error {
    color: #c62828;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

/* ---------------------------------------------------------
   CAROUSEL PHOTO
--------------------------------------------------------- */
.carousel {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    background: #000;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-item {
    min-width: 100%;
}

.carousel-item img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20,20,20,0.6);
    border: none;
    color: white;
    font-size: 32px;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
}

.carousel-btn:hover {
    background: rgba(20,20,20,0.9);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* ---------------------------------------------------------
   MINIATURES DU CAROUSEL
--------------------------------------------------------- */
.carousel-thumbnails {
    display: flex;
    gap: 10px;
    margin: 15px auto 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel-thumbnails img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
    border: 2px solid transparent;
}

.carousel-thumbnails img:hover {
    opacity: 1;
}

.carousel-thumbnails img.active {
    opacity: 1;
    border-color: #1a73e8;
}

.lang-switcher {
    text-align: center;
    margin-bottom: 20px;
}

.lang-switcher a {
    margin: 0 8px;
    font-size: 22px;
    text-decoration: none;
}

/* ---------------------------------------------------------
   LANGUAGE DROPDOWN
--------------------------------------------------------- */
.lang-dropdown {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    min-width: 140px;
}

.lang-dropdown:hover {
    border-color: #1a73e8;
    background: #f8f9fa;
}

.lang-dropdown:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.lang-dropdown option {
    padding: 8px;
}

/* ---------------------------------------------------------
   VEHICLE VIEW MODAL
--------------------------------------------------------- */
body.modal-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

.modal-backdrop-vehicle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.modal-vehicle-view {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 900px;
    max-height: 85vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px;
    animation: slideIn 0.3s ease;
}

.modal-close-vehicle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-close-vehicle:hover {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    transform: rotate(90deg);
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Ajustements pour le contenu de la modal */
.modal-vehicle-view .vehicle-detail {
    padding: 0;
}

/* Scrollbar personnalisée pour la modal */
.modal-vehicle-view::-webkit-scrollbar {
    width: 8px;
}

.modal-vehicle-view::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-vehicle-view::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-vehicle-view::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-vehicle-view {
        width: 90%;
        max-height: 85vh;
        padding: 20px;
    }
    
    .modal-close-vehicle {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* ---------------------------------------------------------
   VEHICLE VIEW IFRAME MODAL
--------------------------------------------------------- */
.modal-iframe-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-iframe-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    pointer-events: auto;
}

.modal-iframe-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 900px;
    height: 85vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-iframe-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    background: rgba(220, 53, 69, 0.95);
    border: 3px solid white;
    border-radius: 50%;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-iframe-close:hover {
    background: rgb(200, 35, 51);
    transform: rotate(90deg) scale(1.1);
}

@media (max-width: 768px) {
    .modal-iframe-content {
        width: 95%;
        height: 90vh;
    }
    
    .modal-iframe-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: -12px;
        right: -12px;
    }
}


/* ---------------------------------------------------------
   admin
--------------------------------------------------------- */




.admin-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 30px;
        }
        .admin-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        .stat-card {
            background: rgba(255,255,255,0.2);
            padding: 15px;
            border-radius: 8px;
            text-align: center;
        }
        .stat-number {
            font-size: 32px;
            font-weight: 800;
        }
        .admin-section {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        .admin-table {
            width: 100%;
            border-collapse: collapse;
        }
        .admin-table th {
            background: #f5f5f5;
            padding: 12px;
            text-align: left;
            font-weight: 600;
        }
        .admin-table td {
            padding: 10px 12px;
            border-bottom: 1px solid #e0e0e0;
        }
        .admin-actions {
            display: flex;
            gap: 8px;
        }
        .btn-admin-edit {
            padding: 6px 12px;
            background: #1a73e8;
            color: white;
            border-radius: 6px;
            text-decoration: none;
            font-size: 13px;
        }
        .btn-admin-delete {
            padding: 6px 12px;
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
        }
        .badge-admin {
            background: #ffc107;
            color: #000;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
        }

/* ---------------------------------------------------------
   PAGINATION
--------------------------------------------------------- */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
}

.pagination-info strong {
    color: #1f2937;
    font-weight: 600;
}

.pagination-info .separator {
    color: #d1d5db;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-controls label {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.per-page-select {
    padding: 8px 12px;
    background: white;
    color: #4b5563;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.per-page-select:hover {
    border-color: #9ca3af;
}

.per-page-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pagination-pages {
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-btn {
    padding: 8px 12px;
    background: white;
    color: #4b5563;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
}

.page-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.page-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-info {
        justify-content: center;
        text-align: center;
    }
    
    .pagination-pages {
        justify-content: center;
        flex-wrap: wrap;
        order: 2;
    }
    
    .pagination-controls {
        justify-content: center;
        order: 3;
    }
    
    .per-page-select {
        flex: 1;
        max-width: 200px;
    }
}