/* Page d'étude « Quelles langues sont les plus difficiles à apprendre ? »
   (language-difficulty-study.php, include/study/language-study-view.php).
   Graphiques en HTML/CSS : barres = .ls-bar, carte = SVG .wm coloré par --ls-b1 … --ls-b5
   (1 = plus facile, 5 = plus difficile ; plus foncé = plus difficile). */

.lstudy {
  --ls-ink: #1d3b36;
  --ls-muted: #5b6f6b;
  --ls-line: #dfe9e6;
  --ls-accent: #1f8a7a;
  --ls-b1: #d6efe9;
  --ls-b2: #a6dbcf;
  --ls-b3: #6cbfae;
  --ls-b4: #34978a;
  --ls-b5: #0f5f56;
  --ls-none: #e7ebea;
  max-width: 920px;
  margin: 24px auto 48px;
  padding: 28px clamp(16px, 4vw, 40px) 40px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 24px rgba(15, 95, 86, 0.08);
  color: var(--ls-ink);
  font-family: Nunito, system-ui, sans-serif;
  line-height: 1.55;
  text-align: start;
}
.lstudy h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; margin: 0 0 8px; }
.lstudy h2 { font-size: 1.35rem; margin: 0 0 12px; }
.lstudy h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.ls-sub { color: var(--ls-accent); font-weight: 700; margin: 0 0 12px; }
.ls-sec { margin-top: 36px; }

.ls-keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ls-keys li { background: #f3faf8; border: 1px solid var(--ls-line); border-radius: 14px; padding: 14px 16px; }

/* Carte */
.ls-mapfig { margin: 0; }
.wm { width: 100%; height: auto; display: block; }
.wm path { fill: var(--ls-none); stroke: #fff; stroke-width: 0.6; }
.ls-mapfig figcaption { color: var(--ls-muted); font-size: 0.9rem; margin-top: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ls-legend { display: inline-flex; }
.ls-legend i { width: 22px; height: 12px; display: inline-block; }
.ls-legend .b1 { background: var(--ls-b1); } .ls-legend .b2 { background: var(--ls-b2); }
.ls-legend .b3 { background: var(--ls-b3); } .ls-legend .b4 { background: var(--ls-b4); }
.ls-legend .b5 { background: var(--ls-b5); }

/* Barres */
.ls-bar { flex: 1 1 auto; height: 10px; background: #eef4f2; border-radius: 6px; overflow: hidden; min-width: 60px; }
.ls-bar__fill { display: block; height: 100%; background: var(--ls-accent); border-radius: 6px; }
.ls-val { font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 3.6em; text-align: end; }
.ls-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ls-bars li { display: flex; align-items: center; gap: 10px; }
.ls-pair { flex: 0 0 44%; overflow-wrap: anywhere; }
.ls-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Classement */
.ls-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ls-table th, .ls-table td { padding: 7px 6px; border-bottom: 1px solid var(--ls-line); text-align: start; }
.ls-table th { color: var(--ls-muted); font-weight: 700; }
.ls-table td:first-child { color: var(--ls-muted); width: 2em; }
.ls-cellbar { display: flex; align-items: center; gap: 10px; }
.ls-table a { color: var(--ls-accent); }

.ls-faq h3 { margin-top: 18px; }
.ls-method p { color: var(--ls-muted); font-size: 0.92rem; }

@media (max-width: 700px) {
  .lstudy { margin: 12px; border-radius: 16px; }
  .ls-cols { grid-template-columns: 1fr; gap: 8px; }
  .ls-table th:nth-child(4), .ls-table td:nth-child(4) { display: none; }
  .ls-pair { flex-basis: 50%; }
}
