/*
 * Pages « Pour qui ? » (template-pour-qui.php).
 * S'appuie sur landing.css (variables, .btn, .section-tag, .highlight, .container),
 * chargé sur toutes les pages marketing publiques.
 */

.pq {
    padding-top: var(--header-h, 80px);
    background: var(--bg-base);
    color: var(--text);
}

.pq h1,
.pq h2 {
    font-family: Outfit, sans-serif;
    color: var(--text);
    letter-spacing: -.02em;
}

.pq h1 {
    margin: 14px 0 18px;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.1;
    text-wrap: balance;
}

.pq h2 {
    margin: 14px 0 16px;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.15;
    text-wrap: balance;
}

.pq-crumbs {
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.pq-crumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.pq-crumbs a:hover {
    color: var(--brand-light);
}

.pq-intro {
    max-width: 620px;
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ── Hero ── */
.pq-hero {
    padding: 56px 0 64px;
}

.pq-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: center;
}

.pq-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.pq-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--text-secondary);
}

.pq-points li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pq-points li::before,
.pq-card-points li::before {
    content: '';
    width: 5px;
    height: 10px;
    margin-top: -3px;
    border: solid var(--brand-light);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    flex: none;
}

.pq-hero--hub {
    text-align: center;
}

.pq-hero--hub .pq-intro {
    margin-left: auto;
    margin-right: auto;
}

/* ── Panneau d'illustration ── */
.pq-panel {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-card);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.pq-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--brand-subtle), transparent 70%);
}

.pq-panel-dots {
    display: inline-flex;
    gap: 6px;
}

.pq-panel-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-hover);
}

.pq-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.pq-panel-rows {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.pq-panel-rows li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.pq-panel-rows li:last-child {
    border-bottom: 0;
}

.pq-panel-text strong {
    color: var(--text);
}

.pq-panel-badge {
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--brand-subtle);
    color: var(--brand-light);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pq-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3b82f6;
}

.pq-dot--ok {
    background: var(--success, #22c55e);
}

.pq-dot--alerte {
    background: var(--brand);
}

.pq-dot--attention {
    background: #f59e0b;
}

.pq-panel-note {
    margin: 0;
    padding: 10px 18px 14px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Sections ── */
.pq-section {
    padding: 80px 0;
}

.pq-section--tight {
    padding-top: 0;
}

.pq-section--alt {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pq-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.pq-row--reverse .pq-row-text {
    order: 2;
}

.pq-row-text > p {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.pq-checks {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.pq-checks li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

.pq-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand);
}

.pq-checks li::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pq-link {
    font-weight: 600;
    color: var(--brand-light);
    text-decoration: none;
}

.pq-link:hover {
    text-decoration: underline;
}

/* ── FAQ ── */
.pq-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: start;
}

.pq-faq {
    display: grid;
    gap: 10px;
}

.pq-faq details {
    padding: 0 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
}

.pq-faq summary {
    position: relative;
    padding: 18px 30px 18px 0;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

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

.pq-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--brand-light);
}

.pq-faq details[open] summary::after {
    content: '−';
}

.pq-faq details p {
    margin: 0;
    padding-bottom: 18px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ── Cartes profils ── */
.pq-others-title {
    margin-top: 0 !important;
    text-align: center;
}

.pq-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pq-cards--others {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.pq-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.55;
    transition: border-color .25s ease, transform .25s ease;
}

.pq-card:hover {
    border-color: var(--brand-light);
    transform: translateY(-4px);
}

.pq-card strong {
    font-size: 17px;
    color: var(--text);
}

.pq-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--brand-subtle);
    color: var(--brand-light);
}

.pq-card-points {
    display: grid;
    gap: 8px;
    margin: 10px 0 6px;
    padding: 0;
    list-style: none;
}

.pq-card-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
}

.pq-card-more {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 600;
    color: var(--brand-light);
}

/* ── CTA final ── */
.pq-final {
    padding: 56px 32px;
    border: 1px solid rgba(220, 38, 38, .35);
    border-radius: 24px;
    background: radial-gradient(ellipse at top, rgba(220, 38, 38, .18), transparent 70%), var(--bg-card);
    text-align: center;
}

.pq-final h2 {
    margin-top: 0;
}

.pq-final p {
    max-width: 640px;
    margin: 0 auto 28px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.pq-final .pq-hero-cta {
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .pq-hero-grid,
    .pq-row,
    .pq-faq-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .pq-row--reverse .pq-row-text {
        order: 0;
    }

    .pq-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pq-hero {
        padding: 36px 0 44px;
    }

    .pq-section {
        padding: 56px 0;
    }

    .pq-hero-cta {
        flex-direction: column;
    }

    .pq-hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .pq-cards,
    .pq-cards--others {
        grid-template-columns: 1fr;
    }

    .pq-final {
        padding: 40px 20px;
    }

    .pq-panel-rows li {
        grid-template-columns: auto 1fr;
    }

    .pq-panel-badge {
        grid-column: 2;
        justify-self: start;
    }
}
