:root {
    /* Palette de couleurs inspirée de ton image */
    --bg-gradient: linear-gradient(135deg, #F9F6F0 0%, #EAEAEF 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-blur: blur(10px);
    --text-dark: #1C1C1E;
    --text-muted: #8E8E93;
    --accent-orange: #F04903;
    /* Conservation de ton orange signature */
    --accent-purple: #7D6E83;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-subtle: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
    --border-white: 1px solid rgba(255, 255, 255, 0.6);
    --font2: 'League Spartan', sans-serif;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font2), -apple-system, BlinkMacSystemFont, sans-serif;
}

.toast-notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.203);
    max-width: 30vw;
    min-width: 20vw;
    border-radius: 0 15px 15px 0;
    border-left: 6px solid;
    position: fixed;
    top: 2%;
    left: 0;
    font-size: 0.8em;
    background: white;
    gap: 25px;
    z-index: 999;

    /* Animation d'entrée par défaut (Desktop : glisse depuis la droite) */
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
}

.success {
    border-color: rgb(0, 150, 226);
}

.error {
    border-color: red;
}

.alert {
    border-color: rgb(255, 162, 0);
}

/* Classe active déclenchée par le JS */
.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification .toast-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.toast-content p {
    line-height: 25px;
    color: var(--text-dark);
}

.toast-icon {
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success .toast-icon {
    background: rgb(0, 150, 226);
}

.error .toast-icon {
    background: rgb(255, 60, 0);
}

.alert .toast-icon {
    background: rgb(255, 162, 0);
}

.toast-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: var(--accent-orange);
    font-weight: bold;
    cursor: pointer;
}

/* Mobile (En haut, centré, pleine largeur) */
@media (max-width: 768px) {
    .toast-notification {
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: none;

        /* Animation d'entrée Mobile : glisse depuis le haut */
        transform: translateY(-120%);
    }

    .toast-notification.show {
        transform: translateY(0);
    }
}