/* =========================================================================
   Ask For Data — Page d'accueil (home_v2.html)
   Orange #FF8200 · Vert #009A44 · Inter
   ========================================================================= */

.afd {
    --o: #FF8200;
    --o-strong: #E57200;
    --o-ink: #A85400;
    --o-50: #FFF6EC;
    --o-100: #FFE8CF;
    --g: #009A44;
    --g-strong: #007F38;
    --g-ink: #00692F;
    --g-50: #ECF8F1;
    --g-100: #CDEEDB;
    --ink: #0F172A;
    --ink-2: #1E293B;
    --body: #334155;
    --muted: #64748B;
    --faint: #94A3B8;
    --line: #E2E8F0;
    --line-2: #EEF2F6;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --warn: #B45309;
    --warn-50: #FFFBEB;
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --sh-1: 0 1px 2px rgba(15, 23, 42, .05);
    --sh-2: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px -6px rgba(15, 23, 42, .10);
    --sh-3: 0 2px 4px rgba(15, 23, 42, .04), 0 18px 40px -12px rgba(15, 23, 42, .18);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --gutter: clamp(16px, 4vw, 32px);

    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--body);
    background: var(--bg);
    overflow-x: clip;
}
.afd *, .afd *::before, .afd *::after { box-sizing: border-box; }
.afd h1, .afd h2, .afd h3, .afd h4, .afd p { margin: 0; }
.afd button { font-family: inherit; }
.afd [hidden] { display: none !important; }
.afd a { font-weight: inherit; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.afd :focus-visible { outline: 3px solid rgba(255, 130, 0, .45); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* ---------- Révélation au défilement ---------- */
.afd-js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
.afd-js .reveal.is-visible { opacity: 1; transform: none; }
.afd-js .kpi.reveal.is-visible, .afd-js .entry.reveal.is-visible {
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s, opacity .6s var(--ease) var(--d, 0ms);
}

/* =========================================================================
   HÉROS
   ========================================================================= */
.hx {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(28px, 5vh, 56px) var(--gutter) 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFBF6 55%, var(--bg) 100%);
    border-bottom: 1px solid var(--line-2);
}
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hx-orb--o { width: 520px; height: 520px; left: -160px; top: -220px; background: radial-gradient(circle, rgba(255, 130, 0, .35), transparent 65%); animation: orbFloat 18s ease-in-out infinite alternate; }
.hx-orb--g { width: 560px; height: 560px; right: -200px; top: 60px; background: radial-gradient(circle, rgba(0, 154, 68, .26), transparent 65%); animation: orbFloat 22s ease-in-out infinite alternate-reverse; }
.hx-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}
@keyframes orbFloat { to { transform: translate3d(40px, 30px, 0) scale(1.06); } }

.hx-inner { max-width: 860px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hx-logo { height: clamp(64px, 10vh, 92px); width: auto; max-width: 100%; margin-bottom: 18px; }
.hx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
    font-size: .8rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em;
    box-shadow: var(--sh-1);
}
.hx-live { width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 0 rgba(0, 154, 68, .5); animation: livePulse 2s infinite; flex: none; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(0, 154, 68, .45); } 70% { box-shadow: 0 0 0 8px rgba(0, 154, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 154, 68, 0); } }

