/* Claris Toasts - palette CLARIS officielle
   Tresor 2026-08-23 */

.claris-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
    pointer-events: none;
    max-width: calc(100vw - 40px);
}

.claris-toast {
    min-width: 320px;
    max-width: 420px;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(30,58,99,0.12);
    border-left-width: 4px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15,38,69,0.14), 0 4px 12px rgba(15,38,69,0.06);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: claris-toast-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    color: #0f2645;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
}

@keyframes claris-toast-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.claris-toast.out { animation: claris-toast-out 0.25s ease-in forwards; }
@keyframes claris-toast-out {
    to { transform: translateX(120%); opacity: 0; }
}

.claris-toast-ic {
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center;
    font-size: 16px; flex-shrink: 0; font-weight: 700;
}

.claris-toast-body { flex: 1; min-width: 0; }
.claris-toast-title {
    font-weight: 700; font-size: 14px;
    color: #0f2645; margin: 0 0 2px;
}
.claris-toast-msg {
    font-size: 12.5px; color: #334155; margin: 0; line-height: 1.4;
}

.claris-toast-close {
    background: none; border: none; cursor: pointer;
    padding: 2px 6px; color: #64748b;
    font-size: 18px; opacity: 0.6;
    line-height: 1; align-self: flex-start;
}
.claris-toast-close:hover { opacity: 1; }

.claris-toast-prog {
    position: absolute; bottom: 0; left: 0;
    height: 2px; background: currentColor; opacity: 0.4;
    animation: claris-toast-prog 4s linear forwards;
}
@keyframes claris-toast-prog { from { width: 100%; } to { width: 0; } }

/* Types */
.claris-toast.success    { border-left-color: #059669; }
.claris-toast.success .claris-toast-ic { background: rgba(5,150,105,0.15); color: #059669; }

.claris-toast.info       { border-left-color: #0091b3; }
.claris-toast.info .claris-toast-ic { background: #e6f5f8; color: #0091b3; }

.claris-toast.warn       { border-left-color: #d97706; }
.claris-toast.warn .claris-toast-ic { background: rgba(217,119,6,0.15); color: #b45309; }

.claris-toast.danger     { border-left-color: #dc2626; }
.claris-toast.danger .claris-toast-ic { background: rgba(220,38,38,0.12); color: #dc2626; }
