/* Variables CSS pour la cohérence */
:root {
    --primary-color: #f3f4f6;
    --secondary-color: #d1d5db;
    --accent-color: #8b5cf6;
    --accent-hover: #7c3aed;
    --text-color: #f3f4f6;
    --light-text: #d1d5db;
    --background: linear-gradient(135deg, #1a0f3a 0%, #2d1b69 50%, #1a0f3a 100%);
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container principal */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sections */
.section {
    display: none;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.section.is-active {
    display: block;
}

/* Section d'accueil */
.welcome-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    animation: slideInDown 1s ease-out;
    text-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideInDown 1s ease-out;
}

.main-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(139, 92, 246, 0.3));
    transition: var(--transition);
}

.main-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(139, 92, 246, 0.5));
}



.elegant-description {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 1s ease-out 0.2s both;
}

/* Boutons élégants */
.elegant-button {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    animation: slideInUp 1s ease-out 0.4s both;
}

.elegant-button:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.elegant-button:active {
    transform: translateY(0);
}

/* Section interactive - Mode Chat */
.chat-container {
    max-width: 700px;
    margin: 0 auto;
    height: 500px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

.message.oracle {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    line-height: 1.5;
    position: relative;
}

.message.oracle .message-content {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-bottom-left-radius: 5px;
}

.message.user .message-content {
    background: rgba(139, 92, 246, 0.2);
    color: var(--white);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-bottom-right-radius: 5px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message.oracle .message-avatar {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: var(--white);
}

#answerInput {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 25px;
    font-size: 1.1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
}

#answerInput:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

#answerInput::placeholder {
    color: var(--light-text);
}

.chat-send-button {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.chat-send-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.chat-send-button svg {
    transition: var(--transition);
}

.chat-send-button:hover svg {
    transform: scale(1.1);
}

/* Indicateur de chargement pour les messages */
.message.oracle .message-content:contains("🔮") {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    animation: pulse 2s infinite;
}

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

/* Section prophétie */
.prophecy-container {
    max-width: 600px;
    margin: 0 auto;
}

.prophecy-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-style: italic;
    min-height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .main-logo {
        width: 100px;
    }
    
    .elegant-description {
        font-size: 1rem;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .prophecy-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .main-logo {
        width: 80px;
    }
    
    .elegant-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}