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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    min-height: 100vh;
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle at 25% 25%, #1a1a2e 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, #16213e 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow-x: hidden;
    position: relative;
}

.container {
    text-align: center;
    max-width: 700px;
    padding: 3rem 2rem;
    position: relative;
    z-index: 10;
}

.logo {
    width: 320px;
    height: auto;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInScale 1.2s ease-out 0.3s forwards;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.title {
    font-size: 2.4rem;
    font-weight: 200;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 300;
}

.contact-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.6s forwards;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    color: #f1f5f9;
}

.contact-description {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.contact-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-btn.linkedin {
    border-color: rgba(10, 102, 194, 0.3);
}

.contact-btn.linkedin:hover {
    border-color: rgba(10, 102, 194, 0.6);
    box-shadow: 0 10px 20px rgba(10, 102, 194, 0.2);
}

.newsletter-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.newsletter-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    color: #f1f5f9;
}

.newsletter-description {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 280px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.email-input::placeholder {
    color: #64748b;
}

.email-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.submit-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
    animation: fadeIn 0.5s ease-out;
    font-size: 0.9rem;
}

/* Particules discrètes */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 21s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; animation-duration: 20s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; animation-duration: 18s; }

/* Animations */
@keyframes fadeInScale {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0% { 
        transform: translateY(100vh) rotate(0deg); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.3; 
    }
    90% { 
        opacity: 0.3; 
    }
    100% { 
        transform: translateY(-100px) rotate(360deg); 
        opacity: 0; 
    }
}

/* Désactiver les animations lors de la soumission ou du rechargement POST */
.no-animations *,
.submitting * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.no-animations .logo,
.no-animations .title,
.no-animations .subtitle,
.no-animations .contact-section,
.no-animations .newsletter-section {
    opacity: 1 !important;
    transform: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }
    
    .logo {
        width: 250px;
        margin-bottom: 2rem;
    }
    
    .title { 
        font-size: 2rem; 
    }
    
    .subtitle { 
        font-size: 0.9rem; 
        margin-bottom: 2rem;
    }
    
    .contact-section,
    .newsletter-section {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .form-group { 
        flex-direction: column; 
        align-items: stretch; 
    }
    
    .email-input { 
        min-width: 100%; 
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 200px;
    }
    
    .title {
        font-size: 1.6rem;
    }
    
    .contact-section,
    .newsletter-section {
        padding: 1.5rem;
    }
}