/* Styles pour la navigation avec excerpt */

.sibling-navigation {
    position: absolute;
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.5rem;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    --excerpt-max-lines: 2;
}

/* Boutons */
.sibling-navigation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background-color: rgb(0 0 0 / .4);
    border: 1px solid #0F1E4A;
    transition: all 0.3s ease;
    width: 220px;
    height: 220px;

}

.sibling-navigation a:hover {
    color:#fff;
    background-color: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
    transform: translateY(-3px);
}

/* Boutons désactivés (placeholders) */
.sibling-navigation .disabled {
    flex: 1;
    opacity: 0;
    pointer-events: none;
}

/* Bouton Précédent */
.nav-prev {
    justify-content: flex-start;
}

/* Bouton Suivant */
.nav-next {
    justify-content: flex-end;
    text-align: right;
}

/* Flèches */
.nav-arrow {
    margin-top: 0.25rem;
}



/* Labels container */
.nav-label {
    /* display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0; Important pour le text-overflow */
}

/* Direction (Précédent/Suivant) */
.nav-direction {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0073aa;
    letter-spacing: 1px;
}

/* Titre de la page */
.nav-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Excerpt */
.nav-excerpt {
    font-size: 1rem;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.5;
    letter-spacing: 2px;
    margin-top: 0.25rem;
    font-weight: 400;
    text-align: center;
    /* Limiter le nombre de lignes */
    display: -webkit-box;
    -webkit-line-clamp: var(--excerpt-max-lines, 2);
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-excerpt span {
    font-size: .75rem;
    letter-spacing: 1px;
}

/* Style au survol - rendre l'excerpt plus visible */
.sibling-navigation a:hover .nav-excerpt {
}

/* Responsive */
@media (max-width: 968px) {
    .sibling-navigation {
        gap: 1rem;
        top: 100%;
        transform: translateY(-100%);
    }
    
    .sibling-navigation a {
        padding: 1rem;
        width: 60px;
        height: 60px;
    }
    
    .nav-title {
        font-size: 1rem;
    }
    .nav-excerpt {
        display: none;
    }

}

@media (max-width: 768px) {
    .sibling-navigation {
        gap: 1rem;
    }

   
    
    .nav-arrow {
        font-size: 1.5rem;
    }

}

@media (max-width: 480px) {
    .nav-excerpt {
        -webkit-line-clamp: 1;
    }
}

/* Variante sans excerpt (si besoin de l'activer/désactiver) */
.banniere-navigation.no-excerpt .nav-excerpt {
    display: none;
}

/* Variante compacte */
.banniere-navigation.compact .sibling-navigation {
    padding: 1rem 0;
    margin: 1rem 0;
}

.banniere-navigation.compact .sibling-navigation a {
    padding: 0.875rem 1rem;
}

.banniere-navigation.compact .nav-title {
    font-size: 0.9375rem;
}

.banniere-navigation.compact .nav-excerpt {
    font-size: 0.8125rem;
    -webkit-line-clamp: 1;
}

/* Variante avec fond coloré */
.banniere-navigation.colored .sibling-navigation a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.banniere-navigation.colored .nav-direction,
.banniere-navigation.colored .nav-title,
.banniere-navigation.colored .nav-arrow,
.banniere-navigation.colored .nav-excerpt {
    color: white;
}

.banniere-navigation.colored .sibling-navigation a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Variante carte élégante */
.banniere-navigation.elegant .sibling-navigation a {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
}

.banniere-navigation.elegant .sibling-navigation a:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}