/* ============================================================
   devis-facturation.css — Page SEO ToutPilot
   Classes isolées tp-seo- — thèmes clair et sombre
   ============================================================ */

.tp-seo-page {
    width: 100%;
    overflow: hidden;
    color: var(--l-text);
}

.tp-seo-page h1,
.tp-seo-page h2,
.tp-seo-page h3 {
    color: var(--l-text);
}

.tp-seo-page p {
    color: var(--l-muted);
}

.tp-seo-container {
    width: min(1120px, calc(100% - 3rem));
    margin-inline: auto;
}

.tp-seo-narrow {
    max-width: 850px;
}

.tp-seo-hero {
    position: relative;
    padding: clamp(4rem, 9vw, 7rem) 1.5rem;
    background: radial-gradient(700px 420px at 80% 20%, var(--l-glow), transparent 70%);
}

.tp-seo-hero h1 {
    max-width: 850px;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.tp-seo-eyebrow {
    display: inline-flex;
    margin-bottom: 1.2rem;
    padding: .4rem .85rem;
    border: 1px solid var(--l-border);
    border-radius: 999px;
    background: var(--l-surface);
    color: var(--l-accent);
    font-size: .85rem;
    font-weight: 700;
}

.tp-seo-lead {
    max-width: 720px;
    margin-top: 1.5rem;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.tp-seo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
    margin-top: 2rem;
}

.tp-seo-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: .8rem 1.4rem;
    border: 1px solid var(--l-border);
    border-radius: 999px;
    font: inherit;
    font-size: .95rem;
    font-weight: 650;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.tp-seo-btn:hover {
    transform: translateY(-2px);
}

.tp-seo-btn-primary {
    background: var(--l-accent);
    border-color: var(--l-accent);
    color: var(--l-accent-text);
}

.tp-seo-btn-primary:hover {
    filter: brightness(1.1);
}

.tp-seo-btn-secondary {
    background: var(--l-surface);
    color: var(--l-text);
}

.tp-seo-btn-secondary:hover {
    border-color: var(--l-accent);
}

.tp-seo-section {
    padding: clamp(3.5rem, 7vw, 6rem) 1.5rem;
}

.tp-seo-section-alt {
    background: var(--l-bg-alt);
}

.tp-seo-heading {
    max-width: 760px;
    margin: 0 auto 2.8rem;
    text-align: center;
}

.tp-seo-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.tp-seo-heading p {
    margin-top: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.tp-seo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.tp-seo-card {
    min-width: 0;
    padding: 1.7rem;
    border: 1px solid var(--l-border);
    border-radius: 20px;
    background: var(--l-surface);
    transition: transform .2s ease, border-color .2s ease;
}

.tp-seo-card:hover {
    transform: translateY(-4px);
    border-color: var(--l-accent);
}

.tp-seo-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.2rem;
    border-radius: 14px;
    background: var(--l-bg-alt);
    color: var(--l-accent);
    font-size: 1.4rem;
}

.tp-seo-card h3 {
    margin-bottom: .7rem;
    font-size: 1.15rem;
    line-height: 1.35;
}

.tp-seo-card p {
    font-size: .96rem;
    line-height: 1.7;
}

.tp-seo-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-seo-step {
    padding: 1.5rem;
    border: 1px solid var(--l-border);
    border-radius: 18px;
    background: var(--l-surface);
}

.tp-seo-step h3 {
    margin: 1rem 0 .65rem;
    font-size: 1.1rem;
}

.tp-seo-step p {
    font-size: .94rem;
    line-height: 1.7;
}

.tp-seo-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--l-accent);
    color: var(--l-accent-text);
    font-weight: 800;
}

.tp-seo-note {
    margin-top: 2rem;
    padding: 1.5rem 1.7rem;
    border: 1px solid var(--l-border);
    border-left: 4px solid var(--l-accent);
    border-radius: 12px;
    background: var(--l-surface);
    color: var(--l-muted);
    line-height: 1.75;
}

.tp-seo-faq {
    max-width: 850px;
}

.tp-seo-faq details {
    margin-bottom: .85rem;
    border: 1px solid var(--l-border);
    border-radius: 14px;
    background: var(--l-surface);
    overflow: hidden;
}

.tp-seo-faq summary {
    position: relative;
    padding: 1.2rem 3rem 1.2rem 1.3rem;
    color: var(--l-text);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.tp-seo-faq summary::-webkit-details-marker {
    display: none;
}

.tp-seo-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.3rem;
    transform: translateY(-50%);
    color: var(--l-accent);
    font-size: 1.5rem;
    font-weight: 500;
}

.tp-seo-faq details[open] summary::after {
    content: "−";
}

.tp-seo-faq details p {
    padding: 0 1.3rem 1.3rem;
    font-size: .96rem;
    line-height: 1.75;
}

.tp-seo-final {
    padding: clamp(4rem, 8vw, 6.5rem) 1.5rem;
    text-align: center;
    background: radial-gradient(650px 300px at 50% 100%, var(--l-glow), transparent 75%);
}

.tp-seo-final h2 {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.tp-seo-final p {
    max-width: 650px;
    margin: 1.2rem auto 0;
    line-height: 1.75;
}

.tp-seo-final .tp-seo-actions {
    justify-content: center;
}

@media (max-width: 900px) {
    .tp-seo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-seo-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .tp-seo-container {
        width: calc(100% - 2rem);
    }

    .tp-seo-hero {
        padding: 3.5rem 1rem;
    }

    .tp-seo-hero h1 {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    .tp-seo-section {
        padding: 3.5rem 1rem;
    }

    .tp-seo-grid,
    .tp-seo-steps {
        grid-template-columns: 1fr;
    }

    .tp-seo-card,
    .tp-seo-step {
        padding: 1.35rem;
    }

    .tp-seo-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tp-seo-btn {
        width: 100%;
    }

    .tp-seo-final {
        padding: 3.5rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-seo-btn,
    .tp-seo-card {
        transition: none;
    }

    .tp-seo-btn:hover,
    .tp-seo-card:hover {
        transform: none;
    }
}
