/* ==========================================================================
   GESNOTE — LOT 10
   Historique des migrations et parcours scolaire annuel
   À ajouter à la FIN du fichier CSS global.
   ========================================================================== */

.annual-migration-history-kpi-danger {
    color: #b91c1c;
    background: #fee2e2;
}

.annual-migration-history-type {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    color: #0f2748;
}

.annual-migration-history-type i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #c25a00;
    background: #fff3e6;
}

.annual-migration-history-years {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.annual-migration-history-years i {
    color: #f97316;
}

.annual-migration-history-counts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 800;
}

.annual-migration-history-counts .is-success {
    color: #047857;
}

.annual-migration-history-counts .is-info {
    color: #1d4ed8;
}

.annual-migration-history-counts .is-danger {
    color: #b91c1c;
}

.annual-migration-history-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    white-space: nowrap;
}

.annual-migration-history-status.is-success {
    color: #047857;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.annual-migration-history-status.is-danger {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.annual-migration-history-status.is-warning {
    color: #a16207;
    border-color: #fde68a;
    background: #fffbeb;
}

.annual-migration-history-status.is-info {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.annual-migration-history-status.is-muted {
    color: #475569;
    border-color: #e2e8f0;
    background: #f8fafc;
}

.annual-migration-history-info {
    height: 100%;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.annual-migration-history-info > span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.annual-migration-history-info > strong {
    display: block;
    color: #0f172a;
    font-size: 0.96rem;
}

.annual-migration-history-info > small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.annual-migration-history-counter {
    height: 100%;
    padding: 17px;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.annual-migration-history-counter span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.annual-migration-history-counter strong {
    color: #0f172a;
    font-size: 1.45rem;
}

.annual-migration-history-counter.is-success {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.annual-migration-history-counter.is-success strong {
    color: #047857;
}

.annual-migration-history-counter.is-info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.annual-migration-history-counter.is-info strong {
    color: #1d4ed8;
}

.annual-migration-history-counter.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.annual-migration-history-counter.is-danger strong {
    color: #b91c1c;
}

.annual-migration-history-technical {
    color: #64748b;
    font-size: 0.75rem;
}

.annual-migration-history-technical summary {
    cursor: pointer;
    font-weight: 800;
}

.annual-migration-history-technical > div {
    margin-top: 4px;
    font-family: monospace;
}

/* Parcours annuel de l'élève */

.annual-migration-student-journey {
    overflow: hidden;
}

.annual-migration-journey-kpi {
    height: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
    background: #f8fafc;
}

.annual-migration-journey-kpi span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.annual-migration-journey-kpi strong {
    color: #0f172a;
    font-size: 1.35rem;
}

.annual-migration-journey-kpi.is-admitted {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.annual-migration-journey-kpi.is-admitted strong {
    color: #047857;
}

.annual-migration-journey-kpi.is-repeated {
    border-color: #fecaca;
    background: #fef2f2;
}

.annual-migration-journey-kpi.is-repeated strong {
    color: #b91c1c;
}

.annual-migration-journey-kpi.is-migration {
    border-color: #c4b5fd;
    background: #f5f3ff;
}

.annual-migration-journey-kpi.is-migration strong {
    color: #6d28d9;
}

.annual-migration-journey-timeline {
    position: relative;
    display: grid;
    gap: 18px;
}

.annual-migration-journey-timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 15px;
    width: 2px;
    background: #dbe3ef;
}

.annual-migration-journey-item {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
}

.annual-migration-journey-marker {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding-top: 22px;
}

.annual-migration-journey-marker span {
    width: 15px;
    height: 15px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 2px #cbd5e1;
}

.annual-migration-journey-item.is-current
    .annual-migration-journey-marker
    span {
    background: #f97316;
    box-shadow: 0 0 0 2px #fed7aa;
}

.annual-migration-journey-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.annual-migration-journey-item.is-current .annual-migration-journey-card {
    border-color: #fdba74;
    background: linear-gradient(145deg, #fff7ed, #ffffff);
}

.annual-migration-journey-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.annual-migration-journey-card-head h3 {
    margin: 0;
    color: #0f2748;
    font-size: 1.08rem;
    font-weight: 900;
}

.annual-migration-journey-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.annual-migration-journey-grid > div {
    min-width: 0;
    padding: 12px;
    border-radius: 13px;
    background: #f8fafc;
}

.annual-migration-journey-grid span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.annual-migration-journey-grid strong {
    display: block;
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 0.9rem;
}

.annual-migration-journey-grid small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.annual-migration-journey-migration-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 15px;
    padding: 13px;
    border: 1px solid #ddd6fe;
    border-radius: 15px;
    background: #f5f3ff;
}

.annual-migration-journey-migration-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #6d28d9;
    background: #ede9fe;
}

@media (max-width: 991.98px) {
    .annual-migration-journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .annual-migration-journey-grid {
        grid-template-columns: 1fr;
    }

    .annual-migration-journey-card {
        padding: 16px;
    }

    .annual-migration-journey-migration-note {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .annual-migration-journey-migration-note .gesnote-btn-light {
        width: 100%;
        justify-content: center;
    }
}
