/* Styles spécifiques pour la page de détail des voitures */

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Styles pour les badges */
.badge {
    font-size: 0.85em;
    padding: 0.5em 0.75em;
}

.badge.fs-6 {
    font-size: 0.9rem !important;
}

/* Galerie d'images */
.car-gallery {
    position: relative;
}

.car-gallery img {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.car-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), transparent);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-gallery:hover .image-overlay {
    opacity: 1;
}

/* Tableaux de spécifications */
.specs-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.specs-table table {
    margin-bottom: 0;
}

.specs-table td {
    border: none;
    padding: 0.5rem 0;
    vertical-align: middle;
}

.specs-table td:first-child {
    font-weight: 500;
    color: #6c757d;
    width: 60%;
}

.specs-table td:last-child {
    text-align: right;
    color: #212529;
}

/* Prix et réservation */
.price-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.price-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.price-highlight {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.price-highlight::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Sidebar sticky */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* Équipements et badges */
.features-badges .badge {
    margin: 0.2rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.features-badges .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Avis clients */
.review-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.review-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.review-rating {
    color: #ffc107;
}

/* Conditions de location */
.conditions-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.conditions-list .list-unstyled li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

/* Modal amélioré */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
}

/* Formulaire de réservation */
.reservation-form .form-control,
.reservation-form .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.reservation-form .form-control:focus,
.reservation-form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Boutons personnalisés */
.btn-custom {
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-custom::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: all 0.3s ease;
}

.btn-custom:hover::before {
    width: 300px;
    height: 300px;
}

/* Véhicules similaires */
.similar-cars .card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.similar-cars .card-img-top {
    transition: all 0.3s ease;
}

.similar-cars .card:hover .card-img-top {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .price-display {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .specs-table {
        margin-bottom: 1rem;
    }
    
    .sticky-sidebar {
        position: static;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .features-badges {
        text-align: center;
    }
    
    .car-gallery img {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .badge.fs-6 {
        font-size: 0.75rem !important;
        margin: 0.1rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .modal-lg {
        max-width: 95%;
    }
}

/* Animations de chargement */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Amélioration des tooltips */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: #212529;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

/* Breadcrumb personnalisé */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Indicateurs de statut */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.available {
    background-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.status-indicator.unavailable {
    background-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

/* Effets de focus améliorés */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Styles pour l'impression */
@media print {
    .btn, .modal, .sticky-sidebar {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
    
    .page-break {
        page-break-before: always;
    }
}
