:root {
    --bg: #090909;
    --ink: #f6efe6;
    --muted: rgba(246, 239, 230, .68);
    --accent: #ef8e2a;
    --accent-2: #b94a00;
    --soft: #efe8dc;
    --paper:#f3eee6;
    --brown: #6A645A;
    --blanc: #fff;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Fraunces', Georgia, serif;
    background: var(--paper);
    color: var(--bg);
    overflow-x: hidden;
    cursor: default;
    line-height: 1.5;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .05;
    background-image: linear-gradient(45deg, #fff 25%, transparent 25%), linear-gradient(-45deg, #fff 25%, transparent 25%);
    background-size: 4px 4px;
    z-index: 0
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase
}

.lang-switcher {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 20;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(12px)
}

.lang-switcher span,
.lang-switcher a {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bg);
    text-decoration: none
}

.lang-switcher a {
    padding: 8px 10px;
    border-radius: 999px
}

.lang-switcher a.active,
.lang-switcher a:hover {
    background: var(--accent);
    color: #fff
}

.desktop-command-rail {
    position: fixed;
    left: 22px;
    top: 117px;
    bottom: 67px;
    width: 104px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 26px;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(14px)
}

.desktop-rail-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-radius: 18px;
}

.rail-kicker {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-align: center
}

.desktop-command-rail a {
    color: var(--bg);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
/*    writing-mode: vertical-rl;
    transform: rotate(180deg);*/
    display: flex;
    gap: 8px
}

.desktop-command-rail a span {
    color: var(--bg)
}

.hero-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px
}

.hero-rail span {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 10px 12px;
    color: var(--blanc);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em
}

.quick {
    display: grid;
    gap: 12px
}

.row {
    border-left: 3px solid var(--accent);
    padding: 10px 0 10px 14px;
    color: var(--blanc);
    line-height: 1.45
}

.row strong {
    display: inline-block;
    color: var(--blanc);
    margin-right: 8px
}

.cta {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 30px;
    padding: 34px;
    background: rgba(255, 255, 255, .035);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center
}

.cta h2 {
    font-size: clamp(36px, 5vw, 72px);
    line-height: .9;
    margin: 8px 0 12px;
    letter-spacing: -.06em
}

.cta p {
    color: var(--blanc);
    max-width: 60ch
}

.buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.btn,
.result-actions a,
.result-actions button {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .045);
    color: var(--bg);
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    cursor: pointer
}

.btn.primary,
.result-actions a:hover,
.result-actions button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff
}

@media(max-width:900px) {
    body {
        overflow-x: hidden
    }

    .lang-switcher {
        left: 12px;
        right: 12px;
        top: 10px;
        justify-content: center
    }

    .desktop-command-rail {
        display: none
    }

    .cta {
        display: block;
        border-radius: 18px;
        padding: 18px
    }

    .buttons {
        margin-top: 16px
    }

    .btn {
        width: 100%;
        text-align: center
    }
}

/* Interaction page — uses same brutalist language as index */

:root {
    --accent-2: #b94a00;
    --soft: #efe8dc;
}

.interaction-wrap {
    max-width: 1480px;
    margin-left: calc(104px + 32px);
    margin-right: 34px;
    padding: 32px 0 96px
}

.interaction-hero {
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .62fr);
    gap: 22px;
    align-items: stretch
}

.interaction-hero-main,
.interaction-brief,
.bot-panel,
.prompt-panel,
.proof-card-int {
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
    border-radius: 30px;
    box-shadow: 0 32px 110px rgba(0, 0, 0, .28)
}

.interaction-hero-main {
    padding: clamp(42px, 5vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.interaction-hero-main:before {
    content: "CONVERSATIONAL / DOSSIER";
    position: absolute;
    top: 28px;
    right: 30px;
    color: rgba(255, 255, 255, .12);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .26em
}

.interaction-hero-main:after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 72%, rgba(239, 142, 42, .24), transparent 32%), linear-gradient(110deg, transparent 0 45%, rgba(255, 255, 255, .05) 50%, transparent 56%);
    pointer-events: none
}

.interaction-hero-main>* {
    position: relative;
    z-index: 1
}

.interaction-hero h1 {
    font-size: clamp(72px, 8vw, 144px);
    line-height: .78;
    max-width: 8ch;
    letter-spacing: -.08em;
    margin: 0;
    text-transform: uppercase
}

.interaction-lede {
    color: var(--bg);
    font-size: clamp(19px, 1.5vw, 24px);
    max-width: 58ch;
    margin: 28px 0 0;
    border-left: 3px solid var(--accent);
    padding-left: 18px
}

.interaction-brief {
    align-self: center;
    min-height: 74vh;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: rotate(1deg)
}

.interaction-stage {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .38fr);
    gap: 22px;
    min-height: 82vh
}

.bot-panel {
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 78vh;
    background: radial-gradient(circle at 10% 0%, rgba(239, 142, 42, .14), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015))
}

.bot-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center
}

.bot-kicker {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase
}

.bot-header h2 {
    margin: 4px 0 0;
    font-size: clamp(40px, 4vw, 76px);
    line-height: .85;
    letter-spacing: -.06em
}

.bot-status {
    color: var(--blanc);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase
}

.bot-status span {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 18px rgba(239, 142, 42, .8)
}

.chat-log {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 58vh;
    scroll-behavior: smooth
}

.message {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start
}

.message.user {
    grid-template-columns: minmax(0, 1fr) 54px
}

.message.user .avatar {
    grid-column: 2;
    grid-row: 1
}

.message.user .bubble {
    grid-column: 1;
    grid-row: 1;
    background: rgba(239, 142, 42, .12);
    border-color: rgba(239, 142, 42, .36)
}

