/* ===== HEADER CSS COMPLET ===== */
/* TOUT le code CSS extrait de style.css pour le header, navigation et fond animé */

/* Fond animé qui fait partie du header */
.animated-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -10;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.shape1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 224, 255, 0.15), transparent 70%);
    top: -20%;
    left: -20%;
    animation: floatingShape1 25s infinite alternate ease-in-out;
}

.shape2 {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(0, 82, 212, 0.15), transparent 70%);
    bottom: -30%;
    right: -30%;
    animation: floatingShape2 30s infinite alternate ease-in-out;
}

@keyframes floatingShape1 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10%, 10%);
    }
}

@keyframes floatingShape2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-10%, -10%);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header and Navigation - FIXED with Frosted Glass Effect */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #0D1117;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(0);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
/* Header Scroll Effect */
header.header-scrolled {
    background-color: rgba(13, 17, 23, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    margin-left: 0.5rem;
    font-size: 0.7rem;
    font-weight: 300;
    line-height: 1;
}

/* Navigation Container */
nav {
    display: flex;
    align-items: center;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    margin-right: 1.5rem;
    position: relative;
}

.nav-highlight {
    position: absolute;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-links li {
    position: relative;
    margin: 0 0.75rem;
}

/* Navigation Hover Effect */
.nav-links li a {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.nav-links li a:hover::before {
    opacity: 1;
}

.nav-links li a.active {
    color: #00E0FF;
}

/* Mobile CTA in Nav Links */
.nav-links .mobile-cta {
    display: none;
    margin-top: 1rem;
    width: 80%;
    text-align: center;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #E6E6E6;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* CTA Button */
.cta-button {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(90deg, #00E0FF, #0052D4);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.5);
}

/* Styles pour la recherche dans le header */
.header-search {
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
}

.header-search .search-wrapper {
    margin: 0;
}

.header-search .search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    padding: 8px 35px 8px 12px;
    border-radius: 25px;
    width: 100%;
    transition: all 0.3s ease;
}

.header-search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-search .search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00E0FF;
    box-shadow: 0 0 0 2px rgba(0, 224, 255, 0.2);
    outline: none;
}

.header-search .search-icon {
    color: rgba(255, 255, 255, 0.6);
}

.header-search .search-clear {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-search .search-clear:hover {
    color: #00E0FF;
}

/* ===== RESPONSIVE DESIGN COMPLET ===== */

/* Recherche responsive */
@media (max-width: 768px) {
    .header-search {
        max-width: 200px;
        margin: 0 10px;
    }

    .header-search .search-input {
        font-size: 14px;
        padding: 6px 30px 6px 10px;
    }
}

/* RESPONSIVE DESIGN COMPLET - SECTION PRINCIPALE */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .desktop-cta {
        display: none;
    }

    .nav-highlight {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    /* Mobile Menu - Fixed Overlay with CTA */
    body.menu-open .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #0D1117;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 50;
    }

    /* Show mobile CTA in mobile view */
    .nav-links .mobile-cta {
        display: block;
    }

    body.menu-open .nav-links li {
        margin: 1rem 0;
    }

    body.menu-open .nav-links li a {
        font-size: 1.2rem;
    }

    /* Hamburger to X Animation */
    body.menu-open .hamburger-menu span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    body.menu-open .hamburger-menu span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .hamburger-menu span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem;
    }

    .logo-text {
        font-size: 0.6rem;
    }

    .header-search {
        max-width: 150px;
        margin: 0 5px;
    }
}