.car-image-imgg{
    object-fit: cover !important;
 height: 100% !important;
width: 100% !important;
border-radius: 10px;
}

.car-image{
width: 100% !important;
 object-fit: contain !important;
    height: 200px !important;


}
.main-vehicle-image-imgg{
 height: 100% !important;
width: 100% !important;

/* object-fit: cover !important; */
}

.main-vehicle-image{
width: 100% !important;
 object-fit: contain !important;

}



.homepage-3 {
    background:
        linear-gradient(145deg, rgba(255,122,58,0.55), rgba(236,90,19,0.25), rgba(184,65,13,0.55)),
        url("../img/section-bg.jpg") !important;
    background-size: contain !important;
    background-position: center;
    background-repeat: no-repeat ;
}




/* ========================================
   STYLES POUR LE FILTRE DE RECHERCHE
   ======================================== */

/* Filtre sur la page d'accueil */
.search-section-3 {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}



.search-select-3,
.search-input-3 {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-select-3:focus,
.search-input-3:focus {
    border-color: #ec5a13;
    box-shadow: 0 0 0 0.2rem rgba(67, 118, 251, 0.25);
}

.search-button-3 {
    background: #ec5a13;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    width: 100%;
}

.search-button-3:hover {
    background: #2d5dd9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 118, 251, 0.3);
}

.search-button-3 svg {
    width: 18px;
    height: 18px;
}

@keyframes buttonColorPulse {
    0%, 100% {
        background-color: #ec5a13;
        border-color: #ec5a13;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(236, 90, 19, 0.7);
    }
    50% {
        background-color: #4285F4;
        border-color: #4285F4;
        transform: scale(1.05);
        box-shadow: 0 0 20px 0 rgba(66, 133, 244, 0.7);
    }
}

.animated-button {
    animation: buttonColorPulse 3s ease-in-out infinite;
    display: inline-block;
}

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

/* Mobile - 1 champ par ligne */
@media (max-width: 768px) {
    .search-section-3 {
        padding: 20px 15px;
        margin-top: -50px;
    }

    .search-section-3 .row.gap-1 {
        gap: 0 !important;
    }

.homepage-3 .search-section-3 {

    margin-bottom: 50px !important;
}

    .search-section-3 .col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .search-section-3 .col:last-child {
        margin-bottom: 0;
    }

    .search-select-3,
    .search-input-3,
    .search-button-3 {
        width: 100%;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 991px) {
    .search-section-3 .col {
        flex: 0 0 48%;
        max-width: 48%;
    }

    .search-section-3 .col:nth-last-child(1),
    .search-section-3 .col:nth-last-child(2) {
        flex: 0 0 48%;
    }


}

/* ========================================
   STYLES POUR LES IMAGES DE VÉHICULES
   ======================================== */

.car-image-imgg {
    object-fit: cover !important;
    height: 100% !important;
    width: 100% !important;
    border-radius: 10px;
}

.car-image {
    width: 100% !important;
    object-fit: contain !important;
    height: 200px !important;
}

.main-vehicle-image-imgg {
    height: 100% !important;
    width: 100% !important;
}

.main-vehicle-image {
    width: 100% !important;
    object-fit: contain !important;
}

/* ========================================
   DROPDOWN MENU UTILISATEUR
   ======================================== */

.dropdown-menu {
    min-width: 200px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #ec5a13;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* ========================================
   ALERTS ET MESSAGES
   ======================================== */

.alert {
    border-radius: 8px;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ========================================
   BOUTONS
   ======================================== */

.btn-link {
    color: #ec5a13;
    text-decoration: none;
}

.btn-link:hover {
    color: #2d5dd9;
    text-decoration: underline;
}

/* ========================================
   FORMULAIRES
   ======================================== */

.input-item {
    margin-bottom: 20px;
}

.input-item .lable-text {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-item input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s;
}

.input-item input:focus {
    border-color: #ec5a13;
    box-shadow: 0 0 0 0.2rem rgba(67, 118, 251, 0.25);
    outline: none;
}

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

@media (max-width: 576px) {
    .responsive-logo {
        width: 100%;
    }

    .navbar-2-address-bar p {
        font-size: 12px;
    }

    .sign-content {
        margin-bottom: 30px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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


/* new css */

/* ========================================
   CORRECTION COMPLÈTE POUR MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Hauteur fixe pour l'image */
    .car-image {
        height: 250px !important;
        width: 100% !important;
        overflow: hidden;
        margin-bottom: 0 !important; /* Enlève l'espace en bas */
    }

    .car-image-imgg {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* Ajuste la carte principale */
    .car-box-items {
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: unset !important;
    }

    /* Supprime les espaces inutiles */
    .car-box-items .car-image {
        padding: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Bouton Réserver collé à l'image */
    .reserve-btn-container {
        margin-top: 0 !important;
        padding-top: 15px;
        padding-bottom: 15px;
        margin-bottom: 0 !important;
        text-align: center;
        background: white; /* Pour éviter tout problème de transparence */
    }

    /* Ajuste la liste d'infos en dessous */
    .car-list-items {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }
}

/* ========================================
   CORRECTION POUR UNIFORMISER LES HAUTEURS
   ======================================== */

@media (max-width: 768px) {
    /* Conteneur avec hauteur fixe */
    .car-image {
        height: 250px !important;
        width: 100% !important;
        overflow: hidden !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* Image qui remplit tout le conteneur */
    .car-image-imgg {
        height: 250px !important; /* Même hauteur que le conteneur */
        width: 100% !important;
        object-fit: cover !important; /* TRÈS IMPORTANT : force l'image à remplir */
        object-position: center !important; /* Centre l'image */
        display: block !important;
    }

    /* Ajuste la carte principale */
    .car-box-items {
        display: flex;
        flex-direction: column;
    }

    /* Bouton Réserver collé à l'image */
    .reserve-btn-container {
        margin-top: 0 !important;
        padding: 15px;
        margin-bottom: 0 !important;
        text-align: center;
    }

    /* Ajuste la liste d'infos */
    .car-list-items {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }
}


/* ========================================
   BOUTON RÉSERVER DYNAMIQUE - ANIMATION
   ======================================== */

.reserve-btn {
    background: linear-gradient(135deg, #ec5a13 0%, #ff6b35 100%);
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 90, 19, 0.4);
    animation: reservePulse 2.5s ease-in-out infinite;
    text-decoration: none;
}

.reserve-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(236, 90, 19, 0.6);
    color: white !important;
}

.reserve-btn i {
    font-size: 18px;
    animation: iconBounce 1s ease-in-out infinite;
}

/* Animation principale du bouton - Pulsation orange/bleu */
@keyframes reservePulse {
    0%, 100% {
        background: linear-gradient(135deg, #ec5a13 0%, #ff6b35 100%);
        box-shadow: 0 4px 15px rgba(236, 90, 19, 0.4), 0 0 0 0 rgba(236, 90, 19, 0.7);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, #4285F4 0%, #5a95f5 100%);
        box-shadow: 0 6px 25px rgba(66, 133, 244, 0.6), 0 0 20px 5px rgba(66, 133, 244, 0.4);
        transform: scale(1.05);
    }
}

/* Animation de l'icône - Rebond */
@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Style pour le bouton "Voir plus" - Moins visible */
.car-list-items .price-items a.theme-btn {
    background: #f0f0f0;
    color: #666;
    font-size: 14px;
    padding: 8px 20px;
}

.car-list-items .price-items a.theme-btn:hover {
    background: #e0e0e0;
    color: #333;
}
