/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
header.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Logo */
header .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

header .nav-logo {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

/* Menu burger */
header .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: transform 0.3s ease;
}

header .menu-toggle:hover {
    transform: scale(1.1);
}

/* Navigation */
header .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

header .nav-link,
header .nav-button {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

header .nav-link i, 
header .nav-link .icon,
header .nav-button i,
header .nav-button .icon {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    line-height: 1;
}

header .nav-link:hover,
header .nav-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

header .nav-link:active,
header .nav-button:active {
    color: var(--primary-color);
}

header .share-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

header .share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

header .logout-button {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .logout-button:hover {
    background-color: rgba(255, 68, 68, 0.1);
    transform: rotate(90deg);
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    header .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    header .nav-right {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 1000;
        padding: 80px 20px 20px 20px;
        height: 100vh;
        width: 100vw;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    header .nav-right.active {
        display: flex !important;
        opacity: 1;
        visibility: visible;
    }

    header .nav-right .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        max-width: 300px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 50px;
        margin: 0.3rem 0;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
    }

    header .nav-right .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: scale(1.02);
    }

    header .nav-right .share-button {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
        margin: 0.3rem 0;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header .nav-right .logout-button {
        margin: 2rem 0;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        background-color: rgba(255, 68, 68, 0.1);
        color: #ff4444;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header .nav-right .logout-button:hover {
        background-color: rgba(255, 68, 68, 0.2);
    }
} 

/* Sélecteur de langue */
.language-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    margin: 0 10px;
}

.language-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.language-toggle .fa-globe {
    font-size: 1.2em;
}

.current-language {
    font-size: 0.9em;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .language-toggle {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.05);
        padding: 1rem 2rem;
        margin: 8px 0;
        min-height: 50px;
    }
} 

/* Navigation */
header .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

header .nav-link.contact-icon {
    font-size: 1.2em;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    margin: 0 10px;
}

header .nav-link.contact-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
} 

/* Styles spécifiques pour les icônes du header en desktop */
@media screen and (min-width: 769px) {
    header .nav-link.contact-icon,
    header .language-toggle,
    header .nav-link[href="/account"],
    header .logout-button {
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: all 0.3s ease;
        margin: 0 5px;
        width: auto;
        padding: 0px 10px;
    }

    header .nav-link.contact-icon:hover,
    header .language-toggle:hover,
    header .nav-link[href="/account"]:hover,
    header .logout-button:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    header .nav-link.contact-icon i,
    header .language-toggle i,
    header .nav-link[href="/account"] i,
    header .logout-button i {
        font-size: 1.2rem;
    }

    /* Ajustement de l'espacement entre les icônes */
    header .nav-right {
        gap: 0.8rem;
    }
} 