/* === Styles spécifiques au parallaxe de la page d'accueil === */

/* Bloc bannière dans la zone violette */
.header-image {
    padding: 0;
    margin: 24px auto 0 auto;
    max-width: 1100px; /* même largeur que le container principal */
}

/* Conteneur du slider */
.header-image .hero-parallax {
    position: relative;
    height: 220px;      /* ajuste si tu veux plus haut (ex. 250px) */
    overflow: hidden;
    border-radius: 8px;
}

/* Conteneur interne : on place les items en absolu */
.header-image .parallax-liste {
    position: relative;
    height: 100%;
}

/* Chaque item occupe tout l'espace mais est invisible par défaut */
.header-image .parallax-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;     /* pas cliquable tant qu'il n'est pas actif */
}

/* Seul l'item actif est visible et cliquable */
.header-image .parallax-item.active {
    opacity: 1;
    pointer-events: auto;
}

/* L'image prend toute la bannière */
.header-image .parallax-item img.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Overlay description */
#parallax-description {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;  /* texte à gauche */
    padding: 1.5rem 3rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    text-align: left;
    opacity: 0;
    pointer-events: none;     /* laisse passer les clics vers l'image */
    transition: opacity 0.25s ease-in-out;
}

#parallax-description.visible {
    opacity: 1;
}

#parallax-description .titre {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

#parallax-description .texte {
    max-width: 700px;
    line-height: 1.5;
}