.avatar {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    background: rgba(0, 0, 0, .22)
}

.bubble {
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    padding: 16px 18px;
    color: var(--bg);
    background: rgba(255, 255, 255, .035);
    line-height: 1.55;
    font-size: 16px
}

.thinking .bubble {
    color: var(--bg);
    font-style: italic
}

.chat-form {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px
}

.chat-form input {
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .24);
    color: var(--bg);
    padding: 0 16px;
    font-size: 15px;
    outline: none
}

.chat-form input:focus {
    border-color: rgba(239, 142, 42, .66);
    box-shadow: 0 0 0 4px rgba(239, 142, 42, .10)
}

.chat-form button,
.prompt-panel button {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
    color: var(--bg);
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: .2s ease
}

.chat-form button {
    padding: 0 20px
}

.chat-form button:hover,
.prompt-panel button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px)
}

.prompt-panel {
    padding: 24px;
    align-self: start;
    position: sticky;
    top: 24px;
    display: grid;
    gap: 12px
}

.prompt-panel button {
    min-height: 54px;
    text-align: left;
    padding: 12px 14px;
    font-size: 11px
}

.interaction-proof-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px
}

.proof-card-int {
    min-height: 220px;
    padding: 26px;
    transition: .25s ease
}

.proof-card-int:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 142, 42, .58);
    background: linear-gradient(180deg, rgba(239, 142, 42, .10), rgba(255, 255, 255, .02))
}

.proof-card-int span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em
}

.proof-card-int strong {
    display: block;
    margin: 20px 0 12px;
    font-size: 28px;
    line-height: .95;
    color: var(--bg)
}

.proof-card-int p {
    color: var(--bg);
    margin: 0
}

.interaction-cta {
    margin-top: 28px
}

@media(max-width:900px) {
    .interaction-wrap {
        margin: 0;
        padding: calc(58px + 88px + 18px) 12px 108px
    }

    .interaction-hero,
    .interaction-stage,
    .interaction-proof-grid {
        grid-template-columns: 1fr
    }

    .interaction-hero {
        min-height: auto
    }

    .interaction-hero-main,
    .interaction-brief,
    .bot-panel,
    .prompt-panel,
    .proof-card-int {
        border-radius: 18px
    }

    .interaction-hero-main,
    .interaction-brief {
        padding: 18px 16px;
        transform: none;
        min-height: auto
    }

    .interaction-hero h1 {
        font-size: clamp(2.6rem, 14vw, 4.4rem)
    }

    .interaction-lede {
        font-size: 1rem
    }

    .interaction-stage {
        min-height: auto
    }

    .bot-panel {
        min-height: 70vh
    }

    .bot-header {
        display: block;
        padding: 18px
    }

    .bot-status {
        margin-top: 10px
    }

    .chat-log {
        max-height: 54vh;
        padding: 16px
    }

    .message,
    .message.user {
        grid-template-columns: 42px minmax(0, 1fr)
    }

    .message.user .avatar {
        grid-column: 1
    }

    .message.user .bubble {
        grid-column: 2
    }

    .avatar {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 9px
    }

    .bubble {
        font-size: 14px;
        padding: 13px 14px
    }

    .chat-form {
        grid-template-columns: 1fr;
        padding: 14px
    }

    .chat-form button {
        min-height: 48px
    }

    .prompt-panel {
        position: relative;
        top: auto;
        padding: 16px
    }

    .proof-card-int {
        min-height: auto;
        padding: 18px
    }

    .desktop-command-rail,
    .desktop-cursor-orb,
    .desktop-scanline {
        display: none !important
    }
}


/* ===== Premium AI Simulator UX ===== */

.bot-mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.bot-mode-switch button {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: var(--bg);
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: .18s ease;
}

.bot-mode-switch button.active,
.bot-mode-switch button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.bot-answer p {
    margin: 0 0 12px;
}

.bot-answer ul {
    margin: 12px 0;
    padding-left: 18px;
}

.bot-answer li {
    margin: 7px 0;
}

.evidence-block {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

.evidence-block strong {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.evidence-block p {
    color: var(--bg);
    margin: 0 0 8px;
}

.next-question {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    background: rgba(239, 142, 42, .08);
    color: var(--bg);
    font-weight: 800;
}

.ai-reasoning {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background:
        radial-gradient(circle at 0% 0%, rgba(239, 142, 42, .16), transparent 38%),
        rgba(255, 255, 255, .025);
    display: grid;
    gap: 8px;
    font-size: 12px;
    color: var(--bg);
}

.reasoning-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.reasoning-head strong,
.ai-reasoning>strong {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 10px;
}

.reasoning-head span {
    color: var(--bg);
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    padding: 4px 8px;
}

.score-board {
    display: grid;
    gap: 7px;
    margin-top: 6px;
}

.score-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 24px;
    gap: 8px;
    align-items: center;
}

.score-row span,
.score-row em {
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.row strong {
    color: var(--accent);
    /*writing-mode: vertical-rl;
    transform: rotate(180deg);*/
}

.score-row i {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
}

.score-row b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ffd0a6);
    box-shadow: 0 0 16px rgba(239, 142, 42, .35);
}

.thinking-sequence {
    display: grid;
    gap: 8px;
}

.thinking-sequence span {
    position: relative;
    padding-left: 18px;
    color: var(--bg);
}

.thinking-sequence span::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(239, 142, 42, .8);
    animation: pulseDot 1.1s infinite ease-in-out;
}

.thinking-sequence span:nth-child(2)::before {
    animation-delay: .16s;
}

