/* Page « Installer l'application » (charte du site public). */
.pwa-page {
    /* Teintes hors charte, dérivées d'elle : pastille de succès (vert #1a9c4b) et tons des schémas (fond ivoire #f7f2e8). */
    --pwa-success-tint: #e7f5ec;
    --pwa-tone-1: #efe9dc;
    --pwa-tone-2: #e7e0d2;
    --pwa-tone-3: #cfc7b8;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    color: #171717;
}

.pwa-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a51e16;
}

.pwa-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.2;
    font-weight: 700;
    color: #212121;
}

.pwa-lead {
    max-width: 640px;
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 1.55;
    color: #6b6b6b;
}

.pwa-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.pwa-steps[hidden],
.pwa-installed[hidden] {
    display: none;
}

.pwa-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 14px;
}

.pwa-card--mine {
    border-color: #a51e16;
    box-shadow: 0 0 0 3px rgba(165, 30, 22, 0.12);
}

.pwa-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.pwa-card-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.pwa-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: #fbeae7;
    color: #a51e16;
    font-size: 12px;
    font-weight: 700;
}

.pwa-badge[hidden] {
    display: none;
}

.pwa-card-note {
    margin: 4px 0 20px;
    font-size: 14px;
    color: #6b6b6b;
}

.pwa-list {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pwa-step;
}

.pwa-list li {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    counter-increment: pwa-step;
}

.pwa-list h3 {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.pwa-list h3::before {
    content: counter(pwa-step);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #a51e16;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pwa-list p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b6b6b;
}

.pwa-list button + p {
    margin-top: 8px;
}

.pwa-schema {
    display: block;
    width: 100%;
    height: auto;
}

.pwa-schema .sc-bg {
    fill: #f7f2e8;
}
.pwa-schema .sc-device {
    fill: #fff;
    stroke: #958b7d;
    stroke-width: 1.5;
}
.pwa-schema .sc-sheet {
    fill: #fff;
    stroke: #d7d0c5;
    stroke-width: 1;
}
.pwa-schema .sc-soft {
    fill: var(--pwa-tone-1);
}
.pwa-schema .sc-soft-fill rect {
    fill: var(--pwa-tone-2);
}
.pwa-schema .sc-bar {
    fill: var(--pwa-tone-3);
}
.pwa-schema .sc-rule {
    stroke: #e1e1e1;
    stroke-width: 1;
}
.pwa-schema .sc-line {
    fill: none;
    stroke: #6b6b6b;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pwa-schema .sc-dim {
    stroke: var(--pwa-tone-3);
}
.pwa-schema .sc-ink {
    stroke: #212121;
    stroke-width: 1.4;
}
.pwa-schema .sc-ink-fill {
    fill: #212121;
}
.pwa-schema .sc-focus {
    fill: none;
    stroke: #a51e16;
    stroke-width: 2;
}
.pwa-schema .sc-tint {
    fill: #fbeae7;
}
.pwa-schema .sc-text {
    fill: #212121;
}

.pwa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #a51e16;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.pwa-btn:hover {
    background: #86150f;
    color: #fff;
}

.pwa-btn:focus-visible {
    outline: 2px solid #a51e16;
    outline-offset: 2px;
}

.pwa-btn[hidden] {
    display: none;
}

.pwa-btn--ghost {
    margin-top: 16px;
    background: #fff;
    color: #a51e16;
    border: 1px solid #a51e16;
}

.pwa-btn--ghost:hover {
    background: #fbeae7;
    color: #86150f;
}

.pwa-installed {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 640px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 14px;
}

.pwa-installed-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pwa-success-tint);
    color: #1a9c4b;
}

.pwa-installed h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.pwa-installed p {
    margin: 0;
    font-size: 14px;
    color: #6b6b6b;
}

.pwa-faq {
    margin-top: 32px;
    padding: 24px;
    background: #f7f2e8;
    border-radius: 14px;
}

.pwa-faq h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
}

.pwa-faq ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.55;
    color: #6b6b6b;
}

@media (max-width: 860px) {
    .pwa-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .pwa-page {
        padding-top: 24px;
    }

    .pwa-card {
        padding: 20px 16px;
    }

    .pwa-list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .pwa-schema {
        max-width: 220px;
    }

    .pwa-btn {
        width: 100%;
    }
}
