/* ==========================================================================
   article.css — Style Neurex pour les guides et articles
   Job Suisse — 2025
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. VARIABLES & BASE
   -------------------------------------------------------------------------- */
.guide-page {
    background: #F3F4F6;
    padding: 0 0 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.guide-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   0b. NAVBAR COMPACTE (guides uniquement — pas de hero sombre)
   -------------------------------------------------------------------------- */
.rt-hero-gap.rt-hero-guide {
    min-height: auto;
    padding-bottom: 20px;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   1. HERO ARTICLE (tags + titre + meta + image)
   -------------------------------------------------------------------------- */
.article-hero {
    background: #F3F4F6;
    padding: 48px 0 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.article-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Tags */
.article-hero .tags-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.article-hero .tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    background: #ECEBFF;
    color: #4A3BFF;
}

/* Titre */
.article-hero .post-title {
    font-size: 54px;
    line-height: 1.12;
    font-weight: 500;
    color: #0B0E1A;
    max-width: 960px;
    margin: 16px auto 0;
    letter-spacing: -0.02em;
}

/* Sous-titre */
.article-hero .post-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #6B7280;
    max-width: 680px;
    margin: 16px auto 0;
    font-weight: 400;
}

/* Meta (date + temps) */
.article-hero .post-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: #6B7280;
    margin-top: 20px;
}

.article-hero .post-meta svg {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
}

.article-hero .post-meta .meta-separator {
    color: #D1D5DB;
}

/* Image hero */
.article-hero .hero-media {
    max-width: 1100px;
    margin: 32px auto 0;
    border-radius: 28px;
    overflow: hidden;
}

.article-hero .hero-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   2. GRILLE ARTICLE : SIDEBAR + CONTENU
   -------------------------------------------------------------------------- */
.post-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    margin-top: 56px;
}

/* --------------------------------------------------------------------------
   3. SIDEBAR STICKY
   -------------------------------------------------------------------------- */
.sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Auteur */
.sidebar .author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sidebar .author-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #E5E7EB;
}

.sidebar .author-name {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    line-height: 1.3;
}

.sidebar .author-role {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.4;
    margin-top: 2px;
}

/* Table des matières */
.sidebar .toc {
    border-top: 1px solid #E6E8EF;
    padding-top: 24px;
}

.sidebar .toc-title {
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 16px;
    line-height: 30px;
}

.sidebar .toc a {
    display: block;
    padding: 8px 0 8px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, font-weight 0.15s ease;
}

.sidebar .toc a:hover {
    color: #4A3BFF;
}

.sidebar .toc a.is-active {
    border-left: 2px solid #4A3BFF;
    color: #4A3BFF;
    font-weight: 600;
}

/* Carte alerte emploi */
.sidebar .newsletter {
    border-radius: 22px;
    padding: 28px 24px;
    background: linear-gradient(135deg, #2d0068 0%, #4A3BFF 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(45, 0, 104, 0.25);
}

.sidebar .newsletter h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    line-height: 26px;
    text-align: center;
}

.sidebar .newsletter p {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 16px;
    color: #fff;
}

