
/* ======== CONTAINER ======== */
.container {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    max-width: 1600px;
}

/* Actions flottantes de la page (bouton « + » et ses modales d'ajout).
   Fusion des ex-.entete-container / .entete-boutons-container : le bouton est en
   `position: fixed` et les modales en overlay, ce conteneur ne fait donc que
   regrouper le bloc. `top` et `z-index` ont été retirés : sans `position`, ils
   n'avaient aucun effet ici. */
.entete-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* ======== MESSAGES FLASH ======== */
.flash-container {
  position: fixed;
  /* EN BAS à droite depuis le 2026-09-11, comme les toasts du reste du site. */
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flash-message {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  color: var(--text);
  background: #e6f4ff;
  border: 1px solid #b3e1ff;
  font: 600 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.flash-message.visible { opacity: 1; transform: translateY(0); }
.flash-message.hide    { opacity: 0; transform: translateY(-6px); }
.flash-message.success { background: #e9f9ef; border-color:#bdecca; color:#0f5132; }
.flash-message.error   { background: #fdecea; border-color:#f5c2c0; color:#842029; }
.flash-message.warning { background: #fff6e5; border-color:#ffe2ad; color:#7a4d00; }
.flash-message.info    { background: #e6f4ff; border-color:#b3e1ff; color:var(--text); }
/* ======== FIN MESSAGES FLASH ======== */


/* ======== DRAPEAU DE DEVISES ======== */
.flag-icon {
  display: inline-block;
  height: 15px;
  width: auto;
  margin: 0 5px 0 10px;
}


/* Titre délisté : bandeau ROUGE pleine largeur en tête de la carte d'en-tête.
   Marges négatives = pleine sangle jusqu'aux bords de la carte (padding .tkh),
   coins hauts arrondis pour épouser la carte. */
.tkh-bandeau-delisted {
    /* .tkh est flex : flex-basis prime sur width pour la taille principale, et
       100% se résout sur la content-box - les marges négatives décalent sans
       élargir. Le calc() compense donc les 2×22px de padding de la carte. */
    flex-basis: calc(100% + 44px);
    box-sizing: border-box;
    margin: -20px -22px 2px;
    padding: 9px 22px;
    border-radius: var(--r) var(--r) 0 0;
    background: #b91c1c;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .01em;
}

/* ======== LIENS VERS LISTES ET PORTEFEUILLES ======== */
.ticker-badge-link {
    display: inline-block;
    background-color: #eef2f6;
    color: var(--text-2);
    padding: 2px 12px 4px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #018ffa;
    transition: all 0.2s ease;
}

.ticker-badge-link:hover {
    background-color: #018ffa;
    color: #ffffff;
    border-color: #018ffa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ticker-badge-link-pf {
    display: inline-block;
    background-color: #eef2f6;
    color: var(--text-2);
    padding: 2px 12px 4px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--blue);
    transition: all 0.2s ease;
}

.ticker-badge-link-pf:hover {
    background-color: var(--blue);
    color: #ffffff;
    border-color: var(--blue);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



/* ======== INFO-BULLE ACCUMULATION/DISTRIBUTION ======== */
.info-icon {
  display: inline-block;
  align-self: flex-start;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #333;
  background: var(--surface);
  color: #333;
  text-align: center;
  font-size: 8px;
  font-weight: bold;
  line-height: 10px;
  cursor: pointer;
  position: relative;
  margin-left: 2px;
}
.info-icon:hover {
  background-color: #018FFA;
  border-color: #018FFA;
  color: #fff;
}

.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 200%;
  left: 50%;
  transform: translateX(-90%);
  background: var(--surface);
  color: #444;
  padding: 6px 8px;
  border: 1px solid #018FFA;
  border-radius: 4px;
  white-space: pre-line;
  font-weight: normal;
  font-size: 12px;
  line-height: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  min-width: 200px;
  word-wrap: break-word;
  text-align: left;
  box-shadow: 0px 0px 4px rgba(0,0,0,0.5);
  z-index: 200;
}

.info-icon::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #018FFA transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.info-icon:hover::after,
.info-icon:hover::before {
  opacity: 1;
  transition: opacity 0.3s ease 0.3s;
}
/* ======== FIN INFO-BULLE ======== */


/* ======== BOUTON SWITCH AUTO-ADJUST ======== */
.switch-autoadj-container {
    display: flex;
    align-items: center;
    min-width: 121px;
    opacity: 0.5;
    transition: opacity 100ms ease-in-out;
}
.switch-autoadj-container:hover {
    opacity: 1;
}

.autoadj-switch-text {
    font-size: 13px;
    color: var(--text-2);
}

.switch {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 12px;
    margin-right: 5px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: var(--blue);
    top: 0; left: 0; right: 0; bottom: 0;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    left: 2px;
    bottom: 2px;
    background-color: var(--surface);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0ACC3A;
}

input:checked + .slider:before {
    transform: translateX(12px);
}
/* ======== FIN SWITCH AUTO-ADJUST ======== */


/* ======== BOUTONS DURÉE ======== */
.duration-button {
    font-size:12px;
    font-weight: 500;
    color: var(--text-2);
    background-color: var(--surface);
    border: 2px solid #e7e7e7;
    padding:3px 6px;
    margin: 1px 0 1px 1px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 100ms ease-in-out;
}

.duration-button:hover {
    background: var(--surface);
    border: 2px solid #018FFA;
    opacity: 1;
}

.duration-button.active {
  background-color: #018FFA;
  color: white;
  font-weight: bold;
  border: 1px solid #018FFA;
  opacity: 1;
}
/* ======== FIN BOUTONS DURÉE ======== */


/* L'ancien bandeau bleu (.hero-*) a été retiré par la refonte 2026-08-09 :
   l'en-tête est désormais .tkh (voir le bloc REFONTE en fin de fichier). */

/* ======== COURS TICKER (header) ======== */
.cours-ticker {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-2);
    gap: 3px;
}

.titre-devise {
    margin: 0;
}
/* ======== FIN COURS TICKER ======== */



/* ======== GRAPHIQUES ======== */
.charts-section {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    /* Glisser-sélection (drag-zoom) : pas de sélection de texte ni de scroll. */
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

#chart-price,
#chart-volume,
#chart-recul {
    width: 100%;
}

.container-graphique {
    width: 100%;
}
/* Les 3 graphes ApexCharts partagent UN SEUL tooltip global (#tooltip-global) :
   on masque les boîtes tooltip natives de chaque graphe, tout en gardant le
   curseur vertical (crosshair) synchronisé par le groupe. */
#chart-price .apexcharts-tooltip,
#chart-recul .apexcharts-tooltip,
#chart-volume .apexcharts-tooltip { display: none !important; }
/* ======== FIN GRAPHIQUES ======== */


/* ======== TOOLTIPS ======== */
/* Tooltip global unique des 3 graphes - style ApexCharts (thème clair). */
.tt {
    position: absolute;
    display: none;
    pointer-events: none;
    font: 12px/1.5 system-ui, Arial, sans-serif;
    color: #373d3f;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    box-shadow: 2px 2px 6px -4px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    min-width: 172px;
    z-index: 100;
}
.tt-title {
    background: #eceff1;
    border-bottom: 1px solid #ddd;
    padding: 6px 10px;
    font-weight: 600;
    white-space: nowrap;
}
.tt-line {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    white-space: nowrap;
}
.tt-line:last-child { padding-bottom: 7px; }
.tt-color {
    --couleur: #018FFA;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--couleur);
    flex: 0 0 auto;
}
.tt-label { font-weight: 400; }
.tt-value { margin-left: auto; font-weight: 600; padding-left: 12px; }

/* Crosshair vertical UNIQUE traversant les 3 graphes → même date sur les trois. */
.tick3-crosshair {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed #9aa4ad;
    pointer-events: none;
    display: none;
    z-index: 4;
}
/* Rectangle de sélection du drag-zoom (traverse les 3 graphes). */
.tick3-select {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(1, 143, 250, 0.12);
    border-left: 1px solid rgba(1, 143, 250, 0.55);
    border-right: 1px solid rgba(1, 143, 250, 0.55);
    pointer-events: none;
    display: none;
    z-index: 3;
}
/* ======== FIN TOOLTIPS ======== */


/* ======== GRILLE DE STATISTIQUES ======== */
.section-stats {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh-sm);
    padding: 20px 24px;
}





@media (prefers-color-scheme: dark) {
}

.stat-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-2);
    padding: 3px 0;
    flex-wrap: wrap;
}

.stat-label {
    flex: 0 0 auto;
    color: var(--text-4);
    white-space: nowrap;
}

.stat-value {
    font-weight: 600;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.stat-date {
    font-size: 0.75rem;
    color: var(--text-4);
    white-space: nowrap;
}

.stat-row.bold .stat-value {
    color: var(--blue);
}


@media (max-width: 800px) {
}
/* ======== FIN GRILLE DE STATISTIQUES ======== */


/* ======== GAINS ANNUELS ======== */
.section-gains {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh-sm);
    padding: 20px 24px;
}

.section-gains h2 {
    margin-bottom: 16px;
}

.gains-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.gains-chart {
    flex: 1;
}

.gains-stats {
    width: 210px;
    flex-shrink: 0;
    padding-top: 30px;
    border-left: 1px solid var(--border);
    padding-left: 20px;
}

#chartGains {
    position: relative;
}

