/* Police Inter auto-hébergée (variable, 100-900), latin puis latin étendu */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(vendor/inter/inter-latin-ext-wght-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(vendor/inter/inter-latin-wght-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ==========================================================
   Framework Mellon — feuille de style (v3)
   1. Base Datalchimie   : règles reprises de style.css, limitées à ce que la page utilise
   2. Page du framework  : portes, fiches, badges, graphes de position
   3. Méthode            : section « La méthode » ajoutée en fin de page
   ========================================================== */

/* ---------- 1. Base Datalchimie ---------- */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --text-color: #e0e0e0;
    --bg-color: #0a0a0a;
    --second-bg-color: #22282f;
    --third-bg-color: #1a1e23;
    --main-color: #4a9eff;
    --other-color: #c3cad5;
    --card-bg: #22282f;
    --h1-font: 4.5rem;
    --h2-font: 2.9rem;
    --p-font: 1rem;
}

body {
    color: var(--text-color);
    background: var(--bg-color);
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16%;
    background: black;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--main-color);
    transition: all .50s ease;
}

header.sticky {
    background: black;
    backdrop-filter: blur(10px);
    box-shadow: 0 .1rem 1rem rgba(0, 0,0, .2);
    padding: 16px 16%;
    border-bottom: 1px solid var(--main-color);
}

.logo {
    font-size: 36px;
    color: var(--text-color);
    font-weight: 600;
}

span {
    color: var(--main-color);
}

.navlist {
    display: flex;
}

.navlist a {
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--other-color);
    margin-left: 40px;
    transition: all .50s ease;
}

.navlist a:hover {
    color: var(--text-color);
    text-shadow: 3px 3px 20px var(--main-color), -2px 1px 30px var(--text-color);
}

#menu-icon {
    font-size: 35px;
    z-index: 10001;
    cursor: pointer;
    display: none;
}

section {
    padding: 50px 16% 50px;
    scroll-margin-top: 100px;
}

