/* === GÉNÉRAL === */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
}

/* === HERO (ancien, conservé pour compatibilité) === */
.hero {
    background: linear-gradient(135deg, #1a6b3c 0%, #2d9e62 50%, #0d4f8c 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}
.hero h1 { font-size: 2.8rem; font-weight: 700; }
.hero p  { font-size: 1.2rem; opacity: 0.9; }
.search-box {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* Navbar plus haute sur la homepage pour laisser le hero remplir */
body.home-page .container.mt-4 { margin-top: 0 !important; }

/* === CARTE VÉHICULE === */
.vehicle-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

.vehicle-card .badge-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-badge {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a6b3c;
}

/* === DÉTAIL VÉHICULE === */
.vehicle-gallery img {
    border-radius: 8px;
    cursor: pointer;
    height: 100px;
    object-fit: cover;
    width: 100%;
    transition: opacity 0.2s;
}
.vehicle-gallery img:hover { opacity: 0.8; }

.main-photo {
    border-radius: 12px;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.equipment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #1a6b3c;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 4px;
}

/* === BOOKING === */
.booking-summary {
    background: #f0f9f4;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 20px;
}

.booking-summary .total-row {
    font-size: 1.1rem;
    font-weight: 700;
    border-top: 2px solid #1a6b3c;
    padding-top: 10px;
    margin-top: 10px;
    color: #1a6b3c;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.status-pending           { background: #fff3cd; color: #856404; }
.status-accepted          { background: #d1ecf1; color: #0c5460; }
.status-refused           { background: #f8d7da; color: #721c24; }
.status-awaiting_payment  { background: #fde8d8; color: #854215; }
.status-payment_confirmed { background: #d4edda; color: #155724; }
.status-contract_signed   { background: #d4edda; color: #155724; }
.status-active            { background: #cce5ff; color: #004085; }
.status-completed         { background: #e2e3e5; color: #383d41; }
.status-cancelled         { background: #f8d7da; color: #721c24; }

/* === SIGNATURE === */
#signature-canvas {
    border: 2px dashed #1a6b3c;
    border-radius: 8px;
    cursor: crosshair;
    background: white;
    touch-action: none;
}

.signature-container { position: relative; }

/* === DASHBOARD === */
.stat-card {
    border-radius: 12px;
    padding: 24px;
    color: white;
    text-align: center;
}
.stat-card h2 { font-size: 2.5rem; font-weight: 700; }
.stat-card p  { margin: 0; opacity: 0.85; }

/* === ÉTOILES === */
.stars { color: #ffc107; }

/* === FORMULAIRES === */
.form-label { font-weight: 500; }

.card { border-radius: 12px; border: none; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.card-header { border-radius: 12px 12px 0 0 !important; font-weight: 600; }

/* === FILTRES RECHERCHE === */
.filter-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 80px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero     { padding: 50px 0; }
}
