/* ============ argent.dockbarge.cloud — feuille de style ============ */

:root {
  --bg: #f7f6f3;
  --bg-alt: #ffffff;
  --ink: #1b2331;
  --ink-soft: #4a5568;
  --ink-mute: #7b8494;
  --accent: #0b7a4b;
  --accent-soft: #e3f2ea;
  --danger: #b03a2e;
  --danger-soft: #fbeae7;
  --line: #e4e1da;
  --card-shadow: 0 1px 2px rgba(27, 35, 49, .05), 0 8px 24px rgba(27, 35, 49, .06);
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand-dot { color: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600;
  padding: 6px 11px; border-radius: 8px;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-links a.nav-page { background: var(--ink); color: #fff; margin-left: 8px; }
.nav-links a.nav-page:hover { background: var(--accent); color: #fff; }

/* ---------- Liens de cartes & tableaux ---------- */
.card-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 15px; color: var(--accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.table-wrap { overflow-x: auto; margin: 10px 0 30px; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--card-shadow); overflow: hidden;
}
table.data th {
  background: var(--ink); color: #fff; text-align: left;
  padding: 12px 16px; font-size: 13.5px; letter-spacing: .02em;
}
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
table.data strong { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; background: linear-gradient(180deg, #eef5f0 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid #cbe6d8;
  padding: 5px 12px; border-radius: 999px; margin: 0 0 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -.03em;
  margin: 0 0 22px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 780px; margin: 0 0 48px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero-stat {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--card-shadow);
}
.hero-stat .big { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); margin-bottom: 6px; }
.hero-stat .lbl { display: block; font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.danger { background: #fdf6f5; border-top: 1px solid #f0dcd8; border-bottom: 1px solid #f0dcd8; }

.section h2 {
  font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.025em; line-height: 1.15;
  margin: 0 0 18px; font-weight: 800;
}
.sec-num { color: var(--accent); font-weight: 700; font-size: .55em; vertical-align: .35em; margin-right: 10px; letter-spacing: 0; }
.section.danger .sec-num { color: var(--danger); }
.intro { font-size: 18px; color: var(--ink-soft); max-width: 820px; margin: 0 0 42px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; margin-bottom: 28px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; box-shadow: var(--card-shadow);
  display: flex; flex-direction: column;
}
.section.alt .card { background: var(--bg); }
.card .stat {
  font-size: 38px; font-weight: 800; letter-spacing: -.03em; color: var(--accent);
  line-height: 1; margin-bottom: 14px;
}
.card .stat small { font-size: .45em; font-weight: 700; }
.card h3 { font-size: 18px; margin: 0 0 10px; letter-spacing: -.01em; }
.card p { font-size: 15px; color: var(--ink-soft); margin: 0 0 14px; flex: 1; }
.card .src { font-size: 12.5px; color: var(--ink-mute); font-weight: 600; }

/* ---------- Callouts ---------- */
.callout {
  background: var(--accent-soft); border: 1px solid #cbe6d8; border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 24px 28px; margin: 26px 0;
}
.callout.warn { background: #fdf6ec; border-color: #f0ddba; border-left-color: #c78a1f; }
.callout h3 { margin: 0 0 10px; font-size: 18px; }
.callout p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.note { font-size: 14.5px; color: var(--ink-mute); border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 30px; max-width: 860px; }

.sub-title { font-size: 21px; margin: 44px 0 16px; }
.fact-list { list-style: none; padding: 0; margin: 0 0 30px; max-width: 900px; }
.fact-list li {
  padding: 14px 0 14px 34px; position: relative; color: var(--ink-soft); font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.fact-list li::before {
  content: "→"; position: absolute; left: 4px; color: var(--accent); font-weight: 700;
}
.fact-list strong { color: var(--ink); }

/* ---------- Calculateur ---------- */
.calc {
  margin-top: 48px; background: var(--ink); color: #eef1f6; border-radius: 18px;
  padding: 36px 38px 28px; box-shadow: var(--card-shadow);
}
.calc h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.01em; }
.calc-sub { margin: 0 0 28px; color: #aab4c4; font-size: 14.5px; }
.calc-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.calc-inputs label { display: block; font-size: 13.5px; font-weight: 600; color: #aab4c4; margin-bottom: 18px; }
.input-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.input-row input {
  width: 100%; background: #242d3d; border: 1px solid #3a4557; color: #fff;
  border-radius: 9px; padding: 10px 12px; font-size: 16px; font-family: inherit;
}
.input-row input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.input-row .unit { font-size: 13px; color: #7b8494; white-space: nowrap; }

.calc-results { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.scenario-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 7px; }
.scenario-head span { font-size: 14px; color: #aab4c4; }
.scenario-head strong { font-size: 24px; letter-spacing: -.02em; white-space: nowrap; }
.bar { height: 10px; background: #242d3d; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; width: 0; transition: width .45s ease; }
.bar-fill.a { background: #2fbf82; }
.bar-fill.b { background: #e0a032; }
.bar-fill.c { background: #6b7c99; }
.scenario-note { margin: 6px 0 0; font-size: 12.5px; color: #7b8494; }
.calc-disclaimer { margin: 28px 0 0; font-size: 12px; color: #7b8494; border-top: 1px solid #2c3648; padding-top: 16px; }

/* ---------- Pièges ---------- */
.trap {
  background: #fff; border: 1px solid #eed4cf; border-radius: var(--radius);
  margin-bottom: 22px; overflow: hidden; box-shadow: var(--card-shadow);
}
.trap-head { background: var(--danger-soft); padding: 18px 28px; border-bottom: 1px solid #eed4cf; }
.trap-head h3 { margin: 0; font-size: 19px; color: var(--danger); }
.trap-body { padding: 26px 28px; }
.trap-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 18px; }
.trap-stats .stat.red { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--danger); margin-bottom: 8px; line-height: 1.05; }
.trap-stats p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.trap-note { margin: 0; font-size: 14.5px; color: var(--ink-soft); border-top: 1px dashed #eed4cf; padding-top: 16px; }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 30px; max-width: 900px; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 0 18px 66px;
  border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 16.5px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--ink); }

/* ---------- Sources ---------- */
.src-group { font-size: 15px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 34px 0 12px; }
.src-list { margin: 0; padding-left: 26px; max-width: 920px; }
.src-list li { font-size: 14px; color: var(--ink-soft); margin-bottom: 9px; }
.src-list a { color: var(--accent); word-break: break-all; }

sup { font-size: .68em; line-height: 0; }
sup a { color: var(--accent); text-decoration: none; font-weight: 700; }
.section.danger sup a, .trap sup a { color: var(--danger); }
sup a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aab4c4; padding: 44px 0 38px; font-size: 13.5px; }
.footer p { max-width: 860px; margin: 0 0 12px; }
.footer .muted { color: #6b7c99; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-stats, .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; gap: 28px; }
  .trap-stats { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 52px; }
  .calc { padding: 28px 22px; }
}
