/*!
 * Styles propres a la fiche vehicule.
 * Recuperes tels quels depuis les blocs <style> du site d'origine
 * (galerie Swiper, animations de zoom, fenetres modales v-*).
 */

.swiper-button-next:after, .swiper-button-prev:after{
        display:none!important;
    }
/* Animations personnalisées */
@keyframes animate-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-modal-in {
    animation: animate-modal-in 0.3s ease-out;
}

.cursor-zoom-in {
    cursor: zoom-in;
}

/* Galerie principale */
.product-gallery-main {
    position: relative;
}

.product-gallery-main .swiper-slide {
    opacity: 1;
}

.gallery-nav-next,
.gallery-nav-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-nav-next {
    right: 1rem;
}

.gallery-nav-prev {
    left: 1rem;
}

.gallery-nav-next:hover,
.gallery-nav-prev:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    color: #1f2937;
}

/* Miniatures */
.product-gallery-thumbs {
    margin-top: 1rem;
}

.product-gallery-thumbs .swiper-slide {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.product-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    box-shadow: 0 0 0 3px #f97316;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-nav-next,
    .gallery-nav-prev {
        width: 3rem;
        height: 3rem;
    }

    .product-gallery-main {
        border-radius: 1.5rem;
    }
}

/* --- CSS VANILLE REPRIS ET OPTIMISÉ MOBILE --- */
    
    .v-modal-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(8px);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px; /* Marge de sécurité pour mobile */
    }

    .v-modal-card {
        background: #ffffff;
        width: 100%;
        max-width: 550px;
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
        position: relative;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        animation: modalAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    /* En-tête */
    .v-modal-header {
        background: linear-gradient(135deg, #1e293b, #0f172a);
        padding: 20px 25px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .v-header-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .v-header-icon {
        width: 40px;
        height: 40px;
        background: rgba(59, 130, 246, 0.2);
        border: 1px solid rgba(59, 130, 246, 0.3);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #60a5fa;
        flex-shrink: 0; /* Empêche l'icône de s'écraser */
    }

    .v-header-text h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .v-header-text p {
        margin: 2px 0 0 0;
        font-size: 0.75rem;
        color: #94a3b8;
    }

    .v-close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        cursor: pointer;
        transition: 0.2s;
    }

    /* Corps du Modal */
    .v-modal-body {
        padding: 30px 25px;
        text-align: center;
    }

    .v-badge {
        display: inline-block;
        padding: 4px 12px;
        background: #f0f7ff;
        color: #2563eb;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        border-radius: 100px;
        margin-bottom: 20px;
        border: 1px solid #dbeafe;
    }

    .v-title {
        font-size: 1.5rem;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .v-title span { color: #2563eb; }

    .v-description {
        color: #64748b;
        line-height: 1.5;
        margin-bottom: 25px;
        font-size: 0.95rem;
    }

    /* Carte Contact */
    .v-contact-card {
        background: #f8fafc;
        border: 2px dashed #cbd5e1;
        border-radius: 20px;
        padding: 20px;
        transition: 0.3s;
    }

    .v-contact-card:hover {
        border-color: #3b82f6;
        background: #f0f9ff;
    }

    .v-contact-label {
        font-size: 0.7rem;
        color: #94a3b8;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 8px;
    }

    .v-email-link {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1e293b;
        text-decoration: none;
        word-break: break-all; /* Important pour mobile */
    }

    .v-ref-tag {
        display: inline-block;
        margin-top: 10px;
        font-size: 0.8rem;
        font-weight: 700;
        background: #ffffff;
        padding: 4px 10px;
        border-radius: 6px;
        border: 1px solid #e2e8f0;
        color: #475569;
    }

    /* Bouton */
    .v-action-btn {
        background: #0f172a;
        color: white;
        border: none;
        padding: 14px;
        border-radius: 14px;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        width: 100%;
        margin-top: 30px;
        transition: 0.3s;
    }

    .v-action-btn:hover { background: #1e293b; }

    /* --- RESPONSIVE MOBILE (Écrans < 640px) --- */
    @media (max-width: 640px) {
        .v-modal-card {
            border-radius: 20px;
        }
        .v-modal-body {
            padding: 25px 20px;
        }
        .v-title {
            font-size: 1.25rem;
        }
        .v-description {
            font-size: 0.85rem;
        }
        .v-email-link {
            font-size: 1rem;
        }
        .v-modal-header {
            padding: 15px 20px;
        }
        .v-header-icon {
            width: 34px;
            height: 34px;
        }
        .v-header-text h3 {
            font-size: 0.95rem;
        }
    }

    [x-cloak] { display: none !important; }

/* Ajout du theme : masque les elements Alpine avant initialisation. */
[x-cloak] {
	display: none !important;
}