@media (max-width: 800px) {
  .gains-layout { flex-direction: column; }
  .gains-stats { width: auto; border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; }
}
/* ======== FIN GAINS ANNUELS ======== */


/* ======== SECTION SOCIÉTÉ ======== */
.section-societe {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh-sm);
    padding: 20px 24px;
}

/* Faits clés : liste de chips horizontaux */
.societe-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin-bottom: 16px;
}

.fact-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 14px 6px 0;
    border-right: 1px solid var(--border);
    margin-right: 14px;
    font-size: .85rem;
    color: var(--text-2);
}
.fact-item:last-child { border-right: none; margin-right: 0; }

.fact-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-3);
    white-space: nowrap;
}

.fact-val { color: var(--text); }

.societe-desc { margin-top: 4px; }

.desc-text, .desc-note {
    color: var(--text-2);
    font-size: 0.875rem;
    line-height: 1.7;
}
/* ======== FIN SECTION SOCIÉTÉ ======== */


/* ======== SECTION FINANCE ======== */
.section-finance {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh-sm);
    padding: 20px 24px;
}

.finance-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 12px;
}

.finance-chart-area {
    flex: 1;
    min-width: 0;
}

.finance-stats-area {
    width: 230px;
    flex-shrink: 0;
}

.financial-toolbar {
    margin: 0 0 12px;
    display: flex;
    gap: 10px;
}

.btn-switch {
    padding: 5px 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #555;
}
.btn-switch:hover { border: 2px solid var(--teal, #14b8a6); }
.btn-switch.active { background: var(--teal-dk, #0f766e); color: #fff; border-color: var(--teal-dk, #0f766e); }

@media (max-width: 800px) {
  .finance-layout { flex-direction: column; }
  .finance-stats-area { width: auto; }
  .not-on-mobile { display: none; }
}
/* ======== FIN SECTION FINANCE ======== */


/* ======== TITRES DE PAGE ======== */
h1 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--blue);
    margin: 0 0 5px;
}

h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-2);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.01em;
}

h3 {
    font-size: 1.05rem;
    color: var(--text-2);
    margin-top: 1.2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.2rem;
    padding-bottom: 10px;
}

.sous-titre {
    display: flex;
    align-items: center;
}

.sous-titre .ticker,

.devise-titre {
    color: var(--text-2);
    font-weight: bold;
    font-size: 20px;
}

/* ======== FIN TITRES ======== */


/* ======== COULEURS SÉMANTIQUES ======== */
.bleu  { color: #018ffa; }
.vert  { color: var(--blue); }
.rouge { color: #e60000; }

em { color: #444; }

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px;
}

hr.rapport {
    margin: 5px 0;
}

.hr-top-margin { margin-top: 30px; }
.hr-bottom-margin { margin-bottom: 30px; }
/* ======== FIN COULEURS ======== */


/* ======== STATISTIQUES RAPPORT (style liste) ======== */
.strategie-rapport {
    margin: 10px 0;
}

.rapport-title {
    margin-right: auto;
    color: var(--text-2);
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 0 4px;
}

.rapport-line {
    display: flex;
    flex-direction: row;
    color: var(--text-2);
    font-size: 0.85rem;
    padding: 2px 0;
}

.rapport-label {
    margin-right: auto;
    color: var(--text-2);
    font-size: 0.85rem;
}

.rapport-value {
    display: flex;
    color: var(--text-2);
    justify-content: flex-end;
    font-size: 0.85rem;
    margin-right: 4px;
}

.rapport-date {
    color: var(--text-2);
    font-size: 0.85rem;
}

.bold {
    font-weight: bold;
}
/* ======== FIN STATISTIQUES RAPPORT ======== */


/* ======== DESCRIPTION ======== */
[id*="description"] a {
    font-size: 0.9rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: bolder;
}
/* ======== FIN DESCRIPTION ======== */


/* ======== TABLEAU FINANCIER ======== */
.table-financial-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  background-color: var(--surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 10px;
}

.table-financial {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  color: var(--text);
  background-color: var(--surface);
}

.table-financial thead th {
  position: sticky;
  top: 0;
  background-color: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  text-align: right;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 14px;
}

.table-financial thead th:first-child {
  text-align: left;
  font-size: 14px;
}

.table-financial tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--text);
}

.table-financial tbody td:first-child {
  font-weight: 400;
  color: var(--text-2);
  text-align: left;
}

.table-financial tbody tr:nth-child(even) {
  background-color: var(--surface);
}

@media (hover: hover) {
  .table-financial tbody tr:hover {
    background-color: var(--surface);
  }
}

.table-financial th.annee-bleue,
.table-financial td.annee-bleue {
  color: var(--text-2);
  border-left: 2px solid var(--teal, #14b8a6);
  font-weight: 600;
}
/* ======== FIN TABLEAU FINANCIER ======== */


/* ======== FAB BUTTON ======== */
:root {
  --fab-size: 45px;
  --fab-bg: #0f766e;
  --fab-bg-hover: #0c5f58;
  --fab-color: #ffffff;
  --fab-shadow: 0 10px 20px rgba(0,0,0,.25);
  --menu-gap: 15px;
  --menu-btn-bg: #ffffff;
  --menu-btn-color: #018ffa;
  --menu-btn-border: 2px solid #14b8a6;
  --menu-btn-hover-bg: #f1f5f9;
}

.fab {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--menu-gap);
  z-index: 999;
}

