/*
 * pSEO BAID — pseo.css
 * Couche des landing pages SEO (pilier, alternatives, secteurs, types).
 * Base (variables, nav, boutons, orbes, glass, faq-accordion) : landing.css.
 * Volontairement sobre : ces pages doivent charger vite (< 2 s).
 */

/* ═══════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════ */
.pseo-main {
    padding: 1.5rem 0 3rem;
}

.pseo-container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ── Fil d'Ariane ────────────────────────────────────────── */
.pseo-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: .82rem;
}
.pseo-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    color: var(--text-muted);
}
.pseo-breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: .35rem;
}
.pseo-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.pseo-breadcrumb a:hover { color: var(--baid-primary); }

/* ── Titres & texte ──────────────────────────────────────── */
.pseo-h1 {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--text-primary);
    margin: 0 0 .75rem;
}

.pseo-maj {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.pseo-h2 {
    font-size: clamp(1.25rem, 3.5vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.pseo-h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 .6rem;
}

.pseo-section {
    margin-bottom: 2.5rem;
}
.pseo-section p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 1rem;
}

.pseo-liste {
    padding-left: 1.4rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Tableau comparatif ──────────────────────────────────── */
.pseo-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.pseo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    min-width: 480px;
}
.pseo-table th,
.pseo-table td {
    padding: .85rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(139, 92, 246, .12);
    color: var(--text-secondary);
    line-height: 1.5;
}
.pseo-table thead th {
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(139, 92, 246, .25);
}
.pseo-table tbody th[scope="row"] {
    font-weight: 600;
    color: var(--text-primary);
    width: 32%;
}
.pseo-table tbody tr:last-child th,
.pseo-table tbody tr:last-child td {
    border-bottom: none;
}
.pseo-table .col-baid {
    background: rgba(139, 92, 246, .06);
    color: var(--text-primary);
}

.pseo-table-note {
    margin-top: .75rem;
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Bloc CTA standard (milieu + fin) ────────────────────── */
.pseo-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin: 2.5rem 0;
    padding: 1.75rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid rgba(139, 92, 246, .3);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
@media (max-width: 575.98px) {
    .pseo-cta .btn-cta-primary,
    .pseo-cta .btn-cta-ghost {
        display: block;
        width: 100%;
    }
}

/* ── Maillage interne ────────────────────────────────────── */
.pseo-maillage {
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(139, 92, 246, .15);
    border-radius: var(--radius);
}
.pseo-maillage h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .75rem;
}
.pseo-maillage ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.pseo-maillage a {
    color: var(--baid-primary);
    text-decoration: none;
    line-height: 1.5;
}
.pseo-maillage a:hover { text-decoration: underline; }

/* ── Hub du pilier ───────────────────────────────────────── */
.pseo-hub__liste a {
    color: var(--baid-primary);
    text-decoration: none;
}
.pseo-hub__liste a:hover { text-decoration: underline; }

/* La nav CTA pSEO reste visible aussi sur mobile (pas de burger ici) */
.landing-nav__cta--pseo {
    display: flex;
    margin-left: auto;
}

/* ── Pages secteurs : douleurs & cas d'usage ─────────────── */
.secteur-douleurs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.secteur-douleur {
    padding: 1.25rem 1.4rem;
    background: rgba(255, 255, 255, .6);
    border: 1px solid rgba(236, 72, 153, .22);
    border-left: 4px solid var(--baid-secondary);
    border-radius: var(--radius-sm);
}
.secteur-douleur__titre {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .5rem;
}
.secteur-douleur p { margin: 0; }

.secteur-cas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .secteur-cas { grid-template-columns: repeat(3, 1fr); }
}
.secteur-cas__item {
    padding: 1.25rem 1.4rem;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.secteur-cas__module {
    display: inline-block;
    padding: .2rem .7rem;
    margin-bottom: .6rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--baid-primary), var(--baid-secondary));
}
.secteur-cas__titre {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .5rem;
}
.secteur-cas__item p { margin: 0; font-size: .92rem; }

/* ── Glossaire ───────────────────────────────────────────── */
.glossaire-index {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(139, 92, 246, .15);
    border-radius: var(--radius);
}
.glossaire-index ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .85rem;
}
.glossaire-index a {
    color: var(--baid-primary);
    text-decoration: none;
    font-size: .9rem;
}
.glossaire-index a:hover { text-decoration: underline; }

.glossaire-terme {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, .12);
    scroll-margin-top: 80px;
}
.glossaire-terme:last-child { border-bottom: none; }
.glossaire-terme__titre {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .5rem;
}
.glossaire-terme__def {
    color: var(--text-secondary);
    line-height: 1.7;
}
.glossaire-terme__def p { margin: 0 0 .6rem; }
.glossaire-terme__def a { color: var(--baid-primary); }

/* ── Hub /ressources/ ────────────────────────────────────── */
.ressources-phares {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .ressources-phares { grid-template-columns: 1fr 1fr; }
}

.ressource-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.5rem 1.5rem;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.ressource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.ressource-card--diagnostic {
    border: 1px solid rgba(139, 92, 246, .35);
}

.ressource-card__emoji {
    font-size: 1.75rem;
    line-height: 1;
}
.ressource-card__titre {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}
.ressource-card__desc {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Vitrine Baromètre (actif propriétaire, "bientôt") ───── */
.ressource-barometre {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem 1.75rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, .08), rgba(236, 72, 153, .08));
    border: 1px solid rgba(139, 92, 246, .3);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) {
    .ressource-barometre { flex-direction: row; align-items: flex-start; gap: 1.25rem; }
}
.ressource-barometre__icon { font-size: 2.25rem; line-height: 1; }
.ressource-barometre__texte .pseo-h2 { margin-bottom: .5rem; }
.ressource-barometre__statut {
    margin-top: .5rem;
    font-size: .9rem;
    color: var(--text-secondary);
}
.ressource-badge {
    display: inline-block;
    padding: .2rem .65rem;
    margin-right: .4rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--baid-primary);
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .25);
}
