/* ============================================================
   CENTRE DE RESSOURCES — AEZ Global Trade
   Bibliothèque d'analyses façon McKinsey / Deloitte Insights.
   Namespace .rsc-  ·  charte navy / blanc / orange AEZ.
   ============================================================ */

:root {
    --rsc-navy: #0b1e3b;
    --rsc-navy-2: #12315c;
    --rsc-orange: #ff5630;
    /* Orange « foncé » : sert surtout de couleur de TEXTE/LIEN sur fond clair.
       #e8491c n'atteignait que 3,89:1 → passé à #c2410c (5,18:1, WCAG AA). */
    --rsc-orange-dark: #c2410c;
    /* Fond des boutons à TEXTE BLANC : #ff5630 n'atteint que 3,17:1 (sous WCAG AA).
       On garde #ff5630 pour les accents (badges, icônes, texte) et on utilise
       une teinte plus foncée, conforme AA, uniquement pour les fonds de CTA. */
    --rsc-orange-cta: #c2410c;       /* 5,18:1 sur blanc — AA ✅ */
    --rsc-orange-cta-dark: #9a3412;  /* survol, plus foncé encore */
    --rsc-green: #10b981;
    --rsc-ink: #0f172a;
    --rsc-gray: #475569;
    --rsc-soft: #64748b;
    --rsc-line: #e6eaf0;
    --rsc-line-2: #d8e0ea;
    --rsc-bg: #f8fafc;
    --rsc-surface: #ffffff;
    --rsc-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark reading mode — Centre de Ressources (CSS chargé sur ces pages uniquement) ── */
html[data-theme="dark"] {
    --rsc-navy: #0e1a30;
    --rsc-navy-2: #16263f;
    --rsc-ink: #eaf0fa;
    --rsc-gray: #b6c2d6;
    --rsc-soft: #8a99b3;
    --rsc-line: #26324b;
    --rsc-line-2: #2c3a56;
    --rsc-bg: #0a1120;
    --rsc-surface: #141d31;
}

.rsc-page {
    background: var(--rsc-bg);
}

/* ---------- HERO ---------- */
.rsc-hero {
    position: relative;
    background: linear-gradient(135deg, var(--rsc-navy-2) 0%, var(--rsc-navy) 62%, #081428 100%);
    color: #fff;
    padding: 88px 0 76px;
    overflow: hidden;
}
.rsc-hero::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -70px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 86, 48, 0.26), transparent 68%);
    pointer-events: none;
}
.rsc-hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}
.rsc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--rsc-orange);
    margin-bottom: 18px;
}
.rsc-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 18px;
}
.rsc-hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 720px;
    margin: 0 auto 34px;
}

/* Barre de recherche */
.rsc-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto 26px;
    background: var(--rsc-surface);
    border-radius: 14px;
    padding: 7px 7px 7px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.rsc-search i {
    color: var(--rsc-soft);
    font-size: 1rem;
}
.rsc-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--rsc-ink);
    background: transparent;
    padding: 10px 0;
}
.rsc-search button {
    border: none;
    background: var(--rsc-orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 22px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s var(--rsc-ease);
}
.rsc-search button:hover {
    background: var(--rsc-orange-dark);
}

/* Filtres catégories */
.rsc-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}
.rsc-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 17px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s var(--rsc-ease);
}
.rsc-filter i {
    color: var(--rsc-orange);
    font-size: 0.86rem;
}
.rsc-filter:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: translateY(-2px);
}
.rsc-filter.is-active {
    background: var(--rsc-orange);
    border-color: var(--rsc-orange);
    color: #fff;
}
.rsc-filter.is-active i {
    color: #fff;
}

/* Compteur */
.rsc-count {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
}
.rsc-count strong {
    color: #fff;
}

/* ---------- Sections ---------- */
.rsc-section {
    padding: 74px 0;
}
.rsc-section--tight {
    padding: 40px 0 0;
}
.rsc-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.rsc-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}
.rsc-head-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rsc-orange-dark); /* petit texte sur fond clair — AA. Override navy : voir .gl-promo-txt */
    margin-bottom: 8px;
}
.rsc-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--rsc-ink);
    margin: 0;
    line-height: 1.2;
}
.rsc-head p {
    color: var(--rsc-soft);
    margin: 8px 0 0;
    font-size: 1rem;
}
.rsc-head-link {
    flex-shrink: 0;
    color: var(--rsc-orange-dark); /* lien sur fond clair — AA */
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}
.rsc-head-link:hover {
    color: var(--rsc-orange-dark);
}

/* ---------- Visuel / placeholder ---------- */
.rsc-thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rsc-navy-2), var(--rsc-navy));
}
.rsc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--rsc-ease);
}
.rsc-thumb-ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.28);
    font-size: 2.6rem;
}
.rsc-thumb-ph::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255, 86, 48, 0.25), transparent 60%);
}

/* ---------- Article vedette ---------- */
.rsc-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--rsc-surface);
    border: 1px solid var(--rsc-line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 44px rgba(11, 30, 59, 0.07);
}
.rsc-featured .rsc-thumb {
    min-height: 340px;
}
.rsc-featured-body {
    padding: 40px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rsc-featured-body h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--rsc-ink);
    line-height: 1.22;
    margin: 14px 0 14px;
}
.rsc-featured-body p {
    color: var(--rsc-gray);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0 0 22px;
}
@media (max-width: 860px) {
    .rsc-featured {
        grid-template-columns: 1fr;
    }
    .rsc-featured .rsc-thumb {
        min-height: 220px;
    }
    .rsc-featured-body {
        padding: 30px 26px;
    }
}

/* Badges méta */
.rsc-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--rsc-orange);
    background: rgba(255, 86, 48, 0.09);
    padding: 6px 12px;
    border-radius: 999px;
}
.rsc-badge i {
    font-size: 0.75rem;
}
/* Sur les cartes (fond clair), l'orange vif tombe à 3,17:1 : on fonce le texte.
   Sur le hero navy, le badge garde l'orange vif (contraste élevé sur fond sombre). */
.rsc-card .rsc-badge { color: var(--rsc-orange-dark); }
.rsc-format {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rsc-soft);
}

.rsc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 0.82rem;
    color: var(--rsc-soft);
    margin-top: 4px;
}
.rsc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.rsc-meta i {
    color: var(--rsc-orange);
    font-size: 0.78rem;
}
.rsc-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
}

/* Lien "Lire l'article" */
.rsc-readmore {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--rsc-orange-dark); /* « Lire » sur carte claire — AA */
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: gap 0.2s var(--rsc-ease);
}
.rsc-readmore i {
    transition: transform 0.2s var(--rsc-ease);
}
.rsc-readmore:hover {
    color: var(--rsc-orange-dark);
    gap: 12px;
}

/* ---------- Grille de cartes ---------- */
.rsc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.rsc-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
    .rsc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .rsc-grid,
    .rsc-grid--2 {
        grid-template-columns: 1fr;
    }
}

/* Carte premium */
.rsc-card {
    display: flex;
    flex-direction: column;
    background: var(--rsc-surface);
    border: 1px solid var(--rsc-line);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.28s var(--rsc-ease), box-shadow 0.28s var(--rsc-ease);
}
.rsc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(11, 30, 59, 0.12);
}
.rsc-card .rsc-thumb {
    aspect-ratio: 16 / 10;
}
.rsc-card:hover .rsc-thumb img {
    transform: scale(1.06);
}
.rsc-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}
.rsc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.rsc-card h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--rsc-ink);
    line-height: 1.35;
    margin: 0;
    transition: color 0.2s var(--rsc-ease);
}
.rsc-card:hover h3 {
    color: var(--rsc-orange-dark);
}
.rsc-card p {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--rsc-gray);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rsc-card-foot {
    margin-top: auto;
    padding-top: 6px;
}

/* ---------- Catégories ---------- */
.rsc-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .rsc-cats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .rsc-cats {
        grid-template-columns: 1fr;
    }
}
.rsc-cat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--rsc-surface);
    border: 1px solid var(--rsc-line);
    border-radius: 16px;
    padding: 24px 24px;
    text-decoration: none;
    transition: all 0.25s var(--rsc-ease);
}
.rsc-cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(11, 30, 59, 0.1);
    border-color: rgba(255, 86, 48, 0.35);
}
.rsc-cat-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--rsc-navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}
.rsc-cat h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--rsc-ink);
    margin: 2px 0 5px;
}
.rsc-cat p {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--rsc-soft);
    margin: 0 0 8px;
}
.rsc-cat-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rsc-orange);
}

/* ---------- Newsletter CTA ---------- */
.rsc-news {
    background: var(--rsc-navy);
    border-radius: 24px;
    padding: 56px 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rsc-news::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -50px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 86, 48, 0.22), transparent 70%);
}
.rsc-news-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(255, 86, 48, 0.16);
    color: var(--rsc-orange);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    position: relative;
}
.rsc-news h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    margin: 0 0 12px;
    position: relative;
}
.rsc-news p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 26px;
    position: relative;
}
.rsc-news-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
}
.rsc-news-form input {
    flex: 1;
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    padding: 14px 18px;
    color: #fff;
    font-size: 0.98rem;
    font-family: inherit;
    outline: none;
}
.rsc-news-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
.rsc-news-form input:focus {
    border-color: var(--rsc-orange);
    background: rgba(255, 255, 255, 0.12);
}
.rsc-news-form button {
    background: var(--rsc-orange);
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: all 0.2s var(--rsc-ease);
}
.rsc-news-form button:hover {
    background: var(--rsc-orange-dark);
    transform: translateY(-2px);
}
.rsc-news small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 14px;
    position: relative;
}
@media (max-width: 620px) {
    .rsc-news {
        padding: 42px 24px;
    }
}

