/* =========================================================
   Sous-pages prestations — structure commune (réf. dépannage)
   ========================================================= */

.presta-page {
    --presta-surface: #12161c;
    --presta-surface-2: #161a20;
    --presta-border: rgba(255, 255, 255, 0.08);
    --presta-radius: 16px;
    overflow-x: clip;
    padding-bottom: calc(2.25rem + 4.5rem);
}

.presta-page .breadcrumb {
    margin-bottom: var(--space-breadcrumb);
}

.presta-kicker {
    margin-bottom: var(--space-kicker);
}

.presta-page h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--text-page-h1-sm);
    line-height: 1.1;
}

.presta-lead {
    margin: var(--space-lead-top) 0 0;
    max-width: var(--text-lead-max);
    color: var(--text-description);
    font-size: var(--text-lead);
    line-height: 1.7;
}

.presta-intro {
    padding: var(--space-page-intro);
}

.presta-intro__grid {
    display: grid;
    gap: 1.15rem;
}

.presta-intro__media {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--presta-border);
    border-radius: var(--presta-radius);
}

.presta-intro__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.presta-section {
    padding: var(--space-page-block);
}

.presta-section__title {
    margin: 0 0 1rem;
    color: var(--text-primary);
    font-size: var(--text-section-h2);
}

.presta-situations {
    display: grid;
    gap: 0.75rem;
}

.presta-situation {
    padding: 1rem 1.05rem;
    border: 1px solid var(--presta-border);
    border-left: 3px solid var(--color-accent);
    border-radius: 12px;
    background: var(--presta-surface);
}

.presta-situation h3 {
    margin: 0 0 0.35rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.presta-situation p {
    margin: 0;
    color: var(--text-description);
    font-size: 0.9rem;
    line-height: 1.55;
}

.presta-steps {
    display: grid;
    gap: 0.75rem;
    counter-reset: presta-step;
}

.presta-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 1rem 1.05rem;
    border: 1px solid var(--presta-border);
    border-radius: 12px;
    background: var(--presta-surface);
}

.presta-step::before {
    counter-increment: presta-step;
    content: counter(presta-step);
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 87, 34, 0.12);
    border: 1px solid rgba(255, 87, 34, 0.4);
    color: var(--color-accent);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
}

.presta-step h3 {
    margin: 0 0 0.3rem;
    color: var(--text-primary);
    font-size: 1.02rem;
}

.presta-step p {
    margin: 0;
    color: var(--text-description);
    font-size: 0.9rem;
    line-height: 1.55;
}

.presta-scope {
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--presta-border);
    border-radius: var(--presta-radius);
    background: var(--presta-surface);
}

.presta-scope ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.presta-scope li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--text-description);
    font-size: 0.94rem;
    line-height: 1.5;
}

.presta-scope li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--color-accent);
}

.presta-scope p {
    margin: 0;
    color: var(--text-description);
    font-size: 0.94rem;
    line-height: 1.65;
}

.presta-scope p + p {
    margin-top: 0.75rem;
}

.presta-scope a {
    color: var(--color-accent);
}

.presta-note {
    margin-top: 1rem;
    color: var(--text-description);
    font-size: 0.94rem;
    line-height: 1.65;
}

.presta-note--lead {
    margin-top: 0;
    margin-bottom: 1rem;
}

.presta-note a {
    color: var(--color-accent);
}

.presta-cta {
    padding: 1.65rem 0 0;
}

.presta-cta__bar {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 1.15rem;
    border: 1px solid rgba(255, 87, 34, 0.35);
    border-radius: var(--presta-radius);
    background: var(--presta-surface-2);
}

.presta-cta__bar h2 {
    margin: 0 0 0.4rem;
    color: var(--text-primary);
    font-size: var(--text-band-h2);
}

.presta-cta__bar p {
    margin: 0;
    color: var(--text-description);
    font-size: 0.94rem;
    line-height: 1.65;
}

.presta-cta__bar a:not(.btn) {
    color: var(--color-accent);
}

.presta-cta__btn {
    width: 100%;
    justify-content: center;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 640px) {
    .presta-situations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .presta-cta__btn {
        width: auto;
        min-width: 14rem;
    }
}

@media (min-width: 768px) {
    .presta-cta__bar {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 1.5rem;
        padding: 1.35rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .presta-page {
        --presta-radius: 18px;
        padding-bottom: 3.5rem;
    }

    .presta-page h1 {
        font-size: var(--text-page-h1);
    }

    .presta-intro__grid {
        grid-template-columns: 1.15fr 0.85fr;
        /* start = même axe vertical sous navbar que Services / Tarifs / Contact */
        align-items: start;
        gap: 2rem;
    }

    .presta-intro__media img {
        min-height: 16rem;
        aspect-ratio: auto;
        height: 100%;
    }

    .presta-steps {
        grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    }

    .presta-step {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
}
