/* Dystil — indigo profond, verre, roues de progression. Un seul fichier, jetons en tête. */
:root {
  color-scheme: dark;
  --ground: #14152A;
  --text: #F5F5FA;
  --text-2: #C9CBDD;
  --muted: #9A9DB8;
  --accent: #7C5CFF;
  --accent-deep: #6646F0;
  --accent-soft: rgba(124, 92, 255, .2);
  --accent-text: #CDBFFF;
  --accent-light: #B4A2FF;
  --cyan: #22C3E6;
  --pink: #EC4899;
  --blue: #4F7BFF;
  --yellow: #F5C518;
  --orange: #FF9F5A;
  --orange-text: #FFC2A3;
  --error: #FF8F8F;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .14);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .028));
  --glass-tint: linear-gradient(180deg, rgba(124, 92, 255, .16), rgba(124, 92, 255, .04));
  --glass-edge: inset 0 0 0 1px rgba(255, 255, 255, .07);
  --glass-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 12px 32px rgba(10, 15, 25, .22);
  --tile: rgba(255, 255, 255, .04);
  --gradient: linear-gradient(90deg, #22C3E6, #7C5CFF, #EC4899);
  --button: linear-gradient(135deg, #8B6BFF, #6646F0);
  --radius: 22px;
  --sans: var(--font-geist), system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--font-geist-mono), ui-monospace, "SF Mono", monospace;
  --e-standard: cubic-bezier(.2, 0, 0, 1);
  --e-draw: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  background: radial-gradient(1100px 760px at 0% -10%, rgba(124, 92, 255, .24), transparent 60%), radial-gradient(900px 700px at 105% 25%, rgba(236, 72, 153, .09), transparent 60%), radial-gradient(800px 600px at 50% 110%, rgba(59, 130, 246, .09), transparent 60%), var(--ground);
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
a:hover { color: #FFFFFF; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; }
.profile-section legend, .assets-fieldset legend, .source-card strong, .campaign-list li > a:first-child { font-family: var(--sans); font-weight: 700; }
h1 { font-size: clamp(36px, 4.6vw, 54px); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: 20px; line-height: 1.25; }
h3 { font-size: 17px; line-height: 1.3; }
h4 { font-size: 15px; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 20px; }
dl, dd { margin: 0; }
blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(124, 92, 255, .45); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 12px; background: var(--accent); color: #FFFFFF; }
.skip-link:focus { top: 12px; }
.desktop-break { display: inline; }

/* Coque : barre latérale + contenu */
.app-shell { display: flex; align-items: stretch; min-height: 100vh; }
.main { flex: 1; min-width: 0; padding: 36px clamp(16px, 4vw, 48px) 80px; display: flex; flex-direction: column; gap: 22px; }
.main:focus { outline: none; }
.public-header { display: flex; justify-content: space-between; align-items: center; max-width: 1240px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 48px); }
.public-main { margin: 0 auto; width: 100%; }
.app-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; flex: 0 0 256px; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px; background: rgba(255, 255, 255, .025); border-right: 1px solid rgba(255, 255, 255, .06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-logo { display: block; width: 151px; max-width: 100%; height: 46px; object-fit: contain; object-position: left center; }
.project-picker { display: flex; flex-direction: column; gap: 6px; padding: 0 6px; }
.project-picker label, .sidebar-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sidebar-label { padding: 0 12px; }
.sidebar-new { font-size: 13px; text-decoration: none; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text-2); text-decoration: none; font-weight: 500; transition: background .2s var(--e-standard), color .2s; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.sidebar-nav a[aria-current="page"] { background: linear-gradient(90deg, #7C5CFF, #6646F0); color: #FFFFFF; box-shadow: 0 8px 24px rgba(124, 92, 255, .35); }
.sidebar-account { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); font-size: 14px; font-weight: 500; }
.sidebar-account .text-button { margin-left: auto; font-size: 12px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 99px; background: linear-gradient(135deg, #EC4899, #7C5CFF); font-size: 13px; font-weight: 600; color: #FFFFFF; }

/* Briques */
.surface-card, .glass { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--glass); box-shadow: var(--glass-shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.glass-tint { background: var(--glass-tint); }
.tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--tile); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.tile dt, .tile .tile-label { font-size: 12px; color: var(--muted); }
.tile dd, .tile .tile-value { font-size: 20px; font-weight: 300; letter-spacing: -.02em; }
.tile-line { width: 18px; height: 3px; border-radius: 99px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.page-heading { display: flex; flex-direction: column; gap: 10px; }
.page-heading > p { max-width: 720px; color: var(--text-2); font-size: 16px; }
.step-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.step-heading-main { display: flex; align-items: center; gap: 18px; }
.step-heading-main > div { display: flex; flex-direction: column; gap: 8px; }
.section-heading, .section-topline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-heading > span, .section-heading > p { font-size: 13px; color: var(--muted); }
.section-topline > div:first-child { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.section-description, .field-note, .fieldset-note, .collection-note { font-size: 13px; color: var(--muted); }
.insight-caveat { font-size: 13px; color: var(--muted); padding-left: 10px; border-left: 2px solid rgba(255, 255, 255, .12); }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.columns { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.columns > .column-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.columns > .column-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* Boutons, liens, étiquettes */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 99px; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform .2s var(--e-standard), box-shadow .2s, background .2s; }
.button.primary { background: var(--button); color: #FFFFFF; box-shadow: 0 10px 26px rgba(124, 92, 255, .4); }
.button.primary:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(124, 92, 255, .55); }
.button.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.button.secondary:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.button .arrow { display: inline-block; transition: transform .2s var(--e-standard); }
.button:hover .arrow { transform: translateX(4px); }
.text-link { color: var(--accent-text); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.text-link:hover { color: #FFFFFF; }
.text-link:disabled { opacity: .5; cursor: not-allowed; }
.text-button { background: none; border: 0; padding: 0; font: inherit; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:disabled { opacity: .5; }
.chevron { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--text-2); text-decoration: none; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: rgba(255, 159, 90, .15); color: var(--orange-text); }
.badge.neutral { background: var(--accent-soft); color: var(--accent-text); }
.badge.green { background: rgba(34, 195, 230, .15); color: #A5F3FC; }
.badge.outline-pink { background: transparent; box-shadow: inset 0 0 0 1px rgba(236, 72, 153, .6); color: #F9A8D4; }
.badge.muted { background: rgba(255, 255, 255, .06); color: var(--muted); }
.signal-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.mono { font-family: var(--mono); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; flex: none; }

/* Formulaires */
label { font-size: 14px; font-weight: 500; color: var(--text-2); }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input:not([type]), textarea, select {
  width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: var(--text); font: inherit; font-size: 15px; transition: box-shadow .12s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select option { background: #1C1D38; color: var(--text); }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(180, 162, 255, .7), 0 0 0 4px rgba(124, 92, 255, .22); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { box-shadow: inset 0 0 0 1px rgba(255, 143, 143, .8); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
textarea { resize: vertical; line-height: 1.45; }
.unit, .optional { font-size: 12px; font-weight: 400; color: var(--muted); }
details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; font-weight: 500; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23C9CBDD' stroke-width='1.6'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .2s var(--e-standard); }
details[open] > summary::after { transform: rotate(180deg); }
.disclosure { padding: 14px 20px; border-radius: 18px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.disclosure > *:not(summary) { margin-top: 12px; }
.error-message { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 143, 143, .1); box-shadow: inset 0 0 0 1px rgba(255, 143, 143, .3); color: #FFC9C9; font-size: 14px; }
.save-status:empty { display: none; }
.save-status { font-size: 14px; color: #A5F3FC; }
.status-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px; background: linear-gradient(90deg, rgba(255, 159, 90, .16), rgba(255, 159, 90, .05)); box-shadow: inset 0 0 0 1px rgba(255, 159, 90, .25); color: var(--orange-text); font-weight: 500; }
.status-band a { color: var(--orange-text); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; padding: 14px 18px; border-radius: 16px; background: var(--glass), #1C1D38; box-shadow: var(--glass-shadow); animation: rise .5s var(--e-standard) both; }

/* Projet */
.profile-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.profile-primary { flex: 3 1 480px; min-width: 0; }
.profile-aside { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.profile-form { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 24px; background: var(--glass); box-shadow: var(--glass-shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.profile-form > div:not(.form-actions) { display: flex; flex-direction: column; gap: 18px; }
.profile-section { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.profile-section legend { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 0; font-size: 17px; }
.profile-section label { margin-top: 8px; }
.profile-section label span { color: var(--muted); font-weight: 400; }
.form-step { font-family: var(--mono); font-size: 12px; color: var(--accent-light); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 4px 14px; }
.form-grid > div { display: flex; flex-direction: column; gap: 8px; }
.assets-fieldset { margin: 8px 0 0; padding: 0; border: 0; }
.assets-fieldset legend { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-group label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: var(--text); cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-loading { padding: 26px; border-radius: 24px; background: var(--glass); color: var(--muted); }
.aside-note { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 20px; background: var(--glass); box-shadow: var(--glass-shadow); }
.aside-note h2 { font-size: 16px; }
.aside-note p { font-size: 14px; color: var(--text-2); }
.example-invitation { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: var(--glass-tint); box-shadow: var(--glass-shadow); }
.example-invitation h2 { font-size: 18px; }
.example-invitation p { font-size: 14px; color: var(--text-2); }

/* Recherche */
.source-ingestion { gap: 18px; }
.source-total { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.source-total strong { font-size: 36px; font-weight: 300; letter-spacing: -.03em; color: var(--text); }
.collection-access { font-size: 13px; color: var(--muted); }
.source-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.source-actions p { font-size: 13px; color: var(--muted); }
.research-brief { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: var(--glass-tint); box-shadow: inset 0 0 0 1px rgba(180, 162, 255, .2); }
.research-brief h3 { font-size: 18px; }
.research-brief p { font-size: 14px; color: var(--text-2); }
.source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.source-card { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--e-standard), box-shadow .2s, background .2s; }
.source-card:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(180, 162, 255, .35); }
.source-card:disabled { opacity: .55; cursor: not-allowed; }
.source-card.is-secondary { opacity: .8; }
.source-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.source-card small { font-size: 12px; color: var(--muted); }
.source-glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-family: var(--mono); font-size: 12px; }
.source-state { font-style: normal; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.source-state.is-collected { color: #A5F3FC; }
.source-collect { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 99px; background: var(--button); color: #FFFFFF; }
.secondary-sources { padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.secondary-sources > p, .secondary-sources > div { margin-top: 10px; }
.secondary-sources > p { font-size: 13px; color: var(--muted); }
.source-library { padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.source-library > *:not(summary) { margin-top: 12px; }
.source-library ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.source-library li { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); }
.source-library li > a { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; color: var(--text); text-decoration: none; font-weight: 700; }
.source-library li > a span { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); }
.source-library li p { font-size: 13px; color: var(--muted); }
.source-library blockquote { font-size: 14px; color: var(--text-2); padding-left: 12px; border-left: 2px solid rgba(124, 92, 255, .5); }
.research-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 18px 22px; border-radius: 24px; background: var(--glass); box-shadow: var(--glass-shadow); }
.platform-legend { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.platform-legend li { display: flex; align-items: center; gap: 8px; }
.platform-legend .name { min-width: 120px; color: var(--text-2); }
.next-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 18px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); color: var(--text-2); }

/* Analyse */
.intelligence-launcher { gap: 18px; }
.launcher-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.launcher-actions > div { display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
.phase-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.phase-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; min-height: 58px; padding: 0 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); transition: background .4s, box-shadow .4s; }
.phase-list li.is-active { background: linear-gradient(90deg, rgba(124, 92, 255, .18), rgba(124, 92, 255, .04)); box-shadow: inset 0 0 0 1px rgba(180, 162, 255, .32); }
.phase-list li.is-waiting { color: var(--muted); }
.phase-list .phase-state { display: block; font-size: 12px; color: var(--muted); }
.run-overview { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.run-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; width: 100%; }
.run-tiles .tile { align-items: center; text-align: center; }

/* Résultats */
.run-context { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.dashboard-card .ring-row { display: flex; justify-content: center; padding: 6px 0; }
.tile-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.segmented button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 99px; background: transparent; color: var(--text-2); font: inherit; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.segmented button[aria-selected="true"], .segmented button[aria-pressed="true"] { background: var(--button); color: #FFFFFF; box-shadow: 0 6px 18px rgba(124, 92, 255, .4); }
.segmented button span { font-family: var(--mono); font-size: 12px; opacity: .75; }
.opportunity-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 14px; }
.opportunity-card { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 22px; border-radius: var(--radius); background: var(--glass); box-shadow: var(--glass-shadow); color: var(--text); text-decoration: none; transition: transform .2s var(--e-standard), box-shadow .2s; animation: rise .55s var(--e-standard) both; }
.opportunity-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(180, 162, 255, .35), 0 16px 36px rgba(10, 15, 25, .35); }
.opportunity-card h3 { font-size: 21px; letter-spacing: -.025em; line-height: 1.2; }
.opportunity-card > p { font-size: 14px; color: var(--text-2); }
.opportunity-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.opportunity-facts > div { padding: 10px 12px; border-radius: 12px; background: var(--tile); }
.opportunity-facts dt { font-size: 12px; color: var(--muted); }
.opportunity-facts dd { font-weight: 500; }
.gauge { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.gauge > span { display: block; height: 100%; border-radius: 99px; background: var(--gradient); box-shadow: 0 0 10px rgba(124, 92, 255, .6); transform-origin: left; animation: grow .9s var(--e-draw) both .3s; }
.gauge-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.gauge-head span:last-child { color: var(--text-2); }
.orphan-needs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.orphan-needs li { padding: 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .05); font-size: 14px; }
.orphan-needs li span { color: var(--muted); }
.campaign-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 12px; }
.campaign-list li { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.campaign-list li > a:first-child { color: var(--text); text-decoration: none; }
.campaign-list p { font-size: 13px; color: var(--text-2); }
.tech-details { font-family: var(--mono); font-size: 13px; color: var(--text-2); line-height: 1.8; }

/* Publics et actions (analyse d’audience) */
.audience-insights { gap: 18px; }
.insight-workspace { display: flex; flex-direction: column; gap: 18px; }
.insight-brief { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: var(--glass-tint); box-shadow: inset 0 0 0 1px rgba(180, 162, 255, .2); }
.insight-brief p { font-size: 14px; color: var(--text-2); }
.insight-readout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.insight-readout dl { display: flex; flex-wrap: wrap; gap: 8px; }
.insight-readout dl > div { padding: 10px 14px; border-radius: 12px; background: var(--tile); }
.insight-readout dt { font-size: 12px; color: var(--muted); }
.insight-readout dd { font-weight: 500; }
.segment-section, .action-plan, .destination-section { display: flex; flex-direction: column; gap: 14px; }
.segment-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.segment-cards button { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid transparent; border-radius: 18px; background: rgba(255, 255, 255, .035) padding-box, rgba(255, 255, 255, .08) border-box; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .2s, background .2s; }
.segment-cards button[aria-pressed="true"] { background: linear-gradient(#1D1D3C, #1D1D3C) padding-box, linear-gradient(135deg, #22C3E6, #7C5CFF, #EC4899) border-box; box-shadow: 0 10px 28px rgba(124, 92, 255, .28); }
.segment-cards header { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.segment-start { color: var(--accent-text); }
.segment-audience { font-size: 13px; color: var(--text-2); }
.segment-cards dl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.segment-cards dt { color: var(--muted); }
.action-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.action-column { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: var(--glass); box-shadow: var(--glass-shadow); }
.action-column ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.action-column li { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.action-column dl { font-size: 13px; color: var(--muted); }
.action-empty p { font-size: 13px; color: var(--muted); }
.destination-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.destination-cards li { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.destination-cards header { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.destination-cards p { font-size: 13px; color: var(--text-2); }
.destination-cards dl { font-size: 13px; }
.destination-cards dt { color: var(--muted); }
.insight-evidence { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; }

/* Fiche piste */
.opportunity-dossier { display: flex; flex-direction: column; gap: 18px; }
.dossier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.dossier-grid > div { display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.dossier-grid dt { font-size: 12px; color: var(--muted); }
.dossier-grid dd { line-height: 1.45; }
.evidence-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.evidence-list > li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 14px 22px; border-radius: 14px; background: rgba(255, 255, 255, .03); transition: background .12s; }
.evidence-list > li:hover { background: rgba(255, 255, 255, .055); }
.evidence-list > li::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #22C3E6, #7C5CFF, #EC4899); box-shadow: 0 0 10px rgba(124, 92, 255, .45); transform-origin: top; animation: draw-y .6s var(--e-draw) both .2s; }
.evidence-list.is-objection > li::before { background: linear-gradient(180deg, #FFC2A3, #FF8A3D); box-shadow: none; }
.evidence-list blockquote { font-size: 16px; line-height: 1.45; color: var(--text); }
.level { display: flex; flex-direction: column; gap: 8px; }
.level-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.unknown-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.unknown-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.unknown-list li::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: linear-gradient(135deg, #22C3E6, #EC4899); flex: none; }
.decision-rule { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(180, 162, 255, .25); }
.decision-rule strong { font-size: 22px; font-weight: 300; letter-spacing: -.03em; color: var(--accent-text); }

/* Sources */
.signal-workspace { display: flex; flex-direction: column; gap: 18px; }
.signal-coverage { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--glass); box-shadow: var(--glass-shadow); }
.signal-coverage > div { display: flex; flex-direction: column; gap: 8px; }
.signal-coverage p { color: var(--text-2); font-size: 14px; }
.signal-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.signal-metrics > div { padding: 12px 14px; border-radius: 14px; background: var(--tile); }
.signal-metrics dt { font-size: 12px; color: var(--muted); }
.signal-metrics dd { font-size: 22px; font-weight: 300; }
.signal-theme-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.signal-theme-grid li { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .035); }
.signal-theme-grid p { font-size: 14px; color: var(--text-2); }
.signal-theme-grid div { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.source-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.source-filters button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--text-2); font: inherit; font-weight: 500; cursor: pointer; }
.source-filters button[aria-pressed="true"] { background: var(--button); color: #FFFFFF; box-shadow: 0 6px 18px rgba(124, 92, 255, .4); }
.source-filters button span { font-family: var(--mono); font-size: 12px; opacity: .75; }
.signal-filter-status { font-size: 13px; color: var(--muted); }
.signal-stream { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.signal-stream li { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.signal-stream a { color: var(--text); text-decoration: none; }
.signal-stream p { font-size: 14px; color: var(--text-2); }
.signal-stream footer { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.signal-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .03); }
.signal-load-more { display: flex; justify-content: center; }

/* Projets */
.projects-topline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.project-card h2 a { color: var(--text); text-decoration: none; }
.project-card p { font-size: 14px; color: var(--text-2); }
.project-card .field-note { color: var(--muted); }
.project-card-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; font-size: 14px; }

/* Dashboard : portfolio, couverture réelle et actions des projets. */
.project-dashboard { display: flex; flex-direction: column; gap: 30px; }
.project-dashboard h1 { font-size: 42px; }
.dashboard-overview { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(150px, .7fr) minmax(210px, 1fr); padding: 26px; gap: 26px; border-radius: var(--radius); background: var(--glass-tint); box-shadow: var(--glass-shadow); align-items: center; }
.dashboard-portfolio { display: flex; align-items: center; gap: 26px; }
.dashboard-portfolio .ring strong { font-size: 48px; }
.dashboard-portfolio > div:last-child { display: flex; flex-direction: column; gap: 9px; }
.dashboard-portfolio h2 { font-size: 22px; }
.dashboard-portfolio p { font-size: 14px; color: var(--text-2); }
.dashboard-live { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.dashboard-live > span { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--muted); }
.dashboard-live.is-active { color: var(--cyan); }
.dashboard-live.is-active > span { background: var(--cyan); }
.dashboard-source-total { display: flex; flex-direction: column; gap: 5px; padding: 0 24px; border-left: 1px solid var(--line-strong); }
.dashboard-source-total > strong { font-size: 36px; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.2; }
.dashboard-source-total > span { color: var(--text-2); font-size: 14px; }
.dashboard-source-total > small { color: var(--muted); font-size: 12px; }
.dashboard-credits { padding-left: 24px; border-left: 1px solid var(--line-strong); scroll-margin-top: 24px; }
.credit-status { display: flex; flex-direction: column; gap: 9px; }
.credit-label { color: var(--muted); font-size: 12px; }
.credit-status strong { font-size: 17px; font-weight: 500; color: var(--text); }
.credit-status p { font-size: 13px; color: var(--text-2); max-width: 28ch; }
.sidebar-credits { display: block; padding: 14px 12px; color: var(--text); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 12px; }
.sidebar-credits:hover { background: var(--tile); }
.credit-status-compact { gap: 5px; }
.credit-status-compact strong { font-size: 13px; }
.dashboard-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 26px; }
.dashboard-projects, .dashboard-rail { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.dashboard-count { margin-left: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dashboard-search { width: min(100%, 260px); }
.dashboard-search input { min-height: 42px; }
.dashboard-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.dashboard-filters button { min-height: 40px; padding: 8px 14px; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 10px; font: inherit; font-size: 13px; cursor: pointer; }
.dashboard-filters button:hover { background: var(--tile); color: var(--text); }
.dashboard-filters button[aria-pressed="true"] { color: var(--accent-text); border-color: var(--line-strong); background: var(--accent-soft); }
.dashboard-project-grid { display: grid; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.dashboard-project { gap: 16px; min-width: 0; }
.dashboard-project-heading { display: flex; gap: 12px; align-items: center; }
.dashboard-project-heading > div { min-width: 0; flex: 1; }
.dashboard-project-heading h3 { font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.dashboard-project-heading h3 a { color: var(--text); text-decoration: none; }
.dashboard-project-heading p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dashboard-project-logo { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--tile); color: var(--accent-text); font-size: 14px; font-weight: 500; }
.dashboard-project-logo .site-icon { width: 24px; height: 24px; }
.dashboard-project-status { display: inline-flex; gap: 7px; align-items: center; align-self: flex-start; color: var(--text-2); font-size: 12px; }
.dashboard-project-status.is-active { color: var(--cyan); }
.dashboard-project-status.is-warning { color: var(--orange-text); }
.dashboard-project-description { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.dashboard-project-metrics { display: flex; align-items: center; gap: 22px; padding: 12px 0; }
.dashboard-project-metrics .ring strong { font-size: 27px; }
.dashboard-project-metrics .ring small { font-size: 10px; }
.dashboard-project-metrics dl { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.dashboard-project-metrics dl > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.dashboard-project-metrics dt { color: var(--muted); font-size: 12px; }
.dashboard-project-metrics dd { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.dashboard-platforms { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dashboard-platforms > a { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--tile); text-decoration: none; font-size: 11px; }
.dashboard-platforms .site-icon { width: 20px; height: 20px; }
.dashboard-platforms > span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.dashboard-next-action { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-strong); margin-top: auto; }
.dashboard-next-action > p { color: var(--text-2); font-size: 13px; }
.dashboard-next-action .button { justify-content: space-between; }
.dashboard-project .project-card-actions { gap: 12px; font-size: 12px; margin-top: 0; }
.dashboard-project-analysis > .text-button { display: flex; justify-content: space-between; width: 100%; padding: 4px 0; }
.dashboard-project-analysis .launcher-actions label { font-size: 12px; color: var(--muted); }
.dashboard-project-analysis .intelligence-launcher { padding: 16px 0 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; animation: none; }
.dashboard-project-analysis .section-topline { flex-direction: column; }
.dashboard-project-analysis .intelligence-launcher h2 { font-size: 15px; }
.dashboard-project-analysis .intelligence-launcher .field-note { font-size: 12px; }
.dashboard-project-analysis .launcher-actions { display: flex; flex-direction: column; width: 100%; gap: 12px; }
.dashboard-project-analysis .launcher-actions > div { width: 100%; }
.dashboard-project-analysis .launcher-actions select, .dashboard-project-analysis .launcher-actions button { width: 100%; }
.dashboard-run-status { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.dashboard-channel-activity ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.dashboard-channel-activity li > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dashboard-channel-activity li a { display: flex; gap: 10px; align-items: center; color: var(--text-2); text-decoration: none; font-size: 13px; }
.dashboard-channel-activity li strong { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dashboard-channel-activity meter { display: block; width: 100%; height: 6px; margin-top: 8px; background: var(--tile); border: 0; border-radius: 6px; }
.dashboard-channel-activity meter::-webkit-meter-bar { background: var(--tile); border: 0; height: 6px; }
.dashboard-channel-activity meter::-webkit-meter-optimum-value { background: var(--accent-light); }
.dashboard-channel-activity meter::-moz-meter-bar { background: var(--accent-light); }
.dashboard-help { display: flex; align-items: flex-start; gap: 12px; padding: 8px 4px; color: var(--muted); font-size: 13px; }
.dashboard-help svg { flex: none; }
.dashboard-help a { display: block; margin-top: 5px; }
.dashboard-empty { align-items: flex-start; padding: 32px; }
@media (max-width: 1250px) {
  .dashboard-workspace { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
  .dashboard-overview { grid-template-columns: minmax(0, 1fr) minmax(180px, .6fr); }
  .dashboard-credits { grid-column: 1 / -1; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .dashboard-credits .credit-status { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .dashboard-credits .credit-label { grid-column: 1; }
  .dashboard-credits strong { grid-column: 1; }
  .dashboard-credits p { grid-column: 2; grid-row: 1 / 3; max-width: none; }
}
@media (max-width: 900px) {
  .sidebar-credits { grid-column: 1 / -1; padding: 10px 12px; }
  .sidebar-credits .credit-status { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
  .dashboard-workspace { grid-template-columns: 1fr; }
  .dashboard-rail { display: flex; }
  .dashboard-help { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .project-dashboard h1 { font-size: 34px; }
  .dashboard-overview { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .dashboard-portfolio { gap: 20px; }
  .dashboard-portfolio h2 { font-size: 18px; }
  .dashboard-portfolio .ring { --size: 116px !important; }
  .dashboard-portfolio .ring strong { font-size: 36px; }
  .dashboard-source-total { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: 28px auto; column-gap: 12px; }
  .dashboard-source-total svg { grid-column: 1; grid-row: 1 / 4; margin-top: 6px; }
  .dashboard-source-total > strong, .dashboard-source-total > span, .dashboard-source-total > small { grid-column: 2; }
  .dashboard-credits .credit-status { display: flex; }
  .dashboard-project-metrics { gap: 16px; }
  .dashboard-rail { display: flex; }
  .dashboard-search { width: 100%; }
  .dashboard-projects > .section-heading { align-items: stretch; flex-direction: column; }
}

/* Connexion */
.auth-page { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; max-width: 1000px; margin: 40px auto; }
.auth-page > .page-heading { flex: 1 1 320px; }
.auth-form, .auth-confirmation { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 24px; background: var(--glass); box-shadow: var(--glass-shadow); }
.auth-form-heading { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.auth-form-heading p, .auth-confirmation p { font-size: 14px; color: var(--text-2); }
.confirmation-icon { font-size: 28px; }
.not-found { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 640px; margin: 60px auto; padding: 32px; border-radius: 24px; background: var(--glass); box-shadow: var(--glass-shadow); }

/* Exemples (démonstration) */
.demo-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 159, 90, .1); box-shadow: inset 0 0 0 1px rgba(255, 159, 90, .25); font-size: 14px; color: var(--orange-text); }
.report-heading { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; }
.report-heading > div { display: flex; flex-direction: column; gap: 10px; }
.scenario-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .04); align-self: flex-start; }
.scenario-nav a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 99px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.scenario-nav a[aria-current="page"] { background: var(--button); color: #FFFFFF; }
.report-context { display: flex; flex-wrap: wrap; gap: 8px; }
.report-context p { padding: 10px 14px; border-radius: 12px; background: var(--tile); font-size: 14px; color: var(--text-2); }
.report-context strong { color: var(--text); font-weight: 500; }
.opportunities { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.opportunity-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: var(--glass); box-shadow: var(--glass-shadow); color: var(--text); text-decoration: none; transition: transform .2s var(--e-standard); }
.opportunity-row:hover { color: var(--text); transform: translateY(-2px); }
.opportunity-index { font-family: var(--mono); color: var(--accent-light); }
.opportunity-row p { font-size: 14px; color: var(--text-2); }
.opportunity-paths { font-size: 12px; color: var(--muted); }
.row-arrow { color: var(--accent-text); }
.empty-state, .coverage, .sources-section, .claims-section, .channel, .detail-heading, .detail-footer, .opportunity-intro, .assessment { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--glass); box-shadow: var(--glass-shadow); }
.coverage p, .coverage li, .empty-state p, .sources-section p, .channel p, .opportunity-intro p { font-size: 14px; color: var(--text-2); }
.sources-list, .claims-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sources-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); }
.source-index { font-family: var(--mono); color: var(--accent-light); }
.source-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.source-url { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 14px; }
.channel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.channel-action { color: var(--text); font-size: 16px; }
.channel-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.channel-numbers > div { padding: 10px 12px; border-radius: 12px; background: var(--tile); }
.channel-numbers dt { font-size: 12px; color: var(--muted); }
.channel-metric, .channel-limitations { display: flex; flex-direction: column; gap: 6px; }
.channel-limitations li { font-size: 14px; color: var(--text-2); }
.claims-list li { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); }
.claim-references { font-size: 12px; color: var(--muted); }
.hypothesis, .candidate, .convergent { color: var(--text); }

/* Anneaux */
@property --n { syntax: "<number>"; inherits: true; initial-value: 0; }
.ring { position: relative; flex: none; width: var(--size); height: var(--size); }
.ring-draw { animation: ring-fill 1.8s var(--e-draw) both; }
.ring-live { transition: --n .7s var(--e-standard); }
.ring-track, .ring-arc, .ring-comet { position: absolute; inset: 0; border-radius: 50%; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - 1px), #000 calc(100% - var(--w))); mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - 1px), #000 calc(100% - var(--w))); }
.ring-track { background: rgba(255, 255, 255, .07); }
.ring-arc { background: var(--grad); }
.ring-reveal { position: absolute; inset: 0; -webkit-mask: conic-gradient(#000 calc(var(--n) * 1%), transparent 0); mask: conic-gradient(#000 calc(var(--n) * 1%), transparent 0); }
.ring-glow { position: absolute; inset: 0; filter: blur(calc(var(--w) * 1.4)); opacity: .65; }
.ring-ticks { position: absolute; inset: calc(var(--w) * -.6 - 7px); border-radius: 50%; background: repeating-conic-gradient(rgba(255, 255, 255, .22) 0 .45deg, transparent .45deg 5deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); animation: spin 90s linear infinite; }
.ring-comet { background: conic-gradient(transparent 0 78%, rgba(255, 255, 255, .26) 100%); animation: spin 6s linear infinite; }
.ring-cap-wrap { position: absolute; inset: 0; pointer-events: none; }
.ring-cap-end { transform: rotate(calc(var(--n) * 3.6deg)); }
.ring-cap { position: absolute; left: 50%; top: 0; width: var(--w); height: var(--w); margin-left: calc(var(--w) / -2); border-radius: 50%; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.ring-center strong { font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.ring-center small { font-size: 12px; color: var(--muted); }

/* Pictogrammes animés */
.hero-icon { flex: none; overflow: visible; }
.hero-glyph { filter: drop-shadow(0 0 3px rgba(124, 92, 255, .55)); }
.hero-draw { stroke-dasharray: 1; animation: hero-draw 1.6s var(--e-draw) both; }
.hero-comet { stroke-dasharray: .07 .93; animation: hero-comet 3.4s linear infinite; }
.hero-scan { animation: hero-scan 2.8s cubic-bezier(.45, 0, .55, 1) infinite alternate; }

/* Mouvement */
.rise { animation: rise .55s var(--e-standard) both; }
.sweep { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: sweep 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring-fill { from { --n: 0; } }
@keyframes hero-draw { from { stroke-dashoffset: 1; } }
@keyframes hero-comet { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hero-scan { from { transform: translateY(0); } to { transform: translateY(16px); } }
/* Travail en cours : barre de navigation, page en chargement, bouton occupé, lien cliqué */
.route-progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 3px; overflow: hidden; background: rgba(124, 92, 255, .18); }
.route-progress::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, #9B7BFF, transparent); animation: sweep 1.1s cubic-bezier(.45, 0, .55, 1) infinite; }
.page-loading { display: flex; align-items: center; gap: 14px; padding: 26px; border-radius: 24px; background: var(--glass); box-shadow: var(--glass-shadow); color: var(--text-2); }
.spinner { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); border-top-color: #9B7BFF; animation: spin .8s linear infinite; }
.spinner-sm { display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: middle; }
.button[aria-busy="true"]::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.source-card[aria-busy="true"] .source-collect::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.link-hint { flex: none; width: 14px; height: 14px; margin-left: auto; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: 0; }
.link-hint.is-pending { opacity: .8; animation: spin .8s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

@media (max-width: 900px) {
  /* Marque visible, puis projet et compte ; les étapes défilent sur leur propre rangée. */
  .app-shell { flex-direction: column; }
  .app-sidebar { position: static; height: auto; flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(20, 21, 42, .82); }
  .app-sidebar .brand { grid-column: 1 / -1; padding: 0; }
  .brand-logo { width: 99px; height: 30px; }
  .sidebar-label, .project-picker label, .sidebar-new, .sidebar-account > span:not(.avatar) { display: none; }
  .project-picker { padding: 0; }
  .project-picker select { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
  .sidebar-dashboard { grid-row: 2; }
  .project-picker { grid-column: 1; grid-row: 3; }
  .sidebar-account { grid-column: 2; grid-row: 3; margin: 0; padding: 4px; gap: 8px; background: transparent; border: 0; }
  .sidebar-account .text-button { font-size: 12px; }
  .sidebar-nav { grid-column: 1 / -1; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .sidebar-nav + .sidebar-nav { margin-top: -6px; }
  .sidebar-nav a { flex: none; min-height: 40px; padding: 0 12px; white-space: nowrap; }
  .link-hint:not(.is-pending) { display: none; }
  .main { padding-top: 22px; }
  .step-heading-main .hero-icon { width: 52px; height: 52px; }
}
@media (max-width: 520px) {
  .tile-row { grid-template-columns: 1fr 1fr; }
  .source-card { grid-template-columns: 34px 1fr; }
  .source-collect { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ring-comet, .hero-comet, .sweep { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.campaign-list li > a:first-child span { margin-right: 8px; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); }
.campaign-list blockquote { font-size: 13px; color: var(--text-2); padding-left: 10px; border-left: 2px solid rgba(124, 92, 255, .5); }

/* Site favicons beside sources: shown unaltered (no filter), sized to the text. */
.site-icon { display: inline-block; flex: none; width: 16px; height: 16px; margin-right: 6px; border-radius: 4px; vertical-align: -3px; }
.source-glyph .site-icon { width: 20px; height: 20px; margin: 0; }
.site-label { display: inline-flex; align-items: center; }