/* ---------- État vide ---------- */
.rsc-empty {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    padding: 60px 20px;
}
.rsc-empty-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: rgba(255, 86, 48, 0.1);
    color: var(--rsc-orange);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
}
.rsc-empty h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rsc-ink);
    margin: 0 0 10px;
}
.rsc-empty p {
    color: var(--rsc-soft);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   PAGE ARTICLE (show)
   ============================================================ */
.rsc-article-hero {
    background: linear-gradient(135deg, var(--rsc-navy-2), var(--rsc-navy));
    color: #fff;
    padding: 46px 0 40px;
}
.rsc-article-hero .rsc-container {
    max-width: 860px;
}
.rsc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 22px;
}
.rsc-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.rsc-breadcrumb a:hover {
    color: var(--rsc-orange);
}
.rsc-breadcrumb .sep {
    opacity: 0.5;
}
.rsc-article-hero h1 {
    font-size: clamp(1.9rem, 3.8vw, 2.7rem);
    font-weight: 800;
    line-height: 1.18;
    margin: 14px 0 18px;
}
.rsc-article-hero .rsc-meta {
    color: rgba(255, 255, 255, 0.72);
}
.rsc-article-hero .rsc-meta i {
    color: var(--rsc-orange);
}

.rsc-article-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 54px 24px 80px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) {
    .rsc-article-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Cover */
.rsc-article-cover {
    grid-column: 1 / -1;
    border-radius: 20px;
    overflow: hidden;
    max-height: 440px;
    margin-bottom: 6px;
}
.rsc-article-cover img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}
/* Variante « pleine image » (infographies : téléchargements, définitions) — jamais rognée. */
.rsc-article-cover--full {
    max-height: none;
    background: #f6f8fc;
    border: 1px solid #e7ecf4;
}
.rsc-article-cover--full img {
    height: auto;
    max-height: none;
    object-fit: contain;
}

/* Table des matières */
.rsc-toc {
    position: sticky;
    top: 100px;
}
.rsc-toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rsc-soft);
    margin: 0 0 14px;
}
.rsc-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--rsc-line);
}
.rsc-toc li a {
    display: block;
    padding: 7px 0 7px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--rsc-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.18s var(--rsc-ease);
}
.rsc-toc li a:hover {
    color: var(--rsc-orange);
    border-left-color: var(--rsc-orange);
}
.rsc-toc li.lvl-3 a {
    padding-left: 30px;
    font-size: 0.85rem;
}
@media (max-width: 900px) {
    .rsc-toc {
        position: static;
        background: var(--rsc-bg);
        border: 1px solid var(--rsc-line);
        border-radius: 14px;
        padding: 18px 20px;
    }
}

/* Contenu (prose) */
.rsc-prose {
    max-width: 720px;
    font-size: 1.06rem;
    line-height: 1.8;
    color: #1f2937;
}
.rsc-prose > *:first-child {
    margin-top: 0;
}
.rsc-prose h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rsc-ink);
    margin: 2.2em 0 0.7em;
    scroll-margin-top: 100px;
}
.rsc-prose h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--rsc-ink);
    margin: 1.8em 0 0.6em;
    scroll-margin-top: 100px;
}
.rsc-prose p {
    margin: 0 0 1.3em;
}
.rsc-prose ul,
.rsc-prose ol {
    margin: 0 0 1.3em;
    padding-left: 1.4em;
}
.rsc-prose li {
    margin-bottom: 0.6em;
}
.rsc-prose a {
    color: var(--rsc-orange-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rsc-prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid var(--rsc-orange);
    font-style: italic;
    color: var(--rsc-ink);
    font-size: 1.12rem;
}
.rsc-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}
/* Tableaux dans le contenu (HTML brut du champ « contenu ») : lisibles et
   défilables horizontalement sur mobile pour éviter tout débordement de la page. */
.rsc-prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: .95rem;
}
.rsc-prose th,
.rsc-prose td {
    border: 1px solid var(--rsc-line);
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
}
.rsc-prose thead th {
    background: var(--rsc-bg);
    font-weight: 700;
    color: var(--rsc-ink);
    white-space: nowrap;
}
.rsc-prose tbody td:first-child {
    font-weight: 600;
    color: var(--rsc-ink);
}

/* ═══════════════════════════════════════════════════════════
   COMPOSANTS D'ARTICLE PREMIUM (guides du Centre de Ressources)
   Utilisés dans le HTML du champ « contenu » ; tout est piloté
   par les tokens --rsc-* (compatibles dark mode).
   ═══════════════════════════════════════════════════════════ */

/* Bannière illustrée (SVG) en tête d'article */
.rsc-figure { margin: 0 0 2em; }
.rsc-figure svg, .rsc-figure img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--rsc-line); }
.rsc-figure figcaption { margin-top: 10px; font-size: .84rem; color: var(--rsc-soft); text-align: center; }

/* Fiche d'identité */
.rsc-idcard { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 2.2em; padding: 0; list-style: none; }
.rsc-idcard li { display: flex; gap: 13px; align-items: flex-start; background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 13px; padding: 15px 16px; margin: 0; }
.rsc-idcard .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,86,48,.1); color: var(--rsc-orange); font-size: 1.05rem; }
.rsc-idcard .lb { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rsc-soft); margin-bottom: 3px; }
.rsc-idcard .vl { display: block; font-size: .98rem; font-weight: 600; color: var(--rsc-ink); line-height: 1.35; }

/* Encadrés « Conseil AEZ » / « À retenir » */
.rsc-callout { display: flex; gap: 14px; margin: 1.8em 0; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--rsc-line); background: var(--rsc-surface); }
.rsc-callout .rsc-callout-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; color: #fff; }
.rsc-callout .rsc-callout-bd { flex: 1; }
.rsc-callout .rsc-callout-bd > *:last-child { margin-bottom: 0; }
.rsc-callout-cap { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.rsc-callout.is-tip { background: linear-gradient(180deg, rgba(255,86,48,.06), transparent); border-color: rgba(255,86,48,.28); }
.rsc-callout.is-tip .rsc-callout-ic { background: var(--rsc-orange); }
.rsc-callout.is-tip .rsc-callout-cap { color: var(--rsc-orange-dark); }
.rsc-callout.is-key { background: linear-gradient(180deg, rgba(16,49,92,.05), transparent); border-color: var(--rsc-line-2); }
.rsc-callout.is-key .rsc-callout-ic { background: var(--rsc-navy-2); }
.rsc-callout.is-key .rsc-callout-cap { color: var(--rsc-navy-2); }
html[data-theme="dark"] .rsc-callout.is-key .rsc-callout-cap { color: #93b4e8; }
html[data-theme="dark"] .rsc-callout.is-key .rsc-callout-ic { background: #2a3f63; }

/* Frise chronologique des phases */
.rsc-timeline { position: relative; margin: 1.6em 0 2em; padding: 0 0 0 4px; }
.rsc-phase { position: relative; padding: 0 0 26px 30px; border-left: 2px solid var(--rsc-line-2); }
.rsc-phase:last-child { border-left-color: transparent; padding-bottom: 0; }
.rsc-phase::before { content: ""; position: absolute; left: -8px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--rsc-orange); box-shadow: 0 0 0 4px var(--rsc-bg); }
.rsc-phase-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 6px; }
.rsc-phase-name { font-size: 1.12rem; font-weight: 800; color: var(--rsc-ink); }
.rsc-phase-date { font-size: .8rem; font-weight: 700; color: var(--rsc-orange-dark); background: rgba(255,86,48,.1); padding: 3px 10px; border-radius: 999px; }
.rsc-phase-obj { color: var(--rsc-gray); margin: 0 0 12px; }

/* Grille produits illustrée (icônes) */
.rsc-prodgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 4px; padding: 0; list-style: none; }
.rsc-prodgrid li { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 12px; padding: 15px 8px; margin: 0; }
.rsc-prodgrid .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--rsc-bg); color: var(--rsc-navy-2); font-size: 1.1rem; }
html[data-theme="dark"] .rsc-prodgrid .ic { color: #9fb6d8; }
.rsc-prodgrid .nm { font-size: .82rem; font-weight: 600; color: var(--rsc-ink); line-height: 1.3; }

/* Cartes d'erreurs */
.rsc-errors { display: flex; flex-direction: column; gap: 14px; margin: 1.4em 0 2em; padding: 0; list-style: none; }
.rsc-error { background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-left: 4px solid #ef4444; border-radius: 12px; padding: 16px 18px; margin: 0; }
.rsc-error-head { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--rsc-ink); font-size: 1.02rem; margin-bottom: 10px; }
.rsc-error-head i { color: #ef4444; }
.rsc-error dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.rsc-error dt { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--rsc-soft); padding-top: 2px; white-space: nowrap; }
.rsc-error dd { margin: 0; color: var(--rsc-gray); font-size: .96rem; }
.rsc-error dd.good { color: var(--rsc-ink); }
.rsc-error dd.good b { color: #059669; }

/* Schéma de process (étapes numérotées) */
.rsc-steps { counter-reset: rscstep; display: flex; flex-direction: column; gap: 12px; margin: 1.4em 0 2em; padding: 0; list-style: none; }
.rsc-steps li { position: relative; display: flex; gap: 15px; align-items: flex-start; background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 12px; padding: 15px 17px; margin: 0; }
.rsc-steps li::before { counter-increment: rscstep; content: counter(rscstep); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--rsc-navy); color: #fff; font-weight: 800; font-size: .92rem; display: grid; place-items: center; }
html[data-theme="dark"] .rsc-steps li::before { background: var(--rsc-orange); }
.rsc-steps b { color: var(--rsc-ink); }
.rsc-steps .st-bd { flex: 1; }
.rsc-steps .st-bd p { margin: 3px 0 0; color: var(--rsc-gray); font-size: .95rem; }

/* FAQ (accordéon natif) */
.rsc-faq { margin: 1.2em 0 2em; display: flex; flex-direction: column; gap: 10px; }
.rsc-faq details { background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 12px; overflow: hidden; }
.rsc-faq summary { cursor: pointer; list-style: none; padding: 15px 18px; font-weight: 700; color: var(--rsc-ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rsc-faq summary::-webkit-details-marker { display: none; }
.rsc-faq summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .8rem; color: var(--rsc-orange); transition: transform .2s var(--rsc-ease); }
.rsc-faq details[open] summary::after { transform: rotate(180deg); }
.rsc-faq details > p { margin: 0; padding: 0 18px 16px; color: var(--rsc-gray); }

/* « Pour aller plus loin » — liens internes en cartes */
.rsc-further { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 1.2em 0 1.5em; padding: 0; list-style: none; }
.rsc-further li { margin: 0; }
.rsc-further a { display: flex; align-items: center; gap: 11px; height: 100%; background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 12px; padding: 13px 15px; text-decoration: none; color: var(--rsc-ink); font-weight: 600; font-size: .93rem; transition: .18s var(--rsc-ease); }
.rsc-further a:hover { border-color: var(--rsc-orange); transform: translateY(-2px); }
.rsc-further a i { color: var(--rsc-orange); }

/* Tableau élégant */
.rsc-tablewrap { overflow-x: auto; margin: 1.4em 0 2em; border: 1px solid var(--rsc-line); border-radius: 12px; }
.rsc-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--rsc-surface); }
.rsc-table thead th { text-align: left; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--rsc-navy); padding: 12px 16px; }
.rsc-table td { padding: 12px 16px; border-top: 1px solid var(--rsc-line); color: var(--rsc-gray); vertical-align: top; }
.rsc-table tbody tr:nth-child(even) td { background: var(--rsc-bg); }
.rsc-table td:first-child { font-weight: 600; color: var(--rsc-ink); white-space: nowrap; }
html[data-theme="dark"] .rsc-table thead th { background: var(--rsc-navy-2); }

