/* ============================================================
   shared.css — Variables et composants partagés entre
   login.php, account.php et admin.css
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --success: #10b981;
    --warning: #f59e0b;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --radius: 10px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Boutons */
.btn-shared-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: .75rem 1.5rem;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .15s, transform .1s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
}
.btn-shared-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-shared-primary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.btn-shared-secondary {
    background: white;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: .7rem 1.4rem;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    min-height: 44px;
}
.btn-shared-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-shared-danger {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: .7rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
}

/* Badges statut */
.badge-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 700;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-muted   { background: #f1f5f9; color: #64748b; }

/* Card générique */
.card-shared {
    background: white;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

/* Accessibilité */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
