/* ==========================================================================
   Notifications flottantes — nommées .notif pour éviter toute collision
   avec le composant .toast de Bootstrap, qui les masquerait.
   ========================================================================== */
.notif-conteneur {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: min(380px, calc(100vw - 2rem));
    pointer-events: none;
}

.notif {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: var(--rayon-m);
    background: var(--surface-bg);
    border: 1px solid var(--couleur-bordure);
    box-shadow: var(--ombre-flottante);
    pointer-events: auto;
    animation: notif-entree 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif.sortie {
    animation: notif-sortie 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes notif-entree {
    from { opacity: 0; transform: translateX(30px) scale(0.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes notif-sortie {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to   { opacity: 0; transform: translateX(30px) scale(0.96); }
}

.notif__icone {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.notif--succes .notif__icone { background: rgba(76, 175, 125, 0.14); color: var(--couleur-succes); }
.notif--erreur .notif__icone { background: rgba(232, 93, 107, 0.14); color: var(--couleur-erreur); }
.notif--attention .notif__icone { background: rgba(240, 168, 96, 0.16); color: #B7791F; }
.notif--info .notif__icone { background: rgba(91, 159, 232, 0.14); color: var(--couleur-info); }

.notif__corps { flex: 1; min-width: 0; }
.notif__titre {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--couleur-texte);
    margin-bottom: 0.15rem;
}
.notif__message {
    font-size: 0.86rem;
    color: var(--couleur-texte-doux);
    line-height: 1.45;
    word-break: break-word;
}

.notif__fermer {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--couleur-texte-doux);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background var(--transition-rapide), color var(--transition-rapide);
}
.notif__fermer:hover {
    background: var(--couleur-bordure);
    color: var(--couleur-texte);
}

@media (max-width: 520px) {
    .notif-conteneur {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}