/* ============================================
   OCI Express - Page Upload de Documents
   Interface d'envoi de documents par phase,
   navigation entre phases, barre laterale
   de services et modal de selection
   ============================================ */

/* ── Section Hero ── */
.us-hero {
    position: relative;
    padding: 8rem 0 2.5rem;
    overflow: hidden;
    text-align: center;
}

.us-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.us-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
}

.us-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    top: -200px;
    right: -150px;
}

.us-orb--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
}

.us-hero .container {
    position: relative;
    z-index: 1;
}

/* ── Fil d'Ariane ── */
.us-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.us-breadcrumb__link {
    color: var(--muted-foreground, #9ca3af);
    text-decoration: none;
    transition: color 0.2s ease;
}

.us-breadcrumb__link:hover {
    color: var(--gold);
}

.us-breadcrumb__sep {
    color: var(--muted-foreground, #6b7280);
    opacity: 0.4;
}

.us-breadcrumb__current {
    color: var(--gold);
    font-weight: 500;
}

/* ── Contenu du hero ── */
.us-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--foreground, #ffffff);
    margin: 0 0 0.875rem;
    line-height: 1.2;
    animation: usFadeUp 0.6s ease-out both;
}

.us-hero__text {
    color: var(--muted-foreground, #9ca3af);
    font-size: 0.9375rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
    font-family: 'IBM Plex Sans', sans-serif;
    animation: usFadeUp 0.6s ease-out 0.1s both;
}

/* ── Badge securise dans le hero ── */
.us-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.25rem;
    padding: 0.375rem 0.875rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--gold);
    font-family: 'IBM Plex Sans', sans-serif;
    animation: usFadeUp 0.6s ease-out 0.2s both;
}

.us-secure-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Section Guide ── */
.us-guide {
    padding: 2.5rem 0 0;
    animation: usFadeUp 0.6s ease-out 0.15s both;
}

.us-guide__intro {
    text-align: center;
    margin-bottom: 2rem;
}

.us-guide__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 600;
    color: var(--foreground, #ffffff);
    margin: 0 0 0.5rem;
}

.us-guide__subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--muted-foreground, #9ca3af);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.us-guide__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.us-guide__step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    padding: 1.25rem;
    background: var(--card, #1a1d24);
    border: 1px solid var(--border, #2a2d35);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.us-guide__step:hover {
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.03);
}

.us-guide__step-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}

.us-guide__step-num {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0b0f;
    font-size: 0.625rem;
    font-weight: 700;
    font-family: 'IBM Plex Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.us-guide__step-content h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground, #ffffff);
    margin: 0 0 0.375rem;
}

