/* ============================================================================
   PaperTrade — terminal de marché personnel
   Direction artistique V2.2 : outil financier sobre et dense.
   Sombre, sans effets, la couleur servant uniquement l'information
   (hausse, baisse, alerte, information, état neutre).
   ========================================================================== */

:root {
  /* surfaces : fond très sombre, panneaux légèrement plus clairs */
  --bg: #06080b;
  --surface: #0b0f14;
  --surface-2: #0f141b;
  --surface-3: #141b24;
  --surface-hover: #111823;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .13);

  /* texte */
  --text: #e9eff7;
  --text-dim: #93a2b3;
  --text-faint: #5d6b7d;

  /* fonctions de couleur */
  --accent: #38bdf8;          /* bleu froid : éléments interactifs */
  --accent-dim: rgba(56, 189, 248, .14);
  --up: #21c97a;
  --up-dim: rgba(33, 201, 122, .13);
  --down: #f0575f;
  --down-dim: rgba(240, 87, 95, .13);
  --warn: #f0a13a;
  --warn-dim: rgba(240, 161, 58, .13);

  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 6px;
  --radius-sm: 5px;
  --row: 34px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .5);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.005em; }
::selection { background: var(--accent-dim); }

* { scrollbar-width: thin; scrollbar-color: #232c37 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #232c37; border-radius: 6px; }
*::-webkit-scrollbar-track { background: transparent; }

/* Accessibilité : contour de focus net et cohérent partout */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-radius: var(--radius-sm);
}

/* Chiffres alignés : indispensable dans un outil financier */
.num, .stat-value, .kpi-value, .mono, td.num, .price, .change {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------------------------------------------------------------- app bar */
.appbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--accent);
}
.brand-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--text);
}

.search { position: relative; flex: 1; max-width: 520px; }
.search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); font-size: 14px; pointer-events: none;
}
.search input {
  width: 100%;
  height: 32px;
  padding: 0 10px 0 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  transition: border-color .12s var(--ease), background .12s var(--ease);
}
.search input::placeholder { color: var(--text-faint); }
.search input:hover { border-color: var(--line-strong); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--surface-3); }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-y: auto;
  max-height: 420px;
}
.sr-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.active { background: var(--surface-3); }
.sr-item .sym { font-size: 13px; }
.sr-empty { padding: 12px; color: var(--text-faint); font-size: 12.5px; }

.appbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }

.sources {
  display: flex; align-items: center; gap: 7px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); flex: none; }
.dot.ok { background: var(--up); }
.dot.warn { background: var(--warn); }
.dot.err { background: var(--down); }

.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  transition: border-color .12s var(--ease), color .12s var(--ease), background .12s var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface-3); }
.icon-btn[disabled] { opacity: .45; cursor: default; }
.icon-btn.mini { width: 22px; height: 20px; font-size: 9px; }
.icon-btn.mini[disabled] { opacity: .25; }

/* ------------------------------------------ sélecteur de partie active */
.party-host { position: relative; }
.party-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 12.5px;
  transition: border-color .12s var(--ease), background .12s var(--ease);
}
.party-btn:hover { border-color: var(--accent); background: var(--surface-3); }
.party-btn .pb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.party-btn .pb-dot.inactive { background: var(--text-faint); }
.party-btn .pb-label { color: var(--text-faint); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; }
.party-btn .pb-name { font-weight: 600; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-btn .pb-value { color: var(--text-dim); }
.party-btn .pb-caret { color: var(--text-faint); font-size: 9px; }

.party-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 90;
}
.party-menu .pm-head {
  padding: 8px 12px;
  font-size: 10.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
}
.party-menu .pm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.party-menu .pm-item:last-child { border-bottom: none; }
.party-menu .pm-item:hover { background: var(--surface-3); }
.party-menu .pm-item.current { background: var(--accent-dim); }
.party-menu .pm-name { font-weight: 600; font-size: 12.5px; }
.party-menu .pm-meta { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.party-menu .pm-right { text-align: right; font-size: 12px; }
.party-menu .pm-foot {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
}
.party-menu .pm-foot:hover { background: var(--surface-3); }

/* ------------------------------------------------------------- navigation */
.nav {
  position: sticky;
  top: 52px;
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  height: 42px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 13px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-faint);
  cursor: pointer;
  white-space: nowrap;
  transition: color .12s var(--ease);
}
.nav .nav-item:hover { color: var(--text-dim); }
.nav .nav-item.active { color: var(--text); }
.nav .nav-item.active::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.nav .nav-count {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-faint);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0 4px;
  line-height: 15px;
}