.fab-main {
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  border: none;
  background: var(--fab-bg);
  color: var(--fab-color);
  font-size: calc(var(--fab-size) * 0.6);
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--fab-shadow);
  transform: scale(1);
  transform-origin: center;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.fab-main:hover { background: var(--fab-bg-hover); }
.fab-main:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }

@media (width >= 768px) {
    :root { --fab-size: 64px; }
    .fab { right: 50px; bottom: 50px; }
    .fab-icon { transform: translateY(-7%); }
}

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  align-items: flex-end;
  text-align: right;
}

.fab-action {
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 25px;
  background: var(--menu-btn-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transform-origin: bottom right;
  transform: translateY(8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
  pointer-events: none;
}

#btn-add-list { color: var(--text-2); border: 2px solid #018FFA; }
#btn-add-list:hover { background: #f0f9ff }
#addToPortfolioBtn { color: var(--text-2); border: 2px solid var(--blue); }
#addToPortfolioBtn:hover { background: #efffef }

.fab-action:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }

.fab-main:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}

.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;
}

.fab.is-open .fab-main {
  transform: scale(1.12);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}
.fab.is-open .fab-action {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
/* ======== FIN FAB BUTTON ======== */


/* ======== AJOUT DANS LISTE / PORTEFEUILLE ======== */
.container-boutons-ajout {
    display: flex;
    position: relative;
    gap: 10px;
}

#add-to-list-container {
    display: flex;
    position: relative;
    flex: 1 1 auto;
}

#add-to-list-container button {
    flex: 1;
    background-color: #018ffa;
    font-size: 14px;
    font-weight: 600;
    color: white;
    border: none;
    padding: 5px 9px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#add-to-list-container button:hover { background-color: #0277cc; }

#list-dropdown {
    display: none;
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border: 2px solid #018FFA;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 250px;
    z-index: 1000;
}

#list-options div {
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
#list-options div:hover { background-color: #f0f8ff; }

.blue-bullet::before { content: "•"; color: #018FFA; margin-right: 6px; }

#list-dropdown hr { border: none; border-top: 1px solid #ddd; margin: 10px 0; }

#create-list-form { margin-top: 10px; }
#create-list-form input {
    width: calc(100% - 120px);
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-right: 5px;
}
#new-list-title { font-size: 14px; padding: 4px; }
#create-list-form button {
    padding: 6px 12px;
    background-color: #018ffa;
    color: white;
    margin-left: auto;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#create-list-form button:hover { background-color: #0277cc; }

#portfolioDropdown {
    display: none;
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border: 2px solid var(--blue);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 250px;
    z-index: 1000;
}

#portfolioList li {
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
#portfolioList li:hover { background-color: #eeffee; }

.green-bullet::before { content: "•"; color: #26E766; margin-right: 6px; }

#portfolioDropdown hr { border: none; border-top: 1px solid #ddd; margin: 10px 0; }

#newPf {
    width: calc(100% - 120px);
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-right: 5px;
    font-size: 14px;
}

#submitOrderBtn { margin-top: 22px; }

#modalOverlay,
#modalOverlayList,
#modalOverlayPf,
#modalOverlayFav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

#orderModal {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    padding: 20px;
    border: 2px solid var(--blue);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 250px;
}