/* Bloc « à faire / à éviter » */
.rsc-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.4em 0 2em; }
.rsc-dodont-col { border: 1px solid var(--rsc-line); border-radius: 14px; padding: 16px 18px; background: var(--rsc-surface); }
.rsc-dodont-col h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 1rem; font-weight: 800; color: var(--rsc-ink); }
.rsc-dodont-col.do { border-top: 3px solid #059669; }
.rsc-dodont-col.dont { border-top: 3px solid #ef4444; }
.rsc-dodont-col.do h4 i { color: #059669; }
.rsc-dodont-col.dont h4 i { color: #ef4444; }
.rsc-dodont-col ul { margin: 0; padding-left: 1.15em; }
.rsc-dodont-col li { margin-bottom: .55em; color: var(--rsc-gray); font-size: .94rem; }

/* Grille de transporteurs (liens de suivi) */
.rsc-carriers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.2em 0 1.6em; padding: 0; list-style: none; }
.rsc-carriers li { margin: 0; }
.rsc-carriers a { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; height: 100%; background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 12px; padding: 15px 8px; text-decoration: none; color: var(--rsc-ink); font-weight: 600; font-size: .86rem; transition: .18s var(--rsc-ease); }
.rsc-carriers a:hover { border-color: var(--rsc-orange); transform: translateY(-2px); }
.rsc-carriers a i { font-size: 1.25rem; color: var(--rsc-navy-2); }
html[data-theme="dark"] .rsc-carriers a i { color: #9fb6d8; }

@media (max-width: 620px){
    .rsc-idcard, .rsc-further, .rsc-dodont { grid-template-columns: 1fr; }
    .rsc-prodgrid, .rsc-carriers { grid-template-columns: repeat(2, 1fr); }
}

.rsc-lead {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--rsc-gray);
    font-weight: 500;
    margin: 0 0 2em;
    padding-bottom: 1.6em;
    border-bottom: 1px solid var(--rsc-line);
}

/* Tags */
.rsc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--rsc-line);
}
.rsc-tag {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rsc-ink);
    background: var(--rsc-bg);
    border: 1px solid var(--rsc-line);
    border-radius: 999px;
    padding: 7px 15px;
    text-decoration: none;
    transition: all 0.18s var(--rsc-ease);
}
.rsc-tag:hover {
    border-color: var(--rsc-orange);
    color: var(--rsc-orange-dark);
}

/* Draft placeholder note (contenu vide) */
.rsc-soon {
    background: var(--rsc-bg);
    border: 1px dashed var(--rsc-line);
    border-radius: 14px;
    padding: 34px;
    text-align: center;
    color: var(--rsc-soft);
    font-size: 0.98rem;
}

/* Related */
.rsc-related {
    background: var(--rsc-bg);
    border-top: 1px solid var(--rsc-line);
    padding: 64px 0 78px;
}

/* ═══════════════════════════════════════════════════════════
   CATALOGUE : vidéo, pagination, formations
   ═══════════════════════════════════════════════════════════ */

/* Bouton lecture superposé sur les vignettes vidéo */
.rsc-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255, 86, 48, 0.92);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    padding-left: 3px;
    box-shadow: 0 10px 28px rgba(11, 30, 59, 0.38);
    z-index: 2;
    transition: transform 0.25s var(--rsc-ease), background 0.2s var(--rsc-ease);
}
.rsc-play--lg { width: 78px; height: 78px; font-size: 1.55rem; }
.rsc-card:hover .rsc-play,
.rsc-featured:hover .rsc-play { transform: translate(-50%, -50%) scale(1.09); background: var(--rsc-orange); }
.rsc-card.is-video .rsc-thumb::after,
.rsc-featured.is-video .rsc-thumb::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11, 30, 59, 0.4), transparent 55%);
    z-index: 1;
}

/* Badge format « Vidéo » & filtre dédié */
.rsc-format--video { color: var(--rsc-orange-dark); font-weight: 700; }
.rsc-filter--video i { color: var(--rsc-orange); }
.rsc-filter--video.is-active { background: var(--rsc-orange); border-color: var(--rsc-orange); color: #fff; }
.rsc-filter--video.is-active i { color: #fff; }

/* Pagination */
.rsc-pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 8px; flex-wrap: wrap;
    margin-top: 48px;
}
.rsc-page-btn {
    min-width: 42px; height: 42px; padding: 0 13px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--rsc-line);
    background: var(--rsc-surface);
    color: var(--rsc-gray);
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.18s var(--rsc-ease);
}
.rsc-page-btn:hover:not(.is-active):not(.is-disabled) {
    border-color: var(--rsc-orange);
    color: var(--rsc-orange);
    transform: translateY(-1px);
}
.rsc-page-btn.is-active {
    background: var(--rsc-orange);
    border-color: var(--rsc-orange);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 86, 48, 0.28);
}
.rsc-page-btn.is-disabled { opacity: 0.4; cursor: not-allowed; }
.rsc-page-ellipsis { color: var(--rsc-soft); padding: 0 4px; user-select: none; }

/* Intégration vidéo sur la page article */
.rsc-article-video { max-height: none; overflow: visible; background: transparent; }
.rsc-article-video--mp4 video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 72vh;
    background: #000;
    border-radius: 20px;
    display: block;
}
.rsc-article-video--tiktok { max-width: 340px; margin-inline: auto; }
.rsc-article-video--tiktok iframe {
    width: 100%;
    height: 740px;
    border: 0;
    border-radius: 20px;
    display: block;
    background: #000;
}
@media (max-width: 480px) {
    .rsc-article-video--tiktok iframe { height: 82vh; min-height: 560px; }
}

/* ═══════════════════════════════════════════════════════════
   KNOWLEDGE CENTER — compteurs, filtres Type×Domaine×Niveau, badges niveau
   ═══════════════════════════════════════════════════════════ */