.subnav {
  position: sticky;
  top: 94px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 40px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.subnav[hidden] { display: none; }
.subnav .sub-item {
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.subnav .sub-item:hover { background: var(--surface-3); color: var(--text); }
.subnav .sub-item.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

/* ------------------------------------------------------------------ vues */
.view {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.page-head h1 { font-size: 19px; letter-spacing: -.01em; }
.page-head .sub { color: var(--text-dim); font-size: 12.5px; margin-top: 3px; }
.page-head .head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.panel-head .sub { font-size: 11.5px; color: var(--text-faint); }
.panel-body { padding: 12px; }
.panel-tools { display: flex; align-items: center; gap: 8px; }

/* bandeau d'indicateurs : une seule surface, quatre cellules */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.kpi {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}
.kpi:last-child { border-right: none; }
.kpi-label {
  font-size: 10.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}
.kpi-value { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.kpi-value.small { font-size: 17px; }
.kpi-sub { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.kpi.hero .kpi-value { font-size: 26px; }

/* deux colonnes : graphique + panneau d'ordre */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}
.split.wide-right { grid-template-columns: minmax(0, 1fr) 380px; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ------------------------------------------------------------------ tables */
table { width: 100%; border-collapse: collapse; }
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--surface-2);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { color: var(--text-dim); }
thead th .caret { margin-left: 4px; font-size: 8px; opacity: .55; }
thead th.sorted { color: var(--text); }
thead th.sorted .caret { color: var(--accent); opacity: 1; }

tbody td {
  height: var(--row);
  padding: 5px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--surface-hover); }
tbody tr.active-row { background: var(--accent-dim); }
tbody tr.active-row td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
td.num, th.num { text-align: right; }
td.wrap, th.wrap { white-space: normal; }

.sym { font-weight: 500; }
.sub-name { font-size: 10.5px; color: var(--text-faint); margin-top: 1px; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--text-dim); }

/* pastilles d'état (achat / vente / statut) */
.tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.tag.buy { color: var(--up); background: var(--up-dim); border-color: rgba(33, 201, 122, .26); }
.tag.sell { color: var(--down); background: var(--down-dim); border-color: rgba(240, 87, 95, .26); }
.tag.neutral { color: var(--text-dim); background: var(--surface-3); border-color: var(--line-strong); }
.tag.accent { color: var(--accent); background: var(--accent-dim); border-color: rgba(56, 189, 248, .26); }
.tag.warn { color: var(--warn); background: var(--warn-dim); border-color: rgba(240, 161, 58, .26); }

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease);
}
.btn:hover { background: var(--surface-3); border-color: var(--accent); }
.btn:active { background: var(--surface-hover); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #04121c; font-weight: 600; }
.btn.primary:hover { background: #5cc9fa; border-color: #5cc9fa; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { height: 26px; padding: 0 9px; font-size: 11.5px; }
.btn.large { height: 36px; font-size: 13.5px; padding: 0 16px; }

.chip {
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: all .12s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-3); }
.chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--text); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.ranges { display: flex; gap: 3px; }
.range-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .12s var(--ease);
}
.range-btn:hover { background: var(--surface-3); color: var(--text); }
.range-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--text); }

.star-btn {
  background: none; border: none; padding: 0 2px;
  color: var(--text-faint); font-size: 14px; line-height: 1; cursor: pointer;
  transition: color .12s var(--ease);
}
.star-btn:hover { color: var(--warn); }
.star-btn.on { color: var(--warn); }

/* -------------------------------------------------------- page instrument */
.instr-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.instr-title h1 { font-size: 22px; }
.instr-title .meta { color: var(--text-dim); font-size: 12.5px; margin-top: 4px; }
.instr-price { margin-left: auto; text-align: right; }
.instr-price .price { font-size: 32px; font-weight: 600; letter-spacing: -.025em; }
.instr-price .change { font-size: 14px; margin-top: 2px; }
.instr-price .freshness { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }

.chart-wrap { position: relative; height: 420px; padding: 0 4px 4px; }
.chart-wrap.compact { height: 300px; }
.chart-legend {
  position: absolute;
  top: 10px; left: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
  white-space: pre;
  pointer-events: none;
}
.chart-note { padding: 36px 16px; color: var(--text-faint); text-align: center; font-size: 12.5px; }
.data-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-faint);
}
.data-info b { color: var(--text-dim); font-weight: 500; }