#orderModal h2 {
    font-size: 22px;
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.ligne-portefeuille { display: flex; gap: 5px; margin-top: 10px; }
.label-portefeuille { flex: 0 0 auto; color: #018FFA; font-size: 1.1rem; font-weight: bold; }
.nom-portefeuille { flex: 1 0 auto; color: #018FFA; font-size: 1.1rem; font-weight: bold; text-align: right; }
.nom-portefeuille option { text-align: left; }

#modalPfSelect {
    appearance: none;
    border: 1px solid #fff;
    outline: none;
    background-color: transparent;
}
#modalPfSelect:hover, #modalPfSelect:focus { border: 1px solid #ccc; }

.modal-form { display: flex; gap: 10px; flex-direction: column; }
.cout { display: flex; gap: 10px; max-width: 250px; align-items: stretch; }
.modal-form input, .modal-form select {
    flex: 1 1 auto;
    text-align: right;
    padding: 5px 10px;
    border: 1px solid #444;
    border-radius: 6px;
}
.devise-cout {
    background-color: var(--teal-dk, #0f766e);
    color: white;
    font-weight: bold;
    padding: 5px 7px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.devise-cout option { background-color: #ffefce; color: #333; }
/* ======== FIN AJOUT LISTE/PORTEFEUILLE ======== */


/* ======== CHART FINANCIAL ======== */
.chart-financial {
    position: relative;
    width: 100%;
}

.chart-empty-overlay {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font: 600 14px/1.4 Arial, sans-serif;
    color: #666;
}

.u-title {
    text-align: left;
    color: var(--text-2);
}

.background-bleu { background-color: #dfeefa; }

.no-small-screen { display: block; }

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.1rem; }
  .no-small-screen { display: none; }
}

/* ============================================================
   REVUE ESTHÉTIQUE 2026-07-16 - lisibilité et sérieux
   (surcharges volontairement regroupées en fin de fichier)
   ============================================================ */

/* ── Contrôles posés SUR le bandeau bleu : l'interrupteur
   Accumulation/Distribution et son libellé étaient quasi invisibles
   (texte var(--text-2) sombre sur fond bleu, opacité 0,5). ── */

/* ── Boutons de durée : les pastilles grises translucides (opacité 0,5)
   faisaient brouillon sur le bandeau. Pastilles translucides blanches,
   l'actif ressort en blanc plein sur texte bleu. ── */

/* ── Tuiles KPI : filet de sécurité anti-débordement (le dividende brut non
   formaté chevauchait la tuile voisine - corrigé à la source). Le rembourrage
   horizontal passe de 16 à 12 px : « 13,03 % » (2 décimales, cas ML.PA) tenait
   à 5 px près et se coupait avant le % sur les tuiles de ~130 px. ── */
/* Valeur TEXTUELLE (recommandation analystes) : un mot de 7-11 lettres ne tient
   pas en 1.4rem dans une tuile de ~130px - taille dédiée, sans couper le mot. */

/* ── Cours dans l'en-tête : rempli en JS après l'appel API - tant qu'il
   est vide, on n'affiche pas un cadre blanc orphelin. ── */

/* ── Bloc de stats « Données financières » : la valeur ne doit pas se
   couper du libellé (les « millions $ » passaient à la ligne seuls). ── */
.rapport-line { align-items: baseline; gap: 10px; }
.rapport-value { text-align: right; white-space: nowrap; }
/* ── Thème SOMBRE : ce fichier redéfinit ses propres tokens :root, il faut donc
   y décliner aussi le sombre (sinon il masque l'override global de base.css). ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue:#4aa6f2; --blue-dk:#2f8ae0; --blue-50:#13293c; --blue-100:#284c66;
    --gold:#e0a94a; --pink:#f472b6;
    --teal:#2dd4bf; --teal-dk:#14b8a6; --teal-50:#0f2b29; --teal-100:#1f4a45;
    --navy:#e8eff5;
    --text:#e8eff5; --text-2:#c3d0db; --text-3:#98a8b6; --text-4:#6f8291;
    --bg:#0c1420; --surface:#131f2b; --border:#26333f; --border-lt:#223039;
    --sh-sm:0 2px 6px rgba(0,0,0,.4); --sh:0 8px 20px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  --blue:#4aa6f2; --blue-dk:#2f8ae0; --blue-50:#13293c; --blue-100:#284c66;
  --gold:#e0a94a; --pink:#f472b6;
  --teal:#2dd4bf; --teal-dk:#14b8a6; --teal-50:#0f2b29; --teal-100:#1f4a45;
  --navy:#e8eff5;
  --text:#e8eff5; --text-2:#c3d0db; --text-3:#98a8b6; --text-4:#6f8291;
  --bg:#0c1420; --surface:#131f2b; --border:#26333f; --border-lt:#223039;
  --sh-sm:0 2px 6px rgba(0,0,0,.4); --sh:0 8px 20px rgba(0,0,0,.55);
}

/* ===== Profils de liste : adéquation aux 4 archétypes de stratégie ===== */
.tk-arch { margin: 18px 0 6px; padding: 16px 18px; border: 1px solid var(--border);
  border-radius: 14px; background: var(--surface); box-shadow: var(--sh-sm); }
.tk-arch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 12px; }
.tk-arch-title { font-weight: 800; font-size: 1.02rem; color: var(--text); }
.tk-arch-hint { font-size: .82rem; color: var(--text-3); }
.tk-arch-hint a { color: var(--blue); text-decoration: none; }
.tk-arch-hint a:hover { text-decoration: underline; }
.tk-arch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .tk-arch-grid { grid-template-columns: repeat(2, 1fr); } }
.tk-arch-item { padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--bg); cursor: help; }
.tk-arch-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tk-arch-lbl { font-size: .82rem; font-weight: 700; color: var(--text-2); line-height: 1.2; }
.tk-arch-score { font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
.tk-arch-score small { font-size: .62rem; font-weight: 700; color: var(--text-3); }
.tk-arch-bar { height: 7px; border-radius: 999px; background: var(--border); overflow: hidden; }
.tk-arch-bar span { display: block; height: 100%; border-radius: 999px; }
.tk-arch-item.ok  .tk-arch-score { color: #12a35a; }
.tk-arch-item.moy .tk-arch-score { color: #c98a05; }
.tk-arch-item.bas .tk-arch-score { color: #d0473d; }
.tk-arch-item.ok  .tk-arch-bar span { background: #12a35a; }
.tk-arch-item.moy .tk-arch-bar span { background: #eaa11a; }
.tk-arch-item.bas .tk-arch-bar span { background: #d0473d; }
/* Dégage les cartes du bouton flottant (FAB) présent seulement si connecté. */
@media (min-width: 700px) {
  body:has(#fab-actions) .tk-arch { padding-right: 66px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REFONTE 2026-08-09 - organisation et présentation de la page ticker.
   Parti pris : sobriété et hiérarchie. Une seule information mise en avant
   (le cours), le reste présenté à poids typographique égal, sans aplats de
   couleur. Le rouge reste réservé aux valeurs négatives (sémantique).
   Remplace l'ancien bandeau bleu dégradé (.hero-*, supprimé).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Rythme de page : sections en cartes régulières ── */
.tk-page { display: flex; flex-direction: column; gap: 14px; }
.tk-sec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  padding: 18px 20px;
}
/* Titre de section : liseré bleu à gauche (même convention que /liste). */
.tk-h2 {
  margin: 0 0 14px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
  border-left: 3px solid var(--blue);
  padding-left: 10px;
  line-height: 1.25;
}
.tk-h2-per { font-weight: 600; color: var(--text-3); font-size: .88rem; }
/* En-tête de section avec contrôles à droite */
.tk-sec-head {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 18px; margin-bottom: 14px;
}
.tk-sec-head .tk-h2 { margin-bottom: 0; }
.tk-sec-hint { margin: 0; font-size: .82rem; color: var(--text-3); flex: 1 1 240px; }
.tk-sec-hint a { color: var(--blue); text-decoration: none; }
.tk-sec-hint a:hover { text-decoration: underline; }

/* Valeur négative (sémantique) - jamais un choix décoratif. */
.neg, .tk-kpi-val.rouge, .stat-value.neg { color: #b91c1c; }

/* ── EN-TÊTE : identité + cotation ── */
.tkh {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  padding: 20px 22px;
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 16px 28px;
}
.tkh-ident { min-width: 0; }
.tkh-idline { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tkh .capsule-ticker {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 58px; background: var(--teal-dk, #14b8a6); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 4px 9px;
  border-radius: var(--r-sm); white-space: nowrap; letter-spacing: .02em;
}
.tkh-flag { width: 18px; height: auto; border-radius: 2px; flex: none; }
.tkh-idx {
  font-size: .72rem; font-weight: 600; color: var(--text-3);
  background: var(--bg); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.tkh-idx-tot { color: var(--text-4); font-weight: 500; }

/* Étoile favori + bouton commentaire (à côté de la capsule/drapeau) */
.tkh-fav-btn, .tkh-fav-comment {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-3); border-radius: var(--r-sm); padding: 3px 6px;
  cursor: pointer; line-height: 0; transition: color .15s, border-color .15s;
}
.tkh-fav-btn:hover, .tkh-fav-comment:hover { color: var(--gold); border-color: var(--gold); }
.tkh-fav-btn.tkh-fav-actif { color: var(--gold); border-color: var(--gold); background: var(--gold-50, #fdf6e7); }
.tkh-fav-comment:hover { color: var(--blue); border-color: var(--blue-100); }

#favModal {
  display: none; flex-direction: column; gap: 10px;
  position: fixed; top: 35%; left: 50%; transform: translate(-50%, -50%);
  background: var(--surface); padding: 20px; border: 2px solid var(--blue);
  border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,.3); z-index: 1000;
  max-width: 340px; width: 90vw;
}
#favModal h2 { font-size: 1.1rem; margin: 0; color: var(--text); }
#favCommentaireTxt {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: .92rem;
  padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); resize: vertical;
}
#favCommentaireTxt:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }

/* Étiquettes : chips + champ d'ajout avec suggestions (réutilisé sur /favoris). */
.fav-tags-editeur { display: flex; flex-direction: column; gap: 6px; }
.fav-tags-editeur label {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-3);
}
.fav-tags-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.fav-tags-chips:empty { display: none; }
.fav-tag-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--teal-50, #e6f6f4); color: var(--teal-dk, #0f766e);
  font-size: .78rem; font-weight: 600; padding: 3px 6px 3px 9px; border-radius: 999px;
}
.fav-tag-chip button {
  border: none; background: none; color: inherit; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0 2px; opacity: .7;
}
.fav-tag-chip button:hover { opacity: 1; }
.fav-tags-champ { position: relative; }
#favTagsInput {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: .86rem;
  padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
}
#favTagsInput:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.fav-tags-suggestions {
  position: absolute; top: calc(100% + 3px); left: 0; right: 0; z-index: 10;
  margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,.12); max-height: 160px; overflow-y: auto;
}
.fav-tags-suggestions li { padding: 6px 8px; font-size: .84rem; border-radius: 6px; cursor: pointer; }
.fav-tags-suggestions li:hover { background: var(--bg); }

.fav-modal-actions { display: flex; justify-content: space-between; gap: 10px; }
.fav-btn-retirer {
  background: none; border: 1px solid var(--border); color: #b91c1c;
  border-radius: var(--r-sm); padding: 7px 12px; cursor: pointer; font-size: .85rem;
}
.fav-btn-retirer:hover { background: #fdeaea; }
#favCommentaireSaveBtn {
  background: var(--blue); color: #fff; border: none; border-radius: var(--r-sm);
  padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: .85rem;
}
#favCommentaireSaveBtn:hover { background: var(--blue-dk); }
.tkh-nom {
  margin: 0; font-size: 1.62rem; font-weight: 800; color: var(--text);
  letter-spacing: -.02em; line-height: 1.15;
}
.tkh-meta { margin: 5px 0 0; font-size: .84rem; color: var(--text-3); }
.tkh-meta-sep { color: var(--text-4); }

.tkh-cotation { text-align: right; margin-left: auto; }
.tkh-price {
  display: inline-flex; align-items: baseline; gap: 6px;
  border-radius: var(--r-sm); padding: 2px 6px; margin: -2px -6px;
  transition: background .25s ease;          /* flash discret à la mise à jour */
}
.tkh-price-val {
  font-size: 2.05rem; font-weight: 800; color: var(--text);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1;
}
.tkh-price-cur { font-size: .9rem; font-weight: 700; color: var(--text-3); }
.tkh-price-meta { margin-top: 7px; font-size: .8rem; color: var(--text-3); }
.tkh-price-meta strong { font-weight: 700; }
.tkh-sep { margin: 0 6px; color: var(--text-4); }

/* ── Appartenance listes / portefeuilles : contexte, volontairement discret ── */
.tk-appart {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 8px 14px;
}
/* Flux de texte normal (et non flex) : en flex, chaque mot devient un élément
   flexible et la phrase s'espace de travers sur écran étroit. */
.tk-appart-sum {
  cursor: pointer; font-size: .82rem; color: var(--text-3);
  list-style: none; line-height: 1.5;
}
.tk-appart-sum::-webkit-details-marker { display: none; }
.tk-appart-sum::before {
  content: '▸'; color: var(--text-4); font-size: .7rem; margin-right: 7px;
  transition: transform var(--tr); display: inline-block;
}
.tk-appart[open] .tk-appart-sum::before { transform: rotate(90deg); }
.tk-appart-sum strong { color: var(--text-2); font-weight: 700; }
.tk-appart-body { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tk-appart .ticker-badge-link,
.tk-appart .ticker-badge-link-pf {
  font-size: .74rem; font-weight: 600; text-decoration: none;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-2);
}
.tk-appart .ticker-badge-link:hover { border-color: var(--blue); color: var(--blue); }
.tk-appart .ticker-badge-link-pf:hover { border-color: var(--teal-dk); color: var(--teal-dk); }

/* ── CHIFFRES CLÉS : grille uniforme, séparateurs fins, aucun aplat ── */
.tk-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 0;
}
.tk-kpi {
  display: flex; flex-direction: column; gap: 3px;
  padding: 2px 18px; border-left: 1px solid var(--border-lt);
}
.tk-kpi:first-child { border-left: none; padding-left: 2px; }
.tk-kpi-lbl {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-3);
}
.tk-kpi-val {
  font-size: 1.3rem; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.2;
  white-space: nowrap;   /* « 3 713 Mds $ » ne doit pas se couper en deux lignes */
}
.tk-kpi-val-txt { font-size: 1.05rem; }         /* un libellé n'est pas un chiffre */
.tk-kpi-sub { font-size: .73rem; color: var(--text-4); min-height: 1em; }

/* ── HISTORIQUE : contrôles + titres de graphiques ── */
.tk-graph-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.tk-page .charts-section { box-shadow: none; border-radius: var(--r-sm); }
/* Titres des trois graphiques (hors des conteneurs : make3Charts vide leur HTML) */
.tk-clbl {
  font-size: .78rem; font-weight: 700; color: var(--text-2);
  padding: 12px 14px 2px;
}
.tk-clbl:first-of-type { padding-top: 10px; }
.tk-clbl-u { font-weight: 500; color: var(--text-4); }

/* ── Relevés chiffrés : cartes neutres (plus de carte « recul » rouge) ── */
.tk-page .stat-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 3px 0; }
.tk-page .stat-label { color: var(--text-3); font-size: .82rem; }
.tk-page .stat-value { font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tk-page .stat-date { grid-column: 2; font-size: .72rem; color: var(--text-4); text-align: right; }
.tk-page .stat-row.bold .stat-value { color: var(--text); }

/* ── GAINS ANNUELS ── */
.tk-page .gains-layout { gap: 20px; }
.tk-page .gains-stats {
  width: 220px; padding-top: 0; padding-left: 18px;
  border-left: 1px solid var(--border); align-self: center;
}

/* ── SOCIÉTÉ : faits en liste de définitions, sobre ── */
.tk-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 20px; margin: 0 0 16px; padding: 0 0 14px;
  border-bottom: 1px solid var(--border-lt);
}
.tk-fact dt {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-3); margin-bottom: 3px;
}
.tk-fact dd { margin: 0; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.tk-fact-sec { font-weight: 400; color: var(--text-4); }
.tk-page .societe-desc { margin-top: 0; }

/* ── FINANCES ── */
.tk-page .finance-stats-area {
  align-self: center; min-width: 240px;
  border-left: 1px solid var(--border); padding-left: 18px;
}
.tk-page .financial-toolbar { margin: 0; }

/* ── Détail replié (second niveau d'information) ── */
.tk-detail { margin-top: 16px; border-top: 1px solid var(--border-lt); padding-top: 12px; }
.tk-detail-sum {
  cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--text-2);
  list-style: none; display: flex; align-items: center; gap: 7px;
}
.tk-detail-sum::-webkit-details-marker { display: none; }
.tk-detail-sum::before {
  content: '▸'; color: var(--text-4); font-size: .72rem;
  transition: transform var(--tr); display: inline-block;
}
.tk-detail[open] .tk-detail-sum::before { transform: rotate(90deg); }
.tk-detail .scroll-x { margin-top: 12px; }

