/* FactualRisk — guide « Panne Microsoft 365 » — FR-GUIDE-M365-V3
   Aucune règle inline dans la page : tout est ici (compatible CSP stricte). */

:root {
  --ink: #0b0b0c;
  --ink-2: #17181a;
  --paper: #fafaf7;
  --surface: #f1f0eb;
  --line: #dcdad2;
  --text: #1c1d20;
  --muted: #595d66;
  --red: #ff2d2d;        /* rouge de marque, sur fond sombre */
  --red-deep: #c4160f;   /* même rouge, lisible sur fond clair */
  --ok: #7fd1a0;
  --on-dark: #f4f3ee;
  --on-dark-muted: #a9abb0;
  --display: "Bebas Neue", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Space Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1120px;
  --read: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); }

/* ---------- Barre de navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 12, .86);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid #26272a;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand {
  font-family: var(--display); font-size: 28px; letter-spacing: .04em;
  color: var(--on-dark); text-decoration: none; line-height: 1;
}
.brand span { color: var(--red); }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--on-dark-muted); text-decoration: none; }
.nav-links a:hover { color: var(--on-dark); }
.nav-links .btn-nav {
  color: var(--ink); background: var(--on-dark); padding: 9px 14px; font-weight: 600;
}
.nav-links .btn-nav:hover { background: var(--red); color: var(--ink); }

/* ---------- Héros ---------- */
.hero { background: var(--ink); color: var(--on-dark); padding: 72px 0 84px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.kicker {
  font-family: var(--mono); font-size: 13px; color: var(--on-dark-muted);
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 22px; padding: 0; list-style: none;
}
.kicker .live { color: var(--red); }
h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 7.4vw, 5.9rem); line-height: .94; letter-spacing: .01em;
  margin: 0 0 24px;
}
h1 em { font-style: normal; color: var(--red); }
.lede { font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.45; color: #dedcd4; margin: 0 0 28px; max-width: 34em; }
.byline { font-size: 15px; color: var(--on-dark-muted); margin: 0; }
.byline strong { color: var(--on-dark); font-weight: 600; }

/* Le geste : la pile qui s'éteint */
.stack {
  background: var(--ink-2); border: 1px solid #2a2b2f; padding: 22px 22px 18px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.stack-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); margin-bottom: 14px; }
.stack ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stack li {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 12px; background: #1f2023; border-left: 3px solid var(--ok);
  font-size: 15px;
  animation: row-down .6s cubic-bezier(.2, .8, .2, 1) forwards;
}
.stack li .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: dot-down .6s forwards; }
.stack li .who { font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); }
.stack li .state { display: none; }
.stack li:nth-child(1), .stack li:nth-child(1) .dot { animation-delay: 1.1s; }
.stack li:nth-child(2), .stack li:nth-child(2) .dot { animation-delay: 1.6s; }
.stack li:nth-child(3), .stack li:nth-child(3) .dot { animation-delay: 2.0s; }
.stack li:nth-child(4), .stack li:nth-child(4) .dot { animation-delay: 2.4s; }
.stack li:nth-child(5), .stack li:nth-child(5) .dot { animation-delay: 2.8s; }
.stack li:nth-child(6), .stack li:nth-child(6) .dot { animation-delay: 3.2s; }
.stack li.stays, .stack li.stays .dot { animation: none; }
.stack-foot { margin: 14px 0 0; font-size: 14px; color: var(--on-dark-muted); line-height: 1.5; }
.stack-foot b { color: var(--red); font-weight: 600; }
@keyframes row-down { to { border-left-color: var(--red); background: #2a1716; color: #f0b9b5; } }
@keyframes dot-down { to { background: var(--red); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stack li, .stack li .dot { animation-duration: .01s; animation-delay: 0s; }
}

/* ---------- Bandeau de chiffres ---------- */
.figures { background: var(--ink); border-top: 1px solid #26272a; color: var(--on-dark); padding: 0 0 56px; }
.figures dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid #2a2b2f; }
.figures div { padding: 24px 20px 0 0; }
.figures dt { font-size: 14px; color: var(--on-dark-muted); order: 2; }
.figures dd { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1; white-space: nowrap; }
.figures dd small { font-family: var(--body); font-size: 15px; color: var(--on-dark-muted); margin-left: 6px; }
.figures .src { font-size: 13px; color: var(--on-dark-muted); margin: 22px 0 0; }
.figures .src a { color: var(--on-dark-muted); }

/* ---------- Corps d'article ---------- */
main section { padding: 88px 0; }
main section + section { border-top: 1px solid var(--line); }
section.tint { background: var(--surface); }
h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1; letter-spacing: .01em; margin: 0 0 22px; max-width: 18em;
}
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 34px 0 8px; }
p { margin: 0 0 18px; }
.intro { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--text); }
.note {
  border-left: 3px solid var(--red-deep); background: #fff; padding: 16px 20px; margin: 28px 0;
  font-size: 16px; color: var(--text);
}
.note strong { color: var(--red-deep); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.two.wide-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }

/* Résumé express */
.tldr { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: t; }
.tldr li { padding: 0 0 14px 0; border-bottom: 1px solid var(--line); }
.tldr li:last-child { border-bottom: 0; }
.tldr b { font-weight: 700; }

/* Frise chronologique */
.timeline { list-style: none; margin: 34px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 38px; padding: 0 0 22px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 113px; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--muted);
}
.timeline li.key::before { background: var(--red-deep); border-color: var(--red-deep); }
.timeline li.good::before { background: var(--ink); border-color: var(--ink); }
.timeline time { font-family: var(--mono); font-size: 14px; color: var(--muted); text-align: right; padding-top: 2px; }
.timeline p { margin: 0; font-size: 17px; }
.timeline .day {
  display: block; padding: 0 0 14px 138px; font-family: var(--display); font-size: 1.5rem; letter-spacing: .03em;
}
.timeline .day::before { display: none; }
.timeline li.day { grid-template-columns: 1fr; }