.sidebar .newsletter form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar .newsletter input[type="text"],
.sidebar .newsletter input[type="email"] {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.sidebar .newsletter input[type="text"]::placeholder,
.sidebar .newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar .newsletter input[type="text"]:focus,
.sidebar .newsletter input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.sidebar .newsletter button {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: #FFD84D;
    color: #0B0E1A;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Autocomplete métier */
.sidebar .newsletter .metier-autocomplete {
    position: relative;
    width: 100%;
}

.sidebar .newsletter .metier-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    list-style: none;
    margin: 4px 0 0 0;
    padding: 6px 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.sidebar .newsletter .metier-suggestions.active {
    display: block;
}

.sidebar .newsletter .metier-suggestions li {
    padding: 10px 16px;
    color: #1e293b;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sidebar .newsletter .metier-suggestions li:hover,
.sidebar .newsletter .metier-suggestions li.selected {
    background: #f1f5f9;
}

.sidebar .newsletter .metier-suggestions li strong {
    color: #4A3BFF;
}

.sidebar .newsletter button:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar .newsletter button:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. CONTENU (colonne droite)
   -------------------------------------------------------------------------- */
.content {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.75;
    color: #111827;
}

/* Paragraphes */
.content p {
    margin: 0 0 18px;
    color: #111827;
}

/* H2 (sections) */
.content h2 {
    font-size: 36px;
    font-weight: 500;
    line-height: 46px;
    margin: 56px 0 16px;
    color: #0B0E1A;
    letter-spacing: -0.01em;
}

.content h2:first-child {
    margin-top: 0;
}

/* H3 (sous-sections) */
.content h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 34px;
    margin: 36px 0 12px;
    color: #111827;
}

/* H4 */
.content h4 {
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    margin: 28px 0 10px;
    color: #1F2937;
}

/* Listes */
.content ul,
.content ol {
    margin: 12px 0 22px 20px;
    padding: 0;
}

.content li {
    margin: 10px 0;
    line-height: 1.7;
    color: #111827;
}

.content li::marker {
    color: #4A3BFF;
}

/* Strong */
.content strong {
    font-weight: 500;
    color: #0B0E1A;
}

/* Images dans le contenu */
.content img {
    width: 100%;
    border-radius: 20px;
    display: block;
    margin: 24px 0;
}

/* Liens */
.content a {
    color: #4A3BFF;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.content a:hover {
    border-bottom-color: #4A3BFF;
}

/* --------------------------------------------------------------------------
   5. COMPOSANTS SPECIAUX
   -------------------------------------------------------------------------- */

/* Carte "A RETENIR" — style quote dégradé */
.retenir-card {
    border-radius: 24px;
    padding: 36px 40px;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d0068 50%, #3531AC 100%);
    color: #fff;
    margin: 40px 0;
    position: relative;
}

.retenir-card .retenir-text {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
    font-style: italic;
    margin: 0 0 16px;
    color: #fff;
}

.retenir-card .retenir-text::before {
    content: '"';
}

.retenir-card .retenir-text::after {
    content: '"';
}

.retenir-card .retenir-source {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 400;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.retenir-card .retenir-source::before {
    content: '—';
}

/* CTA bouton dans retenir-card */
.retenir-card .retenir-cta-wrap {
    text-align: center;
    margin-top: 20px;
}

.retenir-cta {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    background: #fff;
    color: #2d0068;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.retenir-cta:hover {
    background: #FFD84D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Ancien callout-box (conservé pour compatibilité) */
.callout-box {
    background: linear-gradient(135deg, rgba(45, 0, 104, 0.08) 0%, rgba(45, 0, 104, 0.03) 100%);
    border: 1px solid rgba(45, 0, 104, 0.15);
    border-left: 4px solid #2d0068;
    border-radius: 16px;
    padding: 24px 26px;
    margin: 32px 0;
}

.callout-box .callout-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2d0068;
    margin-bottom: 10px;
}

.callout-box p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.7;
    color: #1F2937;
}

.callout-box p:last-of-type {
    margin-bottom: 0;
}

/* Bloc exemple */
.example-block {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-left: 3px solid #4A3BFF;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 20px 0;
}

.example-block .example-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4A3BFF;
    margin-bottom: 6px;
}

.example-block p {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.example-block p:last-child {
    margin-bottom: 0;
}

/* Tableaux dans les guides */
.table-responsive {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
}

.guide-table thead {
    background: #F9FAFB;
}

.guide-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    color: #1F2937;
    border-bottom: 2px solid #E5E7EB;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.guide-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
    vertical-align: middle;
}

.guide-table tbody tr:last-child td {
    border-bottom: none;
}

.guide-table tbody tr:hover {
    background: #F9FAFB;
}

/* Badges pour les tableaux */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-primary {
    background: #EEF2FF;
    color: #4338CA;
}

.badge-success {
    background: #DCFCE7;
    color: #166534;
}

.badge-warning {
    background: #FEF3C7;
    color: #B45309;
}

.badge-danger {
    background: #FEE2E2;
    color: #DC2626;
}

/* Figure / Image dans le guide */
.guide-figure {
    margin: 32px 0;
    text-align: center;
}

.guide-figure .guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
}

