/* ============================================================
   AKTIVA NUMÉRIQUE — STYLES PAGES RESSOURCE (5 articles)
   ============================================================ */

body { background: var(--blanc); }

/* ===== HERO ===== */
.resource-hero {
    background: var(--sable-tres-clair);
    padding: 4.5rem 2rem 3.5rem;
    border-bottom: 1px solid rgba(27, 58, 92, 0.08);
    position: relative;
    overflow: hidden;
}
.resource-hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 226, 213, 0.5) 0%, transparent 70%);
    pointer-events: none;
}
.resource-hero-inner {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.resource-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--terracotta);
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.resource-title {
    font-family: var(--font-titre);
    font-weight: 400;
    font-size: clamp(2.25rem, 4.8vw, 3.75rem);
    line-height: 1.1;
    color: var(--bleu-profond);
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}
.resource-title em { font-style: italic; font-weight: 300; color: var(--bleu-profond-clair); }
.resource-subtitle {
    font-family: var(--font-lecture);
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--gris-texte);
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 400;
}
.resource-meta {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(27, 58, 92, 0.15);
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--gris-doux);
}
.resource-meta strong { color: var(--bleu-profond); font-weight: 600; }

/* ===== LAYOUT ===== */
.resource-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 4rem;
    align-items: start;
}

/* ===== COLONNE CONTENU ===== */
.resource-content { max-width: 720px; }
.resource-content p {
    font-family: var(--font-lecture);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--gris-texte);
    margin-bottom: 1.4rem;
}
.resource-content strong { font-weight: 500; color: var(--bleu-profond); }
.resource-content em { font-style: italic; }
.resource-content h2 {
    font-family: var(--font-titre);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--bleu-profond);
    letter-spacing: -0.02em;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    scroll-margin-top: 100px;
}
.resource-content h2 em { font-style: italic; font-weight: 300; }
.resource-content h2:first-child { margin-top: 0; }
.resource-content h3 {
    font-family: var(--font-titre);
    font-weight: 500;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--bleu-profond);
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
    scroll-margin-top: 100px;
}
.resource-content ul,
.resource-content ol {
    font-family: var(--font-lecture);
    margin-bottom: 1.4rem;
    padding-left: 1.5rem;
}
.resource-content ul li,
.resource-content ol li {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--gris-texte);
    margin-bottom: 0.4rem;
}
.resource-content ul li::marker,
.resource-content ol li::marker { color: var(--terracotta); }

.resource-content a {
    color: var(--bleu-profond);
    text-decoration: underline;
    text-decoration-color: var(--terracotta);
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.resource-content a:hover { color: var(--terracotta); }

/* Lettrine */
.resource-content > p:first-of-type::first-letter {
    font-family: var(--font-titre);
    font-size: 4rem;
    font-weight: 400;
    float: left;
    line-height: 0.9;
    margin-right: 0.5rem;
    margin-top: 0.3rem;
    color: var(--terracotta);
}

/* ===== ÉLÉMENTS ÉDITORIAUX ===== */

/* Callout / encart */
.resource-content .callout {
    background: var(--sable-tres-clair);
    border-left: 3px solid var(--terracotta);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    border-radius: 0 3px 3px 0;
}
.resource-content .callout-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--terracotta);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.resource-content .callout p {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 0.6rem;
}
.resource-content .callout p:last-child { margin-bottom: 0; }

/* Étape numérotée (HowTo) */
.resource-content .howto-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--sable-tres-clair);
    border-radius: 4px;
    align-items: start;
}
.resource-content .howto-step-num {
    width: 50px;
    height: 50px;
    background: var(--terracotta);
    color: var(--blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titre);
    font-size: 1.3rem;
    font-weight: 500;
    flex-shrink: 0;
}
.resource-content .howto-step h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}
.resource-content .howto-step p { margin-bottom: 0.75rem; }
.resource-content .howto-step p:last-child { margin-bottom: 0; }

