/* =====================================================================
   AnalyseProtoxyde.fr — Page Comprendre
   /comprendre/
   ===================================================================== */


/* =====================================================================
   1. HERO
   ===================================================================== */

.ap-understand-hero {
    padding: 40px 0 8px;
}

.ap-understand-hero__kicker {
    display: inline-block;

    color: var(--ap-accent);

    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: .14em;
    text-transform: uppercase;
}

.ap-understand-hero h1 {
    margin: 12px 0 16px;

    color: var(--ap-text);

    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;

    letter-spacing: -.02em;
}

.ap-understand-hero__intro {
    max-width: 60ch;

    margin: 0;

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

    font-size: 19px;
    line-height: 1.55;
}


/* =====================================================================
   2. GRANDS THÈMES
   ===================================================================== */

.ap-hub {
    padding: 48px 0;
}

.ap-hub__title {
    margin: 0 0 24px;
    padding-bottom: 12px;

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

    border-bottom: 1px solid var(--ap-border);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: .08em;
    text-transform: uppercase;
}


/* =====================================================================
   3. GRILLE
   ===================================================================== */

.ap-hub-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =====================================================================
   4. CARTES
   ===================================================================== */

.ap-hub-card {
    position: relative;

    display: flex;
    flex-direction: column;

    gap: 10px;

    min-height: 210px;

    padding: 28px 26px;

    background: var(--ap-bg);
    color: inherit;

    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-md);

    text-decoration: none;
}

.ap-hub-card__cat {
    color: var(--ap-accent);

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: .10em;
    text-transform: uppercase;
}

.ap-hub-card__title {
    margin: 0;

    color: var(--ap-text);

    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.ap-hub-card__desc {
    flex: 1;

    margin: 0;

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

    font-size: 14.5px;
    line-height: 1.55;
}


/* =====================================================================
   5. CARTE ACTIVE
   ===================================================================== */

.ap-hub-card--active {
    border-top: 3px solid var(--ap-brand);

    transition:
        border-color var(--ap-transition),
        box-shadow var(--ap-transition);
}

.ap-hub-card--active:hover {
    color: inherit;

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

    box-shadow: 0 1px 0 var(--ap-brand);
}

.ap-hub-card__action {
    margin-top: 4px;

    color: var(--ap-brand);

    font-size: 14px;
    font-weight: 600;
}

.ap-hub-card--active:hover .ap-hub-card__action {
    text-decoration: underline;
}


/* =====================================================================
   6. CARTES À VENIR
   ===================================================================== */

.ap-hub-card--upcoming {
    cursor: default;
}

.ap-hub-card__status {
    align-self: flex-start;

    margin-top: 4px;
    padding: 3px 10px;

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

    border: 1px solid var(--ap-border);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: .06em;
    text-transform: uppercase;
}


/* =====================================================================
   7. INFORMATION DOCUMENTÉE
   ===================================================================== */

.ap-method {
    margin-top: 16px;
    background: var(--ap-surface);
    border-top: 1px solid var(--ap-border);
}

.ap-method__inner {
    max-width: var(--ap-container);
    padding-top: 40px;
    padding-bottom: 40px;
}

.ap-method__inner h2 {
    max-width: none;
    margin: 0 0 10px;
    color: var(--ap-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.ap-method__inner p {
    max-width: none;
    margin: 0;
    color: var(--ap-text-muted);
    font-size: 15px;
    line-height: 1.65;
}


/* =====================================================================
   8. RESPONSIVE
   ===================================================================== */

@media (max-width: 900px) {

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

}


@media (max-width: 600px) {

    .ap-understand-hero h1 {
        font-size: 29px;
    }

    .ap-understand-hero__intro {
        font-size: 17px;
    }

    .ap-hub-grid {
        grid-template-columns: 1fr;
    }

    .ap-hub-card {
        min-height: 0;
    }

}