/* Copy Trading Index — clair et sobre, façon ouvrage de référence ; clair par défaut, sombre au choix (js/theme.js). */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --bg: #FFFFFF; --surface: #F6F7F5; --line: #E2E5E0; --line-strong: #C9CEC8; --text: #15181A; --muted: #5A615D;
  --accent: #1E6B4E; --accent-hover: #17573F; --accent-soft: #E6F1EB; --on-accent: #FFFFFF; --warn: #8A5A00;
}
:root[data-theme="dark"] { color-scheme: dark;
  --bg: #101312; --surface: #171B19; --line: #262C29; --line-strong: #39413D; --text: #E7EBE9; --muted: #99A39E;
  --accent: #63C295; --accent-hover: #7FD1AA; --accent-soft: #1B2A23; --on-accent: #0D1310; --warn: #E0B25A; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; color: var(--accent-hover); }
h1, h2, h3 { font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 34px; margin: 0 0 12px; } h2 { font-size: 22px; margin: 40px 0 12px; } h3 { font-size: 17px; margin: 22px 0 6px; }
code { font-size: 0.92em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.small { font-size: 13px; color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); max-width: 760px; margin: 0 0 8px; }
.lead-full { max-width: none; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 6px 10px; z-index: 10; }

/* En-tête et pied */
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: var(--bg); }
html { scroll-padding-top: 80px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.mark { width: 28px; height: 28px; flex: none; } .mark rect { fill: var(--accent); } .mark path { fill: none; stroke-linecap: round; stroke-linejoin: round; } .mark-back { stroke: var(--text); stroke-width: 4; } .mark-line { stroke: var(--on-accent); stroke-width: 4.5; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; } .top nav a { color: var(--muted); font-weight: 500; font-size: 15px; } .top nav a:hover { color: var(--text); }
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun, [data-theme="dark"] .theme-toggle .i-moon { display: none; } [data-theme="dark"] .theme-toggle .i-sun { display: block; }
/* Feedback (série 230) : enveloppe à droite de la lune/soleil, même format ; panneau plein écran (js/feedback.js). */
.fb-button { margin-left: -8px; }
.foot-fb a { cursor: pointer; }
.fb-screen { position: fixed; inset: 0; z-index: 50; background: var(--bg); color: var(--text); overflow-y: auto; }
.fb-bar { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.fb-in { max-width: 640px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.fb-in strong { font-size: 18px; margin-right: auto; }
.fb-x { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--muted); cursor: pointer; padding: 0; }
.fb-x:hover { color: var(--text); border-color: var(--accent); } .fb-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fb-body { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
.fb-body h2 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
.fb-intro { color: var(--muted); margin: 0 0 22px; }
.fb-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.fb-types button { font: inherit; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); cursor: pointer; }
.fb-types button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fb-f { display: block; margin: 0 0 16px; }
.fb-f span { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; } .fb-f small { color: var(--muted); font-weight: 400; }
.fb-f input, .fb-f select, .fb-f textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text); }
.fb-f textarea { min-height: 160px; resize: vertical; }
.fb-f input:focus, .fb-f select:focus, .fb-f textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.fb-send { font: inherit; font-size: 16px; font-weight: 500; padding: 11px 22px; border-radius: 8px; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.fb-send:hover { background: var(--accent-hover); } .fb-send:disabled { opacity: .6; cursor: default; }
.fb-status { color: var(--warn); font-size: 14px; margin: 10px 0 0; } .fb-status:empty { display: none; }
.fb-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.fb-agents { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; } .fb-agents code { font-size: 13px; }
.fb-done { text-align: center; padding: 64px 0; }
.fb-ok { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 24px; }
body.fb-open { overflow: hidden; }
main { padding: 36px 0 64px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; } .foot p { margin: 6px 0; } .foot b { color: var(--text); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

/* Recherche, listes, filtres */
.hero { margin-bottom: 26px; }
.search label { display: block; font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.search input { width: 100%; font: inherit; font-size: 17px; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.understood { margin: 8px 0 0; font-size: 14px; color: var(--accent); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 500; color: var(--text); background: var(--bg); }
.chip:hover { text-decoration: none; border-color: var(--accent); color: var(--text); }
.chip.more { border-style: dashed; color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.n { font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 0 7px; }
.chip[aria-pressed="true"] .n { background: transparent; color: var(--on-accent); }
.facets { margin: 10px 0 4px; } .facets summary { cursor: pointer; color: var(--accent); font-weight: 500; font-size: 15px; }
.facet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 22px; padding: 14px 0 4px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; } legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
fieldset label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 2px 0; cursor: pointer; }
fieldset input { accent-color: var(--accent); width: 16px; height: 16px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.bar p { margin: 0; color: var(--muted); } #count { color: var(--text); font-weight: 600; }
button.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0 0 0 10px; }
.view { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.view button { font: inherit; font-size: 14px; font-weight: 500; padding: 6px 14px; background: var(--bg); color: var(--muted); border: 0; cursor: pointer; }
.view button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.empty { color: var(--warn); }

/* Cartes */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 14px; display: flex; flex-direction: column; background: var(--bg); }
.card h2, .card h3 { margin: 0 0 2px; font-size: 19px; } .card h2 a, .card h3 a { color: var(--text); }
.kind { font-size: 13px; color: var(--muted); margin: 0 0 8px; } .status { color: var(--warn); font-weight: 500; }
.card-head { display: flex; align-items: flex-start; gap: 12px; } .card-head > div { min-width: 0; }
/* Tuile de logo, la même pour toutes : carré à coins arrondis sur fond blanc (logo officiel) ou initiale (sans kit). */
.logo { flex: none; width: 48px; height: 48px; border-radius: 22%; border: 1px solid var(--line); background: #FFFFFF; object-fit: cover; }
.logo.mono { display: inline-grid; place-items: center; background: var(--surface); color: var(--muted); font-weight: 600; font-size: 20px; line-height: 1; }
.fiche-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; } .fiche-head h1 { margin: 0; }
.fiche-head .logo { width: 56px; height: 56px; } .fiche-head .logo.mono { font-size: 24px; }
.line { margin: 0 0 12px; font-size: 15px; }
.facts { margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.facts div { min-width: 0; } .facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .facts dd { margin: 0; font-size: 14px; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* Tableaux */
/* Le tableau défile dans son cadre (80 % de l'écran) : l'en-tête reste visible et la barre de défilement horizontale
   aussi. Ombre à droite tant qu'il reste des colonnes à voir (le dégradé « local » la couvre une fois au bout). */
.table-wrap { overflow: auto; max-height: 80vh; border: 1px solid var(--line); border-radius: 12px; margin: 16px 0;
  background: linear-gradient(to left, var(--bg) 40%, transparent) right / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--text) 28%, transparent), transparent) right / 22px 100% no-repeat scroll, var(--bg); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
.compare caption { text-align: left; padding: 10px 14px; color: var(--muted); font-size: 13px; caption-side: bottom; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.compare thead th { position: sticky; top: 0; z-index: 2; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface); white-space: nowrap; border-bottom: 0; box-shadow: inset 0 -1px var(--line); }
.compare thead th:first-child { left: 0; z-index: 3; }
.compare tbody th { position: sticky; left: 0; z-index: 1; background: var(--bg); min-width: 170px; }
.compare td { min-width: 130px; } .compare td.wide { min-width: 210px; }

/* Fiche */
.fiche-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 14px 0 22px; font-size: 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 15px; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.summary { font-size: 17px; line-height: 1.65; max-width: 820px; margin: 0 0 16px; }
.unique { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 0 8px 8px 0; max-width: 820px; }
.facts-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 900px; }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.facts-table th { width: 30%; font-weight: 500; color: var(--muted); background: var(--surface); }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }
.facts-table .note { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; max-width: 900px; }
.pros, .cons { list-style: none; padding: 0; } .pros li, .cons li { padding: 4px 0 4px 22px; position: relative; }
.pros li::before { content: "+"; position: absolute; left: 4px; color: var(--accent); font-weight: 600; }
.cons li::before { content: "−"; position: absolute; left: 4px; color: var(--warn); font-weight: 600; }
.sources ol { padding-left: 20px; font-size: 14px; }
.notes { padding-left: 20px; max-width: 900px; } .notes li { margin: 0 0 10px; }

/* Listes, méthode */
.list-links { list-style: none; padding: 0; columns: 2 320px; gap: 32px; } .list-links li { break-inside: avoid; padding: 5px 0; }
.list-links.big { columns: 1; } .list-links.big li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.prose { max-width: 760px; } .faq { max-width: 820px; } .faq p { margin: 0 0 8px; }

@media (max-width: 760px) {
  h1 { font-size: 27px; } .lead { font-size: 16px; }
  .cards { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; }
  .facts-table, .facts-table tbody, .facts-table tr, .facts-table th, .facts-table td { display: block; width: auto; }
  .facts-table th { border-bottom: 0; padding: 8px 14px 6px; font-size: 13px; }
  .facts-table tr:last-child th { border-bottom: 0; }
  .presets { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 6px; padding: 0 16px 4px; scrollbar-width: none; }
  .presets::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  html { scroll-padding-top: 100px; }
  .top .wrap { gap: 0 12px; padding-top: 10px; }
  .brand { margin-right: auto; }
  .fb-button { margin-left: -4px; } .fb-body h2 { font-size: 23px; }
  .top nav { order: 3; width: 100%; margin-left: 0; gap: 16px; flex-wrap: nowrap; overflow-x: auto; padding: 4px 0 10px; } .top nav a { white-space: nowrap; font-size: 14px; }
}
