/* ==========================================================
   RESOURCE — HEADER / TRUST BAR
========================================================== */

/* ---------- Accroche ---------- */
.ap-resource__lead {
    max-width: 60ch;
    margin: 0 0 var(--ap-5);
    color: var(--ap-text-muted);
    font-size: 19px;
    line-height: 1.6;
}

/* ---------- Barre de confiance ---------- */
.ap-resource-trust {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    margin-top: var(--ap-5);
    padding-top: var(--ap-4);
    border-top: 1px solid var(--ap-border);
}

.ap-resource-trust__item {
    min-width: 0;
    padding: 0 var(--ap-4);
    border-right: 1px solid var(--ap-border);
}

.ap-resource-trust__item:first-child {
    padding-left: 0;
}

.ap-resource-trust__item:last-child {
    padding-right: 0;
    border-right: 0;
}

.ap-resource-trust__label {
    display: block;
    margin-bottom: 4px;
    color: var(--ap-text-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ap-resource-trust strong {
    display: block;
    color: var(--ap-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .ap-resource-trust {
        grid-template-columns: 1fr 1fr;
        gap: var(--ap-4) 0;
    }

    .ap-resource-trust__item:nth-child(2) {
        border-right: 0;
    }

    .ap-resource-trust__item:nth-child(3) {
        padding-left: 0;
    }

}

/* ==========================================================
   RESSOURCES — masquer le titre WordPress natif
========================================================== */

/* Les ressources gèrent leur propre en-tête */
.page .entry-header{
    display:none;
}


/* ==========================================================
   RESOURCE — QUICK ANSWER
========================================================== */

.ap-answer{
    margin:56px 0;
    padding:32px;
    background:#FAFCFE;
    border-left:4px solid var(--ap-brand);
    border-radius:8px;
}

.ap-answer__label{
    margin:0 0 10px;
    color:#1E4E79;
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.ap-answer p{
    margin:0;
    max-width:64ch;
    font-size:21px;
    line-height:1.7;
}

.ap-answer strong{
    color:var(--ap-text);
}


/* ==========================================================
   RESOURCE — CALLOUTS
========================================================== */

.ap-callout {
    margin: 32px 0;
    padding: 20px 22px;
    border-left: 4px solid var(--ap-brand);
    border-radius: 8px;
    background: var(--ap-brand-weak);
}

.ap-callout__title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ap-callout p {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
}


/* ---------- Idée reçue ---------- */

.ap-callout--idea {
    background: #FFF9ED;
    border-left-color: var(--ap-uncertain);
}

.ap-callout--idea .ap-callout__title {
    color: var(--ap-uncertain);
}

/* ---------- Attention ---------- */

.ap-callout--warning {
    background: #FFF2ED;
    border-left-color: #C65332;
}

.ap-callout--warning .ap-callout__title {
    color: #C65332;
}

/* ---------- En pratique ---------- */

.ap-callout--practice {
    background: var(--ap-surface);
    border-left-color: var(--ap-brand);
}

.ap-callout--practice .ap-callout__title {
    color: var(--ap-brand);
}

/* ==========================================================
   EDITORIAL COLUMN
========================================================== */

.ap-reading-column{
    max-width:760px;
    margin-inline:auto;
}


/* ==========================================================
   RESOURCE — SECTIONS ÉDITORIALES
========================================================== */

.ap-content-section > h2 {
    margin: 64px 0 16px;
    padding-top: 16px;

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

    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.ap-content-section > h3 {
    margin: 48px 0 12px;

    font-size: 20px;
    line-height: 1.2;
}


.ap-figure{
    width:520px !important;
    max-width:100% !important;
    margin:2rem auto 2.75rem !important;
}

.ap-figure img{
    display:block;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    border:none;
}

.ap-figure figcaption{
    max-width:48ch;
    margin:1.25rem auto 0;
    text-align:left;
    font-size:.90rem;
    line-height:1.65;
    color:#666;
}

.ap-figure strong{
    display:block;
    margin-bottom:.4rem;
    color:#222;
    font-weight:600;
}


/* =====================================================================
   SOMMAIRE — SUR CETTE PAGE
   ===================================================================== */

.ap-toc {
    margin: 72px 0;
    padding: 32px;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-md);
}

.ap-toc__title {
    margin: 0 0 24px;
    color: var(--ap-text-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ap-toc__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 12px;

    margin: 0;
    padding-left: 1.5rem;
}

.ap-toc__list li {
    padding-left: 4px;
    color: var(--ap-text);
}

.ap-toc__list a {
    color: var(--ap-brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

/* ==========================================================
   RESOURCE — TABLE DES MATIÈRES
========================================================== */

.ap-toc {
    /* règles du bloc */
}

.ap-toc__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 12px;

    margin: 0;
    padding-left: 1.5rem;
}

/* autres règles du sommaire... */


/* ---------- Responsive ---------- */

@media (max-width: 720px) {

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

}

/* ==========================================================
   RESOURCE — CITATION / MESSAGE CLÉ
========================================================== */



.ap-callout--key {
    background: var(--ap-brand-weak);
    border-left-color: var(--ap-brand);
}

.ap-callout--key p {
    color: var(--ap-text);
    font-style: normal;
    font-weight: 600;
}

/* ==========================================================
   RESOURCE — FAQ
========================================================== */

.ap-faq {
    margin-top: 24px;
}

.ap-faq__item {
    padding: 24px 0;
    border-bottom: 1px solid var(--ap-border);
}

.ap-faq__item:first-child {
    border-top: 1px solid var(--ap-border);
}

.ap-faq__question {
    margin: 0 0 10px !important;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.4;
}

.ap-faq__answer {
    margin: 0 0 8px !important;
}

.ap-faq__link {
    margin: 0 !important;
    font-size: 14px;
}

.ap-faq__link a {
    color: var(--ap-brand);
    text-decoration: none;
}

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

/* ==========================================================
   RESOURCE — SOURCES
========================================================== */

.ap-reading-column .ap-sources ol {
    max-width: none;
    width: 100%;
}

.ap-sources > ol {
    max-width: none;
    width: 100%;
    padding-left: 1.5rem;
}

.ap-sources > ol li {
    margin-bottom: 14px;
    padding-left: 6px;
    line-height: 1.6;
}

.ap-sources > ol li:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   RESOURCE — TABLEAUX : NORMALISATION
========================================================== */

.ap-reading-column .ap-table th,
.ap-reading-column .ap-table td {
    padding: 10px 16px;
    line-height: 1.45;
}

.ap-reading-column .ap-table tbody tr,
.ap-reading-column .ap-table tbody td {
    height: auto;
}

/* =========================================================
   FICHE PUBLICATION — ANALYSE CRITIQUE ASSOCIÉE
   ========================================================= */

.ap-fiche__analysis {
	margin: 32px 0 36px;
	padding: 24px 28px;
	background: #F8FBFD;
	border-left: 3px solid #1E4E79;
}

.ap-fiche__analysis::before {
	content: "Analyse associée";
	display: block;
	margin-bottom: 8px;

	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;

	color: #2F6F6D;
}

.ap-fiche__analysis-title {
	display: block;
	margin: 0 0 8px;

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

	color: #222222;
}

.ap-fiche__analysis-text {
	max-width: 760px;
	margin: 0 0 16px;

	font-size: 15px;
	line-height: 1.65;

	color: #444444;
}

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

	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;

	color: #1E4E79;
	text-decoration: none;
}

.ap-fiche__analysis-link:hover,
.ap-fiche__analysis-link:focus {
	text-decoration: underline;
}