.us-guide__step-content p {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8125rem;
    color: var(--muted-foreground, #9ca3af);
    line-height: 1.55;
    margin: 0;
}

.us-guide__step-connector {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--border, #2a2d35), rgba(212, 175, 55, 0.3), var(--border, #2a2d35));
    flex-shrink: 0;
}

/* Guide - responsive */
@media (max-width: 768px) {
    .us-guide {
        padding: 2rem 0 0;
    }

    .us-guide__steps {
        flex-direction: column;
        gap: 0;
    }

    .us-guide__step-connector {
        width: 2px;
        height: 16px;
        background: linear-gradient(180deg, var(--border, #2a2d35), rgba(212, 175, 55, 0.3), var(--border, #2a2d35));
    }

    .us-guide__step {
        width: 100%;
    }
}

/* ── Navigation entre phases ── */
.us-phases {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border, #2a2d35);
    background: rgba(10, 11, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 72px;
    z-index: 40;
    animation: usFadeUp 0.5s ease-out 0.15s both;
}

.us-phases__track {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0;
}

.us-phases__track::-webkit-scrollbar {
    display: none;
}

.us-phase-step {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.875rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.us-phase-step:hover {
    background: rgba(212, 175, 55, 0.06);
}

.us-phase-step__number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'IBM Plex Sans', sans-serif;
    border: 2px solid var(--border, #2a2d35);
    color: var(--muted-foreground, #6b7280);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.us-phase-step.active .us-phase-step__number {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: transparent;
    color: #0a0b0f;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.us-phase-step__label {
    font-size: 0.8125rem;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--muted-foreground, #6b7280);
    transition: color 0.25s ease;
}

.us-phase-step.active .us-phase-step__label {
    color: var(--foreground, #ffffff);
    font-weight: 500;
}

.us-phase-connector {
    width: 20px;
    height: 2px;
    background: var(--border, #2a2d35);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.us-phase-connector.filled {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
}

/* ── Mise en page principale ── */
.us-main {
    padding: 2.5rem 0 4rem;
    min-height: 50vh;
}

.us-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ── Barre laterale ── */
.us-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: calc(72px + 58px + 2rem);
    animation: usFadeUp 0.5s ease-out 0.25s both;
}

.us-card {
    background: var(--card, #1a1d24);
    border: 1px solid var(--border, #2a2d35);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.us-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border, #2a2d35);
}

.us-card__badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0b0f;
    font-size: 0.625rem;
    font-weight: 700;
    font-family: 'IBM Plex Sans', sans-serif;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.us-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--foreground, #ffffff);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Navigation des services ── */
.us-services {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
}

.us-service-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.us-service-item:hover {
    background: rgba(212, 175, 55, 0.04);
    border-color: rgba(212, 175, 55, 0.08);
}

.us-service-item.active {
    background: rgba(212, 175, 55, 0.07);
    border-color: rgba(212, 175, 55, 0.18);
}

.us-service-item__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border, #2a2d35);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.us-service-item.active .us-service-item__dot {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.us-service-item__num {
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--muted-foreground, #6b7280);
    min-width: 18px;
    transition: color 0.2s;
}

.us-service-item.active .us-service-item__num {
    color: var(--gold);
}

.us-service-item__name {
    font-size: 0.8125rem;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--muted-foreground, #9ca3af);
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.us-service-item.active .us-service-item__name {
    color: var(--foreground, #ffffff);
    font-weight: 500;
}

/* ── Carte d'information ── */
.us-info {
    background: var(--card, #1a1d24);
    border: 1px solid var(--border, #2a2d35);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.us-info__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(212, 175, 55, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    color: var(--gold);
}

.us-info__title {
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--foreground, #ffffff);
    margin: 0 0 0.5rem;
}

.us-info__text {
    font-size: 0.8125rem;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--muted-foreground, #9ca3af);
    line-height: 1.65;
    margin: 0 0 0.875rem;
}

.us-info__formats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.us-format-tag {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    font-family: 'IBM Plex Sans', sans-serif;
    padding: 0.2rem 0.5rem;
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
    border-radius: var(--radius-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Colonne d'upload ── */
.us-uploader-col {
    min-width: 0;
    animation: usFadeUp 0.5s ease-out 0.35s both;
}

/* ── Navigation en bas de page ── */
.us-bottom-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border, #2a2d35);
    text-align: center;
}

.us-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground, #9ca3af);
    text-decoration: none;
    font-size: 0.875rem;
    font-family: 'IBM Plex Sans', sans-serif;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border, #2a2d35);
    transition: all 0.25s ease;
}

.us-back-link:hover {
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(212, 175, 55, 0.04);
}

/* ── Modal de selection de phase (page d'accueil) ── */
.ps-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ps-overlay.visible {
    opacity: 1;
}

.ps-modal {
    background: var(--card, #1a1d24);
    border: 1px solid var(--border, #2a2d35);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    text-align: center;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}

.ps-overlay.visible .ps-modal {
    transform: scale(1) translateY(0);
}

.ps-modal__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.ps-modal__icon svg {
    width: 26px;
    height: 26px;
    color: var(--gold);
}

.ps-modal__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--foreground, #ffffff);
    margin: 0 0 0.375rem;
}

.ps-modal__subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground, #9ca3af);
    margin: 0 0 1.5rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.ps-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ps-phase-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border, #2a2d35);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    width: 100%;
    font-family: 'IBM Plex Sans', sans-serif;
}

.ps-phase-card:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateX(4px);
}

.ps-phase-card__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
}

.ps-phase-card__content {
    flex: 1;
    min-width: 0;
}

.ps-phase-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground, #ffffff);
    margin-bottom: 0.125rem;
}

.ps-phase-card__desc {
    font-size: 0.75rem;
    color: var(--muted-foreground, #6b7280);
}

.ps-phase-card__arrow {
    color: var(--muted-foreground, #6b7280);
    flex-shrink: 0;
    transition: all 0.2s;
}

.ps-phase-card:hover .ps-phase-card__arrow {
    color: var(--gold);
    transform: translateX(2px);
}

.ps-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border, #2a2d35);
}

.ps-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border, #2a2d35);
    border-radius: var(--radius-sm);
    color: var(--muted-foreground, #9ca3af);
    font-size: 0.8125rem;
    font-family: 'IBM Plex Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.ps-back-btn:hover {
    color: var(--foreground, #ffffff);
    border-color: var(--muted-foreground, #6b7280);
}

.ps-dismiss-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--muted-foreground, #6b7280);
    cursor: pointer;
    font-family: 'IBM Plex Sans', sans-serif;
}

.ps-dismiss-label input {
    cursor: pointer;
}

/* ── Indicateurs de progression ── */

/* Badge de comptage d'uploads par service */
.us-service-item__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.3rem;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0a0b0f;
    font-size: 0.625rem;
    font-weight: 700;
    font-family: 'IBM Plex Sans', sans-serif;
    margin-left: auto;
    flex-shrink: 0;
    animation: usCountPop 0.3s ease-out;
}

/* Le point de service passe au vert quand il y a des uploads */
.us-service-item.has-uploads .us-service-item__dot {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.us-service-item.has-uploads.active .us-service-item__dot {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Badge d'upload sur l'etape de phase */
.us-phase-step {
    position: relative;
}

.us-phase-step__badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 0.25rem;
    border-radius: 100px;
    background: #22c55e;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    font-family: 'IBM Plex Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%);
    animation: usCountPop 0.3s ease-out;
}

@keyframes usCountPop {
    from {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Animations ── */
@keyframes usFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Document Checklist ── */
.us-checklist {
    margin-bottom: 1.5rem;
}
.us-checklist-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}
.us-checklist-progress {
    margin-bottom: 1rem;
}
.us-checklist-progress-bar {
    height: 8px;
    background: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}
.us-checklist-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(38, 92%, 50%), hsl(142, 60%, 40%));
    border-radius: 4px;
    transition: width 0.4s ease;
}
.us-checklist-progress-text {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}
.us-checklist-phase {
    margin-bottom: 0.75rem;
}
.us-checklist-phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    background: var(--secondary);
    border-radius: var(--radius-sm, 6px);
    margin-bottom: 0.35rem;
    color: var(--foreground);
}
.us-checklist-phase-header.complete {
    background: hsla(142, 60%, 40%, 0.1);
    color: hsl(142, 60%, 40%);
}
.us-checklist-phase-count {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}
.us-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 1.5rem;
    font-size: 0.8125rem;
}
.us-checklist-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-weight: 700;
}
.us-checklist-item.check .us-checklist-icon {
    color: hsl(142, 60%, 40%);
}
.us-checklist-item.missing .us-checklist-icon {
    color: hsl(0, 72%, 51%);
}
.us-checklist-name {
    flex: 1;
    color: var(--foreground);
}
.us-checklist-count {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}
.us-checklist-upload {
    font-size: 0.75rem;
    color: #D4AF37;
    text-decoration: underline;
    cursor: pointer;
}
.us-checklist-upload:hover {
    color: hsl(38, 92%, 60%);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .us-layout {
        grid-template-columns: 1fr;
    }

    .us-sidebar {
        position: static;
        flex-direction: row;
        gap: 1rem;
    }

    .us-card,
    .us-info {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .us-hero {
        padding: 7rem 0 2rem;
    }

    .us-phases {
        top: 60px;
    }

    .us-sidebar {
        flex-direction: column;
    }

    .us-services {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .us-services::-webkit-scrollbar {
        display: none;
    }

    .us-service-item {
        flex-shrink: 0;
    }

    .us-phase-step__label {
        display: none;
    }

    .us-main {
        padding: 1.5rem 0 3rem;
    }

    .ps-modal {
        padding: 1.5rem;
    }

    .ps-modal__title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .us-hero {
        padding: 6.5rem 0 1.5rem;
    }

    .us-hero__title {
        font-size: 1.5rem;
    }

    .us-hero__text {
        font-size: 0.875rem;
    }

    .us-card,
    .us-info {
        padding: 1rem;
    }

    .us-phase-step {
        padding: 0.375rem 0.5rem;
    }

    .us-phase-step__number {
        width: 24px;
        height: 24px;
        font-size: 0.6875rem;
    }

    .ps-phase-card {
        padding: 0.75rem;
    }

    .ps-phase-card__num {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 360px) {
    .us-hero__title {
        font-size: 1.3rem;
    }

    .us-hero__subtitle {
        font-size: 0.8rem;
    }

    .us-phase-step {
        padding: 0.5rem;
    }

    .us-phase-step__num {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .us-phase-step__label {
        font-size: 0.65rem;
    }

    .us-card__title {
        font-size: 0.95rem;
    }

    .us-guide__step {
        padding: 1rem;
    }

    .us-guide__step-num {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .us-service-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ── Accessibilite - Reduction des animations ── */
@media (prefers-reduced-motion: reduce) {
    .us-hero__title,
    .us-hero__text,
    .us-secure-badge,
    .us-guide,
    .us-phases,
    .us-sidebar,
    .us-uploader-col {
        animation: none !important;
    }

    .us-guide__step,
    .us-phase-step,
    .us-service-item,
    .us-back-link,
    .ps-overlay,
    .ps-modal,
    .ps-phase-card,
    .ps-back-btn,
    .us-phase-step__number,
    .us-phase-connector {
        transition-duration: 0.01ms !important;
    }

    .us-service-item__count,
    .us-phase-step__badge {
        animation: none !important;
    }

    .ps-phase-card:hover {
        transform: none !important;
    }

    .ps-phase-card:hover .ps-phase-card__arrow {
        transform: none !important;
    }
}


/* ============================================
   OCI Express - Upload par Phase
   Composant d'upload de documents pour
   chaque phase de la demande OCI
   ============================================ */

/* ── Conteneur principal ── */
.pu-container {
    font-family: var(--font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    background: var(--card-bg, #1a1d24);
    border: 1px solid var(--border-color, #2a2d35);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 100%;
}

/* ── En-tete ── */
.pu-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pu-phase-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pu-title {
    font-size: 1.25rem;
    color: var(--text-primary, #fff);
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.pu-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary, #9ca3af);
    margin: 0;
}

/* ── Alerte authentification requise ── */
.pu-auth-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    color: #fca5a5;
}

.pu-auth-warning svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #f87171;
}

.pu-auth-warning a {
    color: var(--gold);
    text-decoration: underline;
}

.pu-auth-warning a:hover {
    color: var(--gold-light);
}

/* ── Zone de depot (drag & drop) ── */
.pu-drop-zone {
    border: 2px dashed var(--border-color, #2a2d35);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.pu-drop-zone:hover,
.pu-drop-zone.drag-over {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.pu-drop-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    color: var(--gold);
    display: block;
}

.pu-drop-text {
    color: var(--text-secondary, #9ca3af);
    font-size: 0.9375rem;
    margin: 0 0 0.25rem;
}

.pu-drop-text strong {
    color: var(--gold);
}

.pu-drop-hint {
    color: var(--text-muted, #6b7280);
    font-size: 0.75rem;
    margin: 0;
}

/* Input file cache */
.pu-file-input {
    display: none;
}

/* ── Liste des fichiers selectionnes ── */
.pu-files-list {
    display: none;
    margin-bottom: 1rem;
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pu-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary, #12141a);
    border: 1px solid var(--border-color, #2a2d35);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.pu-file-item:last-child {
    margin-bottom: 0;
}

.pu-file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pu-file-icon.image {
    background: rgba(59, 130, 246, 0.15);
}

.pu-file-icon.image svg {
    color: #60a5fa;
}

.pu-file-icon.pdf {
    background: rgba(239, 68, 68, 0.15);
}

.pu-file-icon.pdf svg {
    color: #f87171;
}

.pu-file-icon.file {
    background: rgba(212, 175, 55, 0.15);
}

.pu-file-icon.file svg {
    color: var(--gold);
}

.pu-file-icon svg {
    width: 20px;
    height: 20px;
}

.pu-file-info {
    flex: 1;
    min-width: 0;
}

.pu-file-name {
    color: var(--text-primary, #fff);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pu-file-size {
    color: var(--text-muted, #6b7280);
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.pu-file-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pu-file-remove:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.pu-file-remove svg {
    width: 16px;
    height: 16px;
}

/* ── Bouton d'envoi ── */
.pu-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pu-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.pu-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pu-btn-icon {
    width: 18px;
    height: 18px;
}

/* ── Barre de progression ── */
.pu-progress {
    display: none;
    height: 4px;
    background: var(--border-color, #2a2d35);
    border-radius: var(--radius-xs);
    margin-top: 1rem;
    overflow: hidden;
}

.pu-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: var(--radius-xs);
    width: 0%;
    transition: width 0.3s ease;
}

/* ── Messages de statut (succes, erreur, info, attention) ── */
.pu-status {
    display: none;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    text-align: center;
}

.pu-status-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.pu-status-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.pu-status-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.pu-status-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* ── Historique des uploads ── */
.pu-uploads-history {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #2a2d35);
}

.pu-uploads-history h4 {
    font-size: 0.875rem;
    color: var(--text-secondary, #9ca3af);
    margin: 0 0 0.75rem;
    font-weight: 500;
}

.pu-uploads-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pu-uploads-history li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-color, #2a2d35);
    font-size: 0.8125rem;
}

.pu-uploads-history li:last-child {
    border-bottom: none;
}

.pu-uploads-history .upload-name {
    flex: 1;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pu-uploads-history .upload-date {
    color: var(--text-muted, #6b7280);
    font-size: 0.75rem;
}

.pu-uploads-history .upload-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.pu-uploads-history .upload-link:hover {
    text-decoration: underline;
}

.pu-uploads-history .upload-status {
    color: #86efac;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Icone de fichier dans l'historique */
.pu-history-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pu-history-icon svg {
    width: 14px;
    height: 14px;
}

.pu-history-icon.image {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

.pu-history-icon.pdf {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.pu-history-icon.file {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
}

/* ── Etat d'erreur ── */
.pu-error {
    text-align: center;
    color: #fca5a5;
    padding: 2rem;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .pu-container {
        padding: 1rem;
    }

    .pu-title {
        font-size: 1.125rem;
    }

    .pu-drop-zone {
        padding: 1.5rem 1rem;
    }

    .pu-drop-icon {
        width: 40px;
        height: 40px;
    }

    .pu-file-item {
        padding: 0.625rem;
    }

    .pu-file-icon {
        width: 36px;
        height: 36px;
    }

    .pu-submit-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* ── Animation de chargement ── */
@keyframes pu-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pu-submit-btn:disabled .pu-btn-icon {
    animation: pu-pulse 1.5s ease-in-out infinite;
}

@media (max-width: 360px) {
    .pu-container {
        padding: 1rem;
    }

    .pu-drop-zone {
        padding: 1.5rem 1rem;
    }

    .pu-drop-text {
        font-size: 0.8rem;
    }

    .pu-submit-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* ── Accessibilite -- Reduction des animations ── */
@media (prefers-reduced-motion: reduce) {
    .pu-drop-zone,
    .pu-file-remove,
    .pu-submit-btn,
    .pu-progress-fill {
        transition-duration: 0.01ms !important;
    }

    .pu-submit-btn:disabled .pu-btn-icon {
        animation: none !important;
    }

    .pu-submit-btn:hover:not(:disabled) {
        transform: none !important;
    }
}

.pu-empty-state {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    padding: 1.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