/* ── Profils de liste : aligné sur le nouveau rythme de section ── */
.tk-page .tk-arch-grid { margin: 0; }
.tk-page .tk-sec .tk-arch-item { background: var(--bg); }

/* Les éléments de grille ne peuvent pas passer sous leur contenu sans min-width:0
   (défaut « auto ») : sans cela un libellé long élargit la grille au-delà de
   l'écran. Idem pour un nom de liste très long dans les badges d'appartenance. */
.tk-arch-item, .tk-kpi, .tk-fact { min-width: 0; }
.tk-appart .ticker-badge-link,
.tk-appart .ticker-badge-link-pf {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}

/* ── Écrans étroits ── */
@media (max-width: 860px) {
  .tkh { padding: 16px; }
  .tkh-bandeau-delisted { flex-basis: calc(100% + 32px); margin: -16px -16px 2px; padding: 8px 16px; }
  .tkh-cotation { text-align: left; margin-left: 0; }
  .tkh-nom { font-size: 1.35rem; }
  .tkh-price-val { font-size: 1.7rem; }
  .tk-kpi { border-left: none; padding: 8px 2px; border-top: 1px solid var(--border-lt); }
  .tk-kpi:first-child { border-top: none; }
  .tk-sec { padding: 15px 14px; }
  .tk-page .gains-stats,
  .tk-page .finance-stats-area { width: auto; border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
}

/* Petite pastille de suivi sur chaque courbe, à la date pointée (make3Charts.js).
   Positionnée dans .charts-section, comme le curseur transversal. */
.tick3-dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--surface); transform: translate(-50%, -50%);
  pointer-events: none; display: none; z-index: 5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

