:root {
  --fond: #010715; --tab: #020a1c; --ligne: #0a1630; --sep: #1a2744; --texte: #fff; --doux: #8f9bb3;
  --or: #e9c47a; --vic: #e9c47a; --def: #ff1f1f; --vert: #2fdc74; --rouge: #ff2e2e; --bleu: #2f6bff; --violet: #2b245d;
  --tier: #8f9bb3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.45 Inter, system-ui, sans-serif; overflow-x: hidden; }
img { display: block; }
a { color: inherit; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.halo { position: absolute; top: 0; left: 0; width: 100%; height: 760px; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 45% 60% at 0% 0%, #b3122bcc 0%, transparent 70%),
              radial-gradient(ellipse 45% 60% at 100% 0%, #1d4fd8cc 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 50% 10%, #3a4a7a55 0%, transparent 70%),
              linear-gradient(180deg, transparent 60%, var(--fond)); animation: respire 9s ease-in-out infinite alternate; }
@keyframes respire { from { opacity: .8; } to { opacity: 1; } }
.display { font-family: Anton, Impact, sans-serif; letter-spacing: .01em; }

/* Navigation : titre centré sur la page, 3 liens de chaque côté */
.barre { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.barre.defile { background: #010715e6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 #ffffff14, 0 10px 30px #0008; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "g logo d"; align-items: center; gap: 28px; padding-top: 26px; padding-bottom: 14px; transition: padding .25s; }
.barre.defile .nav { padding-top: 10px; padding-bottom: 10px; }
.barre.defile .nav .logo { font-size: clamp(20px, 1.8vw, 26px); }
.nav .logo { transition: font-size .25s; }
.nav-g a.actif, .nav-d a.actif { color: var(--or); box-shadow: inset 0 -2px 0 var(--or); }
.nav-g a, .nav-d a { padding: 6px 0; }
.haut { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--or); background: #010715e6; color: var(--or); font: 900 20px Inter; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.haut.visible { opacity: 1; pointer-events: auto; transform: none; }
.haut:hover { background: #e9c47a26; }
section[id], .filtres { scroll-margin-top: 90px; }
.nav-g, .nav-d { display: flex; gap: clamp(16px, 2.6vw, 48px); }
.nav-g { grid-area: g; justify-content: flex-end; } .nav-d { grid-area: d; justify-content: flex-start; }
.nav a { text-decoration: none; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 2px 8px #000; transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--or); }
.nav .logo { grid-area: logo; font-family: Anton, Impact, sans-serif; font-size: clamp(26px, 3.2vw, 44px); line-height: 1; text-align: center; max-width: 360px;
  color: #fff; text-shadow: 0 0 24px #e9c47a55, 0 3px 0 #b3122b; white-space: normal; }
.barre.defile .nav .logo { max-width: none; white-space: nowrap; }
.burger { display: none; }
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; grid-template-areas: "logo burger" "g g" "d d"; gap: 0 12px; padding-top: 12px; padding-bottom: 12px; }
  .barre { background: #010715d9; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .barre.defile .nav .logo, .nav .logo { font-size: 22px; }
  section[id], .filtres { scroll-margin-top: 76px; }
  .nav.ouvert { max-height: calc(100vh - 10px); overflow-y: auto; }
  .nav .logo { text-align: left; max-width: none; }
  .burger { display: grid; gap: 5px; grid-area: burger; background: none; border: 2px solid var(--or); border-radius: 8px; padding: 10px 9px; cursor: pointer; }
  .burger span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .nav.ouvert .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.ouvert .burger span:nth-child(2) { opacity: 0; }
  .nav.ouvert .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-g, .nav-d { display: none; flex-direction: column; gap: 0; }
  .nav.ouvert .nav-g, .nav.ouvert .nav-d { display: flex; }
  .nav.ouvert .nav-g { margin-top: 14px; }
  .nav-g a, .nav-d a { padding: 12px 4px; border-bottom: 1px solid #ffffff1f; font-size: 15px; box-shadow: none !important; }
}

/* Bloc « à la une » */
.une { display: grid; grid-template-columns: 220px 1fr 300px; gap: 28px; align-items: center; padding-top: 20px; padding-bottom: 36px; }
.dates { display: flex; flex-direction: column; font-weight: 800; }
.dates .lbl { color: var(--or); font-size: 15px; line-height: 1; }
.dates b { font-size: 18px; margin-bottom: 4px; }
.compte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; }
.compte div { border: 1.5px solid var(--or); border-radius: 8px; text-align: center; padding: 6px 0; background: #01071599; }
.compte b { display: block; font: 24px Anton, sans-serif; }
.compte span { font-size: 9px; color: var(--doux); text-transform: uppercase; letter-spacing: .08em; }
.maj { color: var(--doux); font-size: 12px; font-weight: 500; margin: 10px 0 0; }
.vedette { position: relative; border-radius: 6px; overflow: hidden; min-height: 330px; background: #000; box-shadow: 0 24px 40px -20px #000c; }
.vedette .fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.04); animation: zoom 18s ease-in-out infinite alternate; }
@keyframes zoom { to { transform: scale(1.12); } }
.vedette::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #010715ee 0%, #01071599 45%, transparent 75%), linear-gradient(0deg, #010715cc, transparent 40%); }
.vedette .contenu { position: relative; z-index: 1; padding: 26px 28px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.vedette .rangp { font: 52px/1 Anton, sans-serif; color: var(--or); }
.vedette .nomv { font: clamp(38px, 5vw, 64px)/1 Anton, sans-serif; text-transform: uppercase; }
.vedette .tag { display: inline-flex; gap: 6px; align-items: center; border: 1px solid #ffffff55; border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 800; width: fit-content; }
.vedette .elo { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 800; }
.vedette .elo img { width: 64px; height: 64px; }
.mini-stats { display: flex; gap: 22px; margin-top: 10px; }
.mini-stats span { display: block; font-size: 10px; font-weight: 800; color: var(--doux); }
.mini-stats b { font-size: 24px; font-weight: 900; }
.tops { display: flex; flex-direction: column; gap: 10px; }
.top-carte { display: flex; align-items: center; gap: 12px; border-top: 2px solid var(--tier); padding: 10px 0; }
.top-carte .n { font: 34px Anton, sans-serif; color: var(--or); width: 44px; }
.top-carte img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--tier); }
.top-carte b { display: block; font-weight: 800; }
.top-carte small { color: var(--doux); font-weight: 600; }

/* Filtres */
.filtres { display: flex; gap: 14px; align-items: stretch; justify-content: center; flex-wrap: wrap; padding: 10px 0 34px; }
.recherche { display: flex; flex-direction: column; justify-content: center; border: 2px solid var(--or); border-radius: 8px; padding: 4px 12px; width: 280px; }
.recherche span, .pill span { font-size: 11px; font-weight: 800; color: var(--doux); line-height: 1; }
.recherche input { background: none; border: 0; color: #fff; font: 600 14px Inter; outline: none; padding: 2px 0; }
.recherche input::placeholder { color: #5d6a85; }
.pill { border: 2px solid var(--or); border-radius: 8px; background: transparent; color: #fff; font: 900 13px Inter; padding: 8px 14px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; transition: background .2s; }
.pill.actif, .pill:hover { background: #e9c47a1f; }
.pill select { background: var(--fond); color: #fff; border: 0; font: 800 13px Inter; outline: none; cursor: pointer; }
.equipes { display: flex; border: 2px solid; border-image: linear-gradient(90deg, var(--bleu), var(--rouge)) 1; }
.equipes:empty { display: none; }
.equipes button { background: none; border: 0; color: #fff; font: 900 13px Inter; padding: 8px 16px; cursor: pointer; }
.equipes button.actif { background: #ffffff14; }

/* Tableau */
.tableau-cadre { background: var(--tab); border-radius: 4px; padding: 4px 12px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableau { width: 100%; border-collapse: collapse; min-width: 1180px; }
.tableau th { font-size: 12px; font-weight: 900; text-align: center; padding: 18px 8px 14px; border-bottom: 2px solid var(--sep); white-space: nowrap; user-select: none; }
.tableau th.g { text-align: left; }
.tableau th[data-tri] { cursor: pointer; }
.tableau th[data-tri]:hover, .tableau th.trie { color: var(--or); }
.filtre { display: inline-block; width: 11px; height: 8px; margin-left: 6px; vertical-align: middle;
  background: linear-gradient(currentColor, currentColor) 0 0 / 11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) 2px 3px / 7px 1.5px no-repeat, linear-gradient(currentColor, currentColor) 4px 6px / 3px 1.5px no-repeat; opacity: .8; }
.tableau td { padding: 14px 8px; border-bottom: 2px solid var(--sep); text-align: center; font-size: 17px; font-weight: 500; vertical-align: middle; }
.tableau tr.joueur { cursor: pointer; transition: background .2s; }
.tableau tr.joueur.apparait { animation: entree .4s ease both; }
.tableau tr.joueur:focus-visible { outline: 2px solid var(--or); outline-offset: -2px; }
.tableau tr.joueur.ouvert { background: var(--ligne); box-shadow: inset 3px 0 0 var(--or); }
.tableau tr.joueur.ouvert + tr.detail > td { border-bottom: 2px solid var(--or); }
.chev { display: inline-block; width: 8px; height: 8px; border-right: 2px solid var(--doux); border-bottom: 2px solid var(--doux); transform: rotate(-45deg); margin-right: 10px; transition: transform .22s ease, border-color .2s; vertical-align: 2px; }
.tableau tr.joueur:hover .chev { border-color: var(--or); }
.tableau tr.joueur.ouvert .chev { transform: rotate(45deg); border-color: var(--or); vertical-align: 4px; }
@keyframes entree { from { opacity: 0; transform: translateY(6px); } }
.tableau tr.joueur:hover, .tableau tr.joueur.ouvert { background: var(--ligne); }
.c-place { width: 64px; white-space: nowrap; font-weight: 900 !important; font-size: 18px !important; }
.player { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 16px; white-space: nowrap; }
.player img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--tier); }
.equipe-logo { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.equipe-logo i { display: block; margin: 0 auto 2px; width: 20px; height: 20px; border: 3px solid currentColor; border-radius: 3px; }
.compte-lien { font-weight: 900; font-size: 13px; text-decoration: none; text-align: left; display: block; max-width: 190px; }
.compte-lien:hover { color: var(--or); }
.elo { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; font-weight: 600; text-align: left; }
.elo img { width: 40px; height: 40px; object-fit: contain; }
.lps { font-weight: 800; font-size: 16px; line-height: 1.15; }
.lps .p { color: var(--vert); } .lps .m { color: var(--rouge); }
.kda-c { white-space: nowrap; font-size: 14px; font-weight: 600; }
.kda-c small { display: block; color: var(--or); font-weight: 800; font-size: 13px; }
.streak { display: flex; gap: 5px; justify-content: flex-start; }
.streak span { display: flex; flex-direction: column; gap: 3px; }
.streak img { width: 30px; height: 30px; filter: grayscale(.15); }
.streak span::after { content: ''; height: 4px; background: var(--b); }
.streak .V { --b: var(--vic); } .streak .D { --b: var(--def); } .streak .R { --b: #6b6b6b; }
.vide { color: var(--doux); }

/* Détail (ligne dépliée) */
tr.detail > td { padding: 0; text-align: left; background: #050f26; border-bottom: 0; }
tr.detail:not(.ouvert) > td { border-bottom: 0; }
.repli { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .24s ease, opacity .22s ease; }
tr.detail.ouvert .repli { grid-template-rows: 1fr; opacity: 1; }
.repli-in { overflow: hidden; min-height: 0; position: relative; }
.actions-detail { position: absolute; top: 12px; right: 16px; z-index: 2; display: flex; gap: 8px; }
tr.detail .contenu-d { padding: 22px 20px; display: grid; gap: 22px; }
.detail h3 { font: 900 12px Inter; letter-spacing: .08em; color: var(--or); margin: 0 0 10px; text-transform: uppercase; }
.colonnes { display: grid; grid-template-columns: 2.4fr 1fr; gap: 20px; }
.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.saison .tuiles { grid-template-columns: 1fr 1fr; }
.tuile { border: 1px solid var(--sep); border-radius: 6px; padding: 12px; background: var(--tab); }
.tuile .lib { font-size: 10px; font-weight: 900; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; }
.tuile .val { font: 28px/1.15 Anton, sans-serif; margin-top: 4px; }
.tuile .sous { font-size: 12px; color: var(--doux); }
.tuile.kda { grid-column: span 2; border-color: #e9c47a55; }
.tuile.kda .val { font-size: 36px; }
.tuile .val i { font-style: normal; color: var(--doux); margin: 0 4px; }
.r { color: var(--rouge); } .o { color: var(--or); } .g2 { color: var(--vert); }
.champs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.champ { display: flex; gap: 12px; align-items: center; border: 1px solid var(--sep); border-radius: 6px; padding: 10px; background: var(--tab); }
.champ img { width: 56px; height: 56px; }
.champ b { display: block; }
.champ .lc { font-size: 13px; color: var(--doux); }
.parties { display: grid; gap: 6px; }
.partie { display: grid; grid-template-columns: 4px 48px 1fr 1.2fr 1fr 1fr; gap: 14px; align-items: center; background: var(--tab); border: 1px solid var(--sep); padding-right: 12px; }
.partie::before { content: ''; align-self: stretch; background: var(--b); }
.partie.V { --b: var(--vic); } .partie.D { --b: var(--def); } .partie.R { --b: #6b6b6b; opacity: .7; }
.partie img { width: 48px; height: 48px; margin: 6px 0; }
.partie .res { font-weight: 900; text-transform: uppercase; font-size: 13px; }
.partie.V .res { color: var(--vic); } .partie.D .res { color: var(--def); }
.partie .gros { font: 20px Anton, sans-serif; }
.partie .gros i { font-style: normal; color: var(--doux); margin: 0 2px; }
.petit { color: var(--doux); font-size: 12px; }

/* Sections */
.bloc { margin-top: 56px; }
h2 { font: 34px Anton, sans-serif; text-transform: uppercase; margin: 0 0 14px; }
h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--or); margin-top: 6px; }
.note { color: var(--doux); font-size: 12px; margin: 10px 0 0; }
.stats-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.record { background: var(--tab); border: 1px solid var(--sep); border-top: 3px solid var(--or); padding: 16px; display: flex; gap: 12px; align-items: center; }
.record img { width: 52px; height: 52px; border-radius: 50%; }
.record .lib { font-size: 11px; font-weight: 900; color: var(--doux); text-transform: uppercase; }
.record .val { font: 26px Anton, sans-serif; color: var(--or); }
.histo { display: grid; gap: 6px; }
.histo .partie { grid-template-columns: 4px 48px 1.2fr 1fr 1.2fr 1fr 1fr; }
.graphe { background: var(--tab); padding: 14px; height: 360px; }
.alerte { background: #3a0a0d; border: 1px solid var(--rouge); color: #ffd2cf; padding: 12px 16px; margin-bottom: 20px; }
.pied { text-align: center; padding: 70px 16px 40px; color: var(--doux); font-size: 12px; }
.pied::before { content: ''; display: block; height: 1px; background: #ffffff33; margin: 0 auto 40px; max-width: 1300px; }
.pied-titre { font: 30px Anton, sans-serif; color: #fff; margin-bottom: 6px; }

@media (max-width: 1100px) {
  .une { grid-template-columns: 1fr; }
  .dates { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .compte { width: 100%; max-width: 360px; }
  .maj { width: 100%; }
  .tops { flex-direction: row; flex-wrap: wrap; }
  .top-carte { flex: 1 1 220px; }
  .colonnes { grid-template-columns: 1fr; }
  .stats-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .une { padding-top: 22px; gap: 20px; }
  .vedette { min-height: 280px; }
  .vedette .contenu { padding: 18px; }
  .mini-stats { gap: 14px; } .mini-stats b { font-size: 20px; }
  .recherche { width: 100%; }
  .tuiles { grid-template-columns: 1fr 1fr; }
  .champs, .stats-grille { grid-template-columns: 1fr; }
  .partie, .histo .partie { grid-template-columns: 4px 44px 1fr 1fr; row-gap: 0; padding: 4px 10px 4px 0; }
  .partie::before { grid-row: span 3; }
  .partie img { grid-row: span 3; width: 44px; height: 44px; }
  tr.detail .contenu-d { position: sticky; left: 0; width: calc(100vw - 32px); padding: 16px 12px; }
  .graphe { height: 280px; }
  h2 { font-size: 28px; }
}
.legal { font-size: 10px; max-width: 760px; margin: 8px auto 0; opacity: .75; }

/* Sections ajoutées : trophées, performances, forme, face-à-face, rôles */
.cartes-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.trophee { background: var(--tab); border: 1px solid var(--sep); border-top: 3px solid var(--or); padding: 16px; display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; align-items: center; }
.trophee .ico { grid-row: span 3; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: #e9c47a1a; border: 1px solid #e9c47a55; position: relative; }
.trophee .ico img { width: 52px; height: 52px; border-radius: 50%; }
.trophee .ico em { position: absolute; right: -6px; bottom: -6px; font-style: normal; font-size: 18px; }
.trophee .titre { font: 22px Anton, sans-serif; color: var(--or); text-transform: uppercase; line-height: 1.1; }
.trophee .qui { font-weight: 800; }
.trophee .quoi { color: var(--doux); font-size: 13px; }
.trophee.vide .titre { color: var(--doux); }
.sous-titre { font: 900 13px Inter; letter-spacing: .08em; color: var(--or); text-transform: uppercase; margin: 26px 0 10px; }
.table-simple { overflow-x: auto; background: var(--tab); }
.table-simple table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table-simple th { font-size: 11px; font-weight: 900; text-align: left; padding: 12px 10px; border-bottom: 2px solid var(--sep); white-space: nowrap; color: var(--doux); }
.table-simple td { padding: 10px; border-bottom: 1px solid var(--sep); font-size: 14px; white-space: nowrap; }
.table-simple td.mieux { color: var(--or); font-weight: 800; }
.table-simple .joueur-c { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.table-simple .joueur-c img { width: 28px; height: 28px; border-radius: 50%; }
.estim { color: var(--doux); font-style: italic; }
.calendrier { overflow-x: auto; background: var(--tab); padding: 14px; }
.cal-ligne { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 10px; margin-bottom: 6px; min-width: 760px; }
.cal-ligne b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-jours { display: flex; gap: 3px; }
.cal-jours span { width: 12px; height: 12px; border-radius: 2px; background: #0d1a33; flex: none; }
.cal-jours span[data-n="1"] { background: #5c4a22; } .cal-jours span[data-n="2"] { background: #8c6f2f; }
.cal-jours span[data-n="3"] { background: #c29a45; } .cal-jours span[data-n="4"] { background: #e9c47a; }
.cal-jours span.futur { background: transparent; outline: 1px dashed #1a2744; }
.cal-legende { display: flex; gap: 6px; align-items: center; color: var(--doux); font-size: 11px; margin-top: 8px; }
.cal-legende .cal-jours span { width: 10px; height: 10px; }
.comparateur { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; color: var(--doux); font-weight: 700; }
.comparateur select { background: var(--tab); color: #fff; border: 2px solid var(--or); border-radius: 8px; padding: 8px 10px; font: 700 14px Inter; }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.liste-champs { display: grid; gap: 6px; }
.lc-ligne { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 10px; align-items: center; background: var(--tab); padding: 6px 10px; border: 1px solid var(--sep); font-size: 14px; }
.lc-ligne img { width: 36px; height: 36px; }
.pas-donnees { color: var(--doux); font-style: italic; padding: 14px; }
@media (max-width: 640px) { .deux-col { grid-template-columns: 1fr; } .cal-ligne { grid-template-columns: 90px 1fr; } }

/* Boutons communs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 8px; border: 2px solid #e9c47a80;
  background: #010715; color: #fff; font: 800 13px Inter; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; transition: border-color .18s, background .18s, color .18s, transform .1s; }
.btn:hover { border-color: var(--or); background: #e9c47a14; }
.btn:focus-visible, .liste-bouton:focus-visible, .recherche:focus-within { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px #e9c47a40; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-fermer { min-height: 34px; padding: 4px 12px; font-size: 12px; }
.recherche { border-color: #e9c47a80; transition: border-color .18s, box-shadow .18s; min-height: 44px; }
.recherche:hover { border-color: var(--or); }
.champ-filtre { display: flex; flex-direction: column; gap: 2px; }
.champ-lib { font-size: 11px; font-weight: 800; color: var(--doux); line-height: 1; padding-left: 2px; }
.filtres { align-items: flex-end; }

/* Menu déroulant personnalisé */
.liste { position: relative; min-width: 200px; }
.liste-bouton { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 8px; border: 2px solid #e9c47a80;
  background: #010715; color: #fff; font: 700 14px Inter; cursor: pointer; text-align: left; transition: border-color .18s, box-shadow .18s; }
.liste-bouton:hover, .liste.ouverte .liste-bouton { border-color: var(--or); }
.liste-valeur { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.liste-valeur span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste img, .sans-icone { width: 24px; height: 24px; border-radius: 6px; flex: none; object-fit: contain; }
.sans-icone { display: inline-block; background: var(--sep); }
.liste-fleche { width: 8px; height: 8px; border-right: 2px solid var(--or); border-bottom: 2px solid var(--or); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; flex: none; }
.liste.ouverte .liste-fleche { transform: rotate(-135deg) translate(-2px, -2px); }
.liste-pop { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(360px, 92vw);
  background: #071230; border: 1px solid #e9c47a66; border-radius: 10px; box-shadow: 0 18px 40px #000b; padding: 6px;
  opacity: 0; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease; }
.liste-pop.visible { opacity: 1; transform: none; }
.liste-tete { display: none; }
.liste-recherche { width: 100%; margin: 2px 0 6px; padding: 9px 10px; border-radius: 6px; border: 1px solid var(--sep); background: #010715; color: #fff; font: 600 14px Inter; outline: none; }
.liste-recherche:focus { border-color: var(--or); }
.liste-options { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; outline: none; }
.liste-options li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; min-height: 42px; }
.liste-options li.actif { background: #e9c47a1f; }
.liste-options li[aria-selected="true"] { color: var(--or); }
.liste-lib { flex: 1; display: flex; flex-direction: column; }
.liste-lib small { color: var(--doux); font-size: 11px; font-weight: 600; }
.coche { opacity: 0; color: var(--or); font-weight: 900; }
.liste-options li[aria-selected="true"] .coche { opacity: 1; }
.liste-vide { color: var(--doux); cursor: default !important; }
.comparateur .liste { min-width: 220px; }
@media (max-width: 640px) {
  .liste { width: 100%; }
  .filtres > * { width: 100%; }
  .filtres { align-items: stretch; }
  .liste-pop { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: none; border-radius: 16px 16px 0 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform .22s ease, opacity .22s; max-height: 75vh; display: flex; flex-direction: column; }
  .liste-pop.visible { transform: none; }
  .liste-tete { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 10px; font: 900 13px Inter; text-transform: uppercase; color: var(--or); }
  .liste-fermer { background: none; border: 2px solid #e9c47a80; color: #fff; border-radius: 8px; width: 40px; height: 40px; font-size: 16px; cursor: pointer; }
  .liste-options { max-height: none; flex: 1; }
  .liste-options li { min-height: 50px; font-size: 16px; }
  body.feuille-ouverte::after { content: ''; position: fixed; inset: 0; background: #0009; z-index: 55; }
  .comparateur { flex-direction: column; align-items: stretch; }
  .actions-detail { justify-content: flex-end; padding: 12px 12px 0; position: sticky; left: 0; width: calc(100vw - 32px); }
}

/* Outils du graphique */
.graphe-outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.segments { display: inline-flex; border: 2px solid #e9c47a80; border-radius: 8px; overflow: hidden; }
.seg { background: #010715; color: #c7cfdf; border: 0; padding: 0 14px; min-height: 40px; font: 800 12px Inter; text-transform: uppercase; cursor: pointer; transition: background .18s, color .18s; }
.seg + .seg { border-left: 1px solid #e9c47a40; }
.seg:hover { background: #e9c47a14; color: #fff; }
.seg[aria-pressed="true"] { background: #e9c47a26; color: var(--or); }
.seg:focus-visible { outline: 2px solid var(--or); outline-offset: -2px; }
.graphe { touch-action: pan-y; }
@media (max-width: 640px) { .graphe-outils { flex-direction: column; align-items: stretch; } .segments { width: 100%; } .seg { flex: 1; padding: 0 6px; font-size: 11px; } }
.cmp th small { display: block; color: var(--doux); font-weight: 600; text-transform: none; }
.ecart.neutre { color: var(--doux); }