/* ------------------------------------------------------- panneau d'ordres */
.order-panel { display: flex; flex-direction: column; }
.order-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px 12px 0;
}
.order-switch button {
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .12s var(--ease);
}
.order-switch button:hover { color: var(--text); }
.order-switch button.buy.active { background: var(--up-dim); border-color: var(--up); color: var(--up); }
.order-switch button.sell.active { background: var(--down-dim); border-color: var(--down); color: var(--down); }
.order-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > label {
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input, .field select {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.field input:hover, .field select:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field .hint { font-size: 11.5px; color: var(--text-faint); }
.field .error { font-size: 12px; color: var(--down); }
.field .error::before { content: "⚠ "; }

.stepper { display: flex; align-items: center; gap: 5px; }
.stepper button {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .12s var(--ease), background .12s var(--ease);
}
.stepper button:hover { border-color: var(--accent); background: var(--surface-3); }
.stepper input { flex: 1; text-align: center; font-weight: 600; }

.quote-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}
.quote-box .line { display: flex; justify-content: space-between; gap: 10px; }
.quote-box .line span { color: var(--text-dim); }
.quote-box .line b { font-variant-numeric: tabular-nums; font-weight: 600; }
.quote-box .line.total b { font-size: 14px; }
.quote-box .line.sep { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }

.order-actions { display: flex; gap: 8px; }
.order-actions .btn { flex: 1; height: 34px; }
.btn-confirm-buy { background: var(--up); border-color: var(--up); color: #04140c; font-weight: 700; }
.btn-confirm-buy:hover { background: #35dd8c; border-color: #35dd8c; }
.btn-confirm-sell { background: var(--down); border-color: var(--down); color: #1a0405; font-weight: 700; }
.btn-confirm-sell:hover { background: #ff6f77; border-color: #ff6f77; }

.confirm-step {
  border: 1px solid var(--warn);
  background: var(--warn-dim);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  color: #ffdfae;
}
.position-summary {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.position-summary b { color: var(--text); }

/* ---------------------------------------------------------- sparklines */
.spark { display: block; width: 74px; height: 22px; overflow: visible; }
.spark path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.spark .spark-up { stroke: var(--up); }
.spark .spark-down { stroke: var(--down); }
.spark .spark-flat { stroke: var(--text-faint); }
.spark .spark-fill { fill: var(--up-dim); stroke: none; }
.spark .spark-fill.down { fill: var(--down-dim); }
.spark-empty { display: inline-block; width: 74px; height: 22px; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------------ modale */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 5, 8, .7);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim); }
.modal-head .close { background: none; border: none; color: var(--text-faint); font-size: 15px; cursor: pointer; }
.modal-head .close:hover { color: var(--text); }

/* ------------------------------------------------------------------ toasts */
.toast-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow);
  font-size: 12.5px;
}
.toast.success { border-left-color: var(--up); }
.toast.error { border-left-color: var(--down); }
.toast .t-title { font-weight: 600; margin-bottom: 3px; }
.toast .t-lines { color: var(--text-dim); font-size: 12px; line-height: 1.45; }
.toast .t-lines b { color: var(--text); font-variant-numeric: tabular-nums; }
.toast.leaving { opacity: 0; transition: opacity .18s var(--ease); }

/* ------------------------------------------------- états vides / erreurs */
.empty { padding: 26px 14px; text-align: center; color: var(--text-faint); font-size: 12.5px; }
.empty .btn { margin-top: 12px; }
.error-panel {
  border: 1px solid rgba(240, 87, 95, .35);
  background: var(--down-dim);
  color: #ffc9cd;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
}
.warn-banner {
  border: 1px solid rgba(240, 161, 58, .3);
  background: var(--warn-dim);
  color: #ffd7a1;
  border-radius: var(--radius);
  padding: 9px 12px;
  margin-bottom: 14px;
  font-size: 12px;
}

/* bandeaux de chargement (sans animation permanente hors chargement) */
.load-strip { height: 1px; background: var(--line); margin-bottom: 12px; overflow: hidden; }
.load-strip::after {
  content: "";
  display: block;
  width: 30%;
  height: 1px;
  background: var(--accent);
  animation: slide 1.1s linear infinite;
}
.load-block { height: 180px; border-radius: var(--radius); background: var(--surface-2); opacity: .5; }

@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ footer */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 11px;
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .split, .split.wide-right { grid-template-columns: minmax(0, 1fr); }
  .chart-wrap { height: 360px; }
}

@media (max-width: 1024px) {
  .appbar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav, .subnav { top: 0; position: static; }
  .view { padding: 12px; }
  .party-btn .pb-value { display: none; }
}

@media (max-width: 760px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2n) { border-right: none; }
  .instr-price { text-align: left; margin-left: 0; }
  .chart-wrap { height: 300px; }
  .table-scroll table { min-width: 640px; }
  .toast-root { left: 12px; right: 12px; bottom: 12px; max-width: none; }

  /* Téléphone : rien ne doit être coupé dans la barre du haut. */
  .appbar { gap: 8px; padding: 8px 10px; }
  .appbar-right { gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
  .brand-name { display: none; }              /* le logo suffit */
  .sources #status-text { display: none; }    /* la pastille d'état reste visible */
  .party-btn .pb-label { display: none; }
  .party-btn .pb-name { max-width: 110px; }

  /* Navigation et sous-navigation : défilement horizontal assumé, plus compact */
  .nav { padding: 0 10px; }
  .nav .nav-item { padding: 0 9px; letter-spacing: .6px; }
  .subnav { padding: 0 10px; }
  .msbar { padding: 5px 10px; gap: 8px; }
  .view { padding: 10px; }
  .page-head { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 430px) {
  .party-btn .pb-name { max-width: 88px; }
  .nav .nav-item { padding: 0 7px; font-size: 11px; }
  .kpis { grid-template-columns: 1fr; }
  .panel-head { flex-wrap: wrap; gap: 6px; }
}

.table-scroll { overflow-x: auto; }

/* ============================================================================
   V2.4 — État des marchés : bandeau permanent, badges, frise hebdomadaire
   Objectif : savoir d'un coup d'œil si les prix peuvent bouger, ou pas.
   ========================================================================== */

.msbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 11.5px;
  overflow: hidden;
}
.msbar[hidden] { display: none; }
.msbar.tout-ferme { background: linear-gradient(180deg, rgba(240,161,58,.05), transparent); }

/* seules les pastilles défilent : le résumé, le lien et la fermeture restent visibles */
.ms-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}
.ms-pills::-webkit-scrollbar { display: none; }

