/* Styles pour le bloc de réservation d'essai avec design épuré */
.test-drive-block {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.test-drive-block a:hover {
color : gainsboro;
}

/* Optimisation pour accélération matérielle */
.test-drive-block img, 
.test-drive-block a {
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0);
}

/* Séparateur animé */
.test-drive-block .h-1 {
    transition: width 0.5s ease-out;
}

.test-drive-block:hover .h-1 {
    width: 6rem;
}

/* Animations des icônes */
.test-drive-block .fa-phone,
.test-drive-block .fa-location-dot,
.test-drive-block .fa-arrow-right {
    transition: transform 0.3s ease;
}

.test-drive-block a:hover .fa-phone,
.test-drive-block a:hover .fa-arrow-right {
    transform: translateX(3px);
}

/* Animation d'apparition du formulaire */
#test-drive-form-container {
    transition: all 0.3s ease-out;
}

/* Styles spécifiques pour le formulaire */
.test-drive-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.test-drive-step.active {
    display: block;
    opacity: 1;
}


/* Indicateur de progression */
.test-drive-progress-bar {
    height: 4px;
    background: #eee;
    margin-bottom: 1rem;
}

.test-drive-progress-bar-fill {
    height: 100%;
    background: #000;
    transition: width 0.3s ease;
}

/* Cartes de modèles et concessions */
.test-drive-model-card,
.test-drive-dealership-card {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.test-drive-model-card.selected,
.test-drive-dealership-card.selected {
    border-color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.test-drive-model-card:hover,
.test-drive-dealership-card:hover {
    cursor: pointer;
    user-select: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Bouton retour */
.test-drive-back-button {
    position: fixed;
    bottom: 5rem;
    left: 1rem;
    z-index: 10;
    padding: 0.5rem 1rem;
    background: #000;
    color: white;
    border-radius: 2rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.test-drive-back-button.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .test-drive-block .flex {
        gap: 1rem;
    }
    
    .test-drive-form-container {
        padding: 1rem;
    }
    
    .test-drive-model-card img,
    .test-drive-dealership-card img {
        max-height: 100px;
    }
}

/* Animation de succès */
@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-icon {
    animation: checkmark 0.5s ease-in-out forwards;
}

/* Boutons Test Drive de taille identique */
.btn-test-drive {
    min-height: 80px; /* Hauteur fixe pour les deux boutons */
    width: 100%; /* Pleine largeur sur mobile */
}

@media (min-width: 768px) {
    .btn-test-drive {
        width: 280px; /* Largeur fixe identique sur desktop */
        min-width: 280px; /* Pour éviter le rétrécissement */
    }
}

/* Style des liens des concessions */
.test-drive-block .dealer-links a {
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.test-drive-block .dealer-links a:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.test-drive-block .dealer-links a:hover:after {
    transform: scaleX(1);
}

.dealer-signature {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1.5rem;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.dealer-signature a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.dealer-signature a:hover {
    color: #111827;
}

.dealer-signature i.fa-location-dot {
    font-size: 0.75rem;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.dealer-signature a:hover i.fa-location-dot {
    color: #111827;
}
@media (max-width: 640px) {
    #dealer-signature-rotator {
        position: relative;
        height: 1.5rem;
        overflow: hidden;
        display: block !important;
    }

    #dealer-signature-rotator a,
    #dealer-signature-rotator span {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%) translateY(0);
        opacity: 0;
        white-space: nowrap;
        transition: transform 0.4s ease, opacity 0.4s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.75rem;
        color: #6b7280;
    }

    #dealer-signature-rotator .active {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        z-index: 2;
    }

    #dealer-signature-rotator .exit-left {
        opacity: 0;
        transform: translateX(-150%) translateY(0);
        z-index: 1;
    }

    #dealer-signature-rotator .enter-right {
        opacity: 0;
        transform: translateX(100%) translateY(0);
        z-index: 1;
    }
}