.thinking-sequence span:nth-child(3)::before {
    animation-delay: .32s;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(.75);
        opacity: .45;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.suggestion-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.suggestion-strip button {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: var(--bg);
    border-radius: 999px;
    padding: 9px 11px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

.suggestion-strip button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.mode-confirm strong {
    color: var(--accent);
}

@media(max-width:900px) {
    .bot-mode-switch {
        margin-top: 12px;
    }

    .bot-mode-switch button {
        font-size: 9px;
        padding: 8px 9px;
    }

    .score-row {
        grid-template-columns: 72px minmax(0, 1fr) 20px;
    }

    .ai-reasoning {
        font-size: 11px;
    }
}


/* =========================================================
   SB-FIT — Scenario matching simulator
   ========================================================= */

.matcher-page .interaction-hero h1 {
    max-width: 9ch;
}

.matcher-stage {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .38fr);
    gap: 22px;
    align-items: start;
}

.matcher-panel,
.score-live-panel,
.result-card {
    border: 1px solid rgba(255, 255, 255, .12);
    background:
        radial-gradient(circle at 10% 0%, rgba(239, 142, 42, .12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
    border-radius: 30px;
    box-shadow: 0 32px 110px rgba(0, 0, 0, .28);
}

.matcher-panel {
    min-height: 76vh;
    overflow: hidden;
}

.matcher-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.matcher-header h2 {
    margin: 4px 0 0;
    font-size: clamp(44px, 4vw, 82px);
    line-height: .84;
    letter-spacing: -.06em;
}

.match-progress {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.match-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
    color: var(--blanc);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.match-progress-top strong {
    color: var(--accent);
}

.match-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.match-progress-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #ffd0a6);
    box-shadow: 0 0 18px rgba(239, 142, 42, .42);
    transition: width .3s ease;
}

.question-stack {
    padding: 26px;
}

.match-question {
    display: none;
}

.match-question.active {
    display: block;
    animation: questionIn .32s ease both;
}

@keyframes questionIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.question-kicker {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.match-question h3 {
    margin: 0;
    max-width: 100%;
    font-size: clamp(36px, 4vw, 72px);
    line-height: .88;
    letter-spacing: -.06em;
}

.match-question>p {
    color: var(--bg);
    max-width: 72ch;
    font-size: 17px;
    margin: 18px 0 24px;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.answer-card {
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .035);
    border-radius: 18px;
    padding: 18px;
    min-height: 170px;
    cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
    position: relative;
    overflow: hidden;
}

.answer-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(239, 142, 42, .14), transparent 34%);
    opacity: 0;
    transition: opacity .22s ease;
}

.answer-card:hover,
.answer-card.selected {
    transform: translateY(-4px);
    border-color: rgba(239, 142, 42, .55);
    background: rgba(239, 142, 42, .08);
}

.answer-card.selected::before {
    opacity: 1;
}

.answer-card span,
.answer-card strong,
.answer-card p,
.answer-card em {
    position: relative;
    z-index: 1;
}

.answer-card span {
    display: inline-flex;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.answer-card strong {
    display: block;
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
    margin-bottom: 10px;
}

.answer-card p {
    margin: 0;
    color: var(--bg);
    font-size: 14px;
    line-height: 1.42;
}

.answer-card em {
    display: inline-flex;
    margin-top: 14px;
    color: var(--accent);
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.matcher-actions {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.matcher-actions button {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
    color: var(--bg);
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0 18px;
    transition: .2s ease;
}

.matcher-actions button.primary,
.matcher-actions button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.matcher-actions button:disabled {
    opacity: .35;
    cursor: not-allowed;
    background: rgba(255, 255, 255, .02);
    color: var(--bg);
}

.score-live-panel {
    padding: 24px;
    position: sticky;
    top: 24px;
}

.score-ring {
    --score: 0;
    width: min(260px, 100%);
    aspect-ratio: 1;
    margin: 20px auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    background:
        conic-gradient(var(--accent) calc(var(--score) * 1%), rgba(255, 255, 255, .08) 0);
    box-shadow: 0 0 60px rgba(239, 142, 42, .12);
}

.score-ring::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, .10);
}

.score-ring strong,
.score-ring span {
    position: relative;
    z-index: 1;
}

.score-ring strong {
    font-size: clamp(62px, 6vw, 96px);
    line-height: .8;
    letter-spacing: -.08em;
}

.score-ring span {
    align-self: end;
    margin-top: -20px;
    color: var(--bg);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}

.live-interpretation {
    color: var(--bg);
    line-height: 1.55;
    border-left: 3px solid var(--accent);
    padding-left: 14px;
}

.score-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.score-mini-grid div {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, .035);
}

.score-mini-grid span {
    display: block;
    color: var(--bg);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.score-mini-grid strong {
    display: block;
    color: var(--accent);
    font-size: 32px;
    line-height: 1;
    margin-top: 8px;
}

.result-stage {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 22px;
}

.result-card {
    padding: 34px;
}

.result-card h2 {
    font-size: clamp(40px, 4vw, 76px);
    line-height: .88;
    letter-spacing: -.06em;
    margin: 10px 0 18px;
}

.result-card p {
    color: var(--bg);
    font-size: 18px;
    max-width: 68ch;
}

.result-reasons {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.reason-pill {
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .035);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--bg);
    font-weight: 800;
}

.reason-pill span {
    color: var(--accent);
}

.result-action-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(239, 142, 42, .18), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
}

@media(max-width:900px) {

    .matcher-stage,
    .result-stage {
        grid-template-columns: 1fr;
    }

    .matcher-header {
        display: block;
        padding: 18px;
    }

    .match-progress,
    .question-stack,
    .matcher-actions {
        padding-left: 16px;
        padding-right: 16px;
    }

    .answer-grid {
        grid-template-columns: 1fr;
    }

    .answer-card {
        min-height: auto;
    }

    .score-live-panel {
        position: relative;
        top: auto;
        padding: 18px;
    }

    .score-ring {
        max-width: 220px;
    }

    .result-card {
        padding: 20px;
    }

    .result-card h2,
    .match-question h3 {
        font-size: clamp(2rem, 10vw, 3.4rem);
    }
}



/* ===== Dynamic stick-figure compatibility visual ===== */
.compatibility-visual {
    --match: 0;
    margin: 18px 0 20px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 54%, rgba(239, 142, 42, calc(.05 + (var(--match) * .0018))), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
    padding: 14px;
    overflow: hidden;
}

.match-label {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stick-stage {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background:
        radial-gradient(circle at center, rgba(239, 142, 42, calc(.04 + (var(--match) * .0012))), transparent 38%),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: auto, 18px 18px, 18px 18px;
}

.stick-person {
    fill: none;
    stroke: var(--bg);
    stroke-width: 16;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .35s ease, stroke .35s ease;
}

.stick-left {
    transform: translate(calc(150px + (var(--match) * .72px)), 0);
}

.stick-right {
    transform: translate(calc(370px - (var(--match) * .72px)), 0);
}

.hand-link {
    fill: none;
    stroke: var(--accent);
    stroke-width: 10;
    stroke-linecap: round;
    opacity: calc(var(--match) / 100);
    filter: url(#glow-red);
    transition: opacity .35s ease, d .45s ease;
}

.match-heart {
    fill: var(--accent);
    opacity: calc((var(--match) - 62) / 38);
    filter: url(#glow-red);
    transform-origin: 260px 80px;
    transform: scale(calc(.45 + (var(--match) * .006)));
    transition: opacity .35s ease, transform .35s ease;
}

.ground-line {
    stroke: rgba(255, 255, 255, .22);
    stroke-width: 3;
    stroke-dasharray: 2 8;
}

.match-scale {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    color: var(--bg);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.match-scale i {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.match-scale b {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #ffd0a6);
    box-shadow: 0 0 18px rgba(239, 142, 42, .42);
    transition: width .35s ease;
}

@media(max-width:900px) {
    .compatibility-visual {
        padding: 12px;
    }

    .stick-person {
        stroke-width: 15;
    }
}



/* =========================================================
   V2 Professional Evaluation Layout — closer to the visual proposal
   ========================================================= */

.matcher-stage {
    grid-template-columns: minmax(0, .96fr) minmax(390px, .56fr);
}

.evaluation-detail-panel {
    border: 1px solid rgba(255, 255, 255, .16);
    background:
        radial-gradient(circle at 100% 0%, rgba(239, 142, 42, .10), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
    border-radius: 0;
    box-shadow: 0 32px 110px rgba(0, 0, 0, .28);
    padding: 28px;
    position: sticky;
    top: 24px;
}

.eval-detail-list {
    display: grid;
    gap: 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.eval-detail-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    gap: 18px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.eval-icon {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, .14);
    display: grid;
    place-items: center;
    font-size: 34px;
    color: var(--bg);
    background: rgba(255, 255, 255, .025);
}

.eval-detail-item strong {
    display: block;
    color: var(--bg);
    text-transform: uppercase;
    font-size: 15px;
    line-height: 1.05;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.eval-detail-item p {
    margin: 0;
    color: var(--bg);
    font-size: 14px;
    line-height: 1.55;
}

.eval-score {
    border: 1px solid rgba(255, 255, 255, .18);
    min-height: 62px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .02);
}

.eval-score b {
    color: var(--bg);
    font-size: 30px;
    line-height: .9;
}

.eval-score span {
    color: var(--bg);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.eval-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.eval-section p {
    color: var(--bg);
    font-size: 15px;
    line-height: 1.65;
    margin: 12px 0 0;
}

.result-dashboard-stage {
    margin-top: 32px;
}

.result-main-card {
    border: 1px solid rgba(255, 255, 255, .16);
    background:
        radial-gradient(circle at 50% 45%, rgba(239, 142, 42, .10), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
    box-shadow: 0 32px 110px rgba(0, 0, 0, .30);
    min-height: 82vh;
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.result-main-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black, transparent 70%);
    pointer-events: none;
}

.result-main-card>* {
    position: relative;
    z-index: 1;
}

.result-topline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--bg);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.result-topline strong {
    color: var(--accent);
}

.result-score-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    margin: 34px 0 22px;
}

.mega-score {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.mega-score strong {
    color: var(--accent);
    font-size: clamp(72px, 9vw, 148px);
    line-height: .76;
    letter-spacing: -.08em;
}

.mega-score span {
    color: var(--bg);
    font-size: clamp(32px, 3.5vw, 62px);
    font-weight: 900;
}

.score-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .025);
    color: var(--bg);
    min-width: 280px;
    min-height: 54px;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 18px;
}

.score-chip i {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(239, 142, 42, .68);
}

.result-visual.compatibility-visual {
    margin: 18px auto 26px;
    padding: 0;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, .13);
    max-width: 920px;
    background:
        radial-gradient(circle at 50% 58%, rgba(239, 142, 42, calc(.05 + (var(--match) * .002))), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008));
}

.result-visual .stick-stage {
    border: none;
    border-radius: 0;
    min-height: 420px;
    background:
        radial-gradient(circle at center, rgba(239, 142, 42, calc(.04 + (var(--match) * .0014))), transparent 40%),
        radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
    background-size: auto, 12px 12px;
}

.result-visual .stick-person {
    stroke: #fff;
    stroke-width: 18;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, .10));
}

.result-visual .stick-left {
    transform: translate(calc(205px + (var(--match) * 1.05px)), 0);
}

.result-visual .stick-right {
    transform: translate(calc(515px - (var(--match) * 1.05px)), 0);
}

.result-visual .hand-link {
    stroke-width: 12;
    opacity: calc((var(--match) - 18) / 82);
}

.result-visual .match-heart {
    opacity: calc((var(--match) - 66) / 34);
}

.match-ruler {
    padding: 14px 0 18px;
    margin: 0 0 0;
}

.ruler-labels,
.ruler-captions {
    display: flex;
    justify-content: space-between;
    color: var(--bg);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 0 0;
}

.ruler-labels {
    color: var(--bg);
    padding: 0 0 8px;
}

.ruler-line {
    position: relative;
    height: 16px;
    border-bottom: 2px solid var(--accent);
    background:
        repeating-linear-gradient(90deg, transparent 0 24px, rgba(239, 142, 42, .9) 25px 26px, transparent 27px 34px);
}

.ruler-line i {
    position: absolute;
    top: -5px;
    left: 0;
    width: 16px;
    height: 28px;
    transform: translateX(-50%);
    background: var(--accent);
    box-shadow: 0 0 22px rgba(239, 142, 42, .55);
    transition: left .45s ease;
}

.ruler-captions {
    padding-top: 12px;
}

.result-explain {
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .025);
    padding: 22px 26px;
}

