/* Extrait de teacher-dashboard.html. Ordre historique : 3. */
.dashboard-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 24px;
            cursor: move;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            position: relative;
        }
        .dashboard-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
            border-color: rgba(99, 102, 241, 0.3);
        }
        .dashboard-card.dragging {
            opacity: 0.5;
            transform: scale(0.95);
        }
        .dashboard-card.drag-over {
            border-color: #6366f1;
            border-style: dashed;
        }
        .dashboard-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 16px;
            color: #4f46e5;
        }
        .dashboard-label {
            font-weight: 600;
            color: #1f2937;
            font-size: 15px;
            line-height: 1.3;
            text-align: center;
        }
        .beta-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #ef4444;
            color: white;
            font-size: 10px;
            padding: 4px 10px;
            border-radius: 12px;
            font-weight: bold;
        }

/* ══════════════════════════════════════════════════════════════════════════
   LE VERROU DE FORFAIT — 09/09/2026

   Les outils du forfait complet étaient RETIRÉS de la grille pour un compte
   qui n'y avait pas droit. Ils y restent désormais, barrés d'un bandeau.

   Trois exigences que ce style doit tenir :

   · LE BANDEAU SE LIT. Blanc sur rouge #dc2626 : contraste 5,9:1, au-delà du
     4,5:1 du WCAG 2.1 AA (critère 1.4.3). La couleur ne porte pas seule
     l'information (critère 1.4.1) — il y a un cadenas et un mot.

   · LA CARTE RESTE LISIBLE. On n'estompe pas le contenu jusqu'à
     l'illisibilité : l'intérêt d'afficher l'outil est qu'on voie ce qu'on
     n'a pas. L'icône est atténuée, le libellé garde son contraste.

   · ELLE NE FAIT PAS SEMBLANT D'ÊTRE OUVERTE. Pas de soulèvement au survol,
     pas de curseur « déplacer » : un objet qui bouge comme les autres promet
     ce qu'il ne tiendra pas. Le curseur « help » annonce une explication,
     et c'est bien une explication que le clic donne.
   ══════════════════════════════════════════════════════════════════════════ */
.dashboard-card--verrouillee {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(255, 255, 255, 0.72);
    cursor: help;
}
.dashboard-card--verrouillee:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.55);
}
.dashboard-card--verrouillee .dashboard-icon {
    opacity: 0.45;
    color: #6b7280;
}
.dashboard-card--verrouillee .dashboard-label {
    color: #4b5563;
}
.carte-verrou {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 4px 6px;
    border-radius: 14px 14px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Le bandeau occupe le haut de la carte : la pastille BETA descend d'autant,
   sinon les deux se superposent sur « TP STI2D » verrouillé. */
.dashboard-card--verrouillee .beta-badge { top: 30px; }

/* Pastille « IA » : remplace la mention BETA sur les onglets qui proposent un assistant IA. */
.beta-badge.ia-badge{display:inline-flex;align-items:center;gap:3px;padding:3px 9px 3px 6px !important;
  background:linear-gradient(135deg,#7c3aed,#2563eb) !important;color:#fff !important;font-size:11px !important;
  font-weight:800;letter-spacing:.04em;box-shadow:0 2px 8px rgba(91,33,182,.35);border:1px solid rgba(255,255,255,.55)}
.beta-badge.ia-badge svg{display:block}
@media (prefers-reduced-motion:no-preference){.beta-badge.ia-badge svg{animation:ia-scintille 3.2s ease-in-out infinite}}
@keyframes ia-scintille{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.18) rotate(12deg)}}
