/* ========================================
   HEADER.CSS - Header et navigation
   ======================================== */

/* Header principal */
.header {
    background: linear-gradient(135deg, #006b8f 0%, #00a8cc 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    height: 50px;
    transition: height 0.3s;
}

/* ========================================
   NAVIGATION DESKTOP
   ======================================== */

.nav-desktop {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links a.active {
    border-bottom-color: white;
}

/* ========================================
   NAVIGATION MOBILE
   ======================================== */

.nav-mobile {
    display: none;
    align-items: center;
    gap: 15px;
}

/* Bouton CTA */
.cta-button {
    background: rgba(255,255,255,0.15) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    white-space: nowrap;
}

.cta-button:hover {
    background: white !important;
    color: #00a8cc !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Bouton burger */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    min-width: 44px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.burger-menu span {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: all .3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Animation burger */
.burger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(2px, 2px);
}

.burger-menu.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* ========================================
   MENU MOBILE OVERLAY
   ======================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #006b8f 0%, #00a8cc 100%);
    padding: 80px 30px 30px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1001;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
    background: rgba(255,255,255,0.2);
    transform: scale(0.95);
}

.mobile-menu-close svg {
    pointer-events: none;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-menu-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: padding-left 0.3s;
}

.mobile-menu-links a:hover {
    padding-left: 10px;
}

.mobile-menu-links a.active {
    border-left: 3px solid white;
    padding-left: 15px;
}

/* Amélioration tactile pour mobile */
.mobile-menu-close,
.burger-menu {
    -webkit-tap-highlight-color: rgba(255,255,255,0.2);
    touch-action: manipulation;
}

/* ========================================
   RESPONSIVE - HEADER
   ======================================== */

@media (max-width: 968px) {
    .header-container {
        padding: 0 15px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .logo {
        height: 40px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: flex;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .cta-button {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
}

/* À AJOUTER À LA FIN DE header.css */

/* Header devient semi-transparent au scroll */
.header {
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(0, 61, 82, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled .logo {
    height: 40px;
}

/* Animation plus fluide du burger */
.burger-menu span {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Menu mobile avec backdrop blur */
.mobile-menu-overlay {
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.6);
}

/* Entrée plus smooth du menu mobile */
.mobile-menu {
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet de glow sur le CTA button */
.cta-button {
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease !important;
}

.cta-button:hover {
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 480px) {
    .logo {
        height: 35px;
    }
    
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
}

/* Classe pour bloquer le scroll quand le menu mobile est ouvert */
.no-scroll {
    overflow: hidden;
    height: 100vh;
}