.footer {
    padding: 22px 16%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.copyright p {
    font-size: 15px;
    font-weight: 400;
    color: var(--other-color);
}

.hero-analysis {
    padding: 150px 16% 60px;
    background: var(--third-bg-color);
}

.analysis-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.analysis-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.analysis-header h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.highlight-number {
    color: var(--main-color);
    font-weight: bold;
    font-size: 2.2rem;
}

.context-box {
    background: #000000;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--main-color);
    max-width: 800px;
    margin: 0 auto;
}

.context-box p {
    color: var(--other-color);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.report-section {
    padding-top: 40px !important;
    padding-bottom: 100px;
    min-height: auto;
    position: relative;
    z-index: 1;
}

.report-container {
    max-width: 1000px;
    margin: 0 auto;
}

.report-title {
    text-align: center;
    margin-bottom: 3rem;
}

.report-title h2 {
    font-size: var(--h2-font);
    color: var(--text-color);
}

.report-title span {
    color: var(--main-color);
}

.chapter-container {
    margin-bottom: 1rem;
}

.chapter-box {
    background: #22282f;
    border-left: 4px solid var(--main-color);
    padding: 1rem;
    cursor: pointer;
    transition: all .3s ease;
    border-radius: 8px;
}

.chapter-box:hover {
    background: var(--second-bg-color);
    border: 1px solid var(--main-color);
    box-shadow: 0 0 20px rgba(0, 129, 184, 0.3);
    transform: translateY(-2px);
}

.chapter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chapter-left {
    display: flex;
    align-items: center;
}

.chapter-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1.5rem;
}

.chapter-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.expand-icon {
    color: var(--main-color);
    font-size: 1.2rem;
    transition: transform .3s ease;
}

.expand-icon.expanded {
    transform: rotate(90deg);
}

.article-content {
    background: #000000;
    border-left: 4px solid var(--main-color);
    padding: 2rem;
    margin-top: 0.5rem;
    margin-left: 100px;
    border-radius: 0 8px 8px 0;
    display: none;
}

.article-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.article-content h3 {
    color: var(--main-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.article-content h4 {
    color: var(--text-color);
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1rem;
}

.article-content p {
    color: var(--other-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    color: var(--other-color);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content li {
    color: var(--other-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content code {
    background: var(--bg-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--main-color);
}

@media (max-width: 1700px) {
    header {
        padding: 20px 8%;
    }

    header.sticky {
        padding: 14px 8%;
    }

    section {
        padding: 90px 8% 80px;
    }

    .footer {
        padding: 18px 8%;
    }

    .logo {
        font-size: 28px;
    }
}

@media (max-width: 1380px) {
    header {
        padding: 20px 5%;
    }

    header.sticky {
        padding: 14px 5%;
    }

    section {
        padding: 90px 5% 80px;
    }

    .footer {
        padding: 18px 5%;
    }
}

@media (max-width: 1240px) {
    :root {
        --h1-font: 4rem;
        --h2-font: 2.2rem;
        --p-font: 15px;
    }
}

/* v2.6 : sept entrées dans le bandeau, le menu burger prend le relais dès 1100 px */
@media (max-width: 1100px) {
    #menu-icon {
        display: block;
    }

    .navlist {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-color);
        transition: all .50s ease;
    }

    .navlist a {
        display: block;
        padding: 17px;
        font-size: 22px;
        margin-left: 0;
    }

    .navlist a.nav-contact {
        margin: 12px 17px;
        padding: 12px 17px;
        text-align: center;
        font-size: 18px;
    }

    .navlist.active {
        right: 0;
    }
}

@media (max-width: 950px) {
    :root {
        --h1-font: 3.5rem;
    }

    .article-content {
        margin-left: 0;
    }
}

@media (max-width: 680px) {
    :root {
        --h1-font: 3rem;
        --h2-font: 1.9rem;
    }
}

@media (max-width: 470px) {
    :root {
        --h1-font: 2.6rem;
        --h2-font: 1.7rem;
    }

    header {
        padding: 16px 4%;
    }

    section {
        padding: 80px 4% 60px;
    }

    .footer {
        padding: 16px 4%;
        flex-direction: column;
        text-align: center;
    }
}

code[class*='language-'],
pre[class*='language-'] {
    color: #d6e7ff;
    background: #030314;
    text-shadow: none;
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
    font-size: 1em;
    line-height: 1.5;
    letter-spacing: .2px;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    text-align: left;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

pre[class*='language-']::-moz-selection,
pre[class*='language-'] ::-moz-selection,
code[class*='language-']::-moz-selection,
code[class*='language-'] ::-moz-selection,
pre[class*='language-']::selection,
pre[class*='language-'] ::selection,
code[class*='language-']::selection,
code[class*='language-'] ::selection {
    color: inherit;
    background: #1d3b54;
    text-shadow: none;
}

:not(pre) > code[class*='language-'] {
    color: #f0f6f6;
    background: #2a4555;
    padding: 0.2em 0.3em;
    border-radius: 0.2em;
    box-decoration-break: clone;
}

:not(pre) > code[class*='language-'],
pre[class*='language-'] {
    color: white !important;
    background: #070b11 !important;
    padding: 0.1em;
    border-radius: 0.3em;
}

/* ---------- 2. Page du framework ---------- */

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    max-width: 900px;
    margin: 1.5rem auto 0;
}

.kpi-item {
    text-align: center;
    padding: 0.8rem 0.5rem;
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.25);
    border-radius: 8px;
}

.kpi-item .kpi-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--main-color);
}

.kpi-item .kpi-label {
    font-size: 0.75rem;
    color: var(--other-color);
    margin-top: 0.2rem;
}

.methods-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: 1.2rem auto 0;
}

.method-tag {
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 16px;
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    color: var(--main-color);
}

@media (max-width: 680px) {
    .kpi-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.chapter-subtitle {
    font-size: 0.9rem;
    color: var(--other-color);
    font-style: italic;
    margin-top: 0.25rem;
}

.chapter-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chapter-count {
    color: var(--main-color);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(74, 158, 255, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
}

.chapter-left > div {
    display: flex;
    flex-direction: column;
}

.article-content {
    margin-left: 0;
}

.porte-question-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(74, 158, 255, 0.3);
}

.porte-subtitle-text {
    color: var(--main-color) !important;
    font-style: italic;
    font-size: 1.05rem;
    margin: 0 !important;
}

.rupture-block {
    margin-bottom: 0.8rem;
}

.rupture-header {
    background: var(--second-bg-color);
    border-left: 3px solid var(--other-color);
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    transition: all .25s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rupture-header:hover {
    border-left-color: var(--main-color);
    background: #2a3038;
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.15);
}

.rupture-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.rupture-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--main-color);
    font-size: 1rem;
    min-width: 36px;
}

