/**
 * shared.css — Styles communs à toutes les pages RadSafe Formation.
 * Chargé en premier ; les styles inline de chaque page peuvent surcharger librement.
 */

/* ── Polices ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ── Variables design ─────────────────────────────────────────── */
:root {
    --bg:             #f6f8fb;
    --surface:        #ffffff;
    --text:           #0f1115;
    --muted:          #546175;
    --primary:        #13a8e6;
    --primary-strong: #0c94cd;
    --line:           #e3e8ef;
    --shadow:         0 16px 36px rgba(15, 17, 21, 0.12);
    --radius:         16px;

    /* états */
    --info-bg:    #eef7fc;
    --info-border:#cfe1ef;
    --info-text:  #12506c;
    --warn-bg:    #fff6df;
    --warn-border:#f0d48a;
    --warn-text:  #7a5b00;
    --error-bg:   #fff1f0;
    --error-border:#efc2bd;
    --error-text: #8a2c21;
    --success-bg: #f0faf3;
    --success-border:#b6dfc3;
    --success-text:#1a6636;
}

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

/* ── Base ────────────────────────────────────────────────────── */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.5;
}

/* ── Bannière d'état (runtime-banner) ────────────────────────── */
.runtime-banner {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
}

.runtime-banner.is-hidden { display: none; }

.runtime-banner.is-info {
    background:   var(--info-bg);
    border-color: var(--info-border);
    color:        var(--info-text);
}

.runtime-banner.is-warn {
    background:   var(--warn-bg);
    border-color: var(--warn-border);
    color:        var(--warn-text);
}

.runtime-banner.is-error {
    background:   var(--error-bg);
    border-color: var(--error-border);
    color:        var(--error-text);
}

/* ── Utilitaires ─────────────────────────────────────────────── */
.auth-locked { display: none; }

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