:root {
    --primary-gradient: linear-gradient(to bottom, rgba(91, 155, 249, 0.3), rgba(26, 77, 163, 0.7));
    /* Bleu ciel vers bleu foncé - Idéal pour les informations */

    --success-gradient: linear-gradient(to bottom, rgba(116, 239, 120, 0.25), rgba(12, 91, 16, 0.7));
    /* Vert vif + foncé */

    --error-gradient: linear-gradient(to bottom, rgba(243, 121, 119, 0.2), rgba(86, 11, 8, 0.7));
    /* Rouge doux au top, sombre en bas */

    --warning-gradient: linear-gradient(to bottom, rgba(243, 195, 137, 0.3), rgba(197, 123, 11, 0.7));
    /* Orange clair vers foncé */

    --shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s ease;
}

.zone-notifications {
    position: fixed;
    top: 3rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2147483647;
    max-width: 40%;
    width: fit-content;
    pointer-events: none;
}

@media (max-width: 768px) {
    .zone-notifications {
    max-width: 80%;
    }
}

.notification {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    transform: translateX(100%);
    opacity: 0;
    animation: slideIn 0.4s forwards;
    display: flex;
    flex-direction: column;
    min-height: 90px;
    overflow: hidden;
    z-index: 2147483647;
    pointer-events: auto;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.notification-header h4 {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-header h4 i {
    font-size: 1rem;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.btn-close:hover {
    opacity: 1;
}

.notification-contenu {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    white-space: pre-line;
}

.notification.jauge::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 0 12px 12px;
}

.notification.jauge .barre-jauge {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: white;
    border-radius: 0 0 12px 12px;
    transform-origin: right;
    animation: barreAnim linear forwards;
}

@keyframes slideIn {
    from {
    transform: translateX(100%);
    opacity: 0;
    }
    to {
    transform: translateX(0);
    opacity: 1;
    }
}

@keyframes slideOut {
    to {
    transform: translateX(100%);
    opacity: 0;
    }
}

@keyframes barreAnim {
    from {
    transform: scaleX(1);
    }
    to {
    transform: scaleX(0);
    }
}

.notif-success {
    background: var(--success-gradient);
}

.notif-error {
    background: var(--error-gradient);
}

.notif-warning {
    background: var(--warning-gradient);
}

.notif-info {
    background: var(--primary-gradient);
}

/* Bulle de compteur pour les notifications en attente */
.notification-counter {
    position: fixed;
    top: .6rem;
    right: 2rem;
    z-index: 2147483647;
    background: linear-gradient(135deg, #ff9500, #ff6b00);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    min-width: 1.7rem;
    height: 2rem;
    padding: .5rem;
    padding-top: .6rem;
    border-radius: 12px;
    border-bottom-right-radius: 0px;
    border: 1px solid rgb(206, 206, 206);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4);
    transform: scale(0);
    transition: transform 0.3s ease;
    pointer-events: none;
    word-break: break-all;
}

.notification-counter.visible {
    transform: scale(1);
}

.notification-counter.pulse {
    animation: counterPulse 0.6s ease;
}

@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Styles pour le formatage du texte dans les notifications */
.notification-contenu .century-gothic {
    font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif;
    font-weight: normal;
}

.notification-contenu strong {
    font-weight: bold;
}

.notification-contenu em {
    font-style: italic;
}

.notification-contenu .gradient-anime {
    background: linear-gradient(45deg, #ff8c00, #ff6b00, #ff8c00, #ff6b00);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 2s ease-in-out infinite;
    font-weight: 500;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientShiftCustom {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}