/* ============================================
   Page Work — le déroulé et l'appel final
   Le déroulé : dans une carte de section (.os-card), quatre
   cartes blanches au liseré fin et en relief (l'icône dans sa touche,
   le titre sur la même ligne, la phrase dessous).
   L'appel final : une boîte de dialogue du système, fenêtre blanche
   sans cadre — l'icône, la question, deux boutons, la teinte à droite
   (l'action par défaut, comme sur macOS ; au téléphone, en haut).
   ============================================ */

.pw-steps {
    margin-top: var(--section);
}

.pw-steps__list {
    display: grid;
    gap: 12px;
    max-width: 1040px;
    margin: clamp(40px, 6vw, 64px) auto 0;
    list-style: none;
}

.pw-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
    padding: 18px 20px 20px;
    border-radius: var(--r-win);
    background: var(--paper);
    box-shadow: 0 0 0 var(--hair) var(--edge), var(--relief), var(--shadow-soft);
    color: var(--ink);
}

/* L'icône dans sa touche blanche, comme les icônes d'app. */
.pw-step__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-key);
    background: var(--key-light);
    box-shadow: 0 0 0 var(--hair) var(--edge), var(--key-light-relief);
    color: var(--klein-text);
}

.pw-step__icon svg {
    width: 22px;
    height: 22px;
}

.pw-step__name {
    font-size: var(--t-body);
    font-weight: var(--w-medium);
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.pw-step__desc {
    grid-column: 1 / -1;
    font-size: var(--t-small);
    line-height: 1.6;
    color: var(--ink-muted);
    text-wrap: pretty;
}

@media (min-width: 640px) {
    .pw-steps__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1000px) {
    .pw-steps__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pw-step {
        align-content: start;
    }
}

/* ── L'appel final ── */
.pw-end {
    padding: var(--section) var(--gutter) 0;
}

.pw-alert {
    position: relative;
    width: min(520px, 100%);
    margin-inline: auto;
}

.pw-alert > .win {
    box-shadow: 0 0 0 var(--hair) var(--win-edge), var(--shadow-lift);
}

.pw-alert .pw-alert__body {
    background: var(--paper);
}

.pw-alert__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px clamp(20px, 5vw, 32px) 24px;
    text-align: center;
}

.pw-alert__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
}

.pw-alert__title {
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: var(--w-medium);
    line-height: 1.25;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.pw-alert__text {
    max-width: 36ch;
    color: var(--ink-muted);
    text-wrap: pretty;
}

.pw-alert__actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
}

.pw-alert__actions .key-btn {
    width: 100%;
}

@media (min-width: 600px) {
    .pw-alert__actions {
        flex-direction: row;
    }

    .pw-alert__actions .key-btn {
        flex: 1;
        padding-inline: 16px;
    }
}
