/* Header Component Styles */
:root,
html,
body {
    --header-height: 80px;
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --primary-color: #0EA5E9;
    --primary-hover: rgba(14, 165, 233, 0.1);
    --text-color: #1A202C;
    --text-light: #4A5568;
}

/* Add margin to body to account for fixed header */
body {
    padding-top: var(--header-height);
    margin: 0;
}

/* Header Base */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px) saturate(180%);
    -webkit-backdrop-filter: blur(6px) saturate(180%);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--header-shadow);
}

/* Center logo */
header img.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 1301px) {
    header {
        padding: 1.5rem 2.5rem;  /* Plus grand padding sur desktop */
    }
}

/* Brand */
.header-left {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-link img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand-name {
    font-weight: 700;
    font-size: 1.66rem;
    color: var(--text-color);
}

/* Navigation */
.header-nav {
    display: flex;
    gap: 2rem;
}

.header-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 2px;
    position: relative;
    transition: color 0.2s ease;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.header-nav a:hover {
    color: var(--primary-color);
}

.header-nav a:hover::after {
    width: 100%;
}

/* Right Section */
.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s ease;
}

.login-btn:hover {
    background: var(--primary-hover);
}

.cta-btn {
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(107, 70, 193, 0.4);
}

.mobile-menu-btn .close-icon {
    display: none;
}

.mobile-menu-btn.active .menu-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: inline-block;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    height: auto;
    padding: 10vh 2rem 1rem;
    overflow-y: auto;
    position: relative;
}

/* Language Selector in Mobile Menu */
.mobile-menu-content .language-selector {
    position: absolute;
    top: 2rem;
    right: 2rem;
    margin: 0;
}

.mobile-menu-content .language-selector select {
    background: rgba(107, 70, 193, 0.1);
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    color: #2D3748;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 0.8rem;
    padding-right: 1.8rem;
}

.mobile-menu-content .language-selector select:hover {
    background: rgba(107, 70, 193, 0.2);
    border-color: #6B46C1;
}

.mobile-menu-content .language-selector select:focus {
    outline: none;
    background: rgba(107, 70, 193, 0.2);
    border-color: #6B46C1;
    box-shadow: 0 0 0 2px rgba(107, 70, 193, 0.1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0;
    width: 100%;
    max-width: 280px;
}

.mobile-nav-links a {
    font-size: 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.9rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(107, 70, 193, 0.1);
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

.mobile-auth-links {
    margin-top: 2rem;
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.mobile-auth-links .login-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    background: rgba(107, 70, 193, 0.1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-auth-links .login-btn:hover {
    background: rgba(107, 70, 193, 0.2);
}

.mobile-logo {
    margin-bottom: 0.1rem;
}

.mobile-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 1300px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    header {
        padding: 1rem;
    }

    .brand-name {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .header-right .cta-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: calc(var(--header-height) + 2rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(107, 70, 193, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    width: 90%;
    max-width: 320px;
    margin: 0 auto;
    box-sizing: border-box;
}

.notification.show {
    opacity: 1;
    visibility: visible;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.notification-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-text h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-text p {
    margin: 0.2rem 0 0;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .notification {
        width: calc(100% - 2rem);
        top: calc(var(--header-height) + 1rem);
        padding: 0.625rem 1rem;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .notification-text h4 {
        font-size: 0.875rem;
    }

    .notification-text p {
        font-size: 0.8rem;
    }
} 