.guide-figure figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: #6B7280;
    font-style: italic;
}

/* Quote card (dégradé bleu) */
.quote-card {
    border-radius: 24px;
    padding: 30px 34px;
    background: #2d0068;
    color: #fff;
    margin: 36px 0;
}

.quote-card .quote-text {
    font-size: 20px;
    line-height: 1.45;
    font-weight: 600;
    margin-bottom: 14px;
    color: #fff;
}

.quote-card .quote-author {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
    color: #fff;
}

/* Keyline / point clé */
.keyline {
    font-size: 17px;
    line-height: 1.6;
    color: #0B0E1A;
    margin: 18px 0;
    padding: 12px 16px;
    border-left: 3px solid #4A3BFF;
    background: rgba(74, 59, 255, 0.04);
    border-radius: 8px;
    font-weight: 500;
}

/* Intro lead */
.lede {
    font-size: 18px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 24px;
}

/* FAQ section */
.faq-section {
    margin-top: 48px;
}

.faq-item {
    border-bottom: 1px solid #E5E7EB;
    padding: 32px 20px;
}

.faq-item:first-child {
    border-top: 1px solid #E5E7EB;
    padding-top: 32px;
}

.content .faq-item h3 {
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 10px;
    padding: 0;
    line-height: 28px;
}

.faq-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #4B5563;
}

/* Premium FAQ Section (pour premium.php) */
.premium-faq-section {
    padding: 80px 0;
    background-color: #F3F4F6;
}

.premium-faq-section .container {
    max-width: 760px;
}

.premium-faq-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 46px;
    color: #0B0E1A;
    margin: 0 0 32px;
    letter-spacing: -0.01em;
}

/* Overrides pour premium-faq-section */
.premium-faq-section .faq-accordion {
    margin-top: 0;
}

.premium-faq-section .faq-accordion .accordion-content {
    padding: 0 2.5rem;
}

.premium-faq-section .faq-accordion .accordion-item.active .accordion-content {
    padding: 1.5rem 2.5rem 2rem;
}

.premium-faq-section .faq-accordion .accordion-content p {
    font-size: 16px;
    line-height: 1.75;
}

.premium-faq-section .faq-accordion .accordion-content p + p {
    margin-top: 1rem;
}

.premium-faq-section .faq-accordion .accordion-content ul {
    margin: 1rem 0 0.5rem 0;
    padding-left: 1.25rem;
}

.premium-faq-section .faq-accordion .accordion-content li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* FAQ Accordion style */
.faq-accordion {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-accordion .accordion-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    background-color: #fff;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-item.active {
    background-color: #111827;
    border-color: #111827;
}

.faq-accordion .accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.faq-accordion .accordion-item.active .accordion-header {
    color: #fff;
}

.faq-accordion .accordion-item:not(.active) .accordion-header {
    color: #111827;
}

.faq-accordion .accordion-header:hover {
    background-color: rgba(45, 0, 104, 0.05);
}

.faq-accordion .accordion-item.active .accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-accordion .accordion-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    flex: 1;
    padding-right: 1rem;
}

.faq-accordion .accordion-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: currentColor;
}

.faq-accordion .accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.faq-accordion .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 3rem;
}

.faq-accordion .accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 1.5rem 3rem 2.5rem;
}

.faq-accordion .accordion-content p {
    font-size: 16px;
    line-height: 28px;
    color: #6B7280;
    margin: 0;
}

.faq-accordion .accordion-item.active .accordion-content p {
    color: rgba(255, 255, 255, 0.9);
}

