.notification-wrapper {
    position: fixed;
    left: 2rem;
    top: 2rem;
    width: 280px;
    z-index: 1001;
}

/* ── STATUS BANNER ── */
.status-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 24px var(--shadow), 0 1px 0 rgba(255,255,255,0.04) inset;
    overflow: hidden;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.1rem 0.7rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(245,158,11,0.06) 0%, transparent 60%);
}

.status-icon { font-size: 1rem; }

.status-title {
    flex: 1;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.status-phase {
    font-size: 0.68rem;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

/* ── PROGRESS TRACK ── */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1rem 0.9rem;
    position: relative;
}

/* background track — de centre dot 1 à centre dot N (4 steps, padding 1rem)
   centre = padding + (track-width / nb-steps / 2) = 1rem + (100%-2rem)/8 */
.status-bar::before {
    content: '';
    position: absolute;
    top: calc(1rem + 11px);
    left: calc(1rem + (100% - 2rem) / 8);
    right: calc(1rem + (100% - 2rem) / 8);
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    z-index: 0;
}

/* filled progress — même largeur que ::before, scaleX(0→1) depuis la gauche */
.status-bar::after {
    content: '';
    position: absolute;
    top: calc(1rem + 11px);
    left: calc(1rem + (100% - 2rem) / 8);
    right: calc(1rem + (100% - 2rem) / 8);
    height: 3px;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 50%, #f59e0b 100%);
    border-radius: 99px;
    z-index: 0;
    transform-origin: left;
    transform: scaleX(var(--progress, 0));
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── STEPS ── */
.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.status-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


.status-step.completed .status-dot {
    background: #22c55e;
    border-color: #16a34a;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.status-step.active .status-dot {
    background: #f59e0b;
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(245,158,11,0.15), 0 0 12px rgba(245,158,11,0.4);
    animation: pulse 2s ease-in-out infinite;
}

/* ring pulse for active */
.status-step.active .status-dot::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(245,158,11,0.35);
    animation: ring 2s ease-in-out infinite;
}

.status-step:not(.completed):not(.active) .status-dot {
    background: var(--bg-card-hover);
    border-color: var(--border);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@keyframes ring {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0; transform: scale(1.5); }
}

/* ── LABELS ── */
.status-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    opacity: 0.6;
}

.status-step.completed .status-label {
    color: #22c55e;
    opacity: 1;
}

.status-step.active .status-label {
    color: #f59e0b;
    font-weight: 700;
    opacity: 1;
}

/* ── BOUTON RETOUR ── */
.back-button-wrapper {
    position: fixed;
    left: 2rem;
    top: 192px;
    width: 280px;
    z-index: 1000;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.back-button:hover {
    background: var(--bg-card-hover);
    border-color: #f59e0b;
    color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(245,158,11,0.2);
}

.back-button-icon { font-size: 1rem; }

/* ── TABLE DES MATIÈRES offset (desktop) ── */
.table-of-contents { top: 248px; }

/* ── TABLET + MOBILE (≤ 1200px) : flux normal, le hamburger gère la TOC ── */
@media (max-width: 1200px) {
    .notification-wrapper {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .back-button-wrapper {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .table-of-contents { top: 0; }
}