/* Bloc d'avertissement / antipattern */
.resource-content .warning-block {
    background: rgba(184, 74, 58, 0.05);
    border-left: 3px solid var(--rouge-stop, #B84A3A);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    border-radius: 0 3px 3px 0;
}
.resource-content .warning-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rouge-stop, #B84A3A);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.resource-content .warning-block p,
.resource-content .warning-block ul li { margin-bottom: 0.5rem; }
.resource-content .warning-block ul { margin-bottom: 0; }

/* Citation */
.resource-content .pull-quote {
    margin: 2.5rem 0;
    padding: 2rem 2rem 2rem 3rem;
    background: var(--bleu-profond);
    color: var(--blanc);
    border-radius: 4px;
    position: relative;
}
.resource-content .pull-quote::before {
    content: "\201C";
    position: absolute;
    top: 0.25rem;
    left: 0.8rem;
    font-family: var(--font-titre);
    font-size: 3.5rem;
    color: var(--sable);
    line-height: 1;
}
.resource-content .pull-quote p {
    font-family: var(--font-titre);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 400;
    color: var(--blanc);
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

/* ===== SOMMAIRE LATÉRAL ===== */
.resource-toc { position: sticky; top: 100px; font-size: 0.88rem; }
.resource-toc-label {
    font-family: var(--font-titre);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--sable);
}
.resource-toc ul { list-style: none; padding: 0; }
.resource-toc li { margin-bottom: 0.65rem; line-height: 1.4; }
.resource-toc a {
    color: var(--gris-doux);
    font-size: 0.85rem;
    transition: color 0.2s;
    display: block;
    padding-left: 0.75rem;
    border-left: 2px solid transparent;
}
.resource-toc a:hover {
    color: var(--bleu-profond);
    border-left-color: var(--terracotta);
}

/* ===== SECTIONS POUR ALLER PLUS LOIN ===== */
.resource-section { padding: 5rem 2rem; }
.resource-section-alt { background: var(--sable-clair); }
.resource-section-inner { max-width: 1180px; margin: 0 auto; }
.resource-section-inner-narrow { max-width: 820px; margin: 0 auto; }
.resource-section-header { margin-bottom: 2.5rem; max-width: 720px; }
.resource-section-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta);
    font-weight: 600;
    margin-bottom: 1rem;
}
.resource-section-title {
    font-family: var(--font-titre);
    font-weight: 400;
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    line-height: 1.15;
    color: var(--bleu-profond);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.resource-section-title em { font-style: italic; font-weight: 300; }
.resource-section-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--gris-doux);
}

/* ===== PUSH FORMATIONS ===== */
.push-formations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.push-formation-card {
    background: var(--blanc);
    padding: 2rem;
    border-radius: 4px;
    border-left: 4px solid var(--terracotta);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.push-formation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(27, 58, 92, 0.08);
}
.push-formation-num {
    font-family: var(--font-titre);
    font-size: 0.78rem;
    color: var(--terracotta);
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.push-formation-card h3 {
    font-family: var(--font-titre);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--bleu-profond);
    line-height: 1.3;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}
.push-formation-card p {
    font-family: var(--font-lecture);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gris-doux);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.push-formation-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sable);
    color: var(--gris-doux);
    gap: 1rem;
}
.push-formation-price { color: var(--bleu-profond); font-weight: 600; flex-shrink: 0; }
.push-formation-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--bleu-profond);
    font-weight: 500;
}

/* ===== ARTICLES LIÉS ===== */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.related-card {
    background: var(--sable-tres-clair);
    padding: 1.75rem 2rem;
    border-radius: 4px;
    border-left: 3px solid var(--terracotta);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
}
.related-card:hover {
    background: var(--blanc);
    transform: translateX(3px);
    box-shadow: 0 8px 24px rgba(27, 58, 92, 0.06);
}
.related-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--terracotta);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.related-card h3 {
    font-family: var(--font-titre);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--bleu-profond);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.related-card p {
    font-family: var(--font-lecture);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--gris-doux);
    margin-bottom: 0.85rem;
}
.related-link {
    font-size: 0.88rem;
    color: var(--bleu-profond);
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .resource-layout { grid-template-columns: 1fr; gap: 2rem; }
    .resource-toc { position: static; max-width: 720px; }
    .push-formations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
    .resource-content > p:first-of-type::first-letter { font-size: 3rem; }
    .resource-meta { gap: 1rem; }
    .resource-content .howto-step { grid-template-columns: 1fr; gap: 0.75rem; }
    .resource-content .howto-step-num { width: 40px; height: 40px; font-size: 1.1rem; }
}