.faq-accordion .accordion-content ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.faq-accordion .accordion-content li {
    font-size: 16px;
    line-height: 28px;
    color: #6B7280;
    margin-bottom: 0.75rem;
}

.faq-accordion .accordion-item.active .accordion-content li {
    color: rgba(255, 255, 255, 0.9);
}

/* Section break */
.section-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 48px 0;
    border: none;
}

/* --------------------------------------------------------------------------
   6. RELATED BLOGS (grille de 3 cartes)
   -------------------------------------------------------------------------- */
.related {
    padding: 72px 0 0;
}

.related .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.related .related-title {
    text-align: center;
    font-size: 45px;
    font-weight: 500;
    color: #0B0E1A;
    margin: 0 0 40px;
    line-height: 55px;
    letter-spacing: -0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    background: #fff;
    border: 1px solid #E6E8EF;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.post-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.post-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.post-card-body {
    padding: 18px;
}

.post-card-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4A3BFF;
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: #111827;
    margin-bottom: 12px;
}

.post-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #6B7280;
}

.post-card-meta .card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #E5E7EB;
}

/* --------------------------------------------------------------------------
   7. BANDEAU CTA (dégradé + bouton)
   -------------------------------------------------------------------------- */
.cta-band {
    margin-top: 72px;
    border-radius: 24px;
    padding: 72px 24px;
    background: #2d0068;
    text-align: center;
    color: #fff;
}

.cta-band .cta-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 46px;
    color: #fff;
    margin: 0 0 12px;
}

.cta-band .cta-subtitle {
    max-width: 680px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.85;
    color: #fff;
}