/* Compteurs (chevauchent le bas du hero) */
.rsc-hero { padding-bottom: 84px !important; }
.rsc-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-top: -46px; position: relative; z-index: 3;
}
.rsc-stat {
    background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 16px;
    padding: 22px 24px; box-shadow: 0 1px 2px rgba(11,30,59,.04), 0 12px 30px rgba(11,30,59,.06);
}
.rsc-stat .n { font-size: 2rem; font-weight: 800; color: var(--rsc-ink); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.rsc-stat .l { font-size: .85rem; color: var(--rsc-soft); margin-top: 6px; }

/* Barre de filtres */
.rsc-filterbar { display: flex; flex-wrap: wrap; gap: 22px 34px; margin-top: 40px; padding-bottom: 6px; }
.rsc-fgroup { display: flex; flex-direction: column; gap: 10px; }
.rsc-fcap { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--rsc-soft); }
.rsc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rsc-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .83rem; font-weight: 500; color: var(--rsc-gray);
    background: var(--rsc-surface); border: 1px solid var(--rsc-line-2); border-radius: 999px;
    padding: 7px 14px; transition: .18s var(--rsc-ease);
}
.rsc-chip:hover { border-color: var(--rsc-navy); color: var(--rsc-ink); }
.rsc-chip.is-active { background: var(--rsc-navy); border-color: var(--rsc-navy); color: #fff; }
.rsc-chip i { font-size: .8rem; }
.rsc-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* Badge niveau sur la vignette */
.rsc-card-lvl {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.95); border-radius: 999px;
    padding: 5px 11px; font-size: .72rem; font-weight: 600; color: var(--rsc-ink);
    box-shadow: 0 4px 12px rgba(11,30,59,.14);
}

/* Badges de carte : Type (accent) + Domaine (sobre) */
.rsc-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rsc-format {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .74rem; font-weight: 700; letter-spacing: 0; text-transform: none;
    color: var(--rsc-orange-dark); background: rgba(255,86,48,.10);
    padding: 5px 11px; border-radius: 7px;
}
.rsc-format i { font-size: .72rem; }
.rsc-badge--dom {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .74rem; font-weight: 600;
    background: var(--rsc-bg); color: var(--rsc-soft);
    border: 1px solid var(--rsc-line); padding: 5px 10px; border-radius: 7px;
}

@media (max-width: 940px){
    .rsc-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
    .rsc-stats { grid-template-columns: 1fr; margin-top: 24px; }
    .rsc-hero { padding-bottom: 48px !important; }
}

/* ═══════════════════════════════════════════════════════════
   LE GRAND GLOSSAIRE — index A→Z + fiche définition
   ═══════════════════════════════════════════════════════════ */
