* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a2a45 0%, #0d4a6e 50%, #0a3d55 100%);
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ── CARTE CENTRALE ─────────────────────────── */
.card {
    background: rgba(5, 30, 55, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 36px 40px;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card h2 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

/* ── FORMULAIRE LOGIN ───────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #90caf9;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.form-group input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s, background .2s;
}

.form-group input::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus {
    border-color: #64b5f6;
    background: rgba(255, 255, 255, 0.13);
}

.error {
    color: #ff6b6b;
    font-size: .9rem;
    text-align: center;
}

/* ── LISTE ──────────────────────────────────── */
.list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: .95rem;
    transition: background .2s;
}

.list-item:hover { background: rgba(255, 255, 255, 0.13); }

.list-item strong { font-weight: 700; }

.list-item .tag {
    background: rgba(100, 181, 246, 0.2);
    border: 1px solid rgba(100,181,246,0.3);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: .8rem;
    color: #90caf9;
}

.list-item .btn-voir {
    margin-left: auto;
    background: rgba(100, 181, 246, 0.2);
    color: #fff;
    border: 1px solid rgba(100,181,246,0.4);
    border-radius: 8px;
    padding: 6px 18px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}

.list-item .btn-voir:hover { background: rgba(100,181,246,0.4); }

/* ── BOUTONS ────────────────────────────────── */
.btn-primary {
    background: #f5a623;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
}
.btn-primary:hover { background: #d4891a; }
.btn-create {
    background: #7ef523;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
}

.btn-create:hover { background: #4fd41a; }

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    padding: 10px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
}

.btn-secondary:hover { background: rgba(255,255,255,.15); }

.btn-row {
    display: flex;
    gap: 10px;
}

.btn-row .btn-primary,
.btn-row .btn-secondary {
    width: auto;
    flex: 1;
}

  .btn-delete {
        background: #c62828;
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 12px;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        transition: background .2s;
        flex: 1;
    }
    .btn-delete:hover { background: #8b0000; }

    .brand-title {
            font-family: 'Sora', sans-serif;
            font-size: 3.2rem;
            font-weight: 700;
            color: #fff;
            text-align: center;
            letter-spacing: -.02em;
            margin-bottom: 24px;
        }
        .brand-title em {
            font-style: normal;
            color: #64c8ff;
        }
 
        .subtitle {
            color: rgba(255,255,255,0.45);
            font-size: .82rem;
            text-align: center;
            margin-top: -12px;
        }
 
        .school-banner {
            position: fixed;
            bottom: 0; left: 0; right: 0;
            background: rgba(5, 20, 40, 0.9);
            border-top: 1px solid rgba(255,255,255,0.08);
            padding: 10px 20px;
            text-align: center;
            font-size: .78rem;
            color: rgba(255,255,255,0.35);
        }
        .school-banner strong {
            color: rgba(255,255,255,0.55);
        }