.outil-page { padding: 48px 0 96px; }
.outil-entete h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.outil-entete h1::after { content: ""; display: block; width: 48px; height: 3px;
  background: var(--gold); margin-top: 12px; }
.outil-sous-titre { color: var(--muted); margin-top: 10px; }

.outil-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; padding: 10px 0;
  border-bottom: 1px solid var(--border); }
.outil-tab { background: var(--bg-card); border: 1px solid var(--border); color: var(--muted);
  font-family: inherit; font-size: 0.85rem; font-weight: 600; padding: 9px 16px;
  border-radius: 8px; cursor: pointer; transition: color var(--transition), border-color var(--transition); }
.outil-tab:hover { color: var(--text); border-color: var(--gold-dim); }
.outil-tab.is-active { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }

.outil-recherche { position: relative; margin: 32px 0; }
#outil-q { width: 100%; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; color: var(--text);
  font: inherit; font-size: 1.05rem; outline: none; transition: border var(--transition); }
#outil-q:focus { border-color: var(--gold); }
#outil-suggestions { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 6px);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  list-style: none; overflow: hidden; }
#outil-suggestions li { padding: 10px 16px; cursor: pointer; display: flex; gap: 10px;
  align-items: baseline; }
#outil-suggestions li:hover, #outil-suggestions li.actif { background: var(--bg-raised); }
#outil-suggestions .s-ticker { color: var(--gold); font-weight: 700; }
#outil-suggestions .s-place { color: var(--muted); font-size: 0.8rem; margin-left: auto; }

.outil-etat { text-align: center; padding: 48px 0; color: var(--muted); }
.outil-etat.chargement::before { content: ""; display: inline-block; width: 22px; height: 22px;
  border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%;
  margin-bottom: 12px; animation: outil-rot 0.8s linear infinite; }
@keyframes outil-rot { to { transform: rotate(360deg); } }

.outil-fiche { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
.outil-fiche[hidden] { display: none; }
@media (max-width: 760px) { .outil-fiche { grid-template-columns: 1fr; } }

.outil-synthese { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; align-self: start;
  position: sticky; top: 84px; }
@media (max-width: 760px) { .outil-synthese { position: static; } }
.outil-titre h2 { font-size: 1.25rem; }
.outil-meta { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.outil-pill { background: rgba(232,197,71,0.14); color: var(--gold);
  border-radius: 4px; padding: 1px 7px; font-size: 0.72rem; font-weight: 700; }
.outil-note { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 10px; }
.outil-note span:first-child { font-size: 3rem; font-weight: 800; color: var(--gold);
  line-height: 1; }
.outil-note small { color: var(--muted); }
.outil-badge { background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px; font-size: 0.8rem; font-weight: 600; }
.outil-compteur { color: var(--muted); font-size: 0.78rem; margin-bottom: 16px; }

.outil-piliers { position: static; background: none; backdrop-filter: none;
  -webkit-backdrop-filter: none; border-bottom: 0; padding: 0; z-index: auto;
  display: flex; flex-direction: column; gap: 6px; }
.outil-piliers button { display: flex; justify-content: space-between; align-items: center;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; color: var(--text); font: inherit; font-size: 0.9rem;
  cursor: pointer; transition: border var(--transition), background var(--transition); }
.outil-piliers button:hover { background: var(--bg-raised); }
.outil-piliers button.actif { border-color: var(--gold); background: var(--bg-raised); }
.outil-piliers .p-note { color: var(--gold); font-weight: 700; }
.outil-piliers .p-na { color: var(--muted); font-size: 0.78rem; }

.outil-esg { display: inline-block; margin-top: 18px; color: var(--gold);
  font-size: 0.85rem; text-decoration: none; }
.outil-esg:hover { text-decoration: underline; }
.outil-disclaimer { color: var(--muted); font-size: 0.72rem; margin-top: 14px;
  border-top: 1px solid var(--border); padding-top: 12px; }

.outil-detail { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; overflow-x: auto; }
.outil-detail h3 { margin-bottom: 14px; }
.outil-criteres { width: 100%; border-collapse: collapse; }
.outil-criteres td { padding: 10px 6px; border-bottom: 1px solid var(--border);
  font-size: 0.92rem; }
.outil-criteres td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; }
.outil-criteres td:last-child { text-align: right; white-space: nowrap; }
.outil-criteres .c-nd { color: var(--muted); }

.outil-paywall { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px; margin-top: 32px;
  max-width: 560px; text-align: center; margin-left: auto; margin-right: auto; }
.outil-paywall-titre { color: var(--gold); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 12px; }
.outil-paywall p { color: var(--muted); line-height: 1.6; }
.outil-paywall-btn { display: inline-block; margin-top: 20px; background: var(--gold);
  color: #111; font-weight: 700; padding: 12px 26px; border-radius: 8px;
  text-decoration: none; }
.outil-paywall-btn:hover { filter: brightness(1.08); }
.outil-paywall-connexion { margin-top: 14px; font-size: 0.85rem; }
.outil-paywall-connexion a { color: var(--gold); }

/* ── Choix d'abonnement (mensuel / annuel) ───────────────────────── */
.plan-choix { display: flex; gap: 14px; margin-top: 20px; }
.plan-carte { flex: 1; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 16px; cursor: pointer; text-align: center;
  transition: border var(--transition), transform var(--transition); position: relative; }
.plan-carte:hover { border-color: var(--gold); transform: translateY(-1px); }
.plan-carte.recommande { border-color: var(--gold); }
.plan-carte-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #0a0a0a; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
  white-space: nowrap; }