/* ═══ Mise en deux colonnes (2026-08-09) : les CHIFFRES à gauche, les COURBES à
   droite, pour faire remonter les graphiques dans la page. En dessous du seuil,
   les sections retrouvent leur empilement naturel. ═══ */
.tk-cols { display: grid; gap: 14px; }
.tk-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1150px) {
  /* Colonne des chiffres volontairement ÉTROITE : un chiffre clé et un score par
     ligne. Elle laisse ainsi le maximum de largeur aux courbes. */
  /* `stretch` (et non `start`) : les deux colonnes descendent au même niveau. */
  .tk-cols { grid-template-columns: minmax(232px, 268px) 1fr; align-items: stretch; }
  .tk-col > .tk-sec:last-child { flex: 1; }
  /* La hauteur en trop est répartie ENTRE les lignes plutôt que laissée en bloc
     vide au bas de la carte : les chiffres respirent au lieu de se tasser. */
  .tk-col-chiffres > .tk-sec { flex: 1; display: flex; flex-direction: column; }
  .tk-col-chiffres .tk-kpis,
  .tk-col-chiffres .tk-arch-grid { flex: 1; align-content: space-between; }
  .tk-col-chiffres .tk-kpis { grid-template-columns: 1fr; }
  .tk-col-chiffres .tk-kpi {
    border-left: none; border-top: 1px solid var(--border-lt); padding: 8px 2px;
  }
  .tk-col-chiffres .tk-kpi:first-child { border-top: none; padding-top: 2px; }
  .tk-col-chiffres .tk-arch-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* ═══ Sélecteur de durée : contrôle segmenté (même dessin que la pop-up) ═══ */
#duration-buttons-container {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
}
.duration-button {
  font-family: inherit; font-size: .78rem; font-weight: 600;
  padding: 5px 12px; border: none; background: none; color: var(--text-3);
  cursor: pointer; border-radius: 999px; opacity: 1; margin: 0;
  transition: background var(--tr), color var(--tr);
}
.duration-button:hover { background: var(--surface); border: none; color: var(--text); opacity: 1; }
.duration-button.active {
  background: var(--blue); color: #fff; border: none; font-weight: 700; opacity: 1;
}

/* ═══ Interrupteur Accumulation / Distribution ═══ */
.switch-autoadj-container {
  opacity: 1; gap: 8px; min-width: 0; padding: 4px 12px 4px 10px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.switch { width: 34px; height: 18px; margin: 0; flex: none; }
.slider { background-color: var(--text-4); border-radius: 999px; transition: background-color var(--tr); }
.slider:before {
  height: 14px; width: 14px; left: 2px; bottom: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform var(--tr);
}
input:checked + .slider { background-color: var(--blue); }
input:checked + .slider:before { transform: translateX(16px); }
.autoadj-switch-text { font-size: .8rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }

/* Pastille d'aide, discrète mais lisible */
.info-icon {
  width: 14px; height: 14px; line-height: 12px; font-size: 9px;
  border-color: var(--border); color: var(--text-3); background: var(--surface);
  align-self: center; margin-left: 0;
}
.info-icon:hover { background-color: var(--blue); border-color: var(--blue); color: #fff; }

/* Mention de traduction : à la suite du texte, dans le même paragraphe
   (voir DescriptionManager.render) - d'où l'affichage en ligne et atténué. */
.desc-note { display: inline; color: var(--text-4); font-size: .82rem; white-space: nowrap; }

/* ═══ Bouton flottant « + » et ses actions - révision 2026-08-09 ═══ */

/* Le « + » était remonté de 7 % (règle héritée d'une police à métriques
   différentes) : `place-items:center` suffit à le centrer. */
@media (width >= 768px) { .fab-icon { transform: none; } }
.fab-icon { line-height: 1; display: block; }

/* Actions : mêmes codes que le reste du site (pilule blanche, bordure fine,
   texte lisible) plutôt que deux bordures épaisses de couleurs différentes. */
.fab-action {
  min-width: 236px;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-family: inherit; font-size: .88rem; font-weight: 600; text-align: left;
  box-shadow: 0 4px 14px rgba(10, 20, 30, .13);
}
#btn-add-list, #addToPortfolioBtn { border: 1px solid var(--border); color: var(--text-2); }
#btn-add-list::before, #addToPortfolioBtn::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none;
}
#btn-add-list::before { background: var(--blue); }
#addToPortfolioBtn::before { background: var(--teal-dk, #0f766e); }
#btn-add-list:hover { background: var(--blue-50); border-color: var(--blue); color: var(--text); }
#addToPortfolioBtn:hover { background: var(--teal-50, #e6f6f4); border-color: var(--teal-dk); color: var(--text); }

/* Les deux panneaux : hauteur bornée à l'écran + DÉFILEMENT quand la liste
   déborde (auparavant, au-delà d'une dizaine de listes, la fin était
   inatteignable). */
#list-dropdown, #portfolioDropdown {
  top: 50%;
  max-height: min(70vh, 560px);
  display: none;              /* rétabli par le JS */
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  padding: 16px 18px;
}
#list-dropdown[style*="block"], #portfolioDropdown[style*="block"] { display: flex !important; }
#list-options, #portfolioList {
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  margin: 0 -6px; padding: 0 6px; flex: 1 1 auto; min-height: 0;
}
#list-dropdown h4, #portfolioDropdown h4 {
  margin: 0 0 10px; font-size: 1rem; font-weight: 800; color: var(--text);
}
/* Lignes RESSERRÉES : à 39 px de haut, une dizaine de listes seulement tenaient
   dans le panneau - il faut en parcourir 55. À 27 px, on en voit le double sans
   perdre la cible du clic (la ligne occupe toute la largeur). */
#list-options div, #portfolioList li {
  padding: 4px 8px; border-radius: var(--r-sm); cursor: pointer;
  font-size: .86rem; line-height: 1.3; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#list-options .blue-bullet::before { margin-right: 5px; }
