:root {
    /* Couleurs Modern Dark UI */
    --bg-main: #0f0f0f;
    --bg-surface: #1a1a1a;
    --bg-surface-hover: #252525;
    
    --primary: #6c5ce7; /* Violet moderne */
    --primary-hover: #5b4cc4;
    --accent-red: #ff7675;
    
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --border: #333333;
    
    --radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-white);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* HEADER */
.main-header {
    text-align: center;
    margin-bottom: 4rem;
}

.main-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

.main-header .year {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.link-help {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--primary);
}

/* APP INTERFACE */
.grid-upload {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.drop-zone {
    background: var(--bg-surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drop-zone:hover {
    border-color: var(--primary);
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.icon-3d {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.drop-zone h3 { margin: 0.5rem 0; font-size: 1.1rem; }
.drop-zone .details { color: var(--text-gray); font-size: 0.85rem; margin-bottom: 1.5rem; }
.drop-zone code { background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px; }

.status-pill {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #2d2d2d;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-gray);
}

.actions { text-align: center; margin: 3rem 0; }

#btn-analyze {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 3.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

#btn-analyze:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

#btn-analyze:not(:disabled):hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

/* RÉSULTATS */
.results-panel.hidden { display: none; }
.results-panel { animation: slideUp 0.4s ease-out; margin-bottom: 5rem; }

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

.stat-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.stat-card h3 { color: var(--text-gray); margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.number { font-size: 4rem; font-weight: 800; color: var(--accent-red); margin-top: 0.5rem; }

.search-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: white;
    margin-bottom: 1.5rem;
    font-family: inherit;
    box-sizing: border-box;
}

.user-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
}

.user-grid li a {
    display: block;
    background: var(--bg-surface);
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-white);
    text-align: center;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.user-grid li a:hover { background: var(--primary); }

/* TUTORIEL SECTION (Redesign) */
.tutorial-section {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.tutorial-header { text-align: center; margin-bottom: 2rem; }
.tutorial-header h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.tutorial-header p { color: var(--text-gray); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.step-card {
    background: #141414;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.step-card h4 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.step-card p { font-size: 0.9rem; color: var(--text-gray); margin: 0; }

.full-guide-cta { text-align: center; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

footer {
    text-align: center;
    color: var(--text-gray);
    margin-top: 4rem;
    font-size: 0.85rem;
}

/* MOBILE */
@media (max-width: 768px) {
    .grid-upload, .steps-grid { grid-template-columns: 1fr; }
    .main-header h1 { font-size: 2rem; }
}