/* Figures et graphiques */
figure { margin: 0; }
.fig { background: #fff; border: 1px solid var(--line); padding: 26px 26px 20px; }
.fig h3 { margin: 0 0 4px; font-size: 1.05rem; }
.fig .sub { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.fig figcaption { font-size: 13.5px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.fig svg { width: 100%; }
.fig svg text { font-family: var(--body); fill: var(--text); }
.fig svg .lbl { font-size: 15px; }
.fig svg .val { font-size: 15px; font-weight: 700; }
.fig svg .mut { fill: var(--muted); font-size: 13px; }
.fig svg .bar { fill: #7a808a; }
.fig svg .bar.hot { fill: #d7261e; }
.fig svg .base { stroke: var(--line); stroke-width: 1; }
.fig details { margin-top: 12px; font-size: 14px; }
.fig summary { cursor: pointer; color: var(--muted); }
.fig table { border-collapse: collapse; width: 100%; margin-top: 10px; font-size: 14px; }
.fig th, .fig td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.fig td.n, .fig th.n { text-align: right; font-variant-numeric: tabular-nums; }
.charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 36px; }

/* Schéma : la boucle */
.loop svg .node { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.loop svg .node.hot { fill: #fbe9e7; stroke: #c4160f; }
.loop svg .arr { fill: none; stroke: var(--ink); stroke-width: 2; }
.loop svg .head { fill: var(--ink); }
.loop svg .t { font-size: 15px; font-weight: 600; }
.loop svg .c { font-family: var(--display); font-size: 19px; letter-spacing: .04em; fill: #c4160f; }

/* Schéma : la cascade */
.cascade { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0; align-items: stretch; margin-top: 36px; }
.cascade .col { background: #fff; border: 1px solid var(--line); padding: 22px; }
.cascade .col.sec { border-color: var(--red-deep); border-width: 2px; }
.cascade h3 { margin: 0 0 4px; font-size: 1rem; }
.cascade .col > p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.cascade ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cascade li { font-size: 15.5px; padding: 9px 12px; background: var(--surface); border-left: 3px solid #7a808a; line-height: 1.4; }
.cascade .sec li { border-left-color: var(--red-deep); background: #fbe9e7; }
.cascade li small { display: block; color: var(--muted); font-size: 13.5px; }
.cascade .core {
  align-self: center; background: var(--ink); color: var(--on-dark); padding: 26px 22px; text-align: center;
  font-family: var(--display); font-size: 1.7rem; line-height: 1; letter-spacing: .03em; position: relative; margin: 0 26px;
}
.cascade .core small { display: block; font-family: var(--mono); font-size: 12px; color: var(--red); letter-spacing: 0; margin-top: 8px; }
.cascade .core::before, .cascade .core::after {
  content: ""; position: absolute; top: 50%; width: 26px; height: 2px; background: var(--ink);
}
.cascade .core::before { right: 100%; }
.cascade .core::after { left: 100%; }

/* Limites */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 36px 0 0; border-top: 2px solid var(--ink); }
.limits article { padding: 26px 28px 26px 0; border-bottom: 1px solid var(--line); }
.limits article:nth-child(odd) { border-right: 1px solid var(--line); }
.limits article:nth-child(even) { padding-left: 28px; padding-right: 0; }
.limits h3 { margin: 0 0 8px; font-size: 1.2rem; }
.limits p { margin: 0; font-size: 17px; }
.quote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; margin: 40px 0 0; padding-left: 22px; border-left: 3px solid var(--red-deep); max-width: 30em; }
.quote cite { display: block; font-family: var(--body); font-style: normal; font-size: 14.5px; color: var(--muted); margin-top: 10px; }

/* Comparatif des deux piles */
.compare { width: 100%; border-collapse: collapse; margin-top: 34px; background: #fff; border: 1px solid var(--line); font-size: 16px; }
.compare caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 10px; caption-side: bottom; padding-top: 12px; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--display); font-weight: 400; font-size: 1.25rem; letter-spacing: .03em; background: var(--ink); color: var(--on-dark); }
.compare tbody th { font-weight: 700; width: 24%; }
.compare td.same { color: var(--muted); }
.compare td.out { border-left: 3px solid var(--ink); }
.compare td.out b { font-weight: 700; }

/* PDCA */
.pdca { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 36px; border: 1px solid var(--ink); background: #fff; }
.pdca article { padding: 24px 22px; border-right: 1px solid var(--line); }
.pdca article:last-child { border-right: 0; }
.pdca .step { font-family: var(--display); font-size: 2rem; line-height: 1; letter-spacing: .03em; margin: 0 0 4px; }
.pdca .step span { color: var(--red-deep); }
.pdca .what { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.pdca ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pdca li { font-size: 15.5px; line-height: 1.45; padding-left: 26px; position: relative; }
.pdca li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border: 2px solid var(--ink); }

/* Réglementation */
.regs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
.regs article { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 22px; }
.regs h3 { margin: 0 0 8px; }
.regs p { font-size: 16px; margin: 0 0 10px; }
.regs p:last-child { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style-position: outside; }
.faq details p { margin: 12px 0 0; }

/* Expertise et appel final */
.expert { background: var(--ink); color: var(--on-dark); padding: 96px 0; }
.expert h2 { color: var(--on-dark); }
.expert p { color: #d6d4cc; }
.expert .marks { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: baseline; margin: 0 0 30px; }
.expert .mark { font-family: var(--display); font-size: 2rem; letter-spacing: .04em; color: var(--on-dark); line-height: 1; }
.expert .mark span { color: var(--red); }
.expert .mark small { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--on-dark-muted); margin-top: 6px; }
.expert .skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid #2a2b2f; }
.expert .skills li { padding: 14px 0; border-bottom: 1px solid #2a2b2f; font-size: 16.5px; color: #d6d4cc; }
.expert .skills b { color: var(--on-dark); font-weight: 600; display: block; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-block; padding: 15px 22px; font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--red); color: var(--ink); min-height: 44px;
}
.btn:hover { background: var(--on-dark); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px #55575c; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--on-dark); color: var(--on-dark); }

/* Sources et pied */
.sources { padding: 80px 0; }
.sources ol { margin: 0; padding-left: 22px; font-size: 15.5px; display: grid; gap: 8px; }
.sources .updated { font-family: var(--mono); font-size: 13.5px; color: var(--muted); margin-top: 28px; }
footer { background: var(--ink); color: var(--on-dark-muted); padding: 30px 0; font-size: 14.5px; border-top: 1px solid #26272a; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
footer a { color: var(--on-dark-muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sub-h { margin: 44px 0 14px; font-size: 1.3rem; }
.quote { margin-bottom: 28px; }
footer a:hover { color: var(--on-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero { padding: 48px 0 56px; }
  .hero-grid, .two, .two.wide-left, .charts, .regs { grid-template-columns: 1fr; gap: 36px; }
  .figures dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main section { padding: 64px 0; }
  .nav-links a:not(.btn-nav) { display: none; }
  .cascade { grid-template-columns: 1fr; }
  .cascade .core { margin: 26px auto; }
  .cascade .core::before, .cascade .core::after { left: 50%; right: auto; width: 2px; height: 26px; }
  .cascade .core::before { top: auto; bottom: 100%; }
  .cascade .core::after { top: 100%; }
  .limits { grid-template-columns: 1fr; }
  .limits article, .limits article:nth-child(even) { padding: 22px 0; border-right: 0; }
  .pdca { grid-template-columns: 1fr 1fr; }
  .pdca article:nth-child(2) { border-right: 0; }
  .pdca article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 28px; }
  .timeline li::before { left: 0; }
  .timeline time { text-align: left; }
  .timeline .day { padding-left: 28px; }
  .pdca { grid-template-columns: 1fr; }
  .pdca article { border-right: 0; border-bottom: 1px solid var(--line); }
  .pdca article:last-child { border-bottom: 0; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare caption { display: block; }
  .compare tbody th { width: 100%; }
  .compare tbody th { background: var(--ink); color: var(--on-dark); }
  .compare td::before { content: attr(data-h); display: block; font-size: 12.5px; font-family: var(--mono); color: var(--muted); }
  .fig { padding: 18px 16px; }
}
@media print {
  .nav, .cta { display: none; }
  .hero, .figures, .expert, footer { background: #fff; color: #000; }
  .stack li, .stack li .dot { animation: none; }
}

/* ================= V2 : relief et mouvement ================= */

/* Barre de progression de lecture (CSS seul, sans script) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Héros : trame, titre plus massif, états qui basculent */
.hero {
  position: relative; overflow: hidden; padding: 84px 0 96px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red);
  transform-origin: 0 50%; animation: grow-x 3.6s cubic-bezier(.2,.8,.2,1) .6s both;
}
h1 { font-size: clamp(3.4rem, 8.6vw, 7.2rem); line-height: .9; }
.kicker .live::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  margin-right: 8px; animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }
.stack { padding: 26px 26px 22px; border-color: #34363b; box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,45,45,.0); animation: alarm .8s ease-out 3.5s forwards; }
@keyframes alarm { to { box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,45,45,.75), 0 0 70px -10px rgba(255,45,45,.35); } }
.stack li { grid-template-columns: 14px 1fr auto; padding: 10px 12px; }
.stack .nm { line-height: 1.25; }
.stack .nm small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--on-dark-muted); margin-top: 2px; }
.stack .st { display: grid; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; text-align: right; }
.stack .st i { font-style: normal; grid-area: 1 / 1; }
.stack .st .up { color: var(--ok); }
.stack .st .dn { color: var(--red); opacity: 0; font-weight: 700; }
.stack li:not(.stays) .st .up { animation: fade-out .3s forwards; }
.stack li:not(.stays) .st .dn { animation: fade-in .3s forwards; }
.stack li:nth-child(1) .st i { animation-delay: 1.1s; }
.stack li:nth-child(2) .st i { animation-delay: 1.6s; }
.stack li:nth-child(3) .st i { animation-delay: 2.0s; }
.stack li:nth-child(4) .st i { animation-delay: 2.4s; }
.stack li:nth-child(5) .st i { animation-delay: 2.8s; }
.stack li:nth-child(6) .st i { animation-delay: 3.2s; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.stack li.stays { border-left-color: var(--ok); background: #16241c; }

/* Chiffres clés : plus grands, filet rouge */
.figures { padding-bottom: 72px; }
.figures dl { border-top: 0; gap: 0 28px; }
.figures div { border-top: 3px solid var(--red); padding: 18px 0 0; }
.figures dd { font-size: clamp(2.8rem, 5.6vw, 5rem); }

/* Bande des phases */
.phases { display: flex; gap: 3px; margin: 40px 0 0; }
.ph { color: #fff; padding: 14px 14px 12px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; min-height: 92px; }
.ph b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: .03em; line-height: 1; }
.ph span { font-family: var(--mono); font-size: 12.5px; opacity: .85; }
.ph1 { flex: 3.4 1 0; background: #6a6f78; }
.ph2 { flex: 4.3 1 0; background: #3b3e45; }
.ph3 { flex: 7.5 1 0; background: var(--red-deep); }
.ph4 { flex: 10.3 1 0; background: var(--ink); }
.phases-cap { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.timeline { margin-top: 44px; }
.timeline li.key time, .timeline li.good time { font-family: var(--display); font-size: 1.55rem; line-height: 1; letter-spacing: .02em; padding-top: 0; }
.timeline li.key time { color: var(--red-deep); }
.timeline li.good time { color: var(--ink); }
.timeline li.key::before, .timeline li.good::before { width: 16px; height: 16px; left: 111px; top: 5px; }
.timeline li.key::before { box-shadow: 0 0 0 5px rgba(196,22,15,.16); }

/* Section sombre : la sécurité tombe avec le reste */
section.dark { background: var(--ink); color: var(--on-dark); border-top: 0; }
main section.dark + section { border-top: 0; }
section.dark h2 { color: var(--on-dark); font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 14em; }
section.dark p { color: #d6d4cc; }
section.dark strong { color: var(--on-dark); }
section.dark .sub-h { color: var(--on-dark); }
section.dark .cascade .col { background: var(--ink-2); border-color: #2f3136; }
section.dark .cascade .col.sec { border-color: var(--red); box-shadow: 0 0 60px -20px rgba(255,45,45,.5); }
section.dark .cascade h3 { color: var(--on-dark); }
section.dark .cascade .col > p { color: var(--on-dark-muted); }
section.dark .cascade li { background: #222327; color: var(--on-dark); border-left-color: #6a6f78; }
section.dark .cascade li small { color: var(--on-dark-muted); }
section.dark .cascade .sec li { background: #2a1716; border-left-color: var(--red); }
section.dark .cascade .core { background: var(--red); color: var(--ink); font-size: 2rem; padding: 30px 24px; animation: core-pulse 2.4s ease-in-out infinite; }
section.dark .cascade .core small { color: var(--ink); font-weight: 700; }
section.dark .cascade .core::before, section.dark .cascade .core::after { background: var(--red); }
@keyframes core-pulse { 50% { box-shadow: 0 0 0 14px rgba(255,45,45,.14); } }

/* Manifeste */
.manifesto { background: var(--red); color: var(--ink); padding: 96px 0; border-top: 0; }
main .manifesto + section { border-top: 0; }
.manifesto p { font-family: var(--display); font-size: clamp(2.4rem, 6.2vw, 5.2rem); line-height: .98; letter-spacing: .01em; margin: 0; max-width: 17em; }
.manifesto em { font-style: normal; background: var(--ink); color: var(--on-dark); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Grands chiffres des graphiques */
.bigstat { display: flex; align-items: flex-end; gap: 16px; margin: 0 0 18px; }
.bigstat b { font-family: var(--display); font-weight: 400; font-size: clamp(3.6rem, 7vw, 5.4rem); line-height: .82; color: var(--red-deep); white-space: nowrap; }
.bigstat span { font-size: 14.5px; color: var(--muted); line-height: 1.4; max-width: 17em; padding-bottom: 2px; }
.bigstat sup { font-size: .7em; }
.fig { border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.fig svg .bar { transform-box: fill-box; transform-origin: 0 50%; }
.loop svg .arr { stroke-dasharray: 7 6; animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -13; } }
.loop svg .node.hot { animation: hot 1.8s ease-in-out infinite; }
@keyframes hot { 50% { fill: #f6c9c5; } }

/* Les quatre limites */
.limits { border-top: 3px solid var(--ink); }
.limits .ico { width: 52px; height: 52px; margin-bottom: 14px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.limits .ico .r { stroke: var(--red-deep); stroke-width: 3; }
.limits .ico .rf { fill: var(--red-deep); stroke: none; }
.limits h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; letter-spacing: .02em; line-height: 1; }

/* Comparatif et PDCA */
.compare { border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.compare thead th:last-child { background: var(--red-deep); }
.pdca { border-width: 2px; box-shadow: 8px 8px 0 var(--red-deep); }
.pdca .step { font-size: 2.3rem; }
.pdca .step span { display: block; font-size: 5.6rem; line-height: .8; margin-bottom: 6px; }
.regs article { border-top: 4px solid var(--red-deep); }
.note { border: 1px solid var(--ink); border-left: 6px solid var(--red-deep); }
.quote { font-size: 1.6rem; border-left-width: 6px; }

/* Apparition au défilement : figures et barres seulement */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fig, .compare, .pdca, .cascade, .phases, .manifesto p {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
    .fig svg .bar { animation: bar-in linear both; animation-timeline: view(); animation-range: entry 10% cover 38%; }
  }
}
@keyframes rise { from { opacity: .25; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bar-in { from { transform: scaleX(.06); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .hero { padding: 52px 0 64px; }
  .manifesto { padding: 64px 0; }
  .fig, .compare { box-shadow: 5px 5px 0 var(--ink); }
  .pdca { box-shadow: 5px 5px 0 var(--red-deep); }
  .figures dl { gap: 22px 20px; }
}
@media (max-width: 600px) {
  .phases { flex-direction: column; }
  .ph { flex: none; min-height: 0; flex-direction: row; align-items: baseline; gap: 12px; padding: 10px 12px; }
  .timeline li.key::before, .timeline li.good::before { left: -2px; }
  .bigstat { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pdca .step span { font-size: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stack, .hero::after, .kicker .live::before, .loop svg .arr, .loop svg .node.hot, section.dark .cascade .core { animation: none; }
  .stack li .st i { animation-duration: .01s; animation-delay: 0s; }
}

.giant { font-family: var(--display); font-size: clamp(7rem, 17vw, 14rem); line-height: .8; color: var(--red-deep); margin: 34px 0 0; display: flex; align-items: flex-end; gap: 16px; }
.giant small { font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--muted); padding-bottom: 10px; }
.limits .ico { width: 64px; height: 64px; }
.loop svg .c { font-size: 27px; }
.cascade { align-items: center; }
@media (max-width: 900px) { .giant { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .stack li, .stack li .dot, .stack li .st i { animation-delay: 0s !important; animation-duration: .01s !important; }
}

@media print { .fig, .compare, .pdca, .cascade, .phases, .manifesto p, .fig svg .bar, .progress { animation: none !important; } .progress { display: none; } }

main section, .expert, .sources { scroll-margin-top: 64px; }
@media (max-width: 600px) { .prop { display: none; } }

/* ================= V3 ================= */
/* Sommaire */
.toc { background: var(--ink); border-top: 1px solid #26272a; padding: 0 0 34px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 14px; min-height: 44px;
  color: var(--on-dark); text-decoration: none; font-size: 15px; box-shadow: inset 0 0 0 1px #3a3c41;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--red); }
.toc a:hover { background: var(--red); color: var(--ink); box-shadow: none; }
.toc a:hover::before { color: var(--ink); }
.figures { padding-bottom: 40px; }

/* Mécanisme : figure plus large, étapes numérotées */
.two.fig-wide { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.loop svg .t { font-size: 16px; }
.loop svg .nums circle { fill: #c4160f; }
.loop svg .nums text { fill: #fff; font-family: var(--mono); font-size: 14px; font-weight: 700; }
.loop svg .c { font-size: 30px; }
.loop { position: sticky; top: 84px; }

/* Comparatif : état de chaque cellule */
.tag { display: block; width: fit-content; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; margin-bottom: 6px; }
.tag.down { background: #fbe9e7; color: #8f120c; }
.tag.up { background: var(--ink); color: var(--ok); }
.compare td.same { color: var(--text); }

/* Balance */
.balance { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; margin: 30px 0 34px; border: 1px solid var(--ink); background: #fff; box-shadow: 8px 8px 0 var(--ink); }
.balance article { padding: 28px; }
.balance .minus { background: var(--ink); color: var(--on-dark); }
.balance h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1; letter-spacing: .02em; margin: 0 0 18px; }
.balance ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.balance li { padding-left: 34px; position: relative; font-size: 17px; line-height: 1.45; }
.balance li::before { position: absolute; left: 0; top: -3px; font-family: var(--display); font-size: 1.7rem; line-height: 1; }
.balance .plus li::before { content: "+"; color: var(--ink); }
.balance .minus li::before { content: "–"; color: var(--red); }
.verdict { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }

/* Trois actions du lundi */
.monday { margin-top: 56px; background: var(--ink); color: var(--on-dark); padding: 40px 40px 34px; }
.monday h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1; letter-spacing: .02em; margin: 0 0 28px; color: var(--on-dark); }
.monday ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; counter-reset: m; }
.monday li { counter-increment: m; font-size: 16.5px; line-height: 1.5; color: #d6d4cc; border-top: 3px solid var(--red); padding-top: 14px; }
.monday li::before { content: counter(m); display: block; font-family: var(--display); font-size: 4.4rem; line-height: .9; color: var(--red); margin-bottom: 10px; }
.monday b { color: var(--on-dark); display: block; margin-bottom: 4px; }

/* Réglementation */
.regs article { padding: 26px; border: 1px solid var(--ink); border-top: 6px solid var(--red-deep); }
.regs h3 { font-family: var(--display); font-weight: 400; font-size: 3rem; line-height: .9; letter-spacing: .02em; margin: 0 0 16px; }
.regs h3 small { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* FAQ */
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 2rem; line-height: .6; color: var(--red-deep); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details { padding: 22px 0; }

@media (max-width: 900px) {
  .two.fig-wide { grid-template-columns: 1fr; }
  .loop { position: static; }
  .balance { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--ink); }
  .monday { padding: 28px 22px; }
  .monday ol { grid-template-columns: 1fr; gap: 22px; }
  .toc ol { gap: 8px; }
  .toc a { font-size: 14px; padding: 9px 11px; }
}
@media print { .toc { display: none; } }
