:root {
    --bg: #1a1a2e;
    --bg-card: #24243e;
    --accent: #e94560;
    --text: #eaeaea;
    --muted: #9a9ab5;
    --border: #3a3a5a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text);
    text-decoration: none;
}

.links a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 16px;
    font-size: 0.95rem;
}

.links a:hover { color: var(--accent); }

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

h1 { margin-top: 0; }

.muted { color: var(--muted); }

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    color: var(--text);
}

.card h2 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.bloc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}

input[type=text], input[type=number], textarea, select {
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #14142a;
    color: var(--text);
    font-size: 1rem;
}

textarea { resize: vertical; }

.btn-principal {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.ligne-cle-valeur {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ligne-cle-valeur input { margin-top: 0; }

.btn-supprimer {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 6px;
    padding: 0 12px;
    cursor: pointer;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
}

legend { color: var(--muted); padding: 0 6px; }

.raccourcis {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.raccourcis button {
    background: #14142a;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.resultat {
    margin-top: 14px;
    padding: 12px;
    background: #14142a;
    border-radius: 8px;
    min-height: 20px;
}

.reponse-oracle {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 0 6px;
    color: var(--accent);
}

.alerte { color: var(--accent); font-weight: bold; }

.journal-list { list-style: none; padding: 0; }

.journal-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.date {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.8rem;
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--border);
    color: var(--text);
}

.tag-oracle { background: #4a3f6b; }
.tag-evenement { background: #6b3f4a; }
.tag-de { background: #3f6b5a; }
.tag-note { background: #3f5a6b; }

.inline { display: inline; }

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