* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f1f5f9;
    --accent: #06b6d4;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
}

/* Wrapper */
.wrapper {
    position: relative;
    z-index: 1;
}

/* Animation Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: drift 20s ease-in-out infinite;
}

.animated-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 45% 15%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 75% 35%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 85% 65%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 25% 75%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 55% 85%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 35% 45%, rgba(59, 130, 246, 0.4), transparent),
        radial-gradient(1px 1px at 65% 55%, rgba(139, 92, 246, 0.3), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.25;
}

/* Stars Canvas */
.stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -50px); }
}

/* Étoiles filantes */
.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    height: 2px;
    border-radius: 50%;
    animation: shootingStar linear infinite;
    opacity: 0;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-45deg);
    }
    5% {
        opacity: 1;
    }
    70% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateX(-500px) translateY(500px) rotate(-45deg);
    }
}

.shooting-star:nth-child(1) {
    top: 10%;
    left: 90%;
    width: 100px;
    background: linear-gradient(90deg, #3b82f6, transparent);
    box-shadow: 0 0 8px 2px rgba(59, 130, 246, 0.3);
    animation-duration: 2.8s;
    animation-delay: 2s;
}

.shooting-star:nth-child(2) {
    top: 55%;
    left: 70%;
    width: 85px;
    background: linear-gradient(90deg, #8b5cf6, transparent);
    box-shadow: 0 0 8px 2px rgba(139, 92, 246, 0.3);
    animation-duration: 3.2s;
    animation-delay: 17s;
}

.shooting-star:nth-child(3) {
    top: 30%;
    left: 95%;
    width: 95px;
    background: linear-gradient(90deg, #06b6d4, transparent);
    box-shadow: 0 0 8px 2px rgba(6, 182, 212, 0.3);
    animation-duration: 3s;
    animation-delay: 32s;
}

.shooting-star:nth-child(4) {
    top: 70%;
    left: 80%;
    width: 90px;
    background: linear-gradient(90deg, #ffffff, transparent);
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.25);
    animation-duration: 2.9s;
    animation-delay: 47s;
}

/* Bandeau Annonce */
.announcement-banner {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    padding: 1rem 2rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.announcement-banner span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Header & Nav */
header {
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 100px rgba(59, 130, 246, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
}

.nav-left {
    display: flex;
    align-items: center;
}

.btn-home {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--light);
}

.btn-home:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 
                0 0 30px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin-left: auto;
    margin-bottom: 0;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-links a:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 
                0 0 30px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin: 0 auto 2rem;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s ease-out;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.5));
    transition: transform 0.3s ease;
}

.hero-logo-img:hover {
    transform: scale(1.05) rotate(5deg);
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    font-weight: 800;
    letter-spacing: -2px;
}

.tagline {
    font-size: 1.3rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* IP Display Section */
.server-ip-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 3rem 0;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.server-ip-display {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--primary);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.server-ip-display:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.35);
}

.ip-icon {
    font-size: 1.5rem;
}

.ip-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ip-address {
    font-size: 1.3rem;
    font-weight: 700;
}

.ip-version {
    font-size: 0.85rem;
    opacity: 0.8;
}

.copy-button {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Features Grid */
.features-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card-modern:hover::before {
    opacity: 1;
}

.feature-card-modern > * {
    position: relative;
    z-index: 1;
}

.feature-card-modern:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.feature-icon-modern {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
    transition: transform 0.3s ease;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.1) translateY(-5px);
}

.feature-card-modern h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-card-modern p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Section Title */
.section-title-modern {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle-modern {
    text-align: center;
    color: #94a3b8;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Section */
.stats-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Footer Modern */
footer.footer-modern {
    margin-top: 6rem;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.footer-content-modern {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section-modern h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-about-modern p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links-modern {
    list-style: none;
    padding: 0;
}

.footer-links-modern li {
    margin-bottom: 0.75rem;
}

.footer-links-modern a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links-modern a:hover {
    color: var(--primary);
}

.footer-bottom-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .footer-content-modern {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .server-ip-section {
        flex-direction: column;
    }

    .server-ip-display {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ip-text {
        align-items: center;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem 2rem;
    }

    .nav-left {
        width: 100%;
        justify-content: center;
    }

    .btn-home {
        width: 100%;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        gap: 0.75rem;
        padding: 0;
        margin-bottom: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .section-title-modern {
        font-size: 2rem;
    }

    .announcement-banner {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 640px) {
    header {
        padding: 1rem 0;
    }

    nav {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .server-ip-display {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .copy-button {
        width: 100%;
    }

    .footer-content-modern {
        grid-template-columns: 1fr;
    }
}