.result-explain p {
    color: var(--bg);
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
}

.result-reasons {
    max-width: 920px;
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.reason-pill {
    border-radius: 0;
}

.result-actions {
    max-width: 920px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.result-actions button,
.result-actions a {
    min-height: 64px;
    border: 1px solid rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
    color: var(--bg);
    background: rgba(255, 255, 255, .025);
    cursor: pointer;
    transition: .2s ease;
}

.result-actions button {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.result-actions a:hover,
.result-actions button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
}

@media(max-width:900px) {

    .matcher-stage,
    .result-score-header,
    .result-reasons,
    .result-actions {
        grid-template-columns: 1fr;
    }

    .evaluation-detail-panel {
        position: relative;
        top: auto;
        padding: 18px;
        border-radius: 18px;
    }

    .eval-detail-item {
        grid-template-columns: 48px minmax(0, 1fr) 56px;
        gap: 12px;
    }

    .eval-icon {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .eval-detail-item strong {
        font-size: 12px;
    }

    .eval-detail-item p {
        font-size: 12px;
    }

    .eval-score b {
        font-size: 22px;
    }

    .result-main-card {
        min-height: auto;
        padding: 18px;
        border-radius: 18px;
    }

    .result-topline {
        display: block;
    }

    .result-topline strong {
        display: block;
        margin-top: 8px;
    }

    .score-chip {
        min-width: 0;
        width: 100%;
    }

    .result-visual .stick-stage {
        min-height: auto;
    }

    .result-visual .stick-person {
        stroke-width: 16;
    }

    .result-explain {
        padding: 16px;
    }
}


/* V3 intelligent diagnosis layer */
:root {
    --accent: #ef8e2a;
    --accent-2: #b94a00
}

.scoring-explanation {
    max-width: 920px;
    margin: 22px auto 0;
    border: 1px solid rgba(255, 255, 255, .14);
    background: radial-gradient(circle at 0 0, rgba(239, 142, 42, .12), transparent 38%), rgba(255, 255, 255, .025);
    padding: 18px 20px;
    color: var(--blanc);
    font-size: 15px;
    line-height: 1.65
}

.scoring-explanation strong,
.diagnosis-block strong {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 8px
}

.diagnosis-board {
    max-width: 920px;
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.diagnosis-block {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .028);
    padding: 16px;
    color: var(--bg);
    line-height: 1.55;
    min-height: 128px
}

.diagnosis-block b {
    color: var(--bg)
}

.result-actions a#dynamicContactBtn {
    background: rgba(239, 142, 42, .12);
    border-color: rgba(239, 142, 42, .58);
    color: var(--bg)
}

.result-actions a#dynamicContactBtn {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff
}

.result-actions a#dynamicContactBtn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff
}

