/**
 * Styles Header + Navigation Purple Telecom (Light Mode du Dashboard)
 * Emplacement : /home/yqqyvar/domains/purpletelecom.fr/public_html/assets/css/header-navigation.css
 * Permissions : 0644
 * Version : 2.0.0 - Couleurs du Dashboard
 */

/* ===== VARIABLES COULEURS DASHBOARD ===== */
:root {
    /* Reprise exacte du dashboard light mode */
    --primary: #9b59b6;
    --secondary: #8e44ad;
    --accent: #3498db;
    --accent-light: #5dade2;
    --purple-light: #bb8fce;
    --text-dark: #203859;
    --text-medium: #4a4a6a;
    --light-bg: #ffffff;
    --light-border: rgba(155, 89, 182, 0.15);
    --light-bg-secondary: #f8f9fa;
    --light-shadow: rgba(0, 0, 0, 0.1);
}

/* ===== LOGO HEADER (STYLE DASHBOARD) ===== */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.header-logo-text {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.header-logo-text .logo-purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-logo-text .logo-telecom {
    color: #203859;
}

.header-logo-text .logo-r {
    font-size: 16px;
    font-weight: 400;
    color: #9b59b6;
    vertical-align: super;
    margin-left: 2px;
    animation: floatRegistered 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes floatRegistered {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(5deg);
    }
    75% {
        transform: translateY(3px) rotate(-5deg);
    }
}

.header-logo-text:hover {
    text-decoration: none;
}

/* ===== HEADER PRINCIPAL (STYLE DASHBOARD) ===== */
.header-main {
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(155, 89, 182, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
}

/* ===== BANDEAU MAINTENANCE ===== */
.site-notice {
    background: linear-gradient(90deg, #3498db 0%, #9b59b6 50%, #3498db 100%);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    animation: gradient-shift 10s ease infinite;
    background-size: 200% 100%;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.notice-text {
    max-width: 1200px;
    margin: 0 auto;
    font-weight: 500;
}

/* ===== CONTAINER HEADER ===== */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== NAVIGATION PRINCIPALE ===== */
.nav-main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: #203859;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: #9b59b6;
}

.nav-link.active {
    color: #9b59b6;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* ===== DROPDOWN MENU ===== */
.nav-item-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.12);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(155, 89, 182, 0.15);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #203859;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #e8daef;
    color: #9b59b6;
}

/* ===== BOUTON MON ESPACE ===== */
.nav-espace {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f5fa;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(155, 89, 182, 0.15);
}

.nav-espace:hover {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white !important;
    border-color: transparent;
}

.nav-espace:hover svg {
    stroke: white;
}

/* ===== BOUTON TÉLÉPHONE CTA ===== */
.cta-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cta-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.25);
}

/* ===== MENU MOBILE ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #203859;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== NAVIGATION MOBILE ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(155, 89, 182, 0.15);
    transition: right 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-content {
    padding: 30px;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 0;
    color: #203859;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid rgba(155, 89, 182, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #9b59b6;
    padding-left: 10px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

/* ===== CTA BUTTON MOBILE ===== */
.cta-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-main {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-container {
        padding: 10px 15px;
    }
    
    .header-logo-text {
        font-size: 20px;
    }
    
    .header-logo-text .logo-r {
        font-size: 14px;
    }
    
    .site-notice {
        font-size: 12px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .header-logo-text {
        font-size: 18px;
    }
}