/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    height: 100px; /* Hauteur fixe de 100px pour meilleure visibilité */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px; /* Augmenté de 1200px à 1400px pour plus d'espace */
    margin: 0 auto;
    padding: 0 20px; /* Réduit de 30px à 20px pour utiliser plus d'espace écran */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem; /* Réduit de 2rem à 1rem pour resserrer */
}

.nav-logo {
    margin-right: auto; /* Pousse le logo vers la gauche */
    margin-left: -10px; /* Léger décalage maintenant qu'on a plus d'espace */
    margin-right: 2rem; /* Espace entre Portfolio et le bouton Accueil */
}

.nav-logo h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem; /* Augmenté de 1rem à 1.1rem */
    padding: 0.8rem 1.4rem; /* Réduit le padding horizontal pour resserrer */
    min-width: max-content; /* Empêche le retour à la ligne */
    white-space: nowrap; /* Force le texte sur une seule ligne */
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.nav-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 2rem; /* Espace entre le menu navigation et les boutons sociaux */
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Augmenté de 40px à 50px */
    height: 50px; /* Augmenté de 40px à 50px */
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.4rem; /* Augmenté de 1.2rem à 1.4rem */
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Pop-up pour les informations de contact */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.contact-popup-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.contact-popup h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-popup p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.popup-contact-info {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    word-break: break-all;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.popup-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.popup-btn.copy {
    background: var(--gradient-secondary);
    color: white;
}

.popup-btn.copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.popup-btn.close {
    background: #e2e8f0;
    color: var(--text-dark);
}

.popup-btn.close:hover {
    background: #cbd5e0;
}

/* Menu hamburger pour mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Navigation */
@media (max-width: 900px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        padding-top: 3rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 50px;
        min-width: 200px;
        text-align: center;
    }
    
    .nav-social {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .social-link {
        width: 55px; /* Augmenté de 50px à 55px pour mobile */
        height: 55px; /* Augmenté de 50px à 55px pour mobile */
        font-size: 1.6rem; /* Augmenté de 1.5rem à 1.6rem pour mobile */
    }
    
    .hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .nav-logo h3 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        padding-top: 2rem;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        min-width: 180px;
    }
}

/* Animation pour les liens de navigation */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Effet de glow sur la navigation */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

/* Animation de chargement pour la navigation */
@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    animation: navSlideIn 0.6s ease;
}

/* Indicateur de page active dans la navigation */
.nav-link.current-page {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.nav-link.current-page:hover {
    background: var(--gradient-violet);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
}