/* ─── Variables ─────────────────────────────────── */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --success-bg: #dcfce7;
    --success-border: #16a34a;
    --error-bg: #fee2e2;
    --error-border: #dc2626;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 10px;
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ─── Header ────────────────────────────────────── */
header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
header h1 { font-size: 1.3rem; font-weight: 600; }
header a { color: white; text-decoration: none; }

/* ─── Container ─────────────────────────────────── */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* ─── Cards ─────────────────────────────────────── */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

/* ─── Boutons menu ──────────────────────────────── */
.menu-grid {
    display: grid;
    gap: 1rem;
}
.menu-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 1.5rem;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.2s;
}
.menu-btn:hover, .menu-btn:active {
    border-color: var(--primary);
    background: #eff6ff;
}
.menu-btn .icon { font-size: 1.5rem; }

/* ─── Formulaires ──────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    color: var(--text-light);
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ─── Checkbox custom ──────────────────────────── */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
}
.checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
}
.checkbox-group label {
    margin: 0;
    font-weight: 500;
    color: var(--text);
}

/* ─── Boutons ──────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    width: 100%;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: #eff6ff; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; width: auto; }

.btn-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.btn-row .btn { flex: 1; }

/* ─── Flash messages ───────────────────────────── */
.flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    border-left: 4px solid;
}
.flash.success { background: var(--success-bg); border-color: var(--success-border); }
.flash.error { background: var(--error-bg); border-color: var(--error-border); }

/* ─── Résultats recherche ──────────────────────── */
.result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}
.result-item:last-child { border-bottom: none; }
.result-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}
.result-details {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.3rem 0 0.5rem;
}
.result-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ─── Cotisations ──────────────────────────────── */
.cotisation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.cot-info { flex: 1; }
.cot-annee { font-weight: 700; font-size: 1.1rem; }
.cot-montant { color: var(--primary); font-weight: 600; }
.cot-details { font-size: 0.85rem; color: var(--text-light); }
.cot-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #dbeafe;
    color: var(--primary);
}

/* ─── Titre section ────────────────────────────── */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}

/* ─── Retour ───────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ─── Vide ─────────────────────────────────────── */
.empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* ─── Dialog confirmation ──────────────────────── */
.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
}
.confirm-overlay.active { display: flex; }
.confirm-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    max-width: 90%;
    width: 350px;
    text-align: center;
}
.confirm-box p { margin-bottom: 1rem; font-weight: 500; }
</parameter>
<parameter name="path">/home/claude/style.css</parameter>

/* ─── Stats boxes ──────────────────────────────── */
.stat-box {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
}
.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}