/* --- ACCUEIL ONCE HUMAN - STYLE ÉPURÉ PREMIUM --- */

/* Barre de recherche Minimaliste */
.global-search-container {
    position: relative;
    width: 450px;
}

#globalSearchInput {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: 'H73Light', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#globalSearchInput:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: #68fdd6;
    box-shadow: 0 0 0 2px rgba(104, 253, 214, 0.1);
}


/* --- SWIPER / CARROUSEL (Logique "Pointer-Events" Chirurgicale) --- */

.swiper-container-wrapper {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centre verticalement */
    overflow: visible;
    /* Important pour voir les effets 3D */
    position: relative;
    z-index: 5;

    /* CRUCIAL : Le conteneur global laisse passer la souris */
    pointer-events: none;
}

.swiper {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 60px;
    overflow: visible;
    pointer-events: none;
    /* Le swiper lui-même ne bloque pas */
}

.swiper-wrapper {
    pointer-events: none;
    /* Le wrapper des slides ne bloque pas */
}

.swiper-slide {
    width: 320px;
    height: 480px;
    /* Transition uniquement pour l'apparence, pas le mouvement (géré par JS/Swiper) */
    transition: opacity 0.4s ease, z-index 0.4s;
    opacity: 0.5;
    z-index: 1;
    margin: 0 20px;
    /* Espace entre les cartes */

    /* CRUCIAL : La boîte invisible du slide ne doit JAMAIS bloquer la souris */
    pointer-events: none;

    transform-style: preserve-3d;
}

.swiper-slide-active {
    opacity: 1;
    z-index: 50;
    /* Passe devant tout le monde */
}


/* --- DESIGN DES CARTES (VIGNETTES) --- */

.vignette {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;

    /* GLASSMORPHISM PROPRE */
    background: rgba(20, 25, 30, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* IMPORTANT : On réactive la souris UNIQUEMENT sur la carte visuelle */
    pointer-events: auto;
    cursor: pointer;

    transform-style: preserve-3d;
    /* On laisse le JS gérer la transition du transform pour éviter les saccades */
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Lien global couvrant la carte */
.vignette-lien {
    text-decoration: none;
    display: block;
    height: 100%;
    width: 100%;
    pointer-events: auto;
    /* Le lien doit être cliquable */
}

/* Effet Hover (Style de base, l'effet 3D est ajouté par JS) */
.swiper-slide-active .vignette:hover {
    border-color: rgba(104, 253, 214, 0.4);
    background: rgba(20, 25, 30, 0.90);
}

/* ICÔNE */
.icone {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 25px;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.swiper-slide-active .vignette:hover .icone {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(104, 253, 214, 0.4));
}


/* TITRES */
.vignette h3 {
    font-family: 'H73Bold', sans-serif;
    font-size: 1.3rem;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;

    /* Gestion des titres longs */
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vignette h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: rgba(104, 253, 214, 0.5);
    transition: width 0.3s ease;
}

.swiper-slide-active .vignette:hover h3::after {
    width: 80px;
    background-color: #68fdd6;
}


/* LISTES DE LIENS */
.vignette ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vignette ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: block;
    font-weight: 500;
    pointer-events: auto;
    /* Assure que les liens texte sont cliquables */
}

.vignette ul li a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(104, 253, 214, 0.5);
}


/* --- NAVIGATION (FLÈCHES) --- */
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;

    /* IMPORTANT : On réactive les clics sur les boutons */
    pointer-events: auto;
    z-index: 60;
    /* Au-dessus de tout */
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #68fdd6;
    color: #000;
    box-shadow: 0 0 15px #68fdd6;
}


/* --- PAGINATION (POINTS) --- */
.swiper-pagination {
    pointer-events: auto;
    /* Réactive les clics sur les points */
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #68fdd6;
    width: 24px;
    border-radius: 4px;
}


/* --- FOOTER --- */
.bottompage {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: auto;
}

/* CONFIGURATION 3D SWIPER + TILT */

.swiper-wrapper {
    transform-style: preserve-3d;
}

.swiper-slide {
    perspective: 1000px;
    transform-style: preserve-3d;
    overflow: visible !important;
    z-index: 1;
    /* Transition fluide pour le z-index aussi */
    transition: z-index 0.3s;
}

/* La slide survolée passe au premier plan UNIQUEMENT si on ne swipe pas */
.swiper-container-wrapper:not(.is-swiping) .swiper-slide:hover {
    z-index: 9999 !important;
}

/* CONFIGURATION DES VIGNETTES */
a.vignette {
    display: flex !important;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.vignette {
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    /* Transition fluide */
    transition: transform 0.3s ease-out, border-color 0.3s, box-shadow 0.3s;
}

/* Empêche les ombres de Swiper de bloquer la souris */
.swiper-slide-shadow-left,
.swiper-slide-shadow-right,
.swiper-slide-shadow-top,
.swiper-slide-shadow-bottom,
.swiper-slide-shadow {
    pointer-events: none !important;
}

.vignette-cta {
    display: block;
    margin-top: auto;
    color: #68fdd6;
    font-size: 0.9rem;
    text-align: left;
    list-style: none; /* Imite le retrait visuel de l'ancienne balise <ul> */
    padding-left: 1rem;
}