/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* En-tête */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Cartes de véhicules */
.vehicle-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.vehicle-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.vehicle-card .card-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.vehicle-card .card-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #dc3545;
}

.vehicle-card .card-rental-price {
    font-size: 1rem;
    color: #6c757d;
}

/* Boutons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Formulaires */
.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
}

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

.form-label {
    font-weight: 500;
}

/* Alertes */
.alert {
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Page d'accueil */
.hero-section {
    text-align: center;
    padding: 120px 0;
    color: #fff;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-section .slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-section .slideshow div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideshow 20s linear infinite;
}

.hero-section .slideshow div:nth-child(1) {
    background-image: url('../images/vh4.png');
    animation-delay: 0s;
}

.hero-section .slideshow div:nth-child(2) {
    background-image: url('../images/suv1.png');
    animation-delay: 5s;
}

.hero-section .slideshow div:nth-child(3) {
    background-image: url('../images/vh3.png');
    animation-delay: 10s;
}

.hero-section .slideshow div:nth-child(4) {
    background-image: url('../images/suv5.png');
    animation-delay: 15s;
}

@keyframes slideshow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 0;
}

.hero-section h1,
.hero-section p,
.hero-section .d-flex {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.features-section {
    padding: 50px 0;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 100%;
}

.feature-card i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Détails du véhicule */
.vehicle-details {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.vehicle-details img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.vehicle-details h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.vehicle-details .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 20px;
}

.vehicle-details .rental-price {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 20px;
}

/* Caractéristiques techniques */
.feature-icon {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Panier */
.cart-item {
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.cart-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-summary {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Formulaire de paiement */
.payment-methods {
    margin-top: 20px;
}

.payment-method {
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.payment-method.selected {
    border-color: #007bff;
    background-color: #e6f2ff;
}

.payment-method img {
    height: 30px;
    margin-right: 10px;
}

/* Tableau de bord admin */
.admin-sidebar {
    padding: 20px;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-sidebar .nav-link {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover {
    background-color: #f8f9fa;
}

.admin-sidebar .nav-link.bg-light {
    background-color: #f8f9fa !important;
    border-left: 3px solid #007bff;
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
    color: #007bff;
}

.admin-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-card {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.stats-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

.stats-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-card p {
    font-size: 1rem;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .vehicle-card .card-img-top {
        height: 150px;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Animation des promotions */
@keyframes beat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.fa-beat {
    animation: beat 1.5s infinite;
}

/* Pied de page */
footer {
    margin-top: 50px;
    border-radius: 10px 10px 0 0;
}

footer .social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

footer .social-icons a:hover {
    background-color: #007bff;
}

footer .payment-methods i {
    font-size: 2rem;
    margin-right: 10px;
}
