/* ==========================================================================
   Notifications « toast » — site public et back-office
   ========================================================================== */
.toast-stack {
    --toast-top: 1rem;
    position: fixed; top: var(--toast-top); right: 1rem; z-index: 1090;
    display: flex; flex-direction: column; gap: .75rem;
    width: min(400px, calc(100vw - 2rem)); pointer-events: none;
}
.hfc-toast {
    --tone: #0A2A66; --tone-soft: #e8eef9;
    position: relative; pointer-events: auto; overflow: hidden;
    display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; align-items: start;
    background: #fff; color: #0d1424; border-radius: 10px;
    padding: 1rem 1rem 1.15rem 1.1rem; border-left: 5px solid var(--tone);
    box-shadow: 0 18px 45px rgba(10, 30, 70, .18), 0 2px 6px rgba(10, 30, 70, .08);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    opacity: 0; transform: translateX(calc(100% + 1.5rem));
    transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), opacity .3s ease;
}
.hfc-toast.show { opacity: 1; transform: none; }
.hfc-toast.hide { opacity: 0; transform: translateX(calc(100% + 1.5rem)); transition: transform .3s ease-in, opacity .25s ease-in; }

.hfc-toast.is-success { --tone: #16a34a; --tone-soft: #e7f7ed; }
.hfc-toast.is-error   { --tone: #D92D20; --tone-soft: #fdecea; }
.hfc-toast.is-warning { --tone: #d18b00; --tone-soft: #fff6dc; }
.hfc-toast.is-info    { --tone: #0A2A66; --tone-soft: #e8eef9; }

.hfc-toast-icon {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--tone-soft); color: var(--tone); font-size: 1.25rem;
}
.hfc-toast.is-success .hfc-toast-icon i { animation: toastPop .5s .15s both; }
.hfc-toast-body { min-width: 0; padding-top: .1rem; }
.hfc-toast-title {
    display: block; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; line-height: 1.1; color: var(--tone);
}
.hfc-toast-msg { margin: .2rem 0 0; font-size: .9rem; line-height: 1.45; color: #2a3142; word-wrap: break-word; }
.hfc-toast-list { margin: .35rem 0 0; padding-left: 1.1rem; font-size: .84rem; color: #4a5266; }
.hfc-toast-close {
    border: 0; background: transparent; color: #8a91a3; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.1rem; line-height: 1; cursor: pointer; margin: -.2rem -.3rem 0 0;
}
.hfc-toast-close:hover, .hfc-toast-close:focus-visible { background: #f1f3f7; color: #0d1424; outline: none; }
.hfc-toast-progress {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    background: var(--tone); opacity: .55; transform-origin: left;
    animation: toastProgress linear forwards;
}
.hfc-toast.paused .hfc-toast-progress { animation-play-state: paused; }

@keyframes toastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes toastPop { 0% { transform: scale(.3); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (max-width: 575.98px) {
    .toast-stack { right: .75rem; left: .75rem; width: auto; gap: .5rem; }
    .hfc-toast { padding: .75rem .75rem .9rem .85rem; gap: .65rem; }
    .hfc-toast-icon { width: 32px; height: 32px; font-size: 1rem; }
    .hfc-toast-title { font-size: 1rem; }
    .hfc-toast-msg { font-size: .85rem; }
    .hfc-toast { transform: translateY(-120%); }
    .hfc-toast.hide { transform: translateY(-120%); }
}
@media (prefers-reduced-motion: reduce) {
    .hfc-toast, .hfc-toast.hide { transform: none !important; transition: opacity .2s; }
    .hfc-toast.is-success .hfc-toast-icon i { animation: none; }
}
