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

:root {
    /* Couleurs Opera GX - Noir et Rouge */
    --primary-color: #FF073A;
    --secondary-color: #CC0000;
    --accent-color: #FF4444;
    --background-color: #000000;
    --surface-color: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #888888;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --gradient-dark: linear-gradient(135deg, #000000, #111111);
    
    /* Shadows */
    --shadow-neon: 0 0 20px rgba(255, 7, 58, 0.5);
    --shadow-red: 0 0 20px rgba(204, 0, 0, 0.5);
    --shadow-accent: 0 0 20px rgba(255, 68, 68, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 4rem 0;
}

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Email Bar (Header) */
.email-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 27, 107, 0.3);
    z-index: 1000;
    padding: 1rem 0;
    transition: transform var(--transition-normal);
}

.email-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.email-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

#emailInput {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    min-width: 280px;
    transition: all var(--transition-normal);
    backdrop-filter: blur(5px);
}

#emailInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
    background: rgba(255, 255, 255, 0.15);
}

#emailInput::placeholder {
    color: var(--text-secondary);
}

.cta-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.25rem;
}

.success-message {
    display: none;
    background: var(--gradient-accent);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    animation: slideInDown 0.5s ease;
}

.success-message.show {
    display: block;
}

/* CTA Buttons */
.cta-button {
    position: relative;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-neon);
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button.secondary {
    background: var(--gradient-accent);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    min-width: 250px;
}

.cta-button.secondary:hover {
    box-shadow: var(--shadow-accent);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover .button-glow {
    left: 100%;
}

.download-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity var(--transition-slow);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.8) 0%, 
        rgba(26, 26, 26, 0.6) 50%, 
        rgba(10, 10, 10, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 0;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 27, 107, 0.5);
}

.title-line-1 {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.title-line-2 {
    display: block;
    color: var(--accent-color);
    font-size: 0.7em;
    margin-top: 0.5rem;
    animation: pulse 3s ease-in-out infinite;
}

.hero-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 27, 107, 0.3);
    transition: all var(--transition-normal);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
    border-color: var(--primary-color);
}

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

/* Particules supprimées - design épuré */
.particles {
    display: none;
}

/* Download Bar (Footer) */
.download-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 255, 136, 0.3);
    z-index: 1000;
    padding: 1.5rem 0;
}

.download-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.download-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 27, 107, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes glow {
    0% { text-shadow: 0 0 30px rgba(255, 7, 58, 0.5); }
    100% { text-shadow: 0 0 50px rgba(255, 7, 58, 0.8), 0 0 70px rgba(204, 0, 0, 0.3); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
    90% { opacity: 0.7; }
}

@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .email-input-group {
        flex-direction: column;
        width: 100%;
    }
    
    #emailInput {
        min-width: 100%;
        max-width: 300px;
    }
    
    .cta-button {
        min-width: 100%;
        max-width: 300px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .feature-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .download-content {
        flex-direction: column;
        text-align: center;
    }
    
    .download-info {
        order: 2;
    }
    
    #downloadCTA {
        order: 1;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 140px;
        padding-bottom: 120px;
    }
    
    .email-bar {
        padding: 0.75rem 0;
    }
    
    .download-bar {
        padding: 1rem 0;
    }
    
    .cta-subtitle {
        font-size: 0.8rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #CCCCCC;
        --text-muted: #999999;
    }
}

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



/* Améliorations pour le design futuriste */
.email-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanline 3s linear infinite;
}

.download-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: scanline 3s linear infinite reverse;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Effets de glitch pour le titre */
.hero-title {
    position: relative;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitch 2s infinite linear alternate-reverse;
}

.hero-title::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-color);
    animation-delay: -1s;
}

.hero-title::after {
    left: -2px;
    text-shadow: 2px 0 var(--secondary-color);
    animation-delay: -0.5s;
}

@keyframes glitch {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(54px, 9999px, 84px, 0); }
    90% { clip: rect(45px, 9999px, 47px, 0); }
    95% { clip: rect(37px, 9999px, 20px, 0); }
    100% { clip: rect(4px, 9999px, 91px, 0); }
}