.ms-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-dim);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.ms-pill:hover { border-color: var(--line-strong); color: var(--text); }
.ms-pill.open {
  color: var(--text);
  border-color: rgba(33, 201, 122, .32);
  background: var(--up-dim);
}
.ms-pill .dot { background: var(--text-faint); }
.ms-pill.open .dot { background: var(--up); box-shadow: 0 0 5px rgba(33,201,122,.7); }
.ms-pill .ms-name { font-weight: 600; }
.ms-pill .ms-when { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.ms-pill.open .ms-when { color: var(--up); }

.ms-resume { color: var(--text-dim); white-space: nowrap; }
.ms-resume b { color: var(--text); font-variant-numeric: tabular-nums; }
.ms-resume b.up { color: var(--up); }
.ms-link { margin-left: auto; color: var(--accent); white-space: nowrap; }
.ms-link:hover { text-decoration: underline; }
.ms-close {
  flex: none;
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
}
.ms-close:hover { color: var(--text); }

/* Badge de séance (fiche instrument, panneau d'ordre) */
.session-badge { margin-top: 4px; }
.mkt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-faint);
  font-size: 10.5px;
  white-space: nowrap;
}
.mkt-badge .dot { background: currentColor; }
.mkt-badge.open { color: var(--up); border-color: rgba(33,201,122,.3); background: var(--up-dim); }
.mkt-badge.closed { color: var(--text-faint); }

