:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --radius: 8px;
}

/* CORRECTION ICI : Ajout de l'astérisque * */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-alt);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER COMPACT */
.header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 60px; }

.logo h1 { font-size: 1.2rem; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.nav { display: flex; gap: 20px; font-weight: 500; font-size: 0.9rem; }
.nav a:hover { color: var(--primary); }

/* HERO MINIMALISTE */
.hero { padding: 40px 0; text-align: center; background: var(--bg); border-bottom: 1px solid var(--border); }
.hero h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.5px; }
.hero p { color: var(--text-light); margin-bottom: 20px; }
.search-box input {
    padding: 10px 16px; width: 100%; max-width: 400px;
    border: 1px solid var(--border); border-radius: var(--radius);
    outline: none; font-size: 0.9rem; transition: 0.2s;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }

/* MOVERS COMPACTS */
.movers-section { padding: 20px 0; }
.movers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.mover-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px; }
.mover-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.8rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; }
.mover-link { display: block; padding: 6px 0; border-bottom: 1px solid var(--bg-alt); }
.mover-item { display: flex; justify-content: space-between; align-items: center; }
.mover-name { font-weight: 600; font-size: 0.9rem; }
.mover-change { font-size: 0.85rem; font-weight: 600; }
.positive { color: var(--success); }
.negative { color: var(--danger); }

/* TABLEAU COMPACT & PREMIUM */
.crypto-table-section { padding: 20px 0; }
.table-responsive { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.crypto-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

/* Styles pour le tri (à ajouter) */
.crypto-table th { cursor: pointer; user-select: none; }
.sort-icon { margin-left: 5px; font-size: 0.65rem; opacity: 0.5; }
.crypto-table th:hover .sort-icon { opacity: 1; color: var(--primary); }

.crypto-table th {
    text-align: left; padding: 12px 16px; background: var(--bg-alt);
    color: var(--text-light); font-weight: 600; font-size: 0.75rem; text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.crypto-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.crypto-table tbody tr:last-child td { border-bottom: none; }
.crypto-table tbody tr:hover { background: rgba(99, 102, 241, 0.02); }
.name { display: flex; align-items: center; gap: 10px; }
.crypto-logo { width: 24px; height: 24px; border-radius: 50%; }
.crypto-symbol { color: var(--text-light); font-size: 0.75rem; margin-left: 4px; }
.btn-details {
    padding: 4px 10px; background: transparent; border: 1px solid var(--border);
    border-radius: 4px; font-size: 0.75rem; font-weight: 500; color: var(--text-light);
}
.btn-details:hover { border-color: var(--primary); color: var(--primary); }

/* FOOTER */
.footer { padding: 30px 0; text-align: center; color: var(--text-light); font-size: 0.8rem; border-top: 1px solid var(--border); background: var(--bg); margin-top: 40px; }

@media (max-width: 768px) {
    .movers-grid { grid-template-columns: 1fr; }
    .crypto-table { font-size: 0.8rem; }
    .crypto-table th, .crypto-table td { padding: 10px; }
}