.gl-hero { background: linear-gradient(160deg, var(--rsc-navy-2), #07142a); color: #fff; padding: 40px 0 44px; position: relative; overflow: hidden; }
.gl-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(560px 280px at 84% -20%, rgba(255,86,48,.20), transparent 60%); }
.gl-hero-in { position: relative; }
.gl-crumb { margin-bottom: 18px; }
.gl-crumb a, .gl-crumb span { color: #9fb1cc; }
.gl-crumb a:hover { color: #fff; }
.gl-crumb .sep { margin: 0 8px; opacity: .5; }
.gl-hero .rsc-eyebrow { color: #ffb9a6; }
.gl-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 10px; max-width: 20ch; line-height: 1.15; }
.gl-hero p { color: #c5d2e6; max-width: 60ch; }
.gl-hero p strong { color: #fff; }
.gl-search { margin-top: 26px; max-width: 560px; display: flex; align-items: center; gap: 12px; background: var(--rsc-surface); border-radius: 14px; padding: 6px 6px 6px 18px; box-shadow: 0 18px 44px rgba(4,12,28,.36); }
.gl-search i { color: var(--rsc-soft); }
.gl-search input { flex: 1; border: 0; outline: 0; font-family: inherit; font-size: 1rem; color: var(--rsc-ink); padding: 12px 0; background: transparent; }

/* Nav A→Z */
.gl-az { border-bottom: 1px solid var(--rsc-line); background: var(--rsc-surface); padding: 14px 0; }
.gl-az-in { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.gl-az a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-weight: 700; font-size: .84rem; color: var(--rsc-gray); transition: .16s var(--rsc-ease); }
.gl-az a:hover { background: var(--rsc-navy); color: #fff; }
.gl-az a.is-empty { color: #c3ccd8; pointer-events: none; }

.gl-count { color: var(--rsc-soft); font-size: .92rem; margin-bottom: 28px; }
.gl-count strong { color: var(--rsc-ink); }
.gl-letter { margin-bottom: 40px; scroll-margin-top: 96px; }
.gl-letter-h { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.gl-letter-h span { font-size: 2rem; font-weight: 800; color: var(--rsc-ink); width: 42px; letter-spacing: -.02em; }
.gl-rule { flex: 1; height: 1px; background: var(--rsc-line); }
.gl-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gl-term { display: block; background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 12px; padding: 18px 20px; transition: .2s var(--rsc-ease); }
.gl-term:hover { border-color: var(--rsc-orange); box-shadow: 0 10px 30px rgba(11,30,59,.08); transform: translateY(-2px); }
.gl-term-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gl-term-h b { font-size: 1.05rem; color: var(--rsc-ink); font-weight: 700; letter-spacing: -.01em; }
.gl-ab { font-size: .72rem; color: var(--rsc-orange-dark); background: rgba(255,86,48,.10); padding: 3px 8px; border-radius: 6px; font-weight: 600; flex: none; }
.gl-term p { color: var(--rsc-soft); font-size: .86rem; margin-top: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-go { display: inline-flex; align-items: center; gap: 6px; color: var(--rsc-orange-dark); font-size: .8rem; font-weight: 600; margin-top: 12px; }
.gl-go i { transition: .2s var(--rsc-ease); }
.gl-term:hover .gl-go i { transform: translateX(3px); }

/* ── Fiche définition ── */
.def-hero .def-title { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin: 16px 0 8px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.def-ab { font-size: 1rem; color: #fff; background: var(--rsc-orange); padding: 6px 12px; border-radius: 9px; font-weight: 700; }
.def-lede { color: #cdd9ec; font-size: 1.08rem; max-width: 64ch; line-height: 1.6; }
.def-badges { margin-top: 20px; gap: 10px; }
.def-lvl { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: #e9eef6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 5px 12px; border-radius: 999px; }

.def-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 46px 0 66px; align-items: start; }
.def-prose { max-width: 70ch; min-width: 0; }
.def-block { background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 14px; padding: 26px 28px; box-shadow: 0 1px 2px rgba(11,30,59,.04); margin-bottom: 24px; }
.def-block.accent-blue { border-left: 4px solid #2f66e0; }
.def-block.accent-orange { border-left: 4px solid var(--rsc-orange); }
.def-block.accent-green { border-left: 4px solid var(--rsc-green); background: linear-gradient(180deg, #e7f7f0, #fff 60%); }
.def-block.dashed { border-style: dashed; box-shadow: none; }
.def-block-h { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.def-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: .95rem; }
.def-ic.ink { background: var(--rsc-bg); color: var(--rsc-ink); border: 1px solid var(--rsc-line); }
.def-ic.blue { background: #e8f0fe; color: #2f66e0; }
.def-ic.org { background: rgba(255,86,48,.10); color: var(--rsc-orange-dark); }
.def-ic.grn { background: #d4f0e4; color: var(--rsc-green); }
.def-block-h h2 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.def-block p, .def-rich { color: var(--rsc-gray); font-size: 1rem; line-height: 1.7; }
.def-rich :is(h2,h3) { color: var(--rsc-ink); margin: 18px 0 8px; font-size: 1.1rem; }
.def-rich p { margin-bottom: 10px; }
.def-quote { font-style: italic; color: var(--rsc-ink); }
.def-rel { display: flex; flex-wrap: wrap; gap: 9px; }
.def-rel a { display: inline-flex; align-items: center; gap: 7px; background: var(--rsc-bg); border: 1px solid var(--rsc-line-2); border-radius: 999px; padding: 8px 15px; font-size: .88rem; font-weight: 600; color: var(--rsc-ink); transition: .18s var(--rsc-ease); }
.def-rel a:hover { border-color: var(--rsc-orange); color: var(--rsc-orange-dark); background: rgba(255,86,48,.06); }
.def-rel a .ab { font-size: .72rem; color: var(--rsc-soft); font-weight: 500; }

.def-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.def-panel { background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 14px; padding: 22px; box-shadow: 0 1px 2px rgba(11,30,59,.04); }
.def-panel-cap { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--rsc-soft); margin-bottom: 14px; }
.def-panel-list { display: flex; flex-direction: column; gap: 2px; }
.def-panel-list a { display: flex; gap: 11px; padding: 9px 10px; border-radius: 9px; transition: .16s var(--rsc-ease); }
.def-panel-list a:hover { background: var(--rsc-bg); }
.def-panel-list .n { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,86,48,.10); color: var(--rsc-orange-dark); display: grid; place-items: center; font-size: .72rem; flex: none; }
.def-panel-list .t { font-size: .88rem; color: var(--rsc-ink); font-weight: 600; line-height: 1.35; }
.def-panel-list .t small { display: block; color: var(--rsc-soft); font-weight: 400; font-size: .76rem; margin-top: 1px; }
.def-cta { background: linear-gradient(160deg, var(--rsc-navy-2), #07142a); border: 0; color: #fff; }
.def-cta .def-panel-cap { color: #ffb9a6; }
.def-cta p { color: #c5d2e6; font-size: .9rem; line-height: 1.6; margin-bottom: 16px; }
.rsc-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; background: var(--rsc-orange-cta); color: #fff; font-weight: 600; font-size: .9rem; padding: 12px; border-radius: 11px; transition: .2s var(--rsc-ease); }
.rsc-cta-btn:hover { background: var(--rsc-orange-cta-dark); }
.def-back { display: inline-flex; align-items: center; gap: 8px; color: var(--rsc-gray); font-weight: 600; font-size: .88rem; padding: 4px 6px; }
.def-back:hover { color: var(--rsc-orange-dark); }

@media (max-width: 940px){
    .gl-terms { grid-template-columns: repeat(2, 1fr); }
    .def-wrap { grid-template-columns: 1fr; }
    .def-aside { position: static; }
}
@media (max-width: 600px){ .gl-terms { grid-template-columns: 1fr; } }

/* Bandeau d'accès au glossaire (hub) */
.gl-promo { display: flex; align-items: center; gap: 22px; margin-top: 34px; padding: 26px 30px; border-radius: 18px; background: linear-gradient(135deg, var(--rsc-navy-2), #07142a); color: #fff; position: relative; overflow: hidden; transition: .25s var(--rsc-ease); }
.gl-promo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at 92% 130%, rgba(255,86,48,.26), transparent 60%); }
.gl-promo:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(11,30,59,.22); }
.gl-promo > * { position: relative; }
.gl-promo-ic { width: 58px; height: 58px; border-radius: 14px; background: rgba(255,86,48,.18); color: #ffb9a6; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.gl-promo-txt { flex: 1; }
.gl-promo-txt .rsc-head-eyebrow { color: #ffb9a6; }
.gl-promo-txt h3 { color: #fff; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; margin: 4px 0 6px; }
.gl-promo-txt p { color: #c5d2e6; font-size: .95rem; margin: 0; }
.gl-promo-go { flex: none; display: inline-flex; align-items: center; gap: 9px; background: var(--rsc-orange); color: #fff; font-weight: 600; font-size: .92rem; padding: 12px 22px; border-radius: 11px; }
.gl-promo:hover .gl-promo-go { background: var(--rsc-orange-dark); }
@media (max-width: 700px){ .gl-promo { flex-direction: column; text-align: center; } .gl-promo-go { width: 100%; justify-content: center; } }
/* Variante Bibliothèque de prompts : accent bleu clair (famille navy AEZ) pour la
   distinguer du glossaire (orange), sans introduire une couleur hors charte. */
.gl-promo--prompt::before { background: radial-gradient(420px 200px at 92% 130%, rgba(110,168,255,.30), transparent 60%); }
.gl-promo--prompt .gl-promo-ic { background: rgba(110,168,255,.20); color: #cfe0ff; }
.gl-promo--prompt .gl-promo-txt .rsc-head-eyebrow { color: #cfe0ff; }
/* Variante Coaching : même accent bleu navy-family (cohérent charte, distinct du glossaire orange) */
.gl-promo--coaching::before { background: radial-gradient(420px 200px at 92% 130%, rgba(110,168,255,.30), transparent 60%); }
.gl-promo--coaching .gl-promo-ic { background: rgba(110,168,255,.20); color: #cfe0ff; }
.gl-promo--coaching .gl-promo-txt .rsc-head-eyebrow { color: #cfe0ff; }
/* Variante Suivi maritime : même famille bleu navy (outil logistique) */
.gl-promo--maritime::before { background: radial-gradient(420px 200px at 92% 130%, rgba(110,168,255,.30), transparent 60%); }
.gl-promo--maritime .gl-promo-ic { background: rgba(110,168,255,.20); color: #cfe0ff; }
.gl-promo--maritime .gl-promo-txt .rsc-head-eyebrow { color: #cfe0ff; }

/* ═══════════════════════════════════════════════════════════
   TÉLÉCHARGEMENTS — liste + carte de téléchargement (lead magnet)
   ═══════════════════════════════════════════════════════════ */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-tile { display: flex; flex-direction: column; background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(11,30,59,.04); transition: .25s var(--rsc-ease); }
.dl-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(11,30,59,.10); border-color: var(--rsc-line-2); }
.dl-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.dl-ext { display: inline-grid; place-items: center; min-width: 54px; height: 30px; padding: 0 12px; border-radius: 8px; background: linear-gradient(135deg, var(--rsc-navy-2), #07142a); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .04em; }
.dl-lock { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--rsc-orange-dark); background: rgba(255,86,48,.10); padding: 5px 10px; border-radius: 999px; }
.dl-tile h3 { font-size: 1.12rem; font-weight: 700; color: var(--rsc-ink); letter-spacing: -.01em; line-height: 1.3; }
.dl-tile p { color: var(--rsc-soft); font-size: .9rem; margin-top: 8px; line-height: 1.55; flex: 1; }
.dl-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rsc-line); }
.dl-tile-go { display: inline-flex; align-items: center; gap: 6px; color: var(--rsc-orange-dark); font-weight: 600; font-size: .86rem; }
.dl-tile:hover .dl-tile-go i { transform: translateX(3px); transition: .2s var(--rsc-ease); }

/* Carte de téléchargement (page détail) */
.dl-card { background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 16px; padding: 24px; box-shadow: 0 8px 30px rgba(11,30,59,.08); position: sticky; top: 92px; }
.dl-file { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rsc-line); }
.dl-file .dl-ext { min-width: 58px; height: 38px; font-size: .82rem; }
.dl-file-meta b { display: block; font-size: .92rem; color: var(--rsc-ink); word-break: break-word; line-height: 1.3; }
.dl-file-meta small { color: var(--rsc-soft); font-size: .8rem; }
.dl-lead { font-size: .92rem; color: var(--rsc-gray); line-height: 1.55; margin-bottom: 14px; }
.dl-form { display: flex; flex-direction: column; gap: 10px; }
.dl-form input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--rsc-line-2); border-radius: 10px; font-family: inherit; font-size: .92rem; color: var(--rsc-ink); transition: .18s var(--rsc-ease); }
.dl-form input:focus { outline: none; border-color: var(--rsc-orange); box-shadow: 0 0 0 3.5px rgba(255,86,48,.13); }
.dl-form button, .dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; background: var(--rsc-orange-cta); color: #fff; font-weight: 700; font-size: .95rem; padding: 14px; border: 0; border-radius: 11px; cursor: pointer; transition: .2s var(--rsc-ease); text-decoration: none; }
.dl-form button:hover, .dl-btn:hover { background: var(--rsc-orange-cta-dark); transform: translateY(-1px); }
.dl-form button.dl-btn-alt { background: transparent; color: var(--rsc-navy); border: 1.5px solid var(--rsc-line-2); }
.dl-form button.dl-btn-alt:hover { background: var(--rsc-bg); border-color: var(--rsc-navy); color: var(--rsc-navy); }
html[data-theme="dark"] .dl-form button.dl-btn-alt { color: var(--rsc-ink); }
.dl-note { display: block; text-align: center; color: var(--rsc-soft); font-size: .76rem; margin-top: 12px; }
.dl-error { display: flex; align-items: center; gap: 8px; background: #fee2e2; color: #b91c1c; font-size: .84rem; padding: 10px 12px; border-radius: 9px; margin-bottom: 14px; }
.dl-pending { display: flex; align-items: flex-start; gap: 10px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; font-size: .86rem; line-height: 1.5; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.dl-pending i { margin-top: 2px; color: #059669; }
.dl-pending b { color: #064e3b; }
html[data-theme="dark"] .dl-pending { background: rgba(6,95,70,.22); color: #a7f3d0; border-color: rgba(16,185,129,.35); }
html[data-theme="dark"] .dl-pending b { color: #d1fae5; }
.dl-soon { color: var(--rsc-soft); font-size: .9rem; text-align: center; padding: 10px 0; }

/* ── Page de confirmation (double opt-in) ── */
.dl-confirm { max-width: 560px; margin: 0 auto; padding: 56px 28px 72px; text-align: center; }
.dl-confirm-icon { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; font-size: 2rem; }
.dl-confirm-icon--ok { background: #ecfdf5; color: #059669; }
.dl-confirm-icon--warn { background: #fff7ed; color: #ea580c; }
html[data-theme="dark"] .dl-confirm-icon--ok { background: rgba(5,150,105,.18); }
html[data-theme="dark"] .dl-confirm-icon--warn { background: rgba(234,88,12,.18); }
.dl-confirm h1 { font-size: 1.8rem; font-weight: 800; color: var(--rsc-ink); margin-bottom: 12px; }
.dl-confirm-lead { color: var(--rsc-soft); font-size: 1rem; line-height: 1.65; max-width: 480px; margin: 0 auto 28px; }
.dl-confirm .dl-btn { display: inline-flex; width: auto; padding: 14px 30px; }
.dl-confirm-next { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rsc-line); }
.dl-confirm-next-cap { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rsc-soft); margin-bottom: 16px; }
.dl-confirm-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.dl-confirm-link { display: inline-flex; align-items: center; gap: 10px; color: var(--rsc-navy); font-weight: 600; font-size: .95rem; text-decoration: none; padding: 11px 18px; border: 1.5px solid var(--rsc-line-2); border-radius: 11px; transition: .18s var(--rsc-ease); }
.dl-confirm-link:hover { border-color: var(--rsc-orange); color: var(--rsc-orange-dark); }
html[data-theme="dark"] .dl-confirm-link { color: var(--rsc-ink); }
html[data-theme="dark"] .dl-confirm-link:hover { color: var(--rsc-orange); }

@media (max-width: 940px){ .dl-grid { grid-template-columns: repeat(2, 1fr); } .dl-card { position: static; } }
@media (max-width: 600px){ .dl-grid { grid-template-columns: 1fr; } }

/* ── Page Communauté ── */
.comm-hero { background: radial-gradient(900px 400px at 12% -20%, #16386b 0%, transparent 55%), linear-gradient(150deg, #0b1e3b 0%, #0f172a 100%); color: #fff; padding: 64px 0 56px; }
.comm-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(37,211,102,.16); color: #7ff0a8; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.comm-hero h1 { font-size: 2.3rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; max-width: 720px; }
.comm-lede { color: #c5d2e6; font-size: 1.08rem; line-height: 1.6; max-width: 620px; }
.comm-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 48px 0 72px; align-items: start; }
.comm-benefits h2 { font-size: 1.35rem; font-weight: 800; color: var(--rsc-ink); margin-bottom: 22px; }
.comm-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 16px; }
.comm-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--rsc-body); font-size: .98rem; line-height: 1.55; }
.comm-list li i { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,86,48,.1); color: var(--rsc-orange); font-size: 1rem; }
.comm-list li b { color: var(--rsc-ink); }
.comm-reassure { display: flex; align-items: center; gap: 9px; color: var(--rsc-soft); font-size: .88rem; }
.comm-reassure i { color: #25d366; }
.comm-form-card { background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 16px; padding: 28px 26px; box-shadow: var(--rsc-shadow, 0 12px 32px rgba(11,30,59,.08)); position: sticky; top: 24px; }
.comm-form-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--rsc-ink); margin-bottom: 8px; }
.comm-form-lead { color: var(--rsc-soft); font-size: .9rem; line-height: 1.55; margin-bottom: 18px; }
.comm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #25d366; color: #fff; font-weight: 700; font-size: .97rem; padding: 14px; border: 0; border-radius: 11px; text-decoration: none; transition: .2s var(--rsc-ease); }
.comm-btn:hover { background: #1fb855; transform: translateY(-1px); color: #fff; }
.comm-joined { text-align: center; padding: 6px 0; }
.comm-joined-icon { width: 62px; height: 62px; border-radius: 50%; background: #ecfdf5; color: #059669; display: grid; place-items: center; font-size: 1.7rem; margin: 0 auto 16px; }
html[data-theme="dark"] .comm-joined-icon { background: rgba(5,150,105,.18); }
.comm-joined h3 { font-size: 1.2rem; font-weight: 800; color: var(--rsc-ink); margin-bottom: 8px; }
.comm-joined p { color: var(--rsc-soft); font-size: .92rem; margin-bottom: 18px; }
.comm-soon { color: var(--rsc-soft); font-size: .9rem; text-align: center; }

/* ── Boutique : cartes de dossiers premium ── */
.prod-band-note { color: var(--rsc-soft); font-size: .93rem; line-height: 1.6; max-width: 720px; margin: -6px 0 20px; }
.prod-band-note strong { color: var(--rsc-ink); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 40px; }
.prod-card { display: flex; flex-direction: column; background: var(--rsc-surface); border: 1px solid var(--rsc-line); border-radius: 16px; padding: 20px 22px; text-decoration: none; transition: .2s var(--rsc-ease); }
.prod-card:hover { border-color: var(--rsc-orange); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11,30,59,.1); }
.prod-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.prod-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,86,48,.12); color: var(--rsc-orange-dark); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
html[data-theme="dark"] .prod-badge { color: #ff8467; }
.prod-price { font-size: 1.15rem; font-weight: 800; color: var(--rsc-ink); }
.prod-card h3 { font-size: 1.06rem; font-weight: 800; color: var(--rsc-ink); line-height: 1.35; margin-bottom: 8px; }
.prod-tagline { color: var(--rsc-soft); font-size: .9rem; line-height: 1.55; margin-bottom: 14px; }
.prod-features { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; }
.prod-features li { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--rsc-gray); margin: 0; }
.prod-features li i { color: #059669; margin-top: 3px; font-size: .75rem; }
.prod-features li.more { color: var(--rsc-soft); font-style: italic; padding-left: 16px; }
.prod-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--rsc-orange-dark); font-weight: 700; font-size: .9rem; }
.prod-empty { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 20px 10px; }
.prod-empty h2 { font-size: 1.5rem; font-weight: 800; color: var(--rsc-ink); margin-bottom: 12px; }
.prod-empty p { color: var(--rsc-soft); line-height: 1.65; margin-bottom: 24px; }
/* Scoper aux liens de texte : sinon ce style écrase le .dl-btn (texte orange
   sur fond orange = illisible). */
.prod-empty p a { color: var(--rsc-orange-dark); text-decoration: underline; }
.prod-empty .dl-btn { color: #fff; text-decoration: none; }

/* Encadré de cross-promo en bas d'article */
.prod-promo { background: linear-gradient(180deg, rgba(255,86,48,.06), transparent); border: 1px solid rgba(255,86,48,.28); border-radius: 16px; padding: 22px 24px; margin: 2.4em 0 1.5em; }
.prod-promo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.prod-promo h3 { font-size: 1.12rem; font-weight: 800; color: var(--rsc-ink); margin: 0 0 8px; }
.prod-promo p { color: var(--rsc-soft); font-size: .93rem; line-height: 1.6; margin: 0 0 16px; }
/* .rsc-prose a souligne et colore tous les liens : on surcharge pour le CTA,
   qui vit à l'intérieur de la prose de l'article. */
.prod-promo-cta,
.rsc-prose .prod-promo-cta { display: inline-flex; align-items: center; gap: 9px; background: var(--rsc-orange-cta); color: #fff; font-weight: 700; font-size: .93rem; padding: 12px 22px; border-radius: 11px; text-decoration: none; transition: .2s var(--rsc-ease); }
.prod-promo-cta:hover,
.rsc-prose .prod-promo-cta:hover { background: var(--rsc-orange-cta-dark); transform: translateY(-1px); color: #fff; text-decoration: none; }
.prod-promo small { display: block; margin-top: 12px; color: var(--rsc-soft); font-size: .78rem; }

/* ── Boutique : carte d'achat ── */
.shop-price { text-align: center; padding: 4px 0 18px; border-bottom: 1px solid var(--rsc-line); margin-bottom: 18px; }
.shop-price-amount { display: block; font-size: 2.3rem; font-weight: 800; color: var(--rsc-ink); line-height: 1.1; }
.shop-price-note { display: block; margin-top: 6px; font-size: .82rem; color: var(--rsc-soft); }
.shop-soon { display: flex; align-items: center; gap: 8px; background: var(--rsc-bg); color: var(--rsc-soft); border: 1px dashed var(--rsc-line-2); border-radius: 10px; padding: 10px 12px; font-size: .84rem; margin-bottom: 14px; }
.shop-terms { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.5; color: var(--rsc-soft); cursor: pointer; margin: 2px 0 4px; }
.shop-terms input { width: auto; margin-top: 3px; flex: none; }
.shop-terms a { color: var(--rsc-orange-dark); text-decoration: underline; }
.shop-reassure { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rsc-line); display: flex; flex-direction: column; gap: 10px; }
.shop-reassure li { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--rsc-soft); margin: 0; }
.shop-reassure i { color: #059669; width: 16px; }
.dl-form button i.fa-whatsapp, .dl-form button .fa-whatsapp { font-size: 1.05rem; }
@media (max-width: 860px){ .comm-wrap { grid-template-columns: 1fr; gap: 28px; } .comm-form-card { position: static; } .comm-hero h1 { font-size: 1.85rem; } }

/* ═══════════════════════════════════════════════════════════
   DARK MODE — ajustements composants + bouton + animations
   (ce fichier n'est chargé que sur les pages du Centre de Ressources)
   ═══════════════════════════════════════════════════════════ */
html[data-theme="dark"] body { background: var(--rsc-bg); }

/* Barre de nav + topbar assombries (uniquement sur ces pages) */
html[data-theme="dark"] .navbar { background: #0c1526 !important; box-shadow: 0 1px 0 var(--rsc-line), 0 10px 26px rgba(0,0,0,.34) !important; }
html[data-theme="dark"] .navbar .nav-item.nav-link { color: #c6d2e6 !important; }
html[data-theme="dark"] .navbar .nav-item.nav-link:hover,
html[data-theme="dark"] .navbar .nav-item.nav-link.active { color: #fff !important; }
html[data-theme="dark"] .navbar-brand-text h2 { color: #fff !important; }
html[data-theme="dark"] .navbar-brand-text small { color: var(--rsc-soft) !important; }

/* Ombres + surfaces cartes en sombre */
html[data-theme="dark"] :is(.rsc-card, .gl-term, .def-block, .def-panel, .dl-tile, .dl-card, .rsc-stat, .rsc-featured, .rsc-toc, .rsc-news) {
    box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.28);
}
html[data-theme="dark"] .rsc-chip { background: var(--rsc-surface); }
html[data-theme="dark"] .rsc-badge--dom { background: rgba(255,255,255,.05); }
html[data-theme="dark"] .gl-az { background: var(--rsc-surface); }
html[data-theme="dark"] .gl-az a:hover { background: var(--rsc-orange); }
html[data-theme="dark"] .def-block.accent-green { background: linear-gradient(180deg, #12271e, var(--rsc-surface) 62%); }
html[data-theme="dark"] .def-ic.ink { background: #1b2540; }
html[data-theme="dark"] .def-ic.blue { background: #17284a; }
html[data-theme="dark"] .def-ic.grn { background: #123526; }
html[data-theme="dark"] .dl-error { background: #3a1414; color: #fca5a5; }
/* Contenu riche (articles, définitions) */
html[data-theme="dark"] .rsc-prose { color: var(--rsc-gray); }
html[data-theme="dark"] .rsc-prose :is(h2,h3,h4,strong,b) { color: var(--rsc-ink); }
html[data-theme="dark"] .rsc-lead { color: var(--rsc-ink); }
html[data-theme="dark"] .rsc-tag { background: var(--rsc-surface); border-color: var(--rsc-line); color: var(--rsc-gray); }
html[data-theme="dark"] .rsc-toc a { color: var(--rsc-gray); }

/* Bouton bascule thème (flottant, en bas à gauche) */
.rsc-theme-toggle {
    position: fixed; left: 24px; bottom: 26px; z-index: 999;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--rsc-line); background: var(--rsc-surface); color: var(--rsc-ink);
    cursor: pointer; box-shadow: 0 6px 20px rgba(11,30,59,.18);
    display: grid; place-items: center; transition: transform .2s var(--rsc-ease), color .2s var(--rsc-ease);
}
.rsc-theme-toggle:hover { transform: translateY(-2px); color: var(--rsc-orange-dark); }
.rsc-theme-toggle i { font-size: 1.05rem; }
.rsc-theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .rsc-theme-toggle .fa-moon { display: none; }
html[data-theme="dark"] .rsc-theme-toggle .fa-sun { display: block; color: #ffd166; }

/* Révélation au défilement (micro-animations) */
.rsc-reveal { opacity: 0; transform: translateY(16px); }
.rsc-reveal.in { opacity: 1; transform: none; transition: opacity .55s var(--rsc-ease), transform .55s var(--rsc-ease); }
@media (prefers-reduced-motion: reduce) {
    .rsc-reveal, .rsc-reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Amorce Académie (bandeau sur le hub) */
.rsc-academy {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--rsc-navy-2), #07142a);
    border-radius: 22px; padding: 44px 48px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.rsc-academy::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at 90% -10%, rgba(255,86,48,.28), transparent 62%); pointer-events: none; }
.rsc-academy-txt { position: relative; max-width: 62ch; }
.rsc-academy .tag { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffb9a6; margin-bottom: 12px; }
.rsc-academy h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.rsc-academy p { color: #c5d2e6; line-height: 1.6; margin: 0; }
.rsc-academy .soon { position: relative; flex: none; display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 600; font-size: .9rem; padding: 13px 22px; border-radius: 12px; }

/* ============================================================
   ENCART « UNE QUESTION ? » (bas d'article)
   ============================================================ */
.rsc-ask { padding: 8px 0 40px; }
.qbox {
    max-width: 820px; margin: 0 auto;
    background: #fff; border: 1px solid #e6e9ef; border-radius: 18px;
    padding: 26px 28px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.qbox-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 18px; }
.qbox-ic {
    width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ff7a45, #e8491c); color: #fff; font-size: 19px;
    box-shadow: 0 6px 16px rgba(232, 73, 28, .3);
}
.qbox-head h2 { margin: 0 0 3px; font-size: 1.2rem; font-weight: 800; color: #0b1e3b; letter-spacing: -.01em; }
.qbox-head p { margin: 0; font-size: .95rem; color: #5b6472; line-height: 1.5; }
.qbox-form textarea {
    width: 100%; box-sizing: border-box; font-family: inherit; font-size: .98rem; color: #0b1e3b;
    background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 13px 15px;
    resize: vertical; min-height: 96px; outline: none; transition: border-color .15s, box-shadow .15s;
    margin-bottom: 12px;
}
.qbox-form textarea:focus { border-color: #e8491c; box-shadow: 0 0 0 3.5px rgba(232, 73, 28, .12); }
.qbox-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .qbox-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Prompt Library — fiche prompt (Lot 6.P.1, lecture seule)
   Charte : navy #0F172A · orange #F97316 · fonds très clairs. Mobile-first.
   ========================================================================== */
.rsc-prompt-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px 8px;
}
.rsc-badge--prompt {
    background: rgba(249, 115, 22, .12);
    color: #c2410c;
}
.rsc-prompt-lead {
    font-size: 1.12rem;
    line-height: 1.6;
    color: #dbe4f0;            /* clair : le hero est navy, contraste AA */
    margin: 14px 0 18px;
    max-width: 60ch;
}
.rsc-prompt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.rsc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    background: #eef2f7;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}
.rsc-chip--access { background: #0f172a; color: #fff; border-color: #0f172a; }
.rsc-chip--muted { background: #f8fafc; color: #64748b; font-weight: 500; }
.rsc-prompt-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f97316;
    color: #fff;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}
.rsc-prompt-cta:hover { background: #ea580c; transform: translateY(-1px); }
.rsc-prompt-cta:focus-visible { outline: 3px solid #0f172a; outline-offset: 2px; }

/* Sections de la fiche */
.rsc-prompt-prose { margin: 22px 0 8px; }
.rsc-prompt-method,
.rsc-prompt-check,
.rsc-prompt-tip {
    margin: 22px 0;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e7ecf4;
    border-radius: 14px;
}
.rsc-prompt-method h2,
.rsc-prompt-check h2,
.rsc-prompt-tip h2 {
    font-size: 1.15rem;
    color: #0f172a;
    margin: 0 0 12px;
}
.rsc-method-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.rsc-method-steps li {
    position: relative;
    padding: 8px 0 8px 40px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.rsc-method-steps li:last-child { border-bottom: 0; }
.rsc-method-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0; top: 8px;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: #0f172a; color: #fff;
    border-radius: 50%;
    font-size: .8rem; font-weight: 700;
}
.rsc-method-steps b { color: #0f172a; }

/* Bloc prompt — élément central */
.rsc-prompt-block {
    margin: 26px 0;
    border: 2px solid #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .10);
    scroll-margin-top: 90px;
}
.rsc-prompt-block-head {
    background: #0f172a;
    color: #fff;
    padding: 16px 20px;
}
.rsc-prompt-block-head h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #fff;
    display: flex; align-items: center; gap: 9px;
}
.rsc-prompt-block-head h2 i { color: #fb923c; }
.rsc-prompt-hint { margin: 0; font-size: .9rem; line-height: 1.5; color: #cbd5e1; }
.rsc-prompt-hint code {
    background: rgba(255, 255, 255, .12);
    color: #fde68a;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: .85em;
}
.rsc-prompt-text {
    margin: 0;
    padding: 20px;
    background: #f8fafc;
    color: #1e293b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92rem;
    line-height: 1.65;
    white-space: pre-wrap;       /* préserve les sauts de ligne ET wrap les longues lignes */
    overflow-wrap: anywhere;     /* jamais d'overflow horizontal, même token très long */
    word-break: break-word;
    border-top: 3px solid #f97316;
}

/* À vérifier / conseil */
.rsc-prompt-check ul { margin: 0 0 12px; padding-left: 20px; color: #334155; }
.rsc-prompt-check li { margin-bottom: 5px; }
.rsc-prompt-note {
    margin: 0;
    padding: 12px 14px;
    background: #fff7ed;
    border-left: 3px solid #f97316;
    border-radius: 8px;
    color: #7c2d12;
    font-size: .92rem;
}
.rsc-prompt-note i { color: #f97316; margin-right: 6px; }
.rsc-prompt-tip { background: #f0f9ff; border-color: #bae6fd; }
.rsc-prompt-tip h2 i { color: #f97316; margin-right: 6px; }
.rsc-prompt-tip div { color: #334155; line-height: 1.6; }

@media (max-width: 560px) {
    .rsc-prompt-wrap { padding: 0 14px 8px; }
    .rsc-prompt-method, .rsc-prompt-check, .rsc-prompt-tip { padding: 16px; }
    .rsc-prompt-text { padding: 16px; font-size: .88rem; }
}

/* ── Prompt Library — personnalisation (Lot 6.P.2) ── */
.rsc-prompt-fill {
    padding: 18px 20px 6px;
    background: #fff;
    border-bottom: 1px solid #e7ecf4;
}
.rsc-prompt-fill-title { margin: 0 0 4px; font-size: 1.05rem; color: #0f172a; }
.rsc-prompt-fill-sub { margin: 0 0 14px; font-size: .88rem; color: #64748b; }
.rsc-prompt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}
.rsc-prompt-field { display: flex; flex-direction: column; gap: 5px; }
.rsc-prompt-field--wide { grid-column: 1 / -1; }
.rsc-prompt-field-label { font-size: .82rem; font-weight: 600; color: #334155; }
.rsc-prompt-field input,
.rsc-prompt-field textarea {
    width: 100%;
    min-height: 44px;               /* cible tactile confortable */
    padding: 10px 12px;
    border: 1px solid #d7dfea;
    border-radius: 9px;
    font: inherit;
    font-size: .95rem;
    color: #0f172a;
    background: #f8fafc;
    resize: vertical;
}
.rsc-prompt-field input:focus,
.rsc-prompt-field textarea:focus {
    outline: none;
    border-color: #f97316;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .14);
}
.rsc-prompt-status { margin: 12px 0 4px; font-size: .85rem; font-weight: 600; color: #475569; }

.rsc-prompt-outcap {
    padding: 12px 20px 0;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
}
.rsc-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 20px 18px;
    background: #f8fafc;
}
.rsc-prompt-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f97316;
    color: #fff;
    font-weight: 700;
    border: 0;
    padding: 11px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease;
}
.rsc-prompt-copy:hover { background: #ea580c; }
.rsc-prompt-copy.is-copied { background: #16a34a; }
.rsc-prompt-copy:focus-visible,
.rsc-prompt-reset:focus-visible { outline: 3px solid #0f172a; outline-offset: 2px; }
.rsc-prompt-reset {
    background: transparent;
    color: #475569;
    font-weight: 600;
    border: 1px solid #d7dfea;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
}
.rsc-prompt-reset:hover { background: #eef2f7; color: #0f172a; }
.rsc-prompt-live { font-size: .88rem; font-weight: 600; color: #16a34a; }

@media (max-width: 560px) {
    .rsc-prompt-grid { grid-template-columns: 1fr; }
    .rsc-prompt-fill, .rsc-prompt-actions, .rsc-prompt-outcap { padding-left: 16px; padding-right: 16px; }
    .rsc-prompt-copy, .rsc-prompt-reset { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Prompt Library — hub /ressources/prompts (Lot 6.P.3)
   ========================================================================== */
.rsc-hub-intro { max-width: 70ch; color: #dbe4f0; margin: 10px 0 0; line-height: 1.6; font-size: .98rem; }
.rsc-hub-privacy { display: inline-block; margin-top: 8px; color: #cbd5e1; font-size: .88rem; }
.rsc-hub-privacy i { color: #fb923c; margin-right: 5px; }
.rsc-hub-wrap { max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; }

.rsc-hub-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.rsc-hub-filter {
    border: 1px solid #d7dfea; background: #fff; color: #334155;
    font-weight: 600; font-size: .88rem; padding: 8px 16px; border-radius: 999px; cursor: pointer;
    transition: all .15s ease;
}
.rsc-hub-filter:hover { border-color: #94a3b8; }
.rsc-hub-filter.is-active { background: #0f172a; color: #fff; border-color: #0f172a; }
.rsc-hub-filter:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }

.rsc-hub-stage { margin-bottom: 30px; }
.rsc-hub-stage-title {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.15rem; color: #0f172a; margin: 0 0 14px;
    padding-bottom: 8px; border-bottom: 2px solid #f1f5f9;
}
.rsc-hub-stage-num {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: #0f172a; color: #fff;
    font-size: .85rem; font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.rsc-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.rsc-hub-card {
    display: flex; flex-direction: column; gap: 10px;
    background: #fff; border: 1px solid #e7ecf4; border-radius: 14px;
    padding: 18px 18px 16px;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.rsc-hub-card:hover { box-shadow: 0 12px 32px rgba(15,23,42,.08); transform: translateY(-2px); border-color: #dbe4f0; }
.rsc-hub-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.rsc-hub-card-title { font-size: 1.05rem; color: #0f172a; margin: 0; line-height: 1.35; }
.rsc-hub-card-summary { font-size: .9rem; color: #475569; line-height: 1.55; margin: 0; flex: 1; }
.rsc-hub-cta {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 700; font-size: .9rem; text-decoration: none;
    padding: 9px 16px; border-radius: 9px; margin-top: 4px;
    transition: background .15s ease, transform .15s ease;
}
.rsc-hub-cta--primary { background: #f97316; color: #fff; }
.rsc-hub-cta--primary:hover { background: #ea580c; transform: translateX(2px); }
.rsc-hub-cta--ghost { background: #eef2f7; color: #0f172a; }
.rsc-hub-cta--ghost:hover { background: #e2e8f0; }
.rsc-hub-cta:focus-visible { outline: 3px solid #0f172a; outline-offset: 2px; }

/* Puces d'accès */
.rsc-chip--public { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.rsc-chip--free { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.rsc-chip--pro { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.rsc-chip--master { background: #0f172a; color: #fff; border-color: #0f172a; }

.rsc-hub-empty, .rsc-hub-none { text-align: center; color: #64748b; padding: 30px 0; }

@media (max-width: 560px) {
    .rsc-hub-wrap { padding: 18px 14px 32px; }
    .rsc-hub-grid { grid-template-columns: 1fr; }
}

/* ── Prompt Library — aide contextuelle des champs (Lot 6.P.3.1) ── */
.rsc-prompt-field-head { display: flex; align-items: center; gap: 6px; }
.rsc-prompt-help-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; padding: 0;
    border: 0; border-radius: 50%;
    background: transparent; color: #94a3b8; cursor: pointer;
    font-size: .82rem; line-height: 1;
    transition: color .15s ease, background .15s ease;
}
.rsc-prompt-help-btn:hover { color: #f97316; background: #fff7ed; }
.rsc-prompt-help-btn.is-open { color: #f97316; }
.rsc-prompt-help-btn:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }
.rsc-prompt-help-panel {
    margin: 6px 0 2px;
    padding: 9px 11px;
    background: #f8fafc;
    border: 1px solid #e7ecf4;
    border-left: 3px solid #f97316;
    border-radius: 8px;
    font-size: .84rem;
    line-height: 1.5;
    color: #475569;
}
.rsc-prompt-help-panel p { margin: 0; }
.rsc-prompt-help-ex { margin-top: 4px !important; color: #64748b; font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   MASTER PROMPTS — workflow guidé (Lot 6.P.4)
   Couche de présentation au-dessus du builder. Réutilise .rsc-prompt-grid.
   ═══════════════════════════════════════════════════════════ */
.rsc-master { margin: 4px 0 2px; }

/* Indicateur d'étapes (pastilles numérotées) */
.rsc-master-stepper {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    list-style: none; margin: 0 0 10px; padding: 0;
}
.rsc-master-dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: #e2e8f0; color: #64748b;
    font-size: .85rem; font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: background .15s ease, color .15s ease;
}
.rsc-master-dot.is-done { background: #cbd5e1; color: #334155; }
.rsc-master-dot.is-active { background: #0f172a; color: #fff; box-shadow: 0 0 0 3px rgba(15,23,42,.12); }

.rsc-master-counter {
    margin: 0 0 14px; font-size: .95rem; font-weight: 700; color: #0f172a;
}

.rsc-master-step { margin: 0 0 6px; }
.rsc-master-step-title {
    font-size: 1.1rem; color: #0f172a; margin: 0 0 4px; outline: none;
}
.rsc-master-step-title:focus-visible { outline: 3px solid #f97316; outline-offset: 3px; border-radius: 6px; }
.rsc-master-step-desc { margin: 0 0 14px; font-size: .9rem; color: #64748b; line-height: 1.55; }

/* Navigation entre étapes */
.rsc-master-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef2f7;
}
.rsc-master-prev, .rsc-master-next {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .92rem; border-radius: 10px;
    padding: 11px 18px; cursor: pointer; border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.rsc-master-prev { background: #fff; color: #0f172a; border-color: #d8e0ec; }
.rsc-master-prev:hover { background: #f1f5f9; }
.rsc-master-prev:disabled { opacity: .4; cursor: not-allowed; }
.rsc-master-next { background: #f97316; color: #fff; }
.rsc-master-next:hover { background: #ea6a0c; }
.rsc-master-prev:focus-visible, .rsc-master-next:focus-visible { outline: 3px solid #0f172a; outline-offset: 2px; }
.rsc-master-progress { font-size: .85rem; color: #64748b; font-variant-numeric: tabular-nums; text-align: center; }

/* Récapitulatif (complétude factuelle, jamais un score) */
.rsc-master-recap {
    margin: 4px 0 16px; padding: 14px 16px;
    background: #f8fafc; border: 1px solid #e7ecf4; border-radius: 12px;
}
.rsc-master-recap-line { margin: 0; font-weight: 700; color: #0f172a; font-size: .95rem; }
.rsc-master-recap-h { margin: 10px 0 4px; font-size: .85rem; color: #64748b; font-weight: 600; }
.rsc-master-recap-list { margin: 0; padding-left: 18px; color: #475569; font-size: .88rem; line-height: 1.6; }

/* Mobile : la pastille-stepper devient secondaire, le compteur compact suffit */
@media (max-width: 640px) {
    .rsc-master-stepper { gap: 7px; }
    .rsc-master-dot { width: 26px; height: 26px; font-size: .78rem; }
    .rsc-master-nav { flex-wrap: wrap; }
    .rsc-master-prev, .rsc-master-next { flex: 1 1 auto; justify-content: center; }
    .rsc-master-progress { order: 3; flex-basis: 100%; }
}
