:root {
    --bg-dark: #121212;
    --surface: #1e1e1e;
    --primary: #bb86fc;
    --secondary: #03dac6;
    --danger: #cf6679;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --border: #333;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 16px; /* Marge confortable */
    padding-bottom: 80px; /* Espace pour scroller en bas */
    font-size: 16px; /* Lisible sans zoomer */
}

/* --- Typographie & Titres --- */
h1, h2, h3 { color: var(--primary); margin-top: 0; }
h2 { font-size: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 16px; }

/* --- Cartes & Conteneurs --- */
.card {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- Formulaires --- */
label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 0.9rem; }
input, select, textarea {
    width: 100%;
    background: #2c2c2c;
    border: 1px solid var(--border);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 16px;
    box-sizing: border-box;
}
input:focus, select:focus { border-color: var(--primary); outline: none; }

/* --- Boutons (Zone du pouce) --- */
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary);
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
}
.btn-danger { background-color: var(--danger); color: white; }
.btn-small { width: auto; padding: 8px 12px; font-size: 0.8rem; }
.btn-icon { background: none; color: var(--danger); padding: 8px; width: auto; font-size: 1.2rem; }

/* --- Navigation --- */
.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.nav-item {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--border);
}
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.home-link { text-decoration: none; font-size: 1.5rem; }

/* --- Listes --- */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}
.list-item:last-child { border-bottom: none; }
.item-info { display: flex; flex-direction: column; }
.item-sub { font-size: 0.85rem; color: var(--text-muted); }
.badge { 
    background: #333; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; margin-left: 8px; 
}
.badge-weekly { color: var(--secondary); border: 1px solid var(--secondary); }