/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    padding: 2rem 1rem;
    text-align: center;
}

.logo-placeholder {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.logo-container {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.logo {
    width: 200px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Main content */
.main-content {
    flex: 1;
    padding: 0 1rem 2rem;
}

.hero {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 0;
}

.title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #8B2635, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line {
    display: block;
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
}

.title-line:first-child {
    animation-delay: 0.2s;
}

.title-line:last-child {
    animation-delay: 0.4s;
}

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

.subtitle {
    font-size: 1.25rem;
    color: #b0b0b0;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

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

/* Progress bar */
.progress-container {
    max-width: 400px;
    margin: 0 auto 3rem;
    animation: fadeIn 1s ease-out 0.8s forwards;
    opacity: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B2635, #D4AF37);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #888888;
    font-weight: 500;
}

/* Notification form */
.notification-form {
    max-width: 400px;
    margin: 0 auto 3rem;
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.form-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.email-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.submit-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8B2635, #D4AF37);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    font-size: 0.875rem;
    min-height: 1.2em;
    transition: all 0.3s ease;
}

.form-message.success {
    color: #48bb78;
}

.form-message.error {
    color: #f56565;
}

/* Catalog download section */
.catalog-download {
    margin-top: 3rem;
    animation: fadeIn 1s ease-out 1.2s forwards;
    opacity: 0;
}

.catalog-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    will-change: transform;
}

/* Animation de brillance optimisée - désactivée par défaut pour la performance */
.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.3s ease;
    pointer-events: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Animation de brillance uniquement au survol et uniquement sur les écrans performants */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .download-btn:hover::before {
        left: 100%;
    }
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-btn svg {
    width: 24px;
    height: 24px;
    /* Animation de bounce désactivée pour la performance */
}

/* Animation de bounce optimisée - uniquement sur les écrans performants */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .download-btn svg {
        animation: bounce 2s infinite;
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-3px);
        }
        60% {
            transform: translateY(-2px);
        }
    }
}

/* Features section */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    animation: fadeIn 1s ease-out 1.2s forwards;
    opacity: 0;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #b0b0b0;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: #888888;
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }
    
    .title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .form {
        flex-direction: column;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .feature-item {
        padding: 1.5rem 1rem;
    }
    
    .features {
        padding: 2rem 0;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid #8B2635;
    outline-offset: 2px;
}

/* Optimisations de performance pour les animations */
@media (max-width: 767px) {
    .download-btn {
        transition: transform 0.15s ease;
    }
    
    .download-btn:hover {
        transform: translateY(-1px);
    }
}

/* Désactiver les animations si l'utilisateur préfère réduire les mouvements */
@media (prefers-reduced-motion: reduce) {
    .download-btn {
        transition: none;
    }
    
    .download-btn:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        background: #1a1a1a;
    }
    
    .download-btn::before {
        display: none;
    }
}
