:root {
    --bg-main: #020308;
    --bg-panel: rgba(15, 20, 35, 0.4);
    --text-primary: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-cyan: #38bdf8;
    --accent-blue: #3b82f6;
    --accent-teal: #14b8a6;
    --accent-violet: #8b5cf6;
    --accent-gold: #c8a96e;
    --accent-green: #22c55e;
    
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* --- CANVAS SPIRALE --- */
#spiral-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* --- MAIN CONTENT STRUTURE --- */
main {
    position: relative;
    z-index: 2;
    padding-bottom: 8rem;
}

.section {
    padding: 4rem 1rem;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 900px;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* --- GLASS PANELS --- */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border-left: 2px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.section-icon {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.glass-panel h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.glass-panel p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.glass-panel p:last-child {
    margin-bottom: 0;
}

.quote-block {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 2px solid var(--accent-cyan);
    background: rgba(56, 189, 248, 0.03);
    font-style: italic;
    color: #fff;
    border-radius: 0 8px 8px 0;
}

.styled-list {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.styled-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
    color: var(--text-muted);
}

.styled-list li::before {
    content: "•";
    position: absolute;
    left: -0.5rem;
    color: var(--accent-teal);
}

/* --- DUAL GRID --- */
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .dual-grid {
        grid-template-columns: 1fr;
    }
}

/* --- POETRY CONCLUSION --- */
.conclusion-poetry {
    padding: 5rem 0;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 2;
    color: var(--text-muted);
}

.conclusion-poetry p {
    margin-bottom: 1rem;
}

.conclusion-poetry .highlight {
    color: #fff;
    font-style: italic;
    background: linear-gradient(135deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- LABO IA --- */
.ia-section {
    margin-top: 2rem;
}

.ai-box {
    border-left: 2px solid var(--accent-cyan);
}

.ai-box-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ai-box-header h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.ai-box-content h4 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 500;
}

/* --- BACK LINK --- */
.back-link {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--bg-panel);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-link:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* --- ANIMATIONS (Reveal) --- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