.rupture-nom {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-color);
}

.rupture-header-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rupture-chevron {
    color: var(--main-color);
    font-size: 1rem;
    transition: transform .3s ease;
    margin-left: 0.3rem;
}

.rupture-chevron.expanded {
    transform: rotate(90deg);
}

.rupture-content {
    display: none;
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding: 1.3rem;
    background: var(--bg-color);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
}

.rupture-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.meta-badge,
.cause-badge,
.horizon-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.03);
}

.meta-prealable {
    color: #ffd700;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.meta-carrefour {
    color: #c3cad5;
    border-color: #c3cad5;
}

.meta-instrument_manquant {
    color: #9aa4b2;
    border-color: #9aa4b2;
    border-style: dashed;
}

.meta-amplificateur {
    color: #f0a500;
    border-color: #f0a500;
    background: rgba(240, 165, 0, 0.1);
}

.meta-racine {
    color: #b482ff;
    border-color: #b482ff;
    background: rgba(180, 130, 255, 0.12);
}

.levier-politique {
    color: #ff5477;
    border-color: #ff5477;
    background: rgba(255, 84, 119, 0.1);
}

.levier-gouvernance {
    color: #4db8ff;
    border-color: #4db8ff;
    background: rgba(77, 184, 255, 0.1);
}

.levier-perimetre {
    color: #56dcc3;
    border-color: #56dcc3;
    background: rgba(86, 220, 195, 0.1);
}

.levier-reglementaire {
    color: #ffa756;
    border-color: #ffa756;
    background: rgba(255, 167, 86, 0.1);
}

.cause-badge {
    color: var(--other-color);
    border-color: var(--other-color);
}

.cause-tech {
    color: #56dcc3;
    border-color: #56dcc3;
}

.cause-def {
    color: #ffa756;
    border-color: #ffa756;
}

.cause-hum {
    color: #b482ff;
    border-color: #b482ff;
}

.cause-arb {
    color: #ff5477;
    border-color: #ff5477;
}

.cause-regl {
    color: #7ee787;
    border-color: #7ee787;
}

.horizon-badge {
    color: var(--other-color);
    border-color: var(--other-color);
}

.horizon-imm::before {
    content: "● ";
    color: #ffd700;
}

.horizon-dif::before {
    content: "● ";
    color: #ffa756;
}

.horizon-long::before {
    content: "● ";
    color: #ff5477;
}

.fiche-standard {
    background: var(--third-bg-color);
    border-radius: 8px;
    margin-bottom: 1.3rem;
    overflow: hidden;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.fiche-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
}

.fiche-row:last-child {
    border-bottom: none;
}

.fiche-row-label {
    padding: 0.75rem 1rem;
    background: rgba(74, 158, 255, 0.08);
    color: var(--main-color);
    font-weight: 600;
    font-size: 0.88rem;
}

.fiche-row-value {
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-size: 0.92rem;
    line-height: 1.55;
}

.fiche-row-value strong {
    color: var(--main-color);
}

.fiche-table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.3rem;
    border-radius: 8px;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.fiche-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--third-bg-color);
    font-size: 0.9rem;
}

.fiche-table thead {
    background: rgba(74, 158, 255, 0.12);
}