/* Amélioration des particules avec différentes formes */
.particle.triangle {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 6px solid var(--primary-color);
    border-radius: 0;
}

.particle.square {
    border-radius: 0;
    transform: rotate(45deg);
}

.particle.diamond {
    width: 6px;
    height: 6px;
    background: none;
    border: 2px solid var(--accent-color);
    transform: rotate(45deg);
}

/* Effets de survol améliorés pour les feature items */
.feature-item {
    position: relative;
    overflow: hidden;
}

.feature-item::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.5s ease;
}

.feature-item:hover::before {
    left: 100%;
}

/* Amélioration des boutons CTA avec effet de pulsation */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:active::after {
    width: 300px;
    height: 300px;
}

/* Effet de typing pour les sous-titres */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

/* Amélioration du responsive design */
@media (max-width: 1200px) {
    .hero-features {
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 4rem);
    }
    
    .download-content {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .email-bar {
        padding: 0.5rem 0;
    }
    
    .email-form {
        gap: 0.75rem;
    }
    
    .hero-features {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .feature-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: 200px;
    }
    
    .download-bar {
        padding: 1rem 0;
    }
    
    .download-info h3 {
        font-size: 1.25rem;
    }
    
    .download-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }
    
    .hero-section {
        padding-top: 120px;
        padding-bottom: 100px;
    }
    
    .hero-title {
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: 2rem;
    }
    
    .feature-item {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .feature-icon {
        font-size: 1.25rem;
    }
    
    #emailInput {
        min-width: 100%;
        font-size: 0.9rem;
        padding: 0.6rem 1.25rem;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
        min-width: 180px;
    }
    
    .cta-button.secondary {
        font-size: 1rem;
        padding: 0.8rem 2rem;
        min-width: 220px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }
    
    .feature-item {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
        padding: 0.5rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
}

/* Améliorations pour les écrans haute résolution */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: clamp(4rem, 8vw, 7rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.5rem, 3vw, 2.2rem);
    }
    
    .feature-item {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
    
    .feature-icon {
        font-size: 1.75rem;
    }
}

/* Améliorations pour les écrans ultra-larges */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-section {
        padding-top: 140px;
    }
    
    .email-bar, .download-bar {
        padding: 1.75rem 0;
    }
}

/* Mode sombre amélioré */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #000000;
        --surface-color: #111111;
        --text-secondary: #CCCCCC;
    }
}

/* Amélioration pour les appareils tactiles */
@media (hover: none) and (pointer: coarse) {
    .cta-button:hover {
        transform: none;
        box-shadow: none;
    }
    
    .cta-button:active {
        transform: scale(0.95);
    }
    
    .feature-item:hover {
        transform: none;
        box-shadow: none;
    }
    
    .feature-item:active {
        transform: scale(0.98);
    }
}

/* Optimisations pour les performances */
.hero-background,
.gradient-overlay,
.particles {
    will-change: transform, opacity;
}

.cta-button,
.feature-item {
    will-change: transform;
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .hero-title::before,
    .hero-title::after {
        animation: none;
    }
    
    .email-bar::before,
    .download-bar::after {
        animation: none;
    }
    
    .particle {
        animation: none;
        opacity: 0.3;
    }
    
    .typing-effect {
        animation: none;
        border-right: none;
    }
}

/* Focus visible pour l'accessibilité */
.cta-button:focus-visible,
#emailInput:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Amélioration du contraste pour l'accessibilité */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #FFFFFF;
        --text-muted: #CCCCCC;
    }
    
    .feature-item {
        border-width: 2px;
    }
    
    .cta-button {
        border: 2px solid var(--text-primary);
    }
}

/* Styles pour l'impression */
@media print {
    .email-bar,
    .download-bar,
    .particles,
    .loading-overlay {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 2rem;
        min-height: auto;
    }
    
    .hero-background {
        display: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