/* Page « Séances & horaires » */
.mkt-help {
  margin: 0;
  padding: 10px 12px 0;
  color: var(--text-dim);
  font-size: 11.5px;
  max-width: 90ch;
}
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 10px;
  padding: 12px;
}
.mkt-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.mkt-card.open { border-color: rgba(33, 201, 122, .3); }
.mkt-card.highlight { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }
.mkt-card header { display: flex; align-items: center; gap: 8px; }
.mkt-card header h3 { font-size: 12.5px; }
.mkt-card header .dot { background: var(--text-faint); }
.mkt-card header .dot.ok { background: var(--up); }
.mkt-count { margin-left: auto; font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }
.mkt-state { font-size: 11.5px; color: var(--text-dim); }
.mkt-state .ms-when { font-variant-numeric: tabular-nums; }
.mkt-clock { color: var(--text-faint); }
.mkt-clock b { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.mkt-detail { font-size: 11px; color: var(--text-faint); }
.mkt-detail b { color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* Frise 7 jours × 24 h */
.frise { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.frise-jours { display: flex; gap: 3px; }
.frise-jour { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.frise-label { font-size: 9px; color: var(--text-faint); text-align: center; }
.frise-jour.today .frise-label { color: var(--accent); font-weight: 600; }
.frise-barre {
  position: relative;
  height: 13px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}
.frise-jour.vide .frise-barre { background: rgba(255, 255, 255, .025); }
.frise-bloc {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(56, 189, 248, .45);
  border-radius: 1px;
}
.frise-jour.today .frise-bloc { background: var(--accent); }
.frise-jour.today .frise-barre { box-shadow: inset 0 0 0 1px rgba(56,189,248,.35); }
.frise-now {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 2px;
  margin-left: -1px;
  background: var(--warn);
  box-shadow: 0 0 5px var(--warn);
}
.frise-axes {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-faint);
  padding: 0 1px;
}
.mkt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 0 12px 14px;
  font-size: 11px;
  color: var(--text-dim);
}
.frise-legende-open,
.frise-legende-now { display: inline-block; vertical-align: middle; margin-right: 5px; }
.frise-legende-open { width: 20px; height: 9px; border-radius: 2px; background: var(--accent); }
.frise-legende-now { width: 2px; height: 12px; background: var(--warn); }

/* Écrans étroits : on garde l'essentiel — les pastilles si des places sont
   ouvertes, le message d'ensemble si tout est fermé. Jamais les deux à moitié. */
@media (max-width: 1100px) {
  .ms-resume { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .msbar:not(.tout-ferme) .ms-resume { display: none; }
  .msbar.tout-ferme .ms-pills { display: none; }
}

/* ============================================================================
   V2.1 — Comptes utilisateurs : écran de connexion et menu de compte
   ========================================================================== */

/* Quand aucune session n'est ouverte, seule la carte de connexion s'affiche. */
body.non-connecte .nav,
body.non-connecte .subnav,
body.non-connecte .msbar,
body.non-connecte #party-host,
body.non-connecte .footer { display: none !important; }
body.non-connecte .view { padding: 0; }

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-head .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-dim); color: var(--accent);
}
.auth-head h1 { font-size: 17px; }
.auth-head .sub { color: var(--text-faint); font-size: 11.5px; }

.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.auth-tabs button {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-dim);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.auth-tabs button:hover { border-color: var(--line-strong); color: var(--text); }
.auth-tabs button.active { border-color: var(--accent); color: var(--text); background: var(--surface-3); }

.auth-card form { display: flex; flex-direction: column; gap: 6px; }
.auth-card label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.auth-card input {
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.auth-card input:focus { outline: none; border-color: var(--accent); background: var(--surface-3); }
.auth-help { margin-top: 4px; color: var(--text-faint); font-size: 11px; }
.auth-submit { margin-top: 16px; height: 40px; justify-content: center; }
.auth-error {
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(240, 87, 95, .35);
  border-radius: var(--radius-sm);
  background: var(--down-dim);
  color: var(--down);
  font-size: 12px;
}
.auth-info {
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(56, 189, 248, .3);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--text);
  font-size: 12px;
}
.auth-foot { margin-top: 14px; font-size: 11px; text-align: center; }

/* --- compte connecté dans la barre du haut --- */
.account-host { position: relative; }
.account { position: relative; }
.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.account-btn:hover { border-color: var(--accent); background: var(--surface-3); }
.acc-initiale {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent);
  font-size: 11px; font-weight: 700;
}
.acc-nom { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-role {
  padding: 1px 6px;
  border: 1px solid rgba(240, 161, 58, .35);
  border-radius: 999px;
  background: var(--warn-dim);
  color: var(--warn);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.account-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  z-index: 95;
}
.account-menu[hidden] { display: none; }
.acc-tete {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  font-size: 12.5px;
}
.acc-tete .faint { font-size: 11px; }
.acc-item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.acc-item:hover { background: var(--surface-3); color: var(--text); }
.acc-item.danger { color: var(--down); }
.acc-item.danger:hover { background: var(--down-dim); }

/* =============================================================================
   V2.2 — joueurs, profils publics, administration
   ============================================================================= */

.page-tools { display: flex; gap: 8px; align-items: center; }

/* --- liste de joueurs --------------------------------------------------- */
.jr-champ { max-width: 460px; }
.jr-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jr-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px; border-bottom: 1px solid var(--line);
}
.jr-item:last-child { border-bottom: none; }
.jr-lien {
  flex: 1 1 auto; display: flex; align-items: center; gap: 12px;
  min-width: 0; text-decoration: none; color: inherit;
}
.jr-lien:hover .jr-nom b { color: var(--accent); }
.jr-avatar {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; color: var(--text-dim);
}
.jr-nom { display: flex; flex-direction: column; min-width: 0; }
.jr-nom b { font-size: 14.5px; font-weight: 600; }
.jr-meta { font-size: 12.5px; color: var(--text-faint); }
.jr-perf { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14.5px; min-width: 88px; text-align: right; }
.jr-suivre { flex: 0 0 auto; }