.plan-carte-nom { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.plan-carte-prix { font-size: 1.5rem; font-weight: 800; color: var(--gold); margin: 8px 0 2px; }
.plan-carte-prix small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.plan-carte-detail { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 480px) { .plan-choix { flex-direction: column; } }

/* ── Bloc teaser (anonyme : note visible, détail verrouillé) ─────── */
.outil-teaser-cta { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px; margin: 24px auto 0;
  max-width: 560px; text-align: center;
  position: relative; overflow: hidden; }
.outil-teaser-cta::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(232,197,71,0.06), transparent 60%);
  pointer-events: none; }
.outil-teaser-lock { position: relative; }
.outil-teaser-titre { color: var(--gold); font-weight: 800; font-size: 1.15rem;
  margin-bottom: 12px; line-height: 1.4; }
.outil-teaser-cta p { color: var(--muted); line-height: 1.6; }

/* ── Stats clés (panneau droit) ─────────────────────────────────── */
.outil-stats-key { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; overflow-x: auto; }

/* ── Radar (toile d'araignée) ───────────────────────────────────── */
.outil-radar-wrap { margin: 14px 0; max-width: 100%; }

/* ── VeriValue chart ────────────────────────────────────────────── */
.outil-valeur-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}

.outil-valeur-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.outil-valeur-header h3 { font-size: 1rem; font-weight: 700; }
.outil-tradingview-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}
.outil-tradingview-titre { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.outil-tradingview-wrap { position: relative; height: 400px; border-radius: 8px; overflow: hidden; }
.outil-tradingview-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.vv-valeur { color: var(--gold); font-weight: 800; margin-left: 6px; }

.vv-statut {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.vv-statut--sur-fort   { background: rgba(220,60,50,0.18);  color: #e05a4a; }
.vv-statut--sur-modere { background: rgba(220,60,50,0.10);  color: #d68a7a; }
.vv-statut--equitable  { background: rgba(160,160,160,0.15); color: var(--muted); }
.vv-statut--sous-modere{ background: rgba(50,200,80,0.10);  color: #7ac98f; }
.vv-statut--sous-fort  { background: rgba(50,200,80,0.18);  color: #4fbf6f; }

.vv-legend { display: flex; gap: 16px; font-size: 0.78rem; }
.vl-item { color: var(--muted); }
.vl-prix { color: #4a9eff; }
.vl-vv   { color: rgba(200,200,200,0.65); }

.outil-valeur-canvas { position: relative; height: 280px; }

.outil-valeur-note {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  line-height: 1.5;
}

/* ── Tableau détaillé ───────────────────────────────────────────── */
.outil-tableau-section { margin-top: 20px; }

.outil-tableau-titre {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.t-piliers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 700px) { .t-piliers-grid { grid-template-columns: 1fr; } }

.t-pilier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow: hidden;
}

.t-pilier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.t-pilier-nom {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.t-pilier-score { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.t-pilier-bar-bg {
  width: 56px; height: 5px;
  background: var(--bg-raised);
  border-radius: 3px; overflow: hidden;
}

.t-pilier-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.5s ease;
}

.t-pilier-note-lbl {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Score colors — pilier */
.tn-good { background: #3da86e; }
.tn-mid  { background: #c89b30; }
.tn-bad  { background: #c05040; }
.tn-nd   { background: var(--border); }

.t-criteres {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.t-criteres td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.t-criteres tr:last-child td { border-bottom: none; }

.t-criteres td:first-child { color: var(--muted); }

.t-criteres .t-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
  padding-right: 8px;
  width: 80px;
}

.t-criteres .t-bar { width: 60px; padding: 0 5px; }

.tb-wrap {
  height: 4px;
  background: var(--bg-raised);
  border-radius: 2px;
  overflow: hidden;
}

.tb-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.45s ease;
}

.tb-good { background: #3da86e; }
.tb-mid  { background: #c89b30; }
.tb-bad  { background: #c05040; }
.tb-nd   { background: var(--border); width: 100%; }

.t-criteres .t-niv {
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.75rem;
  width: 100px;
}

.t-criteres .c-nd td { color: var(--muted); font-style: italic; }

/* ── Sections détail GuruFocus ──────────────────────────────────── */
.vv-na { color: var(--muted); font-size: 0.85rem; font-weight: 400; }

.outil-details-section { margin-top: 20px; }
.outil-details-titre {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Onglets interactifs ──────────────────────────────────────── */
.dv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.dv-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 13px;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.dv-tab:hover { background: var(--bg-raised); color: var(--text); }

.dv-tab-actif {
  border-color: var(--gold);
  background: var(--bg-raised);
  color: var(--text);
  font-weight: 600;
}

.dv-tab-dot { font-size: 0.55rem; line-height: 1; }

.dv-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.dv-panel-titre {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}

/* Layout 2 colonnes : métriques gauche | graphique+tableau droite */
.dv-panel-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 700px) {
  .dv-panel-body { grid-template-columns: 1fr; }
}

/* Colonne métriques */
.dv-items-col { min-width: 0; }

/* Colonne droite : graphique + tableau */
.dv-right-col { min-width: 0; }

/* Graphique */
.dv-chart-wrap {
  position: relative;
  height: 200px;
  margin-bottom: 14px;
}

/* Tableau multi-années */
.dv-tableau {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.dv-tableau table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.dv-tableau thead tr { border-bottom: 1px solid var(--border); }

.dv-tableau th {
  padding: 6px 10px;
  text-align: right;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--bg-raised);
}

.dv-tableau th:first-child { text-align: left; color: var(--muted); font-weight: 400; }

.dv-tableau td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.dv-t-nom {
  color: var(--muted);
  font-size: 0.76rem;
  min-width: 140px;
}

.dv-tableau td:not(.dv-t-nom) {
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.dv-tableau tr:last-child td { border-bottom: none; }

.dv-nd { color: var(--border); }

/* ── Tableau de métriques ─────────────────────────────────────── */
.d-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.d-items tr:last-child td { border-bottom: none; }

.d-items td {
  padding: 5px 4px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.di-dot {
  width: 14px;
  font-size: 0.6rem;
  padding-right: 6px;
}

.di-nom  { color: var(--muted); }

.di-val  {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}

.di-unite { color: var(--muted); font-size: 0.75rem; }
.di-nd    { color: var(--muted); font-style: italic; }

.di-good { color: #3da86e; }
.di-mid  { color: #c89b30; }
.di-bad  { color: #c05040; }
.di-na   { color: var(--border); }
