/* ================= ICÔNES =================
   Les icônes sont des fichiers SVG (dossier icons/) affichés en masque :
   elles prennent la couleur du texte (color). Taille = taille du texte (1em).
   L'image est donnée dans l'attribut style :
   <span class="ico" style="-webkit-mask-image: url('assets/icons/trophy.svg'); mask-image: url('assets/icons/trophy.svg')"></span>
   (ou en JavaScript : icone('trophy')) */
.ico {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.ico-or { color: #f1c40f; }
.ico-argent { color: #bdc3c7; }
.ico-bronze { color: #cd7f32; }

/* ================= NOTIFICATIONS (haut de l'écran) ================= */
#notif-conteneur {
    position: fixed;
    top: var(--notif-top, 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.notif {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    background: rgba(24, 24, 28, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--notif-couleur, #fff);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: notif-entree 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.notif-sortie { animation: notif-sortie 0.25s ease forwards; }

.notif-info    { --notif-couleur: #ffffff; }
.notif-succes  { --notif-couleur: #4cd137; }
.notif-erreur  { --notif-couleur: #ff4757; }
.notif-trophee { --notif-couleur: #f1c40f; }

.notif-icone { font-size: 20px; line-height: 1; color: var(--notif-couleur); padding-top: 1px; }
.notif-corps { flex: 1; min-width: 0; }
.notif-titre { font-size: 13px; font-weight: 800; margin-bottom: 3px; }
.notif-texte { font-size: 13px; color: #ccc; line-height: 1.45; white-space: pre-line; word-wrap: break-word; }

.notif-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.notif-bouton {
    background: transparent;
    color: #ddd;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 7px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.notif-bouton:hover { background: #2a2a2a; color: #fff; }
.notif-bouton-principal { background: #fff; color: #000; border-color: #fff; }
.notif-bouton-principal:hover { background: #ddd; color: #000; }
.notif-bouton-danger { background: #ff4757; color: #fff; border-color: #ff4757; }
.notif-bouton-danger:hover { background: #e84150; color: #fff; }

.notif-fermer {
    background: none;
    border: none;
    color: #777;
    font-size: 14px;
    line-height: 1;
    padding: 2px;
    cursor: pointer;
}
.notif-fermer:hover { color: #fff; }

@keyframes notif-entree {
    from { opacity: 0; transform: translateY(-14px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
@keyframes notif-sortie {
    to { opacity: 0; transform: translateY(-10px) scale(0.98); }
}