/* --- profil (public et personnel) --------------------------------------- */
.jr-lien-pseudo { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line); }
.jr-lien-pseudo:hover { color: var(--accent); border-bottom-color: var(--accent); }
.jr-form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.jr-form-pied { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.jr-message { font-size: 13.5px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }
.jr-message.ok { color: var(--up); border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); }
.jr-message.ko { color: var(--down); border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .08); }
.jr-liens { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.jr-note { border-color: rgba(34, 211, 238, .22); }
.jr-note .panel-body { padding-top: 14px; }

@media (max-width: 620px) {
  .jr-item { flex-wrap: wrap; }
  .jr-perf { min-width: 0; }
}

/* =============================================================================
   V3.0 — compétitions
   ============================================================================= */

.cp-tag { text-decoration: none; }

.cp-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cp-carte { border-bottom: 1px solid var(--line); }
.cp-carte:last-child { border-bottom: none; }
.cp-carte-lien { display: block; padding: 12px 4px; text-decoration: none; color: inherit; }
.cp-carte-lien:hover b { color: var(--accent); }
.cp-carte-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-carte-tete b { font-size: 15px; }
.cp-carte-meta { font-size: 13px; color: var(--text-dim); margin-top: 3px; }
.cp-carte-resultat { margin-top: 6px; font-size: 13.5px; font-variant-numeric: tabular-nums; }

.cp-bandeau {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 11px 14px; margin-bottom: 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); font-size: 14px;
}
.cp-bandeau b { font-size: 17px; font-variant-numeric: tabular-nums; color: var(--accent); }

.cp-fiche { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cp-fiche > div { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-description { color: var(--text-dim); border-top: 1px dashed var(--line); padding-top: 8px; }

.cp-moi { background: var(--accent-dim); }
.cp-note-classement { margin-top: 10px; line-height: 1.6; }

.cp-form { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.cp-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cp-marches { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-marche {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer;
}
.cp-marche input { accent-color: var(--accent); }
.cp-form-pied { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cp-message { font-size: 13.5px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }
.cp-message.ok { color: var(--up); border-color: rgba(33, 201, 122, .35); background: var(--up-dim); }
.cp-message.ko { color: var(--down); border-color: rgba(240, 87, 95, .35); background: var(--down-dim); }
.cp-code { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.cp-code .field { flex: 1 1 220px; }

.cp-graph { margin-top: 16px; }
.cp-graph .chart-wrap { height: 220px; }
.cp-stats { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 4px; font-size: 13.5px; }
.cp-liens { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.cp-participants { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cp-participants li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px;
}
.cp-invitation .panel-body { display: flex; flex-direction: column; gap: 10px; }
.cp-invitation-ligne { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-invitation-ligne .faint { min-width: 130px; }
.cp-invitation code,
.cp-invitation .cp-lien {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13.5px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2, rgba(255, 255, 255, .03));
  color: var(--text, inherit);
}
.cp-invitation code { letter-spacing: .06em; font-weight: 600; }
.cp-invitation .cp-lien { flex: 1 1 260px; min-width: 0; }
@media (max-width: 640px) {
  .cp-invitation-ligne .faint { min-width: 0; }
  .cp-invitation .cp-lien { flex-basis: 100%; }
}
.cp-code-partage { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-code-partage code {
  padding: 6px 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  font-size: 13.5px; letter-spacing: .5px;
}

@media (max-width: 620px) {
  .cp-carte-tete { align-items: flex-start; }
  .cp-bandeau { font-size: 13px; }
  .cp-bandeau b { font-size: 15px; }
}