.fiche-table th {
    text-align: left;
    padding: 0.7rem 0.9rem;
    color: var(--main-color);
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(74, 158, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fiche-table td {
    padding: 0.7rem 0.9rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(74, 158, 255, 0.08);
    line-height: 1.5;
    vertical-align: top;
}

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

.fiche-table tbody tr:hover td {
    background: rgba(74, 158, 255, 0.05);
}

.fiche-table td:first-child {
    color: var(--main-color);
    font-weight: 600;
}

.fiche-table strong {
    color: var(--main-color);
}

.rupture-intro {
    margin-bottom: 1.3rem;
}

.rupture-intro p {
    color: var(--other-color);
    line-height: 1.65;
    font-size: 0.93rem;
    margin-bottom: 0.7rem;
}

.rupture-intro strong {
    color: var(--text-color);
}

.rupture-section {
    margin-top: 1.3rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(74, 158, 255, 0.12);
}

.rupture-section-title {
    color: var(--main-color);
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rupture-section-body {
    color: var(--other-color);
    font-size: 0.93rem;
    line-height: 1.65;
}

.rupture-section-body p {
    margin-bottom: 0.7rem;
    color: var(--other-color);
}

.rupture-section-body p:last-child {
    margin-bottom: 0;
}

.rupture-section-body strong {
    color: var(--text-color);
}

.rupture-section-body p.sub-label {
    color: var(--text-color);
    margin-top: 0.9rem;
    margin-bottom: 0.4rem;
}

.rupture-section-body p.sub-label strong {
    color: var(--text-color);
}

.rupture-section-body ul,
.rupture-section-body ol {
    margin-left: 1.5rem;
    margin-bottom: 0.9rem;
}

.rupture-section-body li {
    margin-bottom: 0.45rem;
    color: var(--other-color);
    line-height: 1.6;
}

.rupture-section-body ul.implicit-list {
    list-style-type: disc;
}

.rupture-section-body ul.implicit-list li strong {
    color: var(--text-color);
}

.rupture-pitch {
    background: rgba(74, 158, 255, 0.06);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    padding: 1.1rem;
    margin-top: 1.3rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(74, 158, 255, 0.3);
}

.rupture-pitch .rupture-section-body p {
    color: var(--text-color);
    font-style: italic;
    line-height: 1.7;
}

.rupture-pieges .rupture-section-body {
    background: rgba(255, 84, 119, 0.05);
    border-left: 3px solid #ff5477;
    padding: 0.7rem 0.9rem;
    border-radius: 0 4px 4px 0;
}

.rupture-pieges ul li strong {
    color: #ff8da3;
}

@media (max-width: 768px) {
    .fiche-row {
        grid-template-columns: 1fr;
    }

    .fiche-row-label {
        padding: 0.55rem 0.8rem;
    }

    .rupture-content {
        margin-left: 0;
        padding: 0.9rem;
    }

    .rupture-header-left {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .rupture-header-right {
        justify-content: flex-start;
    }

    .meta-badge,
    .cause-badge,
    .horizon-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .chapter-right {
        flex-direction: column;
        gap: 0.3rem;
    }

    .fiche-table {
        font-size: 0.82rem;
    }

    .fiche-table th,
    .fiche-table td {
        padding: 0.55rem 0.7rem;
    }
}

.datachain-intro-block {
    background: var(--second-bg-color);
    border-radius: 12px;
    border: 1px solid rgba(74, 158, 255, 0.25);
    padding: 2rem;
    margin-top: 1.5rem;
}

.datachain-intro-block p {
    color: var(--other-color);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.datachain-intro-block p strong {
    color: var(--text-color);
}

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

.three-chains {
    list-style: none;
    margin: 1.2rem 0 1.4rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.three-chains li {
    background: var(--third-bg-color);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    color: var(--other-color);
    font-size: 0.95rem;
    line-height: 1.5;
    border-left: 4px solid var(--main-color);
}

.three-chains .chain-info {
    color: #4a9eff;
}

.three-chains .chain-finance {
    color: #ffd700;
}

.three-chains .chain-matter {
    color: #56dcc3;
}

.three-chains li:nth-child(1) {
    border-left-color: #4a9eff;
}

.three-chains li:nth-child(2) {
    border-left-color: #ffd700;
}

.three-chains li:nth-child(3) {
    border-left-color: #56dcc3;
}

.datachain-warning {
    background: rgba(255, 84, 119, 0.06);
    border: 1px solid rgba(255, 84, 119, 0.3);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin-top: 1.5rem;
}

.datachain-warning p {
    color: var(--text-color) !important;
    font-size: 0.97rem;
    margin-bottom: 0.8rem;
}

.datachain-warning p:last-child {
    margin-bottom: 0;
}

.datachain-warning strong {
    color: #ff8da3 !important;
}

@keyframes flash-target {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 158, 255, 0);
    }
    30% {
        box-shadow: 0 0 0 6px rgba(74, 158, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 158, 255, 0);
    }
}

.rupture-flash {
    animation: flash-target 1.5s ease;
}

@media (max-width: 768px) {
    .datachain-intro-block {
        padding: 1.3rem;
    }

    .three-chains {
        grid-template-columns: 1fr;
    }
}

.rupture-graph .rupture-section-body {
    background: var(--third-bg-color);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
    margin: 1rem 0 1.3rem;
}

.graph-frame {
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.18);
    border-radius: 8px;
    padding: 1rem 1.1rem;
}

svg.graph-pos {
    width: 100%;
    height: auto;
    display: block;
}

svg.graph-pos a {
    cursor: pointer;
}

svg.graph-pos a rect,
svg.graph-pos a text {
    transition: all .25s ease;
}

svg.graph-pos a:hover rect {
    stroke: #4a9eff;
    fill: #202b3a;
}

svg.graph-pos a:hover text {
    fill: #e0e0e0;
}

svg.graph-pos a:focus-visible rect {
    stroke: #4a9eff;
    stroke-width: 2;
}

.graph-frame + .implicit-list {
    margin: 1.1rem 0 0;
}

.rupture-graph .implicit-list li {
    margin-bottom: 0.5rem;
}

.rupture-graph .implicit-list li:last-child {
    margin-bottom: 0;
}

/* ---------- 3. Méthode ---------- */

.version-tag {
    color: var(--other-color);
    font-size: 0.95rem;
    margin: -0.4rem 0 1.4rem;
}

.context-box p + p {
    margin-top: 0.9rem;
}

.methode-body h3 {
    margin-top: 1.8rem;
}

.methode-body h3:first-child {
    margin-top: 0.4rem;
}

.methode-body ul li {
    list-style: disc;
}

.methode-body ol li {
    list-style: decimal;
}

.methode-body blockquote {
    border-left: 3px solid var(--main-color);
    background: rgba(74, 158, 255, 0.06);
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.methode-body blockquote p {
    margin: 0;
}

.methode-body strong {
    color: var(--text-color);
}

.context-box .rupture-link {
    color: var(--main-color);
    border-bottom: 1px dotted var(--main-color);
}

.context-box .rupture-link:hover {
    color: var(--text-color);
}

/* ---------- Références et crédits (v2.3) ---------- */
.ref-call {
    font-size: 0.7em;
    line-height: 0;
    margin-left: 2px;
    white-space: nowrap;
}

/* Bleu clair lisible sur fond noir (le bleu par défaut des liens ne l'est pas) */
.ref-call a,
.credits-body a,
.copyright a {
    color: #9ccbff;
}

.credits-body .rupture-link {
    border-bottom: 1px dotted #9ccbff;
}

.ref-call a:hover,
.credits-body a:hover,
.copyright a:hover {
    color: #ffffff;
}

.credits-body .rupture-link:hover {
    border-bottom-color: #ffffff;
}

.credits-body {
    margin-left: 0;
    animation: none;
}

.credits-ref {
    scroll-margin-top: 185px;
    overflow-wrap: anywhere;
    padding: 0.3rem 0.6rem;
    border-left: 3px solid transparent;
}

/* Référence visée après un clic sur [n] */
.credits-ref:target {
    background: #1a2a3d;
    border-left-color: #9ccbff;
    border-radius: 0 4px 4px 0;
    color: #ffffff;
}

/* ---------- Fiches à deux niveaux (v2.3) ---------- */
.rupture-more {
    margin-top: 1.2rem;
}

.rupture-more-toggle {
    width: 100%;
    text-align: left;
    background: #22282f;
    color: var(--text-color);
    border: 1px solid #3a4553;
    border-left: 4px solid var(--main-color);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s ease;
}

.rupture-more-toggle:hover {
    background: #1a2a3d;
}

.rupture-more-chevron {
    color: #9ccbff;
    margin-right: 0.4rem;
}

.rupture-more-content {
    display: none;
    margin-top: 1rem;
}

.rupture-more-content.show {
    display: block;
}


/* ---------- Accessibilité (v2.4.1) ---------- */
/* Le menu mobile est un <button> : neutraliser son apparence par défaut */
#menu-icon {
    background: none;
    border: 0;
    color: inherit;
}

/* Focus clavier visible sur les volets, les liens et le menu */
.chapter-box:focus-visible,
.rupture-header:focus-visible,
.rupture-more-toggle:focus-visible,
#menu-icon:focus-visible,
.rupture-link:focus-visible,
.ref-call a:focus-visible {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

/* Mode d'emploi */
.usage-block h3 {
    color: var(--main-color);
    font-size: 1.25rem;
    margin: 1.8rem 0 0.8rem;
}
.usage-block h3:first-child { margin-top: 0; }
.usage-block ul,
.usage-block ol {
    color: var(--other-color);
    margin: 0 0 1rem 1.5rem;
}
.usage-block ul li { list-style: disc; }
.usage-block ol li { list-style: decimal; }
.usage-block li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.usage-block li strong { color: var(--text-color); }


/* ---------- v2.7 : chapitre « Avec une IA » ---------- */
.ia-telechargement {
    margin: 1.5rem 0;
}

.ia-telechargement a {
    display: inline-block;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    padding: 10px 22px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.ia-telechargement a:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

/* Mode d'emploi : accordéons sous l'encart de téléchargement */
#usage-chapters {
    margin-top: 1.5rem;
}

/* Datachain en accordéon : les trois chaînes gardent leurs cartes, sans puces */
.methode-body .three-chains li {
    list-style: none;
}

/* Liens ordinaires dans les chapitres dépliables */
.methode-body a:not(.rupture-link) {
    color: var(--main-color);
}

/* Correctif : le script affiche déjà ▼ à l'ouverture ; la rotation en plus le transformait en ◀ */
.expand-icon.expanded,
.rupture-chevron.expanded {
    transform: none;
}


/* ---------- v2.6 : bandeau commun, Me contacter, page Histoires ---------- */


.navlist a.actif {
    color: var(--text-color);
    text-shadow: 3px 3px 20px var(--main-color), -2px 1px 30px var(--text-color);
}

/* « Me contacter » en bouton, comme sur le portfolio */
.navlist a.nav-contact {
    border: 2px solid var(--main-color);
    border-radius: 8px;
    padding: 8px 18px;
    color: var(--text-color);
}

.navlist a.nav-contact:hover {
    background: var(--main-color);
    color: var(--bg-color);
    text-shadow: none;
}

/* bandeau horizontal uniquement (au-dessous de 1100 px, c'est le menu burger) */
@media (min-width: 1101px) {
    .navlist {
        align-items: center;
    }
}

@media (min-width: 1101px) and (max-width: 1380px) {
    .navlist a {
        margin-left: 24px;
    }
}

/* Me contacter : même fond que le reste de la page */
.contact-intro {
    max-width: 62ch;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--other-color);
    line-height: 1.7;
}

.contact-liens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.contact-bouton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    padding: 10px 22px;
    color: var(--main-color);
    font-weight: 600;
    transition: all .3s ease;
}

.contact-bouton:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

.contact-bouton .bx {
    font-size: 1.3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.contact-form[hidden] {
    display: none;
}

.contact-form input,
.contact-form textarea {
    background: var(--second-bg-color);
    border: 1px solid #3a5a8a;
    border-radius: 10px;
    padding: 16px;
    color: var(--text-color);
    font-size: 15px;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form button {
    justify-self: center;
    background: var(--main-color);
    color: var(--bg-color);
    border: 0;
    border-radius: 8px;
    padding: 13px 28px;
    font-weight: 600;
    cursor: pointer;
}

/* Page Histoires */
.btn-raconter {
    margin-top: 2rem;
    background: var(--main-color);
    color: var(--bg-color);
    border: 0;
    border-radius: 8px;
    padding: 13px 26px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.btn-raconter[hidden] {
    display: none;
}

#histoires {
    min-height: 45vh;
}

.histoires-attente {
    text-align: center;
    color: var(--other-color);
    font-size: 1.1rem;
    padding: 2rem 0;
}

.histoire-video {
    max-width: 820px;
    margin: 0 auto 3rem;
}

.histoire-video video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #2c333d;
}

.histoire {
    padding: 2.5rem 0;
    border-top: 1px solid #1f242b;
}

.histoire h2 {
    font-size: 1.6rem;
    margin-bottom: .4rem;
}

.histoire-qui {
    color: var(--other-color);
    font-size: .9rem;
    margin-bottom: 1.4rem;
}

.histoire-grille {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.histoire-recit p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.histoire-lecture {
    background: var(--second-bg-color);
    border-radius: 12px;
    padding: 22px;
}

.histoire-lecture h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--other-color);
    margin-bottom: 14px;
}

.maillon {
    display: block;
    border-left: 3px solid var(--main-color);
    padding: 6px 0 6px 14px;
    color: var(--text-color);
}

.maillon b {
    color: var(--main-color);
    margin-right: 6px;
}

.maillon:hover {
    background: rgba(74, 158, 255, .08);
}

.lien-causal {
    color: var(--other-color);
    font-size: .9rem;
    line-height: 1.5;
    padding: 8px 0 8px 17px;
    border-left: 3px dotted #3a4250;
}

@media (max-width: 800px) {
    .histoire-grille {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Histoires : statut de chaque rupture lue dans le récit */
.maillon-statut {
    float: right;
    margin-left: 10px;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 2px 8px;
    border: 1px solid #3a4250;
    color: var(--other-color);
}

.maillon-statut.probable {
    border-color: var(--main-color);
    color: var(--main-color);
}

.maillon-statut.constatee {
    background: var(--main-color);
    border-color: var(--main-color);
    color: var(--bg-color);
}

.maillon.plausible {
    border-left-style: dashed;
}

.histoires-legende {
    margin-top: 1.4rem;
    color: var(--other-color);
    font-size: .9rem;
    line-height: 1.9;
}

.histoires-legende .maillon-statut {
    float: none;
    margin: 0 6px 0 0;
}

.contact-note {
    text-align: center;
    color: var(--other-color);
    font-size: .85rem;
}

.histoire-recit a {
    color: var(--main-color);
}

/* ---------- v3 : familles et options ---------- */
.famille-block > .rupture-header {
    border-left-color: var(--main-color);
}
.famille-block .option-block .rupture-header {
    background: var(--third-bg-color);
    padding: 0.65rem 1rem;
}
.famille-block .option-block .rupture-code {
    min-width: 70px;
}
.famille-nb {
    color: var(--other-color);
}
.options-detail-title {
    color: var(--main-color);
    font-size: 1rem;
    margin: 1.6rem 0 0.8rem;
}
.options-table td:first-child a {
    color: var(--main-color);
}
.options-table td:first-child {
    white-space: nowrap;
    font-weight: 700;
}
.ex-code {
    color: #7c8794;
    font-weight: 400;
    font-size: 0.85em;
}
.sondes-list {
    list-style: decimal;
    margin: 0 0 0 1.3rem;
    line-height: 1.6;
}
.sondes-list li {
    list-style: decimal;
    margin-bottom: 0.4rem;
}
.a-ecrire {
    color: #ffb347 !important;
    font-style: italic;
}
.a-revalider {
    color: #ffb347;
    font-size: 0.85em;
    font-style: italic;
}

/* ---------- v3 : entrée par symptômes ---------- */
.symptomes-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.symptome {
    background: var(--second-bg-color);
    border-left: 3px solid var(--main-color);
    border-radius: 6px;
    padding: 1rem 1.1rem;
}
.symptome-texte {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 0.8rem;
}
.symptome-familles {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.famille-chip {
    display: block;
    color: var(--other-color);
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(74, 158, 255, 0.25);
    border-radius: 5px;
    transition: all .2s ease;
}
.famille-chip b {
    color: var(--main-color);
    font-family: 'Courier New', monospace;
    margin-right: 0.4rem;
}
.famille-chip:hover {
    border-color: var(--main-color);
    background: rgba(74, 158, 255, 0.08);
    color: var(--text-color);
}