.hx-title {
    margin-top: 18px !important;
    font-size: clamp(2.05rem, 5.4vw, 3.6rem);
    line-height: 1.06; letter-spacing: -.035em; font-weight: 800; color: var(--ink);
}
.hx-title-accent {
    background: linear-gradient(92deg, var(--o) 0%, #F06A00 45%, var(--g) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-sub { margin-top: 16px !important; max-width: 640px; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.6; color: var(--body); }
.hx-sub strong { color: var(--ink); font-weight: 700; }

/* ---------- Boîte de question ---------- */
.qbox {
    position: relative; width: 100%; max-width: 760px; margin-top: 26px;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 8px 8px 52px;
    background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px;
    box-shadow: var(--sh-3);
    transition: border-color .2s, box-shadow .2s;
}
.qbox:focus-within { border-color: var(--o); box-shadow: 0 0 0 5px rgba(255, 130, 0, .14), var(--sh-3); }
.qbox-ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 1.05rem; }
.qbox:focus-within .qbox-ico { color: var(--o); }
.qbox input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font: 500 1.06rem/1.4 'Inter', sans-serif; color: var(--ink); padding: 14px 4px;
}
.qbox #query-input { padding: 14px 4px; height: auto; font-size: 1.06rem; box-shadow: none; border: 0; width: auto; }
.qbox input::placeholder { color: #8A97AB; font-weight: 400; }
.qbox-btn {
    flex: none; display: inline-flex; align-items: center; gap: 10px;
    border: 0; cursor: pointer; border-radius: 12px; padding: 14px 22px;
    background: linear-gradient(135deg, var(--o) 0%, #F26B00 100%);
    color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .01em;
    box-shadow: 0 8px 18px -6px rgba(242, 107, 0, .6);
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.qbox-btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 12px 22px -8px rgba(242, 107, 0, .7); }
.qbox-btn:active { transform: translateY(0); }
.qbox-btn i { transition: transform .2s; }
.qbox-btn:hover i { transform: translateX(3px); }

/* ---------- Thèmes & exemples ---------- */
.themes { width: 100%; max-width: 860px; margin-top: 22px; }
.theme-tabs {
    display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
}
.theme-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid transparent; background: transparent;
    font-size: .86rem; font-weight: 600; color: var(--muted);
    transition: background .2s, color .2s, border-color .2s;
}
.theme-tab i { font-size: .82rem; opacity: .8; }
.theme-tab:hover { color: var(--ink); background: rgba(15, 23, 42, .04); }
.theme-tab.is-active { background: var(--ink); color: #fff; }
.theme-tab.is-active i { opacity: 1; color: #FFB066; }
.theme-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; min-height: 44px; }
.q-chip {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 10px 14px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: .9rem; font-weight: 500; color: var(--ink-2); text-align: left;
    box-shadow: var(--sh-1);
    transition: border-color .2s, transform .15s, box-shadow .2s, color .2s;
    animation: chipIn .35s var(--ease) both;
}
.q-chip:nth-child(2) { animation-delay: .04s; } .q-chip:nth-child(3) { animation-delay: .08s; } .q-chip:nth-child(4) { animation-delay: .12s; }
.q-chip i { font-size: .72rem; color: var(--faint); transition: transform .2s, color .2s; }
.q-chip:hover { border-color: rgba(255, 130, 0, .55); color: var(--ink); transform: translateY(-1px); box-shadow: var(--sh-2); }
.q-chip:hover i { color: var(--o); transform: translateX(2px); }
@keyframes chipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeau défilant ---------- */
.ticker {
    display: flex; align-items: stretch; margin: clamp(28px, 5vh, 48px) calc(var(--gutter) * -1) 0;
    border-top: 1px solid var(--line); background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ticker-label {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    padding: 0 18px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--g-ink); border-right: 1px solid var(--line); background: var(--surface);
}
.ticker-viewport {
    flex: 1; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: tickerMove var(--ticker-dur, 50s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; }
@keyframes tickerMove { to { transform: translate3d(-50%, 0, 0); } }
.tick {
    display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap;
    padding: 13px 22px; border: 0; background: transparent; cursor: pointer;
    border-right: 1px solid var(--line-2); font-size: .86rem; color: var(--body);
    transition: background .2s;
}
.tick:hover { background: var(--o-50); }
.tick-label { color: var(--muted); }
.tick-val { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tick-dir { color: var(--faint); font-size: .8rem; }
.tick-year { font-size: .72rem; color: var(--faint); font-weight: 600; }

/* =========================================================================
   SECTIONS
   ========================================================================= */
.sec { padding: clamp(56px, 9vw, 96px) var(--gutter); }
.sec--alt { background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.sec-inner { max-width: 1160px; margin: 0 auto; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px); }
.sec-tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--o-ink);
}
.sec-title { margin-top: 10px !important; font-size: clamp(1.6rem, 3.4vw, 2.35rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; color: var(--ink); }
.sec-desc { margin-top: 12px !important; font-size: 1.02rem; line-height: 1.6; color: var(--muted); }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi {
    position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left;
    padding: 18px 18px 16px; border-radius: var(--r-lg); cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
    font: inherit; color: inherit; min-height: 188px;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, opacity .6s var(--ease) var(--d, 0ms);
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: rgba(255, 130, 0, .45); }
.afd-js .kpi.reveal.is-visible:hover { transform: translateY(-3px); }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-ico {
    width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center;
    background: var(--o-50); color: var(--o-strong); font-size: .85rem;
}
.kpi:nth-child(even) .kpi-ico { background: var(--g-50); color: var(--g); }
.kpi-label { flex: 1; min-width: 0; font-size: .84rem; font-weight: 600; color: var(--body); line-height: 1.25; }
.kpi-year { flex: none; font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.kpi-value { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.kpi-num { font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.kpi-unit { font-size: .85rem; font-weight: 600; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.delta i { font-size: .8rem; }
.spark { display: block; width: 100%; height: 36px; margin-top: auto; padding-top: 10px; overflow: visible; }
.spark-line { fill: none; stroke: var(--o); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: rgba(255, 130, 0, .10); }
.spark-dot { fill: var(--o); stroke: #fff; stroke-width: 1.5; }
.kpi:nth-child(even) .spark-line { stroke: var(--g); }
.kpi:nth-child(even) .spark-area { fill: rgba(0, 154, 68, .10); }
.kpi:nth-child(even) .spark-dot { fill: var(--g); }
.kpi-range { margin-top: 6px; font-size: .7rem; color: var(--faint); font-weight: 600; }
.kpi-ask {
    position: absolute; right: 16px; bottom: 14px; font-size: .74rem; font-weight: 700; color: var(--o-ink);
    opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s;
}
.kpi:hover .kpi-ask, .kpi:focus-visible .kpi-ask { opacity: 1; transform: none; }
.kpi--skel { cursor: default; gap: 14px; }
.kpi--skel:hover { transform: none; box-shadow: var(--sh-1); border-color: var(--line); }
.kpi-note { margin-top: 18px !important; text-align: center; font-size: .82rem; color: var(--muted); }
.kpi-note a { color: var(--o-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Squelettes ---------- */
.skel {
    display: block; border-radius: 8px;
    background: linear-gradient(90deg, #EEF2F6 0%, #F7F9FB 40%, #EEF2F6 80%);
    background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.skel-sm { height: 14px; width: 60%; }
.skel-lg { height: 32px; width: 45%; }
.skel-spark { height: 40px; width: 100%; margin-top: auto; }

/* ---------- Étapes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.step {
    position: relative; padding: 26px 24px 24px; border-radius: var(--r-lg);
    background: var(--bg); border: 1px solid var(--line);
}
.step-num {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem;
}
.step:nth-child(2) .step-num { background: var(--o); }
.step:nth-child(3) .step-num { background: var(--g); }
.step h3 { margin-top: 16px !important; font-size: 1.12rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.step p { margin-top: 8px !important; font-size: .93rem; line-height: 1.55; color: var(--muted); }
.step-demo {
    margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--surface);
    border: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); box-shadow: var(--sh-1);
    display: flex; align-items: center; gap: 10px; min-height: 48px;
}
.step-demo--q i { color: var(--o); }
.step-demo--m { justify-content: space-between; }
.step-demo--m .mono { color: var(--g-ink); font-weight: 600; }
.step-demo--m span:last-child { font-size: .78rem; color: var(--muted); }
.step-demo--c svg { width: 100%; height: 26px; }
.step-demo--c polyline { fill: none; stroke: var(--o); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---------- Sources ---------- */
.src-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    margin-bottom: 22px;
}
.src-stat { background: var(--surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.src-stat strong { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.src-stat:nth-child(1) strong { color: var(--o-strong); }
.src-stat:nth-child(2) strong { color: var(--g); }
.src-stat span { font-size: .84rem; color: var(--muted); font-weight: 500; }
.src-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.src {
    position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline;
    padding: 16px 18px; border-radius: var(--r); height: 100%;
    background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.src:hover { border-color: rgba(0, 154, 68, .45); box-shadow: var(--sh-2); transform: translateY(-2px); color: inherit; }
.src-name { grid-column: 1 / -1; font-weight: 700; color: var(--ink); font-size: .98rem; padding-right: 20px; }
.src-tag { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.src-count { grid-column: 2; grid-row: 2; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.src-count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.src-bar { grid-column: 1; grid-row: 2; align-self: center; height: 5px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.src-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--g), #35C072); transform-origin: left; }
.afd-js .reveal .src-bar span { transform: scaleX(0); transition: transform .9s var(--ease) .15s; }
.afd-js .reveal.is-visible .src-bar span { transform: scaleX(1); }
.src-full { grid-column: 1 / -1; font-size: .74rem; color: var(--faint); line-height: 1.4; }
.src-ext { position: absolute; top: 18px; right: 16px; font-size: .7rem; color: var(--faint); }

/* ---------- Points d'entrée ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.entry {
    position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px;
    border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line);
    color: inherit; text-decoration: none; overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s, opacity .6s var(--ease) var(--d, 0ms);
}
.entry:hover { transform: translateY(-4px); box-shadow: var(--sh-3); background: var(--surface); border-color: rgba(255, 130, 0, .35); color: inherit; }
.afd-js .entry.reveal.is-visible:hover { transform: translateY(-4px); }
.entry-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.15rem; }
.entry-ico--o { background: var(--o-50); color: var(--o-strong); }
.entry-ico--g { background: var(--g-50); color: var(--g); }
.entry-ico--d { background: #EEF2FF; color: #4338CA; }
.entry h3 { margin-top: 18px !important; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.entry p { margin-top: 8px !important; font-size: .93rem; line-height: 1.55; color: var(--muted); flex: 1; }
.entry-cta { margin-top: 18px; font-size: .9rem; font-weight: 700; color: var(--o-ink); display: inline-flex; align-items: center; gap: 8px; }
.entry-cta i { transition: transform .2s; }
.entry:hover .entry-cta i { transform: translateX(4px); }

/* ---------- CTA ---------- */
.cta { padding: 0 var(--gutter) clamp(56px, 9vw, 96px); }
.cta-inner {
    position: relative; overflow: hidden; max-width: 1160px; margin: clamp(36px, 5vw, 64px) auto 0; text-align: center;
    padding: clamp(36px, 6vw, 60px) clamp(20px, 5vw, 48px); border-radius: var(--r-xl);
    background: radial-gradient(120% 140% at 0% 0%, rgba(255, 130, 0, .38), transparent 55%),
                radial-gradient(120% 140% at 100% 100%, rgba(0, 154, 68, .38), transparent 55%), var(--ink);
    color: #fff;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; }
.cta-inner p { margin-top: 10px !important; color: rgba(255, 255, 255, .78); font-size: 1.02rem; }
.cta-btn {
    margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 14px 24px; border: 0; border-radius: 12px; background: #fff; color: var(--ink);
    font-weight: 700; font-size: 1rem; transition: transform .15s, box-shadow .2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }

/* =========================================================================
   RÉSULTATS
   ========================================================================= */
.rs { padding: 20px var(--gutter) 96px; min-height: 70vh; }
.rs-wrap { max-width: 1080px; margin: 0 auto; }
.rs-top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.rs-back {
    flex: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
    font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: border-color .2s, background .2s;
}
.rs-back:hover { border-color: var(--o); background: var(--o-50); }
.rs-search {
    position: relative; flex: 1; min-width: 0; display: flex; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 4px 4px 40px;
    transition: border-color .2s, box-shadow .2s;
}
.rs-search:focus-within { border-color: var(--o); box-shadow: 0 0 0 4px rgba(255, 130, 0, .12); }
.rs-search > i { position: absolute; left: 15px; color: var(--faint); font-size: .9rem; }
.rs-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 .95rem 'Inter', sans-serif; color: var(--ink); padding: 8px 4px; }
.rs-search button {
    flex: none; width: 38px; height: 38px; border-radius: 9px; border: 0; cursor: pointer;
    background: var(--o); color: #fff; transition: filter .2s;
}
.rs-search button:hover { filter: brightness(1.06); }

.rs-question { font-size: .92rem; color: var(--muted); font-style: italic; }
.rs-head { margin-bottom: 18px; }
.rs-title { margin-top: 6px !important; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
.rs-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
    display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
    padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--line); color: var(--body); text-decoration: none;
}
.pill i { font-size: .72rem; color: var(--faint); }
.pill--mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--g-ink); background: var(--g-50); border-color: var(--g-100); }
.pill--warn { background: var(--warn-50); border-color: #FDE68A; color: var(--warn); }
.pill--warn i { color: var(--warn); }
.pill--src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill--link { color: var(--o-ink); border-color: var(--o-100); background: var(--o-50); }
.pill--link:hover { border-color: var(--o); color: var(--o-ink); }
.pill--link i { color: inherit; }
.pill--quota { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill--quota:hover { color: #fff; filter: brightness(1.2); }

/* ---------- Chargement ---------- */
.rs-loading { padding: 8px 0; }
.load-steps { list-style: none; margin: 16px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.load-steps li { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--faint); font-weight: 500; transition: color .3s; }
.ls-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); position: relative; flex: none; transition: border-color .3s, background .3s; }
.load-steps li.is-active { color: var(--ink); }
.load-steps li.is-active .ls-dot { border-color: var(--o); border-right-color: transparent; animation: spin .8s linear infinite; }
.load-steps li.is-done { color: var(--g-ink); }
.load-steps li.is-done .ls-dot { border-color: var(--g); background: var(--g); }
.load-steps li.is-done .ls-dot::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.skel-block { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.skel-title { height: 28px; width: 55%; }
.skel-line { height: 13px; width: 100%; }
.skel-line--mid { width: 82%; }
.skel-line--short { width: 60%; }
.skel-chart { height: 240px; width: 100%; margin-top: 8px; border-radius: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Erreurs ---------- */
.err {
    display: flex; gap: 18px; padding: clamp(20px, 4vw, 32px); border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2);
}
.err-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; background: var(--bg); color: var(--muted); }
.err--warn .err-ico { background: var(--warn-50); color: var(--warn); }
.err--info .err-ico { background: var(--o-50); color: var(--o-strong); }
.err-body { min-width: 0; }
.err-body h2 { margin-top: 6px !important; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.err-msg { margin-top: 8px !important; font-size: .98rem; line-height: 1.6; color: var(--body); max-width: 640px; }
.err-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.err-examples { margin-top: 24px; }
.err-examples > p { font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 10px !important; }

.abtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    min-height: 44px; padding: 10px 18px; border-radius: 11px; font-size: .92rem; font-weight: 700;
    background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); text-decoration: none;
    transition: transform .15s, box-shadow .2s, border-color .2s, filter .2s;
}
.abtn:hover { border-color: var(--faint); color: var(--ink); transform: translateY(-1px); }
.abtn--primary { background: var(--o-strong); border-color: var(--o-strong); color: #fff; box-shadow: 0 8px 16px -8px rgba(229, 114, 0, .7); }
.abtn--primary:hover { color: #fff; filter: brightness(1.06); border-color: var(--o-strong); }
.abtn--sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; margin-top: 10px; }

/* ---------- Résumé ---------- */
.summary { margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tile { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile--main { background: linear-gradient(135deg, #FFF8F0, #FFFFFF 70%); border-color: var(--o-100); }
.tile-k { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tile-v { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tile-v small { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tile-v i { font-size: .95rem; align-self: center; }
.tile-v.up, .summary-text .up { color: var(--g-ink); }
.tile-v.down, .summary-text .down { color: #C2410C; }
.summary-text { margin-top: 12px !important; font-size: 1rem; line-height: 1.6; color: var(--body); }
.summary-text strong { color: var(--ink); }
.summary-proxy, .summary-empty {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: var(--r);
    background: var(--warn-50); border: 1px solid #FDE68A; color: #78350F; font-size: .9rem; line-height: 1.5;
}
.summary-proxy i, .summary-empty i { color: var(--warn); margin-top: 3px; }

/* ---------- Panneau Analyse IA ---------- */
.ai {
    position: relative; margin: 6px 0 18px; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2);
    overflow: hidden;
}
.ai::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--o), #FFC27A 50%, var(--g));
}
.ai[data-state="loading"]::before { background-size: 200% 100%; animation: aiBar 1.6s linear infinite; background-image: linear-gradient(90deg, var(--o), #FFC27A, var(--g), #FFC27A, var(--o)); }
@keyframes aiBar { to { background-position: -200% 0; } }
.ai-head {
    width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
    padding: 18px 20px; border: 0; background: transparent; color: inherit;
}
.ai-head:hover { background: #FCFDFE; }
.ai-ico {
    flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--o) 0%, #FFA94D 100%); color: #fff; font-size: 1.05rem;
    box-shadow: 0 6px 14px -6px rgba(255, 130, 0, .7);
}
.ai-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ai-title { font-size: 1.08rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.ai-sub { font-size: .84rem; color: var(--muted); }
.ai-badge {
    flex: none; display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700;
    background: var(--bg); border: 1px solid var(--line); color: var(--muted);
}
.ai[data-state="ready"] .ai-badge { background: var(--g-50); border-color: var(--g-100); color: var(--g-ink); }
.ai[data-state="error"] .ai-badge { background: var(--warn-50); border-color: #FDE68A; color: var(--warn); }
.ai.has-news .ai-badge { animation: badgePulse 1.6s ease-out 3; }
@keyframes badgePulse { 0% { box-shadow: 0 0 0 0 rgba(0, 154, 68, .45); } 100% { box-shadow: 0 0 0 10px rgba(0, 154, 68, 0); } }
.ai-head .ai-chev {
    flex: none; display: grid; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--bg); color: var(--muted); font-size: .85rem; transition: transform .35s var(--ease), background .2s;
}
.ai-head:hover .ai-chev { background: var(--o-50); color: var(--o-ink); }
.ai.is-open .ai-head .ai-chev { transform: rotate(180deg); }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .75s linear infinite; display: inline-block; }

.ai-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease); }
.ai.is-open .ai-body { grid-template-rows: 1fr; }
.ai.no-anim .ai-body, .ai.no-anim .ai-head .ai-chev { transition: none; }
.ai-body-inner { overflow: hidden; min-height: 0; }
.ai-content { padding: 2px 22px 20px 76px; border-top: 1px solid transparent; }
.ai-skel { display: flex; flex-direction: column; gap: 11px; padding: 6px 0 4px; }
.ai-md { font-size: .98rem; line-height: 1.72; color: var(--ink-2); max-width: 760px; }
.ai-md p { margin: 0 0 .85em !important; }
.ai-md p:last-child { margin-bottom: 0 !important; }
.ai-md h4 { margin: 1.1em 0 .4em !important; font-size: 1rem; font-weight: 800; color: var(--ink); }
.ai-md h4:first-child { margin-top: 0 !important; }
.ai-md ul, .ai-md ol { margin: 0 0 .9em; padding-left: 1.3em; }
.ai-md li { margin: .25em 0; }
.ai-md li::marker { color: var(--o); }
.ai-md strong { color: var(--ink); font-weight: 700; }
.ai-md code { font-size: .88em; background: var(--bg); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }
.ai-note { display: flex; gap: 8px; align-items: baseline; font-size: .85rem !important; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.ai-error { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--warn-50); border: 1px solid #FDE68A; color: #78350F; font-size: .93rem; line-height: 1.55; }
.ai-error > i { color: var(--warn); margin-top: 3px; }
.ai-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
    margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.ai-disclaimer { font-size: .78rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: baseline; }
.ai-feedback { display: inline-flex; align-items: center; gap: 6px; }
.ai-feedback-q { font-size: .8rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.fb-btn {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
    color: var(--muted); transition: all .2s;
}
.fb-btn:hover:not(:disabled) { border-color: var(--o); color: var(--o-ink); }
.fb-btn.is-active { background: var(--g-50); color: var(--g-ink); border-color: var(--g-100); }
#feedback-negative.is-active { background: var(--warn-50); color: var(--warn); border-color: #FDE68A; }
.fb-btn:disabled { cursor: default; }
.fb-msg { font-size: .78rem; color: var(--g-ink); font-weight: 600; }

/* ---------- Pastille flottante ---------- */
.ai-chip {
    position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 950;
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 12px 18px; border-radius: 999px; border: 0; white-space: nowrap;
    background: var(--ink); color: #fff; font-size: .9rem; font-weight: 700;
    box-shadow: 0 14px 30px -10px rgba(15, 23, 42, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    transform: translate(-50%, 24px); opacity: 0; transition: transform .3s var(--ease), opacity .3s;
}
.ai-chip.is-on { transform: translate(-50%, 0); opacity: 1; }
.ai-chip > i:first-child { color: #FFB066; }
.ai-chip-state { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #A7F3C5; }
.ai-chip-state:empty { display: none; }
.ai-chip[data-state="loading"] .ai-chip-state { color: #FFCF99; }
.ready-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; animation: livePulse 1.8s infinite; }
.ai-chip-arrow { font-size: .8rem; opacity: .8; }

/* ---------- Cartes de résultats ---------- */
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.card-title { font-size: .98rem; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; margin: 0; }
.card-title i { color: var(--o); font-size: .9rem; }
.card-tools { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.seg-btn { width: 36px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: all .2s; }
.seg-btn.is-active { background: var(--surface); color: var(--o-strong); box-shadow: var(--sh-1); }
.icon-btn {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
    color: var(--muted); cursor: pointer; transition: all .2s;
}
.icon-btn:hover { color: var(--o-ink); border-color: var(--o); background: var(--o-50); }
.chart-card { margin-bottom: 18px; }
.chart-sub { padding: 6px 18px 0; font-size: .84rem; color: var(--muted); }
.chart-box { position: relative; height: clamp(260px, 42vw, 380px); padding: 12px 14px 14px; }

.rs-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tbl-search { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tbl-search i { color: var(--faint); font-size: .78rem; }
.tbl-search input { border: 0; outline: 0; width: 120px; font: 500 .85rem 'Inter', sans-serif; color: var(--ink); background: transparent; }
.tbl-search:focus-within { border-color: var(--o); }
.tbl-wrap { max-height: 420px; overflow: auto; margin-top: 12px; border-top: 1px solid var(--line-2); }
#result-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
#result-table thead th {
    position: sticky; top: 0; z-index: 1; background: #F8FAFC; text-align: left;
    padding: 10px 18px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700;
    border-bottom: 1px solid var(--line);
}
#result-table th.num, #result-table td.num { text-align: right; }
#result-table tbody th { text-align: left; font-weight: 700; color: var(--ink); padding: 10px 18px; }
#result-table tbody td { padding: 10px 18px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
#result-table tbody tr { border-bottom: 1px solid var(--line-2); }
#result-table tbody tr:hover { background: #FFFBF6; }
#result-table td.empty { text-align: center; color: var(--muted); padding: 22px; }
.var { font-weight: 600; font-size: .84rem; }
.var--up { color: var(--g-ink); }
.var--down { color: #C2410C; }
.var--flat, .var--none { color: var(--faint); }
.tbl-count { padding: 10px 18px 14px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line-2); }

.meta-body { padding: 12px 18px 18px; font-size: .9rem; line-height: 1.6; }
.meta-def p { color: var(--body); }
.meta-def.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.link-btn { margin-top: 6px; border: 0; background: none; padding: 0; color: var(--o-ink); font-weight: 700; font-size: .85rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.meta-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
.meta-dl dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding-top: 2px; }
.meta-dl dd { margin: 0; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.meta-dl a { color: var(--o-ink); font-weight: 600; }
.muted { color: var(--muted); }

/* ---------- Actions ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.act {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; cursor: pointer;
    border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
    font-size: .88rem; font-weight: 600; text-decoration: none; transition: all .2s;
}
.act i { color: var(--muted); transition: color .2s; }
.act:hover:not(:disabled) { border-color: var(--o); background: var(--o-50); color: var(--ink); }
.act:hover:not(:disabled) i { color: var(--o-strong); }
.act:disabled { opacity: .45; cursor: not-allowed; }
.act--ghost { margin-left: auto; background: var(--ink); border-color: var(--ink); color: #fff; }
.act--ghost i { color: #FFB066; }
.act--ghost:hover { background: var(--ink-2) !important; color: #fff !important; border-color: var(--ink-2) !important; }

/* ---------- Questions suivantes ---------- */
.next { margin-top: 26px; }
.next h3 { font-size: 1rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 12px !important; }
.next h3 i { color: #F59E0B; }
.next-list { display: flex; flex-wrap: wrap; gap: 8px; }
.next-chip {
    display: inline-flex; align-items: center; gap: 9px; max-width: 100%; text-align: left; cursor: pointer;
    padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
    font-size: .9rem; font-weight: 500; color: var(--ink-2); line-height: 1.35;
    transition: all .2s;
}
.next-chip i { font-size: .72rem; color: var(--o); flex: none; transition: transform .2s; }
.next-chip:hover { border-color: rgba(255, 130, 0, .55); box-shadow: var(--sh-2); color: var(--ink); }
.next-chip:hover i { transform: translateX(3px); }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; top: 96px; z-index: 1200; transform: translate(-50%, -10px); opacity: 0;
    padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .88rem; font-weight: 600;
    box-shadow: var(--sh-3); transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .src-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .steps, .entry-grid { grid-template-columns: 1fr; }
    .rs-grid { grid-template-columns: 1fr; }
    .ai-content { padding-left: 22px; }
}
@media (max-width: 600px) {
    .hx { padding-top: 22px; }
    .hx-logo { height: 56px; margin-bottom: 14px; }
    .hx-eyebrow { font-size: .74rem; }
    .hx-title { margin-top: 14px !important; }
    .hx-sub { font-size: .97rem; }
    .qbox { flex-direction: column; align-items: stretch; padding: 6px; border-radius: 16px; margin-top: 20px; }
    .qbox-ico { top: 27px; transform: none; }
    .qbox #query-input { padding: 13px 10px 13px 44px; font-size: 1rem; }
    .qbox-ico { left: 20px; font-size: .95rem; }
    .qbox-btn { justify-content: center; padding: 14px; }
    .theme-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
    .theme-tabs::-webkit-scrollbar { display: none; }
    .theme-tab { flex: none; padding: 9px 13px; }
    .theme-chips { justify-content: stretch; flex-direction: column; }
    .q-chip { justify-content: space-between; width: 100%; min-height: 46px; }
    .ticker-label { padding: 0 12px; font-size: .66rem; }
    .ticker-label .hx-live { display: none; }
    .tick { padding: 12px 16px; font-size: .82rem; }

    .kpi-grid { gap: 10px; }
    .kpi { padding: 14px 13px 12px; min-height: 170px; border-radius: 14px; }
    .kpi-top { flex-wrap: wrap; gap: 8px; }
    .kpi-ico { width: 28px; height: 28px; font-size: .78rem; }
    .kpi-year { order: 2; margin-left: auto; }
    .kpi-label { order: 3; flex-basis: 100%; font-size: .8rem; }
    .kpi-value { margin-top: 8px; flex-wrap: wrap; gap: 2px 5px; }
    .kpi-num { font-size: 1.45rem; }
    .kpi-unit { font-size: .76rem; }
    .delta { font-size: .72rem; }
    .kpi-ask { display: none; }
    .src-stat { padding: 16px; }
    .src-list { grid-template-columns: 1fr; }

    .rs { padding-top: 14px; }
    .rs-top { margin-bottom: 18px; }
    .rs-back span { display: none; }
    .rs-back { padding: 11px 14px; }
    .ai-head { padding: 16px; gap: 11px; }
    .ai-ico { width: 38px; height: 38px; }
    .ai-badge { padding: 4px 9px; }
    .ai-sub { font-size: .8rem; }
    .ai-content { padding: 0 16px 18px; }
    .err { flex-direction: column; gap: 12px; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .tile { padding: 12px; }
    .tile:nth-child(n+3) { display: none; }
    .tile-v { font-size: 1.3rem; }
    .rs-title { font-size: 1.35rem; }
    .rs-meta { gap: 6px; margin-top: 10px; }
    .pill--obs, .pill--src { display: none; }
    .summary-text { font-size: .94rem; margin-top: 10px !important; }
    .ai-chip { padding: 11px 16px; font-size: .86rem; }
    .card-head { padding: 14px 14px 0; }
    .chart-sub { padding: 6px 14px 0; }
    .chart-box { padding: 10px 6px 10px; height: 260px; }
    .tbl-search input { width: 96px; }
    #result-table thead th, #result-table tbody th, #result-table tbody td { padding: 10px 14px; }
    .actions { padding: 10px; }
    .act { flex: 1 1 calc(50% - 8px); justify-content: center; }
    .act--ghost { margin-left: 0; flex-basis: 100%; }
    .next-chip { width: 100%; }
}
@media (max-width: 380px) {
    .ai-badge { display: none; }
}

/* =========================================================================
   MOUVEMENT RÉDUIT
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    .afd *, .afd *::before, .afd *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .afd-js .reveal { opacity: 1; transform: none; }
    .ticker-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .ticker-track { animation: none !important; }
    .ticker-group[aria-hidden] { display: none; }
    .skel { animation: none !important; }
    .ls-dot { animation: none !important; }
}

/* Réponse sous forme de tableau (classement, liste…) */
.tres-card { margin-bottom: 16px; }
#tres-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
#tres-table thead th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
    background: #F9FAFB; padding: 10px 14px; white-space: nowrap; }
#tres-table th.num, #tres-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
#tres-table tbody td { padding: 9px 14px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
#tres-table tbody td:first-child { color: var(--muted); width: 2.5em; }
#tres-table tbody tr:hover { background: #FFFBF6; }
#tres-open { text-decoration: none; }
@media (max-width: 640px) { #tres-table thead th, #tres-table tbody td { padding: 8px 10px; } }
