body {
            font-family: 'Inter', sans-serif;
            background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
            min-height: 100vh;
            color: #f1f5f9;
            overflow-x: hidden;
        }

        /* Blobs remplacés par des cercles statiques */
        .blob {
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(56, 189, 248, 0.07) 0%, transparent 70%);
            border-radius: 50%;
            z-index: -1;
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .glass-card:hover {
            background: rgba(255, 255, 255, 0.07);
            transform: translateY(-8px);
            border-color: rgba(56, 189, 248, 0.4);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .glass-card:hover img,
        .glass-card:hover .icon-box {
            transform: scale(1.1);
        }

        .glass-card img,
        .glass-card .icon-box {
            transition: transform 0.5s ease;
        }

        .glass-card:hover .card-action {
            opacity: 1;
        }

        .card-action {
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .glass-section {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 1.5rem;
        }

        .login-input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #f1f5f9;
            border-radius: 0.75rem;
            padding: 0.6rem 1rem;
            width: 100%;
            font-size: 0.875rem;
            transition: border-color 0.2s;
            outline: none;
        }
        .login-input:focus {
            border-color: rgba(56, 189, 248, 0.5);
            background: rgba(255, 255, 255, 0.07);
        }
        .login-input::placeholder { color: #64748b; }

        /* Tâche : animation de complétion */
        .tache-item {
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        .tache-accordion-panel {
            display: none;
        }
        .tache-accordion-panel.is-open {
            display: block;
        }
        .tache-chevron {
            transition: transform 0.2s ease;
        }
        .tache-chevron.is-open {
            transform: rotate(180deg);
        }
        .tache-completing .tache-titre {
            text-decoration: line-through;
            color: #475569;
            transition: all 0.3s ease;
        }
        .tache-sink {
            opacity: 0;
            transform: translateY(6px) scale(0.98);
        }
        @keyframes checkPop {
            0%   { transform: scale(1); }
            40%  { transform: scale(1.35); }
            70%  { transform: scale(0.9); }
            100% { transform: scale(1); }
        }
        .check-pop {
            animation: checkPop 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
        }
        @keyframes blink-urgent {
            0%, 100% { color: #f87171; }
            50%       { color: #7f1d1d; }
        }
        .urgent {
            animation: blink-urgent 2.5s ease-in-out infinite;
            font-weight: 700;
        }
        .tache-done .urgent {
            animation: none;
            color: #475569;
        }


        .seb-alert-card {
            background: linear-gradient(135deg, rgba(234, 179, 8, 0.13), rgba(249, 115, 22, 0.08));
            border: 1px solid rgba(250, 204, 21, 0.28);
            box-shadow: 0 18px 45px rgba(0,0,0,0.22);
        }
        .seb-alert-pill {
            background: rgba(250, 204, 21, 0.14);
            border: 1px solid rgba(250, 204, 21, 0.24);
            color: #fde68a;
        }

        .portal-modal-backdrop {
            position: fixed;
            inset: 0;
            z-index: 60;
            background: rgba(2, 6, 23, 0.82);
            backdrop-filter: blur(10px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .portal-modal-backdrop.is-open { display: flex; }
        .portal-modal-panel {
            width: min(1100px, 100%);
            max-height: min(86vh, 920px);
            overflow: hidden;
            border-radius: 1.5rem;
            background: rgba(15, 23, 42, 0.98);
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 30px 90px rgba(0,0,0,0.55);
        }
        .portal-modal-body {
            max-height: calc(86vh - 92px);
            overflow-y: auto;
        }
        .portal-tool-button {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.09);
            transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
        }
        .portal-tool-button:hover {
            transform: translateY(-4px);
            background: rgba(255, 255, 255, 0.09);
            border-color: rgba(56, 189, 248, 0.45);
        }
        .portal-loading {
            min-height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
        }

.portal-tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.28);
}
.portal-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Correctif lisibilité élève : thème sombre propre, sans fond blanc/jaune pâle */
body.ux-shell-bg {
    background:
        radial-gradient(circle at 10% -10%, rgba(59,130,246,.20), transparent 30rem),
        radial-gradient(circle at 92% 6%, rgba(20,184,166,.14), transparent 28rem),
        linear-gradient(180deg, #0b1220 0%, #111827 45%, #0f172a 100%) !important;
    color: #f8fafc !important;
}
.glass-section,
.ux-bento,
.portal-tool-button,
.glass-card,
.portal-modal-panel {
    background: rgba(15, 23, 42, .88) !important;
    border-color: rgba(148, 163, 184, .22) !important;
}
.portal-tool-button,
.glass-card { box-shadow: 0 14px 34px rgba(2, 6, 23, .34) !important; }
.portal-hero-panel {
    background: rgba(15, 23, 42, .76) !important;
    border-color: rgba(56, 189, 248, .22) !important;
    color: #dbeafe !important;
}
.text-slate-500 { color: #94a3b8 !important; }
.text-slate-600 { color: #7f8ea3 !important; }
.text-slate-400 { color: #cbd5e1 !important; }
.seb-alert-card {
    background: rgba(30, 41, 59, .82) !important;
    border-color: rgba(251, 191, 36, .34) !important;
}
.seb-alert-pill {
    background: rgba(251, 191, 36, .12) !important;
    color: #fde68a !important;
}
.portal-disclosure {
    background: rgba(15, 23, 42, .82);
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 1.25rem;
    overflow: hidden;
}
.portal-disclosure + .portal-disclosure { margin-top: 1rem; }
.portal-disclosure summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.portal-disclosure summary::-webkit-details-marker { display: none; }
.portal-disclosure summary:after {
    content: "▾";
    color: #38bdf8;
    transition: transform .2s ease;
}
.portal-disclosure[open] summary:after { transform: rotate(180deg); }
.portal-disclosure-body { padding: 0 1.25rem 1.25rem; }
.portal-minimal .portal-large-grid { display: block; }
.portal-hide-illustrations img.ux-illustration-sm,
.portal-hide-illustrations img.ux-illustration { display: none !important; }
.portal-animations-off *,
.portal-animations-off *::before,
.portal-animations-off *::after { animation: none !important; transition-duration: .01ms !important; }
.portal-density-compact .portal-tool-button { min-height: 128px; padding: 1rem !important; }
.portal-density-compact .portal-tool-button h3 { font-size: 1.05rem !important; }
.portal-density-compact .portal-tool-button p { font-size: .78rem !important; }
@media (max-width: 768px) {
    .portal-hero-panel { margin-top: .5rem !important; }
    .glass-card { padding: 1.25rem !important; }
}