.cta-band .cta-btn {
    display: inline-block;
    margin-top: 22px;
    height: 46px;
    line-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: #FFD84D;
    color: #0B0E1A;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-band .cta-btn:hover {
    background: #FFC107;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Tablet (≤ 991px) */
@media (max-width: 991px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .sidebar .author {
        flex: 0 0 auto;
    }

    .sidebar .toc {
        flex: 1 1 100%;
        border-top: none;
        padding-top: 0;
    }

    .sidebar .newsletter {
        flex: 1 1 100%;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-hero .post-title {
        font-size: 40px;
    }

    .related .related-title {
        font-size: 36px;
    }

    .cta-band {
        padding: 56px 20px;
    }

    .cta-band .cta-title {
        font-size: 32px;
    }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
    .guide-page {
        padding: 0 0 48px;
    }

    .guide-page .container,
    .article-hero .container,
    .related .container {
        padding: 0 16px;
    }

    .article-hero {
        padding: 32px 0 0;
    }

    .article-hero .post-title {
        font-size: 30px;
        line-height: 1.15;
    }

    .article-hero .post-subtitle {
        font-size: 16px;
    }

    .article-hero .hero-media {
        border-radius: 18px;
        margin-top: 24px;
    }

    .article-hero .post-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 13px;
    }

    .post-layout {
        margin-top: 32px;
        gap: 24px;
    }

    .sidebar {
        flex-direction: column;
    }

    .sidebar .toc-title {
        font-size: 18px;
        line-height: 28px;
    }

    .sidebar .newsletter {
        padding: 20px;
        border-radius: 18px;
    }

    .content h2 {
        font-size: 28px;
        line-height: 36px;
        margin-top: 40px;
    }

    .content h3 {
        font-size: 22px;
        line-height: 30px;
        margin-top: 28px;
    }

    .content h4 {
        font-size: 18px;
        line-height: 28px;
    }

    .content {
        font-size: 16px;
    }

    .callout-box {
        padding: 18px 20px;
    }

    .quote-card {
        padding: 22px 24px;
        border-radius: 18px;
    }

    .quote-card .quote-text {
        font-size: 17px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .related .related-title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .cta-band {
        margin-top: 48px;
        padding: 48px 18px;
        border-radius: 18px;
    }

    .cta-band .cta-title {
        font-size: 26px;
    }

    .cta-band .cta-subtitle {
        font-size: 14px;
    }

    .post-card img {
        height: 160px;
    }
}

/* --------------------------------------------------------------------------
   9. LEGACY COMPATIBILITY (articles type=article)
   Conserve les anciens styles pour les articles existants
   qui utilisent .guide-content-wrapper / .article-content
   -------------------------------------------------------------------------- */
.guide-content-wrapper,
.article-content {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 24px;
    padding: 5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.guide-content-wrapper .article-body,
.article-content .article-body {
    font-size: 18px;
    line-height: 32px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    max-width: 1000px;
    margin: 0 auto;
}

.guide-content-wrapper .article-body h2,
.article-content .article-body h2 {
    font-size: 36px;
    line-height: 46px;
    font-weight: 500;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #000;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 1rem;
}

.guide-content-wrapper .article-body h2::after,
.article-content .article-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2d0068, #3531AC);
    border-radius: 2px;
}

.guide-content-wrapper .article-body h3,
.article-content .article-body h3 {
    font-size: 24px;
    line-height: 34px;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.guide-content-wrapper .article-body h4,
.article-content .article-body h4 {
    font-size: 20px;
    line-height: 30px;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.guide-content-wrapper .article-body p,
.article-content .article-body p {
    margin-bottom: 1.75rem;
    color: #1a1a1a;
    line-height: 1.9;
}

.guide-content-wrapper .article-body ul,
.article-content .article-body ul,
.guide-content-wrapper .article-body ol,
.article-content .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.guide-content-wrapper .article-body li,
.article-content .article-body li {
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    line-height: 1.7;
}

.guide-content-wrapper .article-body strong,
.article-content .article-body strong {
    font-weight: 500;
    color: #000;
}

.guide-content-wrapper .article-body blockquote,
.article-content .article-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f9f9f9;
    border-left: 3px solid #DBDBDB;
    border-radius: 0;
}

.guide-content-wrapper .article-body blockquote p,
.article-content .article-body blockquote p {
    margin-bottom: 0;
    font-style: normal;
    color: #565656;
}

/* Legacy hero overrides for articles */
.rt-hero-gap .hero-content-center .guide-category-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
}

.rt-hero-gap .hero-content-center h1 {
    color: #fff;
    font-size: 48px;
    line-height: 58px;
    margin-bottom: 1.5rem;
}

.rt-hero-gap .hero-content-center .guide-meta-header {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    align-items: center;
}

.rt-hero-gap .hero-content-center .guide-meta-header span {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.guide-featured-image-hero {
    width: 100%;
    max-width: 700px;
    margin: 2.5rem auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
}

.guide-featured-image-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

.author-with-image {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Article CTA container (legacy) */
.article-cta-container {
    margin: 4rem 0 0 0;
    padding: 0;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(45, 0, 104, 0.2);
}

.article-cta-content {
    position: relative;
    z-index: 1;
    padding: 3rem 2.5rem;
    text-align: center;
}

.article-cta-content h3 {
    font-size: 32px;
    line-height: 42px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1rem;
}

.article-cta-content p {
    font-size: 18px;
    line-height: 28px;
    color: #fff;
    margin-bottom: 2rem;
}

.article-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: #fff;
    color: #000;
    font-size: 17px;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.article-cta-button:hover {
    background-color: #2d0068;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 0, 104, 0.4);
}

/* Legacy responsive */
@media (max-width: 768px) {
    .guide-content-wrapper,
    .article-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .rt-hero-gap .hero-content-center h1 {
        font-size: 36px;
        line-height: 44px;
    }

    .guide-content-wrapper .article-body,
    .article-content .article-body {
        font-size: 16px;
        line-height: 28px;
    }

    .guide-content-wrapper .article-body h2,
    .article-content .article-body h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .guide-content-wrapper .article-body h3,
    .article-content .article-body h3 {
        font-size: 22px;
        line-height: 30px;
    }

    .article-cta-content {
        padding: 2rem 1.5rem;
    }

    .article-cta-content h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .guide-featured-image-hero {
        max-width: 100%;
    }
}