/* Le panneau profite de la place gagnée : plus haut, il montre plus de lignes. */
#list-dropdown, #portfolioDropdown { max-height: min(78vh, 640px); }
#list-options div:hover, #portfolioList li:not(.locked):hover { background: var(--bg); }

/* Saisie d'une position (modale du bouton « + ») - mêmes champs que /patrimoine. */
#orderModal h2 { margin: 0 0 2px; font-size: 1.15rem; font-weight: 800; color: var(--text); }
#orderModal .pos-dest { margin: 0 0 14px; font-size: .85rem; color: var(--text-3); }
#orderModal .pos-dest strong { color: var(--text-2); }
.pos-form { display: grid; gap: 4px 12px; margin-bottom: 16px; }
.pos-form label { font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: var(--text-3); margin-top: 8px; }
.pos-form input, .pos-form select {
  font-family: inherit; font-size: .92rem; padding: 8px 10px; width: 100%;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-2);
}
.pos-form input:focus, .pos-form select:focus { outline: none; border-color: var(--blue); }
#submitOrderBtn {
  width: 100%; font-family: inherit; font-size: .92rem; font-weight: 700;
  padding: 10px 16px; border: none; border-radius: var(--r-sm);
  background: var(--teal-dk, #0f766e); color: #fff; cursor: pointer;
}
#submitOrderBtn:hover { filter: brightness(1.08); }
#submitOrderBtn:disabled { opacity: .6; cursor: default; }

/* Liste des portefeuilles du patrimoine */
#portfolioList li { display: flex; align-items: center; gap: 8px; }
#portfolioList .pf-nom { font-weight: 600; color: var(--text-2); }
#portfolioList .pf-etab { font-size: .78rem; color: var(--text-4); margin-left: auto; }
#portfolioList li.locked { opacity: .55; cursor: not-allowed; }
#portfolioList .pf-vide { padding: 10px; color: var(--text-3); font-size: .88rem; cursor: default; }
#portfolioList .pf-vide a { color: var(--blue); }
/* Cadre de la modale de saisie aligné sur les autres panneaux (bordure fine,
   ombre portée) plutôt que l'ancien liseré bleu de 2 px. */
#orderModal {
  top: 50%;
  max-width: min(340px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  padding: 18px 20px;
}
/* Création rapide d'un portefeuille depuis le panneau de choix. */
.pf-nouveau { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border); flex: none; }
.pf-nouveau input {
  flex: 1 1 auto; min-width: 0; font-family: inherit; font-size: .88rem; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-2);
}
.pf-nouveau input:focus { outline: none; border-color: var(--teal-dk, #0f766e); }
.pf-nouveau button, #createPfBtn {
  flex: none; font-family: inherit; font-size: .86rem; font-weight: 700; padding: 8px 16px;
  border: none; border-radius: var(--r-sm); background: var(--teal-dk, #0f766e); color: #fff; cursor: pointer;
}
.pf-nouveau button:hover, #createPfBtn:hover { filter: brightness(1.08); }
.pf-nouveau button:disabled, #createPfBtn:disabled { opacity: .6; cursor: default; }

/* ═══════════════════════════════════════════════════════════════════════════
   2026-09-07 - Conteneur SOCIÉTÉ sous l'en-tête, SEPT INDICATEURS (tuiles-
   boutons de la colonne de gauche) et leur fenêtre de détail. Les profils de
   liste (.tk-arch-*) ne sont plus rendus.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Société : trois colonnes (faits · activité · analystes) ── */
/* Faits de la société EN LIGNE à gauche, analystes à droite, activité en dessous
   sur toute la largeur (ordre demandé le 2026-09-07). */
/* Faits remontés dans l'en-tête (2026-09-07) : le conteneur Société = activité à gauche,
   analystes à droite. */
.tk-societe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  grid-template-areas: "desc analystes"; gap: 20px 32px; }
.tkh-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 18px;
  margin: 12px 0 0; padding: 0; border: none; }
.tkh-facts .tk-fact dt { font-size: .62rem; margin-bottom: 1px; }
.tkh-facts .tk-fact dd { font-size: .82rem; }
.tkh .tkh-ident { flex: 1 1 auto; min-width: 0; }
.tk-soc-facts { grid-area: facts; }
.tk-soc-analystes { grid-area: analystes; padding-left: 28px; border-left: 1px solid var(--border-lt); }
.tk-soc-desc { grid-area: desc; }
/* Société : faits en grille adaptative (retour au réglage précédent, 2026-09-07 :
   la ligne unique de 8 colonnes et les objectifs côte à côte ont été essayés puis abandonnés). */
