/**
 * Cosmos Digital - Styles CSS
 * Version: 1.0.0
 */

/* Reset et base */
.cosmos-digital-wrapper {
    position: relative;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b69 100%) !important;
    min-height: 100vh;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    overflow-x: hidden;
    margin: -30px -30px 0 -30px;
    padding: 40px 30px;
    box-sizing: border-box;
}

.cosmos-digital-wrapper * {
    box-sizing: border-box;
    color: white !important;
}

.cosmos-digital-wrapper a {
    text-decoration: none !important;
}

.cosmos-digital-wrapper a:hover {
    text-decoration: none !important;
}

/* Étoiles animées */
.cosmos-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cosmos-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: cosmos-twinkle 3s infinite;
}

@keyframes cosmos-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Particules flottantes */
.cosmos-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.cosmos-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    animation: cosmos-float 6s infinite linear;
}

@keyframes cosmos-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Conteneur principal */
.cosmos-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* En-tête */
.cosmos-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: cosmos-fadeInUp 1s ease-out;
}

.cosmos-logo {
    font-size: 3.5rem !important;
    margin-bottom: 1rem !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    position: relative;
}

.cosmos-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: cosmos-glow 3s ease-in-out infinite alternate;
}

@keyframes cosmos-glow {
    0% { text-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
    100% { text-shadow: 0 0 20px rgba(139, 92, 246, 0.6); }
}

.cosmos-subtitle {
    font-size: 1.25rem !important;
    color: #a1a1aa !important;
    font-weight: 300 !important;
    max-width: 600px;
    margin: 0 auto !important;
    line-height: 1.6;
    opacity: 0.9;
}

/* Grille des boutons */
.cosmos-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 3rem;
}

/* Boutons IA */
.cosmos-ai-button {
    position: relative;
    display: block !important;
    text-decoration: none !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
}

.cosmos-ai-button:hover {
    transform: translateY(-8px) !important;
    text-decoration: none !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Effet de brillance */
.cosmos-button-glow {
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

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

/* Variantes de couleurs */
.cosmos-ai-button.cosmos-chatgpt {
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.1), rgba(52, 211, 153, 0.1));
    border-color: rgba(16, 163, 127, 0.3);
}

.cosmos-ai-button.cosmos-chatgpt:hover {
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.2), rgba(52, 211, 153, 0.2));
    border-color: rgba(16, 163, 127, 0.5);
    box-shadow: 0 20px 40px rgba(16, 163, 127, 0.2);
}

.cosmos-ai-button.cosmos-cosmos {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(99, 102, 241, 0.3);
}

.cosmos-ai-button.cosmos-cosmos:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.cosmos-ai-button.cosmos-midjourney {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border-color: rgba(168, 85, 247, 0.3);
}

.cosmos-ai-button.cosmos-midjourney:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.cosmos-ai-button.cosmos-veo {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(245, 158, 11, 0.1));
    border-color: rgba(234, 179, 8, 0.3);
}

.cosmos-ai-button.cosmos-veo:hover {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(245, 158, 11, 0.2));
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: 0 20px 40px rgba(234, 179, 8, 0.2);
}

/* Boutons désactivés */
.cosmos-ai-button.cosmos-disabled {
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.1), rgba(107, 114, 128, 0.1)) !important;
    border-color: rgba(75, 85, 99, 0.3) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.cosmos-ai-button.cosmos-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.1), rgba(107, 114, 128, 0.1)) !important;
    border-color: rgba(75, 85, 99, 0.3) !important;
}

/* Éléments des boutons */
.cosmos-button-icon {
    font-size: 3rem !important;
    margin-bottom: 1.5rem !important;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

.cosmos-button-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.5px;
    color: white !important;
    position: relative;
    z-index: 2;
}

.cosmos-button-subtitle {
    font-size: 1rem !important;
    color: #a1a1aa !important;
    font-weight: 400 !important;
    line-height: 1.5;
    margin-bottom: 1rem !important;
    position: relative;
    z-index: 2;
}

.cosmos-button-status {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.cosmos-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.cosmos-status-available {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.cosmos-status-available .cosmos-status-dot {
    background: #22c55e;
    animation: cosmos-pulse-dot 2s infinite;
}

.cosmos-status-coming-soon {
    background: rgba(251, 191, 36, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.cosmos-status-coming-soon .cosmos-status-dot {
    background: #fbbf24;
}

@keyframes cosmos-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Badge featured */
.cosmos-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    z-index: 3;
    animation: cosmos-badge-glow 2s ease-in-out infinite alternate;
}

@keyframes cosmos-badge-glow {
    0% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
    100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.8); }
}

/* Animation pulse pour le bouton featured */
.cosmos-ai-button.cosmos-featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
    border-radius: 22px;
    z-index: -1;
    animation: cosmos-pulse 2s infinite;
    opacity: 0.5;
}

@keyframes cosmos-pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.8; 
    }
}

/* Footer */
.cosmos-footer {
    text-align: center;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    margin-top: 3rem;
    animation: cosmos-fadeIn 1s ease-out 0.8s both;
}

.cosmos-footer a {
    color: #8b5cf6 !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

.cosmos-footer a:hover {
    color: #a855f7 !important;
    text-decoration: none !important;
}

.cosmos-social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cosmos-social-link {
    display: inline-block;
    font-size: 1.5rem !important;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cosmos-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Overlay */
.cosmos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(15, 15, 35, 0.1) 100%);
    pointer-events: none;
    z-index: 5;
}

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

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

.cosmos-animate {
    animation: cosmos-fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.cosmos-animate:nth-child(1) { animation-delay: 0.1s; }
.cosmos-animate:nth-child(2) { animation-delay: 0.2s; }
.cosmos-animate:nth-child(3) { animation-delay: 0.3s; }
.cosmos-animate:nth-child(4) { animation-delay: 0.4s; }

/* Animation shake pour boutons désactivés */
@keyframes cosmos-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.cosmos-shake {
    animation: cosmos-shake 0.5s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cosmos-digital-wrapper {
        margin: -20px -20px 0 -20px;
        padding: 30px 20px;
    }
    
    .cosmos-container {
        padding: 1rem;
    }

    .cosmos-logo {
        font-size: 2.5rem !important;
    }

    .cosmos-subtitle {
        font-size: 1.1rem !important;
    }

    .cosmos-buttons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cosmos-ai-button {
        padding: 2rem 1.5rem;
    }

    .cosmos-button-icon {
        font-size: 2.5rem !important;
    }

    .cosmos-button-title {
        font-size: 1.25rem !important;
    }
    
    .cosmos-social-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .cosmos-digital-wrapper {
        margin: -15px -15px 0 -15px;
        padding: 20px 15px;
    }
    
    .cosmos-logo {
        font-size: 2rem !important;
    }
    
    .cosmos-ai-button {
        padding: 1.5rem 1rem;
    }
}

/* Impression */
@media print {
    .cosmos-digital-wrapper {
        background: white !important;
        color: black !important;
    }
    
    .cosmos-digital-wrapper * {
        color: black !important;
    }
    
    .cosmos-stars,
    .cosmos-particles,
    .cosmos-overlay {
        display: none !important;
    }
}
