/* ============================================================
   Articles "Cas d'école" (produits structurés)
   Styles isolés, préfixe .art- ; le header fixe du site est
   compensé par le padding-top de .art-page (comme .sp-page).
   ============================================================ */

.art-page, .art-tip {
  --navy: #12143a;
  --blue: #0366ff;
  --blue-soft: #eef0fb;
  --ink: #0a0a0a;
  --ink-2: #000000b3;
  --ink-3: #00000080;
  --line: #e3e6ef;
  --surface: #ffffff;
  --loss: #d64545;
  --alt: #e0752f;
  --radius: 20px;
}
.art-page {
  padding-top: var(--sp-nav-offset, 74px);
  background: #ffffff; color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif; font-size: 18px; line-height: 1.65;
  letter-spacing: -0.01em;
}
@media (max-width: 768px) {
  .art-page { padding-top: var(--sp-nav-offset, 70px); }
}
.art-page article { padding-bottom: 64px; }


/* En-tête d'article */
.art-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.art-wide { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.art-crumbs { padding-top: 32px; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px; }
.art-crumbs a:hover { color: var(--blue); }
.art-crumbs span[aria-hidden] { color: #0000004d; }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.art-tag {
  font-family: "Inter Tight", system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0;
  padding: 4px 12px; border-radius: 100px; background: var(--blue-soft); color: var(--blue);
}
.art-tag.art-dark { background: var(--navy); color: #fff; }
.art-page h1 {
  margin-top: 18px; font-family: "Inter Tight", system-ui, sans-serif; font-weight: 600;
  font-size: 46px; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance;
}
.art-lede { margin-top: 18px; font-size: 21px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.art-meta {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 15px; color: var(--ink-3);
}
.art-meta b { color: var(--ink); font-weight: 600; }
.art-avatar-g {
  width: 36px; height: 36px; border-radius: 100px; background: var(--navy) url("../assets/images/cas-ecole/logo-g.svg") no-repeat center / 70% auto;
}
.art-author { display: flex; align-items: center; gap: 10px; }

/* Couverture */
.art-cover { margin-top: 36px; }
.art-cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.art-page figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* Fiche produit */
.art-fiche {
  margin-top: 40px; border-radius: var(--radius); background: var(--navy); color: #fff; padding: 26px 28px;
}
.art-fiche-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.art-fiche-head h2 { font-family: "Inter Tight", system-ui, sans-serif; font-size: 20px; font-weight: 600; margin: 0; }
.art-fiche-head span { font-size: 14px; color: #ffffffa6; }
.art-fiche-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.art-fiche-grid div { background: #ffffff12; border: 1px solid #ffffff1f; border-radius: 12px; padding: 12px 14px; }
.art-fiche-grid small { display: block; font-size: 12px; line-height: 1.4; color: #ffffffa6; }
.art-fiche-grid b { display: block; margin-top: 4px; font-family: "Inter Tight", system-ui, sans-serif; font-size: 17px; font-weight: 600; line-height: 1.3; }
.art-fiche-grid .art-span2 { grid-column: span 2; }

/* Points clés */
.art-keypoints { margin-top: 28px; border-radius: var(--radius); background: var(--blue-soft); padding: 26px 28px; }
.art-keypoints h2 { margin: 0; font-family: "Inter Tight", system-ui, sans-serif; font-size: 20px; font-weight: 600; }
.art-keypoints ol { margin-top: 14px; list-style: none; counter-reset: k; display: grid; gap: 12px; }
.art-keypoints li { counter-increment: k; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 17px; line-height: 1.55; }
.art-keypoints li::before {
  content: counter(k); width: 26px; height: 26px; border-radius: 100px; background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* Corps */
.art-body { margin-top: 12px; }
.art-body h2 {
  margin-top: 56px; font-family: "Inter Tight", system-ui, sans-serif; font-size: 30px; font-weight: 600;
  line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance;
}
.art-body h2 .art-num { display: block; font-size: 14px; font-weight: 600; color: var(--blue); letter-spacing: 0; margin-bottom: 6px; }
.art-body p { margin-top: 18px; text-wrap: pretty; }
.art-body strong { font-weight: 600; }
.art-callout {
  margin-top: 30px; border-left: 4px solid var(--blue); background: #f6f8ff; border-radius: 0 14px 14px 0;
  padding: 18px 22px; font-size: 17px;
}
.art-callout b { display: block; font-family: "Inter Tight", system-ui, sans-serif; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.art-quote {
  margin-top: 36px; padding: 6px 0 6px 26px; border-left: 3px solid var(--line);
  font-family: "Inter Tight", system-ui, sans-serif; font-size: 25px; font-weight: 500; line-height: 1.35; letter-spacing: -0.02em;
}
.art-warn {
  margin-top: 30px; border-radius: 14px; background: #fff6ef; border: 1px solid #f6d9c3; padding: 18px 22px; font-size: 17px;
}
.art-warn b { display: block; font-family: "Inter Tight", system-ui, sans-serif; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: #b4521b; margin-bottom: 6px; }

/* Chiffres clés */
.art-stats { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.art-stat { border-radius: 16px; border: 1px solid var(--line); padding: 18px 18px 16px; }
.art-stat b { display: block; font-family: "Inter Tight", system-ui, sans-serif; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.art-stat span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }

/* Graphiques */
.art-chart { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 18px; background: var(--surface); }
.art-chart-title { font-family: "Inter Tight", system-ui, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.35; }
.art-chart-sub { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.art-chart-source { margin-top: 14px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.art-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.art-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: 0; }

/* Barres horizontales */
.art-hbars { margin-top: 18px; display: grid; gap: 14px; }
.art-hbar { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 14px; }
.art-hbar-label { font-size: 15px; line-height: 1.3; color: var(--ink); }
.art-hbar-label small { display: block; color: var(--ink-3); font-size: 13px; }
.art-hbar-track { position: relative; height: 22px; display: flex; align-items: center; }
.art-hbar-fill { height: 22px; border-radius: 0 4px 4px 0; background: var(--blue); min-width: 2px; transition: filter .2s; }
.art-hbar-val { margin-left: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; }

/* Barres divergentes (gain / perte autour de 0) */
.art-dbars { margin-top: 18px; display: grid; gap: 14px; }
.art-dbar { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 14px; }
.art-dbar-plot { position: relative; height: 26px; }
.art-dbar-plot::before { content: ""; position: absolute; left: var(--zero); top: -6px; bottom: -6px; width: 1px; background: #0000004d; }
.art-dbar-fill { position: absolute; top: 2px; height: 22px; }
.art-dbar-fill.art-pos { left: var(--zero); border-radius: 0 4px 4px 0; background: var(--blue); }
.art-dbar-fill.art-neg { right: calc(100% - var(--zero)); border-radius: 4px 0 0 4px; background: var(--loss); }
.art-dbar-val { position: absolute; top: 2px; line-height: 22px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.art-dbar-axis { display: grid; grid-template-columns: 170px 1fr; gap: 14px; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.art-dbar-axis span { position: relative; }
.art-dbar-axis em { position: absolute; left: var(--zero); transform: translateX(-50%); font-style: normal; white-space: nowrap; }

/* Barre empilée 100 % */
.art-stack { margin-top: 20px; display: flex; gap: 2px; height: 44px; }
.art-stack div { height: 100%; display: flex; align-items: center; padding: 0 12px; color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; }
.art-stack div:first-child { border-radius: 4px 0 0 4px; }
.art-stack div:last-child { border-radius: 0 4px 4px 0; }
.art-stack-notes { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* Colonnes (coupons cumulés) */
.art-cols { margin-top: 22px; display: grid; grid-template-columns: 44px 1fr; gap: 8px; }
.art-cols-y { position: relative; height: 200px; font-size: 12px; color: var(--ink-3); }
.art-cols-y span { position: absolute; right: 0; transform: translateY(50%); }
.art-cols-plot { position: relative; height: 200px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid #0000004d; }
.art-cols-plot .art-grid { position: absolute; left: 0; right: 0; height: 1px; background: #eef0f4; }
.art-col { position: relative; flex: 1; max-width: 24px; background: var(--blue); border-radius: 4px 4px 0 0; }
.art-col.art-future { background: transparent; box-shadow: inset 0 0 0 1.5px #0366ff66; }
.art-col.art-hl { background: var(--navy); }
.art-cols-x { grid-column: 2; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.art-cols-end { position: absolute; right: 0; top: -2px; font-size: 14px; font-weight: 600; }

/* Schéma de scénarios */
.art-scen { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.art-scen div { border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); }
.art-scen3 { grid-template-columns: 1fr 1fr 1fr; }
.art-scen .art-ok { background: #f3f7ff; border-color: #cddcff; }
.art-scen .art-ko { background: #fff5f5; border-color: #f3caca; }
.art-scen b { display: block; font-family: "Inter Tight", system-ui, sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.art-scen p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.art-scen .art-ico { font-size: 22px; line-height: 1; margin-bottom: 10px; display: block; }

/* Frise */
.art-timeline { margin-top: 30px; list-style: none; position: relative; padding-left: 28px; }
.art-timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.art-timeline li { position: relative; padding: 0 0 20px; }
.art-timeline li:last-child { padding-bottom: 0; }
.art-timeline li::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 100px;
  background: var(--blue); box-shadow: 0 0 0 3px #fff;
}
.art-timeline li.art-low::before { background: var(--alt); }
.art-timeline li.art-end::before { background: var(--navy); }
.art-timeline time { display: block; font-family: "Inter Tight", system-ui, sans-serif; font-size: 14px; font-weight: 600; color: var(--blue); }
.art-timeline li.art-low time { color: #b4521b; }
.art-timeline li.art-end time { color: var(--navy); }
.art-timeline p { margin: 2px 0 0; font-size: 17px; line-height: 1.55; }

/* Étapes d'un lancement */
.art-steps { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.art-step { border-radius: 16px; padding: 18px; background: var(--blue-soft); }
.art-step small { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .03em; text-transform: uppercase; }
.art-step b { display: block; margin-top: 6px; font-family: "Inter Tight", system-ui, sans-serif; font-size: 17px; font-weight: 600; line-height: 1.3; }
.art-step p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Info-bulle */
.art-page [data-tip] { cursor: default; }
.art-page [data-tip]:hover { filter: brightness(1.12); }
.art-tip {
  position: fixed; z-index: 50; pointer-events: none; max-width: 260px; padding: 8px 12px; border-radius: 10px;
  background: var(--navy); color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 24px #12143a40;
  opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
}
.art-tip--on { opacity: 1; transform: none; }

/* CTA */
.art-cta {
  margin-top: 64px; border-radius: 24px; padding: 36px 32px; color: #fff; text-align: center;
  background: radial-gradient(70% 120% at 50% 120%, #0366ff66 0%, #0366ff00 70%), var(--navy);
}
.art-cta h2 { font-family: "Inter Tight", system-ui, sans-serif; font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.art-cta p { margin: 10px auto 0; max-width: 520px; color: #ffffffb3; font-size: 17px; }
.art-cta-btns { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.art-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 100px;
  font-family: "Inter Tight", system-ui, sans-serif; font-size: 16px; font-weight: 500; transition: transform .25s;
}
.art-btn:hover { transform: scale(1.03); }
.art-btn-blue { background: var(--blue); color: #fff; }
.art-btn-white { background: #fff; color: var(--ink); }

/* Autres cas d'école */
.art-related { margin-top: 64px; }
.art-related h2 { font-family: "Inter Tight", system-ui, sans-serif; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.art-related-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.art-rel { border-radius: 20px; background: var(--blue-soft); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.art-rel:hover { transform: translateY(-3px); box-shadow: 0 16px 30px #12143a1f; }
.art-rel-img { height: 150px; margin: 12px 12px 0; border-radius: 12px; border: 1px solid var(--line); background: #f8f8fb no-repeat center / contain; }
.art-rel-txt { padding: 14px 20px 20px; }
.art-rel-txt small { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .03em; }
.art-rel-txt b { display: block; margin-top: 4px; font-family: "Inter Tight", system-ui, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.3; }

/* Avertissement */
.art-disclaimer { margin-top: 56px; padding: 22px 24px; border-radius: 16px; background: #f5f6f9; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.art-disclaimer b { color: var(--ink); }

/* Mobile */
@media (max-width: 760px) {
  .art-page { font-size: 17px; }
  .art-page h1 { font-size: 32px; }
  .art-lede { font-size: 18px; }
  .art-fiche { padding: 22px 18px; }
  .art-fiche-grid { grid-template-columns: 1fr 1fr; }
  .art-keypoints { padding: 22px 18px; }
  .art-body h2 { font-size: 24px; margin-top: 44px; }
  .art-quote { font-size: 21px; }
  .art-stats { grid-template-columns: 1fr; }
  .art-stat b { font-size: 30px; }
  .art-chart { padding: 18px 16px 14px; }
  .art-hbar, .art-dbar, .art-dbar-axis { grid-template-columns: 1fr; gap: 6px; }
  .art-dbar-axis span:first-child { display: none; }
  .art-scen, .art-scen3, .art-steps, .art-related-grid { grid-template-columns: 1fr; }
  .art-cta { padding: 28px 20px; }
  .art-cta h2 { font-size: 23px; }
  .art-cols-y, .art-cols-plot { height: 160px; }
}