.tk-facts-ligne { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 22px; }
.tk-societe .tk-h2 { margin-bottom: 10px; }
.tk-soc-col { min-width: 0; }
.tk-soc-facts .tk-facts, .tk-reco-cibles { border-bottom: none; padding: 0; margin: 0; }
.tk-facts-col { display: grid; grid-template-columns: 1fr; gap: 9px 0; }
.tk-fact-lien { color: var(--blue); text-decoration: none; }
.tk-fact-lien:hover { text-decoration: underline; }
.tk-soc-desc .societe-desc { margin: 0; }
.tk-soc-desc .desc-text { font-size: .88rem; line-height: 1.55; color: var(--text-2); margin: 0 0 6px; }
.tk-soc-vide { font-size: .86rem; color: var(--text-3); margin: 0; }
.tk-reco-tete { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tk-reco-mot { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.tk-reco-mot.ok { color: #12a35a; }
.tk-reco-mot.moy { color: #c98a05; }
.tk-reco-mot.bas { color: #d0473d; }
.tk-reco-nb { font-size: .8rem; color: var(--text-3); }
.tk-reco-echelle { margin: 4px 0 14px; }
.tk-reco-barre { position: relative; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #12a35a 0%, #eaa11a 50%, #d0473d 100%); }
.tk-reco-curseur { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--surface, #fff); border: 3px solid var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tk-reco-legende { display: flex; justify-content: space-between; font-size: .68rem; color: var(--text-4); margin-top: 5px; }
.tk-reco-ecart { font-size: .78rem; font-weight: 700; margin-left: 6px; }
.tk-reco-ecart.pos { color: #12a35a; }
.tk-reco-ecart.neg { color: #d0473d; }
@media (max-width: 900px) {
  .tk-societe { grid-template-columns: 1fr; grid-template-areas: "desc" "analystes"; gap: 18px; }
  .tk-soc-analystes { padding-left: 0; border-left: none; padding-top: 14px; border-top: 1px solid var(--border-lt); }
}

/* ── Sept indicateurs : tuiles-boutons ── */
.tk-indics { display: grid; grid-template-columns: 1fr; gap: 10px; }   /* même intervalle que sous la note */
.tk-indic {
  display: grid; grid-template-columns: 1fr 16px; align-items: center; gap: 10px;
  width: 100%; text-align: left; padding: 9px 10px 9px 12px; cursor: pointer;
  background: var(--surface, #fff); border: 1px solid var(--border);
  border-radius: 10px; font: inherit; color: var(--text); transition: border-color .14s, background .14s, transform .14s;
}
.tk-indic:hover { background: var(--bg); border-color: var(--blue); transform: translateX(2px); }
.tk-indic:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* liserés colorés retirés (2026-09-07) : la couleur ne subsiste que dans l'anneau de la note */
.tk-indic-n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: var(--text-3); background: var(--bg); }
.tk-indic-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tk-indic-lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.tk-indic-val { font-size: 1.22rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.15; }
.tk-indic-sub { font-size: .74rem; color: var(--text-4); }
.tk-indic-verdict { font-size: .76rem; font-weight: 600; color: var(--text-2); }
.tk-indic.ok .tk-indic-verdict { color: #12a35a; }
.tk-indic.moy .tk-indic-verdict { color: #c98a05; }
.tk-indic.bas .tk-indic-verdict { color: #d0473d; }
.tk-indic-chev { color: var(--text-4); }
.tk-indic:hover .tk-indic-chev { color: var(--blue); }
/* la colonne de gauche s'étire, mais les tuiles gardent un intervalle CONSTANT
   (plus de répartition de la hauteur en trop, demande 2026-09-07) */
.tk-sec-indics { display: flex; flex-direction: column; }
.tk-sec-indics .tk-indics { flex: 1; align-content: start; }

/* ── Fenêtre de détail d'un indicateur ── */
.tki-modal { position: fixed; inset: 0; z-index: 1000; }
.tki-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.tki-box { position: relative; max-width: 820px; width: calc(100% - 32px); max-height: calc(100vh - 48px); overflow-y: auto;
  margin: 24px auto; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 18px 22px 22px; }
.tki-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tki-sur { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.tki-titre { margin: 2px 0 0; font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.tki-close { border: none; background: none; font-size: 1.7rem; line-height: 1; color: var(--text-3); cursor: pointer; padding: 0 4px; }
.tki-close:hover { color: var(--text); }
.tki-verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 10px 14px; border-radius: 10px;
  background: var(--bg); border-left: 4px solid var(--border); margin-bottom: 12px; }
.tki-verdict.ok { border-left-color: #12a35a; }
.tki-verdict.moy { border-left-color: #eaa11a; }
.tki-verdict.bas { border-left-color: #d0473d; }
.tki-verdict-val { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tki-verdict-sub { font-size: .84rem; color: var(--text-3); }
.tki-verdict-txt { font-size: .86rem; font-weight: 600; color: var(--text-2); }
.tki-intro { font-size: .86rem; line-height: 1.5; color: var(--text-2); margin: 0 0 14px; }
.tki-graph { margin: 4px 0 14px; }
.tki-clbl { font-size: .78rem; font-weight: 700; color: var(--text-2); padding: 8px 0 2px; }
.tki-resume { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 16px; margin: 0 0 14px; }
.tki-resume div { padding: 8px 10px; border: 1px solid var(--border-lt); border-radius: 8px; }
.tki-resume dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.tki-resume dd { margin: 2px 0 0; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tki-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-bottom: 10px; }
.tki-table td, .tki-table th { padding: 7px 8px; border-bottom: 1px solid var(--border-lt); text-align: left; vertical-align: top; }
.tki-table th { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.tki-table td.num, .tki-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tki-table tbody td:first-child { color: var(--text-2); }
.tki-table tbody td.num { font-weight: 600; }
.tki-table-tri tbody tr:first-child td { font-weight: 700; }
body.tki-ouverte { overflow: hidden; }

/* ── Note globale sur 100 (2026-09-07) : anneau + libellé, même tuile-bouton ── */
.tk-note { grid-template-columns: 54px 1fr 16px; margin-bottom: 10px; padding: 12px 10px 12px 12px; }
.tk-note-anneau {
  width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--note-c, var(--blue)) calc(var(--pct) * 1%), var(--border-lt) 0);
}
.tk-note-anneau::before { content: ''; position: absolute; width: 40px; height: 40px; border-radius: 50%; background: var(--surface, #fff); }
.tk-note-anneau { position: relative; }
.tk-note-val { position: relative; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.tk-note.ok  { --note-c: #12a35a; }
.tk-note.moy { --note-c: #eaa11a; }
.tk-note.bas { --note-c: #d0473d; }
.tk-note-sur { font-size: .82rem; font-weight: 700; color: var(--text-2); }
.tki-table-grille tbody td:last-child { white-space: normal; text-align: left; font-weight: 400; font-size: .78rem; color: var(--text-3); }
.tki-table-grille thead th:last-child { text-align: left; }
.tk-note-sur { text-transform: none; }

/* ── Fenêtre des indicateurs : barre durée + mode (2026-09-07), même dessin que l'Historique ── */
.tki-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.tki-duree { display: inline-flex; gap: 3px; padding: 3px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; }
.tki-dur { font-family: inherit; font-size: .78rem; font-weight: 600; padding: 5px 12px; border: none; background: none;
  color: var(--text-3); cursor: pointer; border-radius: 999px; margin: 0; transition: background var(--tr), color var(--tr); }
.tki-dur:hover { background: var(--surface); color: var(--text); }
.tki-dur.active { background: var(--blue); color: #fff; font-weight: 700; }
.tki-switch { display: inline-flex; align-items: center; cursor: pointer; }
.tki-periode { margin-left: auto; font-size: .76rem; color: var(--text-4); font-variant-numeric: tabular-nums; }
.tki-chargement #tkiPanels { opacity: .45; pointer-events: none; transition: opacity .15s; }
.tki-sousnote { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--surface, #fff);
  border: 1px solid var(--border); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--text); }
.tki-sousnote small { font-size: .68rem; font-weight: 600; color: var(--text-3); }

/* ── Fenêtre Santé financière : graphique CA / résultat + tableau par exercice (2026-09-07) ── */
.tki-fin-toolbar { display: inline-flex; gap: 3px; padding: 3px; margin: 0 0 8px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px; }
.tki-fin-btn { font-family: inherit; font-size: .78rem; font-weight: 600; padding: 5px 12px; border: none; background: none;
  color: var(--text-3); cursor: pointer; border-radius: 999px; margin: 0; }
.tki-fin-btn:hover { background: var(--surface); color: var(--text); }
.tki-fin-btn.active { background: var(--teal-dk, #0f766e); color: #fff; font-weight: 700; }
.tki-graph-fin { position: relative; min-height: 300px; }
.tki-detail { margin-top: 6px; }
.tki-detail-sum { cursor: pointer; font-size: .84rem; font-weight: 700; color: var(--text-2); padding: 6px 0; }
.tki-table-exos td:first-child { white-space: nowrap; font-weight: 600; }
.tki-table-grille.tki-table-exos tbody td:last-child { white-space: nowrap; text-align: right; font-weight: 600; font-size: .86rem; color: var(--text); }

/* Annuel/Trimestriel : capsule teal (couleur du contrôle) */
.tki-fin-toolbar { --seg-pill: var(--teal-dk, #0f766e); }
/* Fenêtre Note globale : point coloré à côté de chaque mesure (2026-09-07) */
/* le point occupe le bord GAUCHE de la cellule (colonne alignée), la mesure reste à droite */
.tki-mesure { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.tki-point { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.tki-point.ok { background: #12a35a; }
.tki-point.moy { background: #eaa11a; }
.tki-point.bas { background: #d0473d; }
.tki-aide { text-decoration: none; cursor: inherit; }   /* infobulle discrète : ni soulignement ni curseur d'aide */
