/* =====================================================================
   Project Horizon — mission.css (Foundation / Apollo Archives)
   Déroulé du concours en 3 phases — timeline verticale (trajectoire).
   ===================================================================== */

.ph-mission .ph-main { padding: 0; }

.mission {
    position: relative;
    padding: 64px 32px 96px;
    max-width: 920px; margin: 0 auto;
}
.mission::before,
.mission::after {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
    border: 1px solid var(--c-amber);
    opacity: 0.55;
}
.mission::before {
    top: 32px; left: 24px;
    border-right: 0; border-bottom: 0;
}
.mission::after {
    bottom: 40px; right: 24px;
    border-left: 0; border-top: 0;
}

/* ---------- Hero ---------------------------------------------------- */

.mission__head {
    margin-bottom: 64px;
    max-width: 680px;
}
.mission__stamp {
    display: inline-flex; align-items: center; gap: 12px;
    margin: 0 0 28px;
    font-family: var(--font-tech);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--c-amber);
}
.mission__stamp::before {
    content: ''; width: 8px; height: 8px;
    background: var(--c-amber); border-radius: 50%;
    box-shadow: 0 0 10px rgba(232, 163, 61, 0.6);
}
.mission__title {
    margin: 0;
    font-family: var(--font-editorial);
    font-weight: 400;
    font-size: clamp(48px, 8vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.025em;
    color: var(--c-bone);
}
.mission__dot { color: var(--c-amber); }
.mission__rule {
    width: 80px; height: 1px;
    background: var(--c-amber);
    margin: 28px 0 24px;
    opacity: 0.7;
}
.mission__lead {
    font-family: var(--font-editorial);
    font-style: italic; font-weight: 400;
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.4;
    color: var(--c-bone);
    margin: 0 0 20px;
}
.mission__intro {
    font-family: var(--font-body);
    font-size: 16px; line-height: 1.7;
    color: var(--c-bone-soft);
    margin: 0;
}

/* ---------- Timeline verticale (trajectoire) ----------------------- */

.mission-timeline {
    list-style: none;
    margin: 0; padding: 0;
    position: relative;
}
/* La ligne verticale qui relie les phases */
.mission-timeline::before {
    content: '';
    position: absolute;
    left: 23px; top: 12px; bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg,
                var(--c-amber) 0%,
                rgba(232, 163, 61, 0.30) 100%);
}

.mission-phase {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 28px;
    padding: 0 0 48px 0;
}
.mission-phase:last-child { padding-bottom: 0; }

/* Nœud rond avec chiffre romain (comme un point sur la trajectoire) */
.mission-phase__node {
    position: relative;
    z-index: 2;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg-warm);
    border: 1px solid var(--c-amber);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 4px var(--bg-warm), 0 0 16px rgba(232, 163, 61, 0.25);
}
.mission-phase__num {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: var(--c-amber);
    letter-spacing: -0.02em;
}

/* Corps de la phase */
.mission-phase__body {
    padding-top: 2px;
    min-width: 0;
}
.mission-phase__tag {
    font-family: var(--font-tech);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--c-amber);
    margin: 0 0 8px;
}
.mission-phase__name {
    font-family: var(--font-editorial);
    font-weight: 400;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--c-bone);
    margin: 0 0 16px;
}
.mission-phase__desc {
    font-family: var(--font-body);
    font-size: 15px; line-height: 1.7;
    color: var(--c-bone-soft);
    margin: 0 0 20px;
    max-width: 620px;
}

/* Readout technique + chips */
.mission-phase__meta {
    display: flex; flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.mission-phase__readout {
    font-family: var(--font-tech);
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--c-bone-dim);
    padding: 6px 12px;
    border: 1px solid rgba(244, 239, 230, 0.12);
    background: var(--bg-warm-2);
}
.mission-phase__chip {
    font-family: var(--font-tech);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.10em;
    color: var(--c-amber);
    padding: 6px 11px;
    border: 1px solid rgba(232, 163, 61, 0.35);
    background: rgba(232, 163, 61, 0.06);
}

/* ---------- CTA ----------------------------------------------------- */

.mission-cta {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(244, 239, 230, 0.08);
    text-align: center;
}
.mission-cta__text {
    font-family: var(--font-editorial);
    font-style: italic;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
    color: var(--c-bone);
    margin: 0 0 28px;
}
.mission-cta__btn {
    display: inline-flex; align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 1px solid var(--c-amber);
    background: transparent;
    color: var(--c-amber);
    font-family: var(--font-tech);
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.20em; text-transform: uppercase;
    text-decoration: none;
    transition: background var(--t-fast), color var(--t-fast),
                box-shadow var(--t-fast);
}
.mission-cta__btn:hover {
    background: var(--c-amber);
    color: var(--bg-warm);
    box-shadow: 0 0 24px rgba(232, 163, 61, 0.40);
}

/* ---------- Apparition au scroll (légère) -------------------------- */

.mission-phase {
    animation: mission-fade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.mission-phase:nth-child(2) { animation-delay: 0.10s; }
.mission-phase:nth-child(3) { animation-delay: 0.20s; }
@keyframes mission-fade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .mission-phase { animation: none; }
}

/* ---------- Responsive --------------------------------------------- */

@media (max-width: 640px) {
    .mission { padding: 40px 20px 72px; }
    .mission::before, .mission::after { display: none; }

    .mission__title { font-size: 48px; }

    .mission-phase {
        grid-template-columns: 40px 1fr;
        gap: 18px;
        padding-bottom: 40px;
    }
    .mission-timeline::before { left: 19px; }
    .mission-phase__node { width: 40px; height: 40px; }
    .mission-phase__num { font-size: 17px; }
}
