/*
 * Styles spécifiques pour la page d'accueil (slideshow et recherche).
 */

.vs-hero {
    position: relative;
    overflow: hidden;
}

.vs-hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vs-hero-slides .vs-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: vsHeroFade 24s infinite;
}

.vs-hero-slides .vs-hero-img:nth-child(1) {
    animation-delay: 0s;
}

.vs-hero-slides .vs-hero-img:nth-child(2) {
    animation-delay: 8s;
}

.vs-hero-slides .vs-hero-img:nth-child(3) {
    animation-delay: 16s;
}

@keyframes vsHeroFade {
    0% { opacity: 0; }
    8% { opacity: 1; }
    25% { opacity: 1; }
    33% { opacity: 0; }
    100% { opacity: 0; }
}

/* Recherche dans le hero */
.vs-hero-search {
    display: flex;
    flex-wrap: nowrap;
    max-width: 600px;
    margin: 20px 0;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}

.vs-hero-search input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 1rem;
    border-radius: 999px 0 0 999px;
    outline: none;
}

.vs-hero-search button {
    padding: 0 20px;
    border: none;
    background: var(--vs-blue);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 999px 999px 0;
}

.vs-hero-search button:hover {
    background: var(--vs-blue-dark);
}