/* ========================================
   Navigation Réalisations - JS Version
   ======================================== */

   .header-realisation {
position: relative;
}

/* Loader */
.nav-loader {
    text-align: center;
    color: rgba(255,255,255,0.7);
    padding: 1rem;
    font-size: 0.9rem;
}

/* Wrapper de navigation */
.realisation-nav-wrapper {
    position: absolute;
    width: 100%;
    max-width: 100%;
    top: calc(50% - 110px);
    left: 0;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    font-family: var(--wp--preset--font-family--satoshi);
}

/* Liens de navigation */
.realisation-nav-wrapper .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.08);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 220px;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.realisation-nav-wrapper .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.realisation-nav-wrapper .nav-link:hover::before {
    left: 100%;
}

.realisation-nav-wrapper .nav-link:hover {
    background: var(--wp--preset--color--accent);
}

.realisation-nav-wrapper .nav-link.nav-disabled {
    opacity: 0;
    pointer-events: none;
}



/* Icônes */
.realisation-nav-wrapper .nav-icon {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    opacity: 0.9;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.realisation-nav-wrapper  .nav-link:hover .nav-icon {
    transform: scale(1.2);
}

.realisation-nav-wrapper  .nav-prev:hover .nav-icon {
    transform: translateX(-4px) scale(1.2);
}

.realisation-nav-wrapper .nav-next:hover .nav-icon {
    transform: translateX(4px) scale(1.2);
}

/* Titres des réalisations */
.realisation-nav-wrapper .nav-text {
    font-size: 1rem;
    letter-spacing: .25rem;
    text-transform: uppercase;
}
.realisation-nav-wrapper .nav-title {
    font-size: 1.05rem;
    font-weight: bold;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 280px;
    padding: 0 .5rem;
    text-transform: uppercase;
    color: white;
}

.realisation-nav-wrapper .nav-prev .nav-title {
    text-align: left;
}

.realisation-nav-wrapper .nav-next .nav-title {
    text-align: right;
}

/* Lien grille centrale */
.nav-grid {
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.5rem 2.5rem;
    text-align: center;
    justify-content: center;
    min-width: 180px;
}

.nav-grid .nav-icon {
    font-size: 2rem;
}

.nav-grid .nav-label {
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0.02em;
    opacity: 1;
    font-weight: 500;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .realisation-nav-wrapper {
        gap: 1rem;
    }

    .nav-title {
        max-width: 200px;
        font-size: 0.95rem;
    }

    .nav-grid {
        min-width: 150px;
        padding: 1.25rem 1.75rem;
    }
}

@media (max-width: 768px) {
    .header-realisation {
        padding: 1.5rem 1rem;
    }

    .realisation-nav-wrapper {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .realisation-nav-wrapper .nav-link {
        width: 100%;
        padding: 1rem 1.25rem;
    }

    .realisation-nav-wrapper .nav-prev,
    .realisation-nav-wrapper .nav-next {
        max-width: 100%;
    }

    .nav-grid {
        order: -1;
        min-width: auto;
        width: 100%;
    }

    .nav-title {
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

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

    .nav-grid .nav-icon {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .header-realisation {
        padding: 1rem 0.75rem;
    }

    .realisation-nav-wrapper .nav-link {
        padding: 0.875rem 1rem;
    }

    .nav-title {
        font-size: 0.9rem;
    }

    .nav-grid .nav-label {
        font-size: 0.8rem;
    }

    .nav-icon {
        font-size: 1.35rem;
    }
}

/* ========================================
   Animations d'entrée
   ======================================== */

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

.realisation-nav-wrapper {
    animation: slideIn 0.6s ease-out;
}

.nav-link {
    animation: slideIn 0.6s ease-out backwards;
}

.nav-prev {
    animation-delay: 0.1s;
}

.nav-grid {
    animation-delay: 0.2s;
}

.nav-next {
    animation-delay: 0.3s;
}