@media(max-width:900px) {
    .diagnosis-board {
        grid-template-columns: 1fr
    }

    .scoring-explanation,
    .diagnosis-block {
        font-size: 14px
    }
}

/* Titre explicatif sous la question — visible et affirmé */
/* .match-question p {
  display: inline-block;
  margin: 10px 0 22px;
  padding: 8px 14px;
  background: rgba(255, 122, 0, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  letter-spacing: 0.02em;
  line-height: 1.45;
}
*/
.q-insight {
  display: inline-block;
  margin: 8px 0 20px;
  padding: 7px 14px;
  background: rgba(255, 122, 0, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 2vh;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: 0.025em;
  font-style: italic;
}

    /* ===== Logo placements ===== */
    .nav-logo {
      width: 26px;
      height: 26px;
      object-fit: contain;
      opacity: 0.92;
      margin-right: 10px;
      vertical-align: middle;
      filter: drop-shadow(0 0 4px rgba(255, 122, 0, .3));
    }

    .header-logo {
      width: 38px;
      height: 38px;
      object-fit: contain;
      opacity: 0.88;
      filter: drop-shadow(0 0 6px rgba(255, 122, 0, .4));
    }
    /* ===== Panneau maturité — radar + jauges + benchmarks ===== */

    .maturity-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 20px 0 0;
      padding: 10px 16px;
      border: 1px solid rgba(255, 255, 255, .14);
      background: rgba(255, 255, 255, .02);
      color: var(--blanc);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .14em;
      text-transform: uppercase;
      border-radius: 999px;
      cursor: pointer;
      transition: all .25s ease;
      width: 100%;
      justify-content: space-between;
    }

    .maturity-toggle:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .maturity-toggle .chev {
      transition: transform .3s ease;
      display: inline-block;
    }

    .maturity-toggle.open .chev {
      transform: rotate(180deg);
    }

    .maturity-panel {
      display: none;
      margin-top: 16px;
      padding: 24px;
      border: 1px solid rgba(255, 122, 0, .3);
      border-radius: 16px;
      background: rgba(8, 8, 8, .5);
      animation: panelSlide .35s ease;
    }

    .maturity-panel.open {
      display: block;
    }

    .maturity-panel-inner {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 28px;
      align-items: start;
    }

    @media (max-width: 720px) {
      .maturity-panel-inner {
        grid-template-columns: 1fr;
      }
    }

    /* Radar SVG */
    .radar-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .radar-wrap svg {
      overflow: visible;
    }

    .radar-title {
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--accent);
      text-align: center;
    }

    /* Axes de maturité */
    .maturity-axes {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .mat-axis {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .mat-axis-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
    }

    .mat-axis-name {
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--blanc);
    }

    .mat-axis-score {
      font-size: 20px;
      font-weight: 900;
      color: var(--accent);
      font-variant-numeric: tabular-nums;
      line-height: 1;
    }

    .mat-axis-label {
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--bg);
      margin-left: 6px;
      font-size: 10px;
    }

    .mat-bar-wrap {
      height: 6px;
      background: rgba(255,255,255,.07);
      border-radius: 999px;
      overflow: hidden;
    }

    .mat-bar-fill {
      height: 100%;
      width: 0%;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--accent-2, #ff5500), var(--accent, #ff7a00));
      transition: width .8s cubic-bezier(.2,.9,.25,1);
      box-shadow: 0 0 8px rgba(255,122,0,.4);
    }

    .mat-interp {
      font-size: 12px;
      line-height: 1.55;
      color: var(--blanc);
      margin-top: 2px;
    }

    .mat-interp b {
      color: var(--bg);
    }

    /* Benchmark marché */
    .benchmark-strip {
      margin-top: 14px;
      padding: 12px 14px;
      border: 1px dashed rgba(255,122,0,.25);
      border-radius: 10px;
      font-size: 11.5px;
      line-height: 1.6;
      color: var(--bg);
    }

    .benchmark-strip strong {
      color: var(--accent);
      font-size: 10px;
      letter-spacing: .14em;
      text-transform: uppercase;
      display: block;
      margin-bottom: 4px;
    }

    .benchmark-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 5px;
      font-size: 11px;
    }

    .bm-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .bm-dot.you   { background: var(--accent); box-shadow: 0 0 6px rgba(255,122,0,.6); }
    .bm-dot.market{ background: rgba(255,255,255,.3); }
    .bm-dot.top   { background: #8effa1; }


    /* ===== Section analyse dépliable (lecture + scénario + top3 + format) ===== */

    .analysis-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      margin: 18px 0 0;
      padding: 13px 18px;
      background: rgba(255, 122, 0, 0.07);
      border: 1px solid rgba(255, 122, 0, 0.28);
      border-radius: 12px;
      color: var(--blanc);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .14em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all .22s ease;
    }

    .analysis-toggle:hover {
      background: rgba(255, 122, 0, 0.12);
      border-color: var(--accent);
    }

    .analysis-toggle .at-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .analysis-toggle .at-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 6px rgba(255,122,0,.6);
      flex-shrink: 0;
    }

    .analysis-toggle .at-chev {
      transition: transform .3s ease;
      opacity: .6;
    }

    .analysis-toggle.open .at-chev {
      transform: rotate(180deg);
    }

    .analysis-section {
      margin-top: 12px;
      display: none;
      animation: panelSlide .32s ease;
    }

    .analysis-section.open {
      display: block;
    }

    .analysis-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    @media (max-width: 760px) {
      .analysis-grid { grid-template-columns: 1fr; }
    }

    .analysis-card {
      padding: 16px 18px;
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 12px;
      background: rgba(255, 255, 255, .02);
      font-size: 13px;
      line-height: 1.55;
      transition: border-color .2s ease;
    }

    .analysis-card:hover {
      border-color: rgba(255, 122, 0, .2);
    }

    .analysis-card .ac-label {
      display: block;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 8px;
    }

    .analysis-card strong {
      display: none; /* on utilise ac-label à la place */
    }

    .analysis-card.full-width {
      grid-column: 1 / -1;
    }

    /* ===== Options facturables — refonte complète ===== */

    .billing-section {
      margin-top: 20px;
    }

    .billing-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .billing-header .bh-title {
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--accent);
    }

    .billing-header .bh-sub {
      font-size: 11.5px;
      color: var(--bg);
    }

    .billing-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    @media (max-width: 760px) {
      .billing-grid { grid-template-columns: 1fr; }
    }

    .billing-card {
      position: relative;
      padding: 14px 16px;
      border: 1.5px solid rgba(255, 255, 255, .09);
      border-radius: 12px;
      background: rgba(255, 255, 255, .02);
      cursor: pointer;
      transition: border-color .2s ease, background .2s ease;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .billing-card:hover {
      border-color: rgba(255, 122, 0, .3);
      background: rgba(255, 122, 0, .04);
    }

    .billing-card.selected {
      border-color: var(--accent);
      background: rgba(255, 122, 0, .08);
    }

    .billing-card input[type="checkbox"] {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }

    .bc-check {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 18px;
      height: 18px;
    border: 1.5px solid rgba(0, 0, 0, .7);
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      transition: all .18s ease;
      color: transparent;
      background: transparent;
      flex-shrink: 0;
    }

    .billing-card.selected .bc-check {
      background: var(--accent);
      border-color: var(--accent);
      color: #000;
      font-weight: 900;
    }

    .bc-name {
      font-size: 12.5px;
      font-weight: 700;
color: var(--blanc);
      padding-right: 26px;
      line-height: 1.35;
    }

    .bc-desc {
      font-size: 11.5px;
color: var(--blanc);
      line-height: 1.45;
    }

    .bc-price {
      margin-top: 4px;
      font-size: 11px;
      font-weight: 900;
      color: var(--accent);
      letter-spacing: .04em;
    }

    .billing-total-bar {
      margin-top: 14px;
      padding: 13px 16px;
      background: rgba(255, 122, 0, .08);
      border: 1px solid rgba(255, 122, 0, .25);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .billing-total-bar .bt-label {
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .1em;
      text-transform: uppercase;
color: var(--blanc);
    }

    .billing-total-bar .bt-val {
      font-size: 17px;
      font-weight: 900;
      color: var(--accent);
      font-variant-numeric: tabular-nums;
    }

    /* ===== V4 ADD-ONS — moteur bayésien, transparence, pricing dynamique ===== */

    /* ===== Insight par question ===== */
    .q-help {
color: var(--blanc);
      font-size: 13px;
      margin-bottom: 6px;
    }

    .q-insight {
      display: inline-block;
      margin: 4px 0 20px;
      padding: 7px 14px;
      background: rgba(255, 122, 0, 0.07);
      border-left: 3px solid var(--accent);
      border-radius: 0 8px 8px 0;
      font-size: 12px;
      font-weight: 600;
color: var(--blanc);
      letter-spacing: 0.02em;
      line-height: 1.5;
      font-style: italic;
    }

    /* ===== Ligne de calcul contextuelle ===== */
    .inline-calc {
      grid-column: 1 / -1;
      margin: 6px 0 2px;
      padding: 9px 14px;
      background: rgba(255, 122, 0, 0.08);
      border-left: 2px solid var(--accent);
      border-radius: 0 8px 8px 0;
      font-family: 'JetBrains Mono', 'Courier New', monospace;
      font-size: 11.5px;
      color: var(--blanc);
      line-height: 1.5;
      animation: calcSlideIn 0.22s ease;
      transition: opacity 0.45s ease;
    }

    .inline-calc.fade-out {
      opacity: 0;
    }

    .inline-calc b {
      color: var(--accent);
      font-weight: 900;
    }

    .inline-calc i {
      color: var(--blanc);
      font-style: normal;
    }

    .inline-calc .ic-op {
      color: var(--accent);
      margin-right: 4px;
    }

    .inline-calc .ic-eq {
      color: #8effa1;
    }

    @keyframes calcSlideIn {
      from { opacity: 0; transform: translateY(-5px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .bayes-stack {
      margin: 18px 0 10px;
      padding: 18px;
      border: 1px solid rgba(255, 122, 0, .25);
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(255, 122, 0, .04), rgba(255, 122, 0, .01));
    }

    .bayes-stack h4 {
      margin: 0 0 14px;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .18em;
      color: var(--accent);
      text-transform: uppercase;
    }

    .bayes-row {
      display: grid;
      grid-template-columns: 180px 1fr 56px;
      align-items: center;
      gap: 12px;
      margin-bottom: 8px;
      font-size: 12px;
    }

    .bayes-row .lbl {
      color: var(--blanc);
      font-weight: 700;
      letter-spacing: .04em;
    }

    .bayes-row .bar {
      height: 10px;
      background: rgba(255, 255, 255, .06);
      border-radius: 999px;
      overflow: hidden;
      position: relative;
    }

    .bayes-row .bar i {
      display: block;
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--accent-2), var(--accent));
      transition: width .6s cubic-bezier(.2, .9, .25, 1);
      border-radius: 999px;
    }

    .bayes-row.dominant .bar i {
      box-shadow: 0 0 12px rgba(255, 122, 0, .55);
    }

    .bayes-row .pct {
      text-align: right;
      font-variant-numeric: tabular-nums;
      font-weight: 900;
      color: var(--blanc);
      font-size: 13px;
    }

    .bayes-row.dominant .lbl::before {
      content: "▶ ";
      color: var(--accent);
    }

    .confidence-meter {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 10px;
      padding: 10px 12px;
      border: 1px dashed rgba(255, 122, 0, .35);
      border-radius: 10px;
      font-size: 12px;
      color: var(--blanc);
    }

    .confidence-meter b {
      color: var(--accent);
      font-variant-numeric: tabular-nums;
    }

    /* ===== Panneau de transparence ===== */
    .transparency-toggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 18px 0 0;
      padding: 10px 14px;
      border: 1px solid rgba(255, 255, 255, .14);
      background: rgba(255, 255, 255, .02);
      color: var(--blanc);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .14em;
      text-transform: uppercase;
      border-radius: 999px;
      cursor: pointer;
      transition: all .25s ease;
    }

    .transparency-toggle:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .transparency-toggle .chev {
      transition: transform .3s ease;
      display: inline-block;
    }

    .transparency-toggle.open .chev {
      transform: rotate(180deg);
    }

    .transparency-panel {
      display: none;
      margin-top: 16px;
      padding: 22px;
      border: 1px solid rgba(255, 122, 0, .35);
      border-radius: 14px;
      background:
        repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, .015) 22px 23px),
        rgba(8, 8, 8, .6);
      font-family: 'JetBrains Mono', 'Courier New', monospace;
      font-size: 12px;
      line-height: 1.6;
      color: var(--blanc);
    }

    .transparency-panel.open {
      display: block;
      animation: panelSlide .4s ease;
    }

    @keyframes panelSlide {
      from {
        opacity: 0;
        transform: translateY(-6px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .transparency-panel h5 {
      margin: 18px 0 8px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .2em;
      color: var(--accent);
      text-transform: uppercase;
      border-bottom: 1px dashed rgba(255, 122, 0, .3);
      padding-bottom: 6px;
    }

    .transparency-panel h5:first-child {
      margin-top: 0;
    }

    .formula {
      display: block;
      padding: 10px 12px;
      margin: 8px 0;
      background: rgba(255, 122, 0, .06);
      border-left: 3px solid var(--accent);
      color: var(--accent);
      font-size: 12.5px;
      overflow-x: auto;
      white-space: pre;
    }

#result {
  scroll-margin-top: 110px;
}

@media (max-width: 768px) {
  .transparency-panel {
    max-width: 100%;
    overflow: hidden;
  }

  .table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrapper table {
    min-width: 640px;
    width: max-content;
  }
}

    .lh-table {
      width: 100%;
      border-collapse: collapse;
      margin: 8px 0;
      font-size: 11.5px;
    }

    .lh-table th,
    .lh-table td {
      text-align: right;
      padding: 6px 8px;
      border-bottom: 1px solid rgba(255, 255, 255, .06);
      font-variant-numeric: tabular-nums;
    }

    .lh-table th:first-child,
    .lh-table td:first-child {
      text-align: left;
      color: var(--blanc);
    }

    .lh-table th {
      color: var(--accent);
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
      font-size: 10px;
    }

    .lh-table tbody tr:hover {
      background: rgba(255, 122, 0, .04);
    }

    .lh-table .hi {
      color: var(--accent);
      font-weight: 900;
    }

    /* ===== Pricing décomposé ===== */
    .price-decomp {
      margin-top: 14px;
      padding: 16px;
      border: 1px solid rgba(255, 255, 255, .1);
      border-radius: 12px;
      background: rgba(255, 255, 255, .02);
    }

    .price-decomp .pd-row {
      display: grid;
      grid-template-columns: 1fr auto auto;
      align-items: center;
      gap: 12px;
      padding: 8px 0;
      border-bottom: 1px dashed rgba(255, 255, 255, .06);
      font-size: 13px;
    }

    .price-decomp .pd-row:last-child {
      border-bottom: none;
    }

    .price-decomp .pd-row .pd-name {
      color: var(--blanc);
    }

    .price-decomp .pd-row .pd-coef {
      color: var(--blanc);
      font-variant-numeric: tabular-nums;
      font-size: 11.5px;
    }

    .price-decomp .pd-row .pd-val {
      font-variant-numeric: tabular-nums;
      font-weight: 900;
      color: var(--blanc);
      text-align: right;
      min-width: 80px;
    }

    .price-decomp .pd-row.total {
      margin-top: 6px;
      padding-top: 12px;
      border-top: 2px solid var(--accent);
      border-bottom: none;
      font-size: 15px;
    }

    .price-decomp .pd-row.total .pd-val {
      color: var(--accent);
      font-size: 18px;
    }

    .price-range {
      margin-top: 10px;
      padding: 10px 14px;
      background: rgba(255, 122, 0, .08);
      border-radius: 10px;
      font-size: 12.5px;
      color: var(--blanc);
    }

    .price-range b {
      color: var(--accent);
      font-variant-numeric: tabular-nums;
    }

    /* ===== Console de calcul (effet "live") ===== */
    .calc-console {
      display: none;
      margin: 14px 0;
      padding: 14px 16px;
      background: #050505;
      border: 1px solid rgba(255, 122, 0, .3);
      border-radius: 10px;
      font-family: 'JetBrains Mono', 'Courier New', monospace;
      font-size: 11.5px;
      color: #8effa1;
      line-height: 1.7;
      max-height: 180px;
      overflow: hidden;
    }

    .calc-console.show {
      display: block;
    }

    .calc-console .line {
      opacity: 0;
      animation: lineIn .25s ease forwards;
    }

    .calc-console .line.warn {
      color: #ffb066;
    }

    .calc-console .line.ok {
      color: #8effa1;
    }

    .calc-console .line.dim {
      color: rgba(255, 255, 255, .4);
    }

    @keyframes lineIn {
      to {
        opacity: 1;
      }
    }

    /* ===== Mini-tweaks divers ===== */
    .urgency-pill {
      display: inline-block;
      margin-left: 8px;
      padding: 2px 8px;
      background: var(--accent);
      color: #000;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .12em;
      border-radius: 999px;
      text-transform: uppercase;
    }

    @media (max-width: 720px) {
      .bayes-row {
        grid-template-columns: 110px 1fr 48px;
        font-size: 11px;
      }

      .price-decomp .pd-row {
        grid-template-columns: 1fr auto;
      }

      .price-decomp .pd-row .pd-coef {
        grid-column: 1;
        grid-row: 2;
        margin-top: 2px;
      }
    }

    /* ===== Footer ===== */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 24px 32px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  text-align: center;
}

.site-footer .footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.45;
  filter: grayscale(0.3);
}

.site-footer .footer-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer .footer-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  color:var(--brown);
}

.site-footer .footer-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255, 122, 0, .55);
  text-transform: uppercase;
  font-size: 10.5px;
}

.site-footer .footer-sep {
  color:var(--brown);
  font-size: 11px;
}

.site-footer .footer-copy {
  font-size: 11px;
  color:var(--brown);
  letter-spacing: .04em;
}

.site-footer .footer-legal {
  font-size: 10px;
  color:var(--brown);
  letter-spacing: .06em;
}

.cdf-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.cdf-brand {
display: flex;
    align-items: center;
    gap: 10px;
    font-family: JetBrains Mono, monospace;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}