.header {
    display: flex;
    justify-content: space-between;
    position: fixed;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px;
}

/* Desktop center links */
.header-mobile-links {
    display: none;
}

.header-home-container {
    flex: 1;
}

.header-right-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Desktop header styling */
@media (min-width: 900px) {
    .header {
        background: white;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 15px 20px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 20px;
    }

    .header-home-container {
        display: flex;
        align-items: center;
    }

    .header-mobile-links {
        display: flex;
        gap: 24px;
        align-items: center;
        justify-content: center;
    }

    .header-mobile-links a {
        color: #000;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.3s;
    }

    .header-mobile-links a:hover {
        color: #A981BB;
    }

    .header-right-container {
        display: flex;
        justify-content: flex-end;
    }
}

.header-home-container-block {
    cursor: pointer;
}

.rival-logo {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    font-family: sans-serif;
    text-decoration: none;
    letter-spacing: -0.7px;
    display: flex;
    align-items: center;
}

.rival-logo img {
    height: 24px;
    width: auto;
}

.rival-logo span {
    font-size: 20px;
    font-weight: 600;
    color: #A981BB;
    text-decoration: none;
}

.header-right-container {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.header-home-container-block-button {
    background-color: #A981BB;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    font-weight: 500;
    font-size: 13px;
}

/* Desktop Auth Buttons */
.header-auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-login-button {
    background-color: transparent;
    color: #000;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.header-login-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

.header-register-button {
    background-color: #A981BB;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 13px;
}

.header-register-button:hover {
    background-color: #8a6b9c;
    transform: translateY(-1px);
}

/* Hide login button and locale switcher on mobile, keep register button */
@media (max-width: 899px) {
    .header-login-button,
    .header-locale-switcher {
        display: none !important;
    }

    .header-auth-buttons {
        gap: 0;
    }

    .header-register-button {
        display: inline-block;
    }

    .header-right-container {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}
}

/* Menu Overlay - Vooban Inspired Design */
.menu-overlay {
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 200000;
    background: #ffffff;
    top: 0;
    right: -100%;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header du menu avec logo et bouton close */
.menu-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.menu-overlay-logo {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    font-family: sans-serif;
    text-decoration: none;
    letter-spacing: -0.7px;
}

.menu-overlay-logo span {
    color: #A981BB;
}

.menu-overlay-container-close {
    display: flex;
    justify-content: flex-end;
    padding: 0;
}

.menu-overlay-container-close svg {
    cursor: pointer;
    transition: all 0.3s ease;
    stroke: #fff;
    background: #A981BB;
    border-radius: 6px;
    padding: 8px;
    width: 26px;
    height: 26px;
}

.menu-overlay-container-close svg:hover {
    background: #8a6b9c;
}

/* Container des liens au milieu */
.menu-overlay-container-list-link {
    padding: 0 0px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.menu-overlay-container-list-link ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-overlay-container-list-link ul li {
    margin-bottom: 8px;
}

.menu-overlay-container-list-link ul li a {
    color: #000;
    font-size: 24px;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.menu-overlay-container-list-link ul li a:hover {
    color: #A981BB;
}

/* Liens légaux */
.menu-overlay-legal-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 0 20px 16px 20px;
}

.menu-overlay-legal-links a {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-overlay-legal-links a:hover {
    color: #A981BB;
}

/* Locale Switcher dans le menu overlay */
.menu-overlay-locale {
    margin: 0 20px 12px 20px;
}

.menu-overlay-locale .locale-switcher-button {
    background: transparent;
    border: 1px solid #A981BB;
    padding: 12px 16px;
    width: fit-content;
    font-size: 14px;
    font-weight: 400;
}

.menu-overlay-locale .locale-switcher-button:hover {
    background: #A981BB;
    color: #fff;
}

.menu-overlay-locale .locale-dropdown {
    position: static;
    box-shadow: none;
    background: transparent;
    margin-top: 8px;
}

.menu-overlay-locale .locale-option {
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.menu-overlay-locale .locale-option:hover {
    background: rgba(169, 129, 187, 0.08);
}

/* Bouton en bas (logout) */
.creator-link {
    display: inline-block;
    margin: 0 20px 20px 20px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background: #A981BB;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    width: fit-content;
}

.header-home-container-block a {
    text-decoration: none;
}

.header-home-container-block-profil-block {
    width: 33px;
    height: 33px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: #A981BB;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.header-home-container-block-profil-block img {
    border-radius: 3px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-home-container-block-right {
    display: flex;
    align-items: center;
    gap: 9px;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Header Icons */
.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.header-icon:hover {
    background: rgba(169, 129, 187, 0.1);
}

.header-icon svg {
    width: 22px;
    height: 22px;
    stroke: #333;
}

.header-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.header-icon.profile-icon {
    background: linear-gradient(135deg, rgba(169, 129, 187, 0.2) 0%, rgba(139, 107, 160, 0.2) 100%);
}

.header-icon.profile-icon svg {
    stroke: #A981BB;
}

/* Hide menu icon on desktop */
@media (min-width: 900px) {
    .header-menu-icon {
        display: none !important;
    }
}

/* Notification Badge */
.notification-dot {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #A981BB 0%, #8B6BA0 100%);
    color: #ffffff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(169, 129, 187, 0.4),
                0 0 0 2px #ffffff;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
    box-sizing: border-box;
}

.notification-dot:not(.hidden) {
    animation: notificationPulse 2s ease-in-out infinite;
}

.notification-dot.hidden {
    display: none;
}

/* Animation for new notifications */
@keyframes notificationPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(169, 129, 187, 0.4),
                    0 0 0 2px #ffffff;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 12px rgba(169, 129, 187, 0.6),
                    0 0 0 2px #ffffff;
    }
}

@media(min-width: 900px) {
    .menu-overlay {
        width: 320px;
    }
}

