/* =====================================================================
   AnalyseProtoxyde.fr — Page « Grandes questions »
   /grandes-questions/

   Dépendance :
   - ap-framework.css  (tokens globaux --ap-*)
     Seule dépendance réelle : aucune règle de ap-methodology.css
     n'est utilisée. L'ordre de chargement dans WordPress est libre.

   Périmètre :
   - toutes les règles sont scopées sous .ap-questions
   - aucune variable globale n'est créée ni redéfinie
   - aucune règle globale (pas de sélecteur d'élément nu)

   Intention :
   - index éditorial vertical (Nature / OECD / WHO)
   - lecture verticale, filets fins, labels discrets, numérotation
   - volontairement distinct de la grille de cartes de « Comprendre »
   ===================================================================== */


/* =====================================================================
   1. STRUCTURE
   ===================================================================== */

.ap-questions {
    background: var(--ap-bg);
}

.ap-questions__inner {
    width: min(
        960px,
        calc(100% - clamp(32px, 6vw, 56px))
    );

    margin-inline: auto;

    padding-top: 48px;
    padding-bottom: 88px;
}


/* =====================================================================
   2. FIL D'ARIANE
   ===================================================================== */

.ap-questions__breadcrumb {
    margin: 0 0 48px;

    color: var(--ap-text-muted);

    font-size: 13px;
    line-height: 1.5;
}

.ap-questions__breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.ap-questions__breadcrumb li {
    display: flex;
    align-items: center;

    gap: 8px;
}

.ap-questions__breadcrumb li + li::before {
    content: "›";

    color: var(--ap-border);
}

.ap-questions__breadcrumb a {
    color: var(--ap-brand);

    text-decoration: none;
}

.ap-questions__breadcrumb a:hover {
    text-decoration: underline;
}

.ap-questions__breadcrumb [aria-current="page"] {
    color: var(--ap-text);
}


/* =====================================================================
   3. EN-TÊTE
   ===================================================================== */

.ap-questions__header {
    max-width: 900px;

    padding: 0 0 8px;
}

.ap-questions__header h1 {
    margin: 0 0 24px;

    color: var(--ap-brand);

    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;

    letter-spacing: -0.02em;
}

.ap-questions__lead {
    max-width: 820px;

    margin: 0 0 20px;

    color: var(--ap-text);

    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
}

.ap-questions__intro {
    max-width: 78ch;

    margin: 0;

    color: var(--ap-text-muted);

    font-size: 18px;
    line-height: 1.8;
}


/* =====================================================================
   4. INDEX DES QUESTIONS
   ===================================================================== */

.ap-questions__index {
    margin: 44px 0 0;
    padding: 0;

    /* index sémantique en <ol> : on retire la puce native,
       la numérotation 01–04 est rendue visuellement */
    list-style: none;

    /* filet de clôture bas de l'index */
    border-bottom: 1px solid var(--ap-border);
}


/* ---------- Entrée ---------- */

.ap-questions__item {
    display: grid;

    grid-template-columns: 200px 1fr;
    gap: 32px;

    padding: 44px 0;

    /* filet séparateur entre chaque question */
    border-top: 1px solid var(--ap-border);
}


/* ---------- Colonne latérale : numéro + label ---------- */

.ap-questions__aside {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.ap-questions__num {
    display: block;

    color: var(--ap-brand);

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.08em;

    font-variant-numeric: tabular-nums;
}

.ap-questions__label {
    display: block;

    color: var(--ap-accent);

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* ---------- Colonne principale : question + réponse + lien ---------- */

.ap-questions__main {
    min-width: 0;
}

.ap-questions__q {
    max-width: 30ch;

    margin: 0 0 16px;

    color: var(--ap-text);

    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;

    letter-spacing: -0.015em;
}

.ap-questions__a {
    max-width: 66ch;

    margin: 0 0 18px;

    color: var(--ap-text);

    font-size: 17px;
    line-height: 1.8;
}

.ap-questions__more {
    margin: 0;
}

.ap-questions__more a {
    color: var(--ap-brand);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition: color var(--ap-transition);
}

.ap-questions__more a:hover {
    color: var(--ap-accent);

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* =====================================================================
   5. BLOC FINAL — « LES CONNAISSANCES ÉVOLUENT »
   ===================================================================== */

.ap-questions__evolve {
    max-width: 820px;

    margin: 40px 0 0;
    padding: 30px 32px;

    background: var(--ap-brand-weak);

    border-left: 4px solid var(--ap-brand);
    border-radius:
        0
        var(--ap-radius-md)
        var(--ap-radius-md)
        0;
}

.ap-questions__evolve-title {
    margin: 0 0 12px;

    color: var(--ap-brand);

    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: -0.01em;
}

.ap-questions__evolve p {
    max-width: 72ch;

    margin: 0 0 16px;

    color: var(--ap-text);

    font-size: 16.5px;
    line-height: 1.75;
}

.ap-questions__evolve-link {
    display: inline-block;

    color: var(--ap-brand);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition: color var(--ap-transition);
}

.ap-questions__evolve-link:hover {
    color: var(--ap-accent);

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* =====================================================================
   6. RESPONSIVE — MOBILE (aligné sur les pages éditoriales : 720px)
   ===================================================================== */

@media (max-width: 720px) {

    .ap-questions__inner {
        padding-top: 32px;
        padding-bottom: 64px;
    }


    /* ---------- Fil d'Ariane ---------- */

    .ap-questions__breadcrumb {
        margin-bottom: 36px;
    }


    /* ---------- En-tête ---------- */

    .ap-questions__header h1 {
        margin-bottom: 20px;

        font-size: 38px;
    }

    .ap-questions__lead {
        font-size: 20px;
    }

    .ap-questions__intro {
        font-size: 17px;
        line-height: 1.7;
    }


    /* ---------- Index : une seule colonne ---------- */

    .ap-questions__index {
        margin-top: 36px;
    }

    .ap-questions__item {
        grid-template-columns: 1fr;
        gap: 14px;

        padding: 32px 0;
    }


    /* numéro + label repassent en ligne, au-dessus de la question */

    .ap-questions__aside {
        flex-direction: row;
        align-items: baseline;
        flex-wrap: wrap;

        gap: 6px 12px;
    }

    .ap-questions__q {
        max-width: none;

        font-size: 22px;
    }

    .ap-questions__a {
        font-size: 16px;
        line-height: 1.75;
    }


    /* ---------- Bloc final ---------- */

    .ap-questions__evolve {
        padding: 24px 22px;
    }

    .ap-questions__evolve p {
        font-size: 16px;
    }

}
