/* Charte inspirée de shodo.io : noir, rose, beige. */
:root {
  --black: #000;
  --surface: #0e0e0e;
  --rose: #ff175a;
  --rose-dark: #e0004a;
  --beige: #ffefd4;
  --liseret: #ffffff3d;
  --soft: #ffffff1f;
  --muted: #ffffff99;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Avantt", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--beige);
  background: var(--black);
}

a { color: var(--rose); }
b { color: #fff; }

.topbar-inner, main, .footer-inner { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.5px; font-size: 1.35rem; text-transform: uppercase; }
.brand img { display: block; height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 20px; font-size: .95rem; }
.nav .who { color: var(--muted); }
.nav a { color: var(--beige); text-decoration: none; }
.nav a:hover { color: var(--rose); }

main { flex: 1; padding-top: 32px; padding-bottom: 56px; }
main.center { display: flex; align-items: center; }

h1, h2 { text-transform: uppercase; font-weight: 800; color: #fff; margin-top: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.04em; line-height: .95; margin-bottom: 24px; }
h1 span { color: var(--rose); }
h2 { font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 14px; }

.eyebrow { color: var(--rose); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin: 0 0 16px; }
.lead { max-width: 560px; font-size: 1.1rem; line-height: 1.55; margin: 0 0 32px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.warn { color: var(--rose); font-weight: 700; }

.card { background: var(--surface); border: 1px solid var(--soft); border-radius: 20px; padding: 28px; margin: 0 0 16px; }
.card p { line-height: 1.55; }
.card > :last-child { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--liseret); border-bottom: 1px solid var(--liseret); margin: 0 0 32px; }
.stat { padding: 22px 20px 22px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--liseret); }
.stat .label { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.stat .value { color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.stat .value small { color: var(--muted); font-size: .95rem; font-weight: 500; }

pre { background: var(--black); color: var(--beige); border: 1px solid var(--soft); padding: 16px; border-radius: 12px; overflow-x: auto; font-size: .85rem; line-height: 1.5; }
pre.secret { color: #fff; font-size: 1rem; border-color: var(--rose); }
code { font-size: .9em; color: #fff; }

button, .btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--rose); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 26px; font: inherit; font-weight: 700; font-size: 1rem;
  cursor: pointer; text-decoration: none; transition: background .15s;
}
button:hover, .btn:hover { background: var(--rose-dark); }
.btn-light { background: #fff; color: var(--black); }
.btn-light:hover { background: var(--beige); }
.btn-ghost { background: transparent; color: var(--beige); border: 1px solid var(--liseret); }
.btn-ghost:hover { background: var(--soft); }

.hero { width: 100%; }

.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--liseret); }
.steps li { padding: 20px 20px 0 0; font-size: .95rem; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--liseret); }
.steps b { display: block; color: var(--rose); font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }

.footer { border-top: 1px solid var(--liseret); }
.footer-inner { padding-top: 18px; padding-bottom: 18px; font-size: .9rem; color: var(--muted); }

@media (max-width: 640px) {
  .steps, .stats { grid-template-columns: 1fr; }
  .steps { margin-top: 40px; }
  .steps li, .steps li + li { padding: 16px 0 0; border-left: 0; }
  .stat, .stat + .stat { padding: 16px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--liseret); }
  .nowrap { white-space: normal; }
  .nav .who { display: none; }
  .card { padding: 20px; }
}

/* Consommation */
h2.section { font-size: 1.5rem; margin: 48px 0 16px; }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.chart { display: flex; align-items: stretch; gap: 2px; height: 220px; margin-top: 8px; }
.col { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; outline: none; }
.col .val { height: 20px; font-size: .75rem; color: var(--beige); white-space: nowrap; }
.col .track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--liseret); }
.col .bar { display: block; width: min(70%, 44px); min-height: 0; background: var(--rose); border-radius: 4px 4px 0 0; transition: opacity .15s; }
.col .lbl { margin-top: 8px; font-size: .75rem; color: var(--muted); }
.chart:hover .bar { opacity: .45; }
.col:hover .bar, .col:focus .bar { opacity: 1; }
.col .tip {
  display: none; position: absolute; bottom: calc(100% - 12px); left: 50%; transform: translateX(-50%); z-index: 2;
  background: #fff; color: var(--black); border-radius: 10px; padding: 8px 12px; font-size: .8rem; line-height: 1.4;
  white-space: nowrap; box-shadow: 0 6px 24px #0008;
}
.col .tip b { color: var(--black); }
.col:hover .tip, .col:focus .tip { display: block; }

table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th { text-align: left; font-weight: 500; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; padding: 0 12px 10px 0; border-bottom: 1px solid var(--liseret); }
table.data td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-right: 0; padding-left: 12px; }
table.data .name { display: block; color: #fff; word-break: break-all; }
.meter { display: block; height: 4px; margin-top: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; max-width: 280px; }
.meter span { display: block; height: 100%; background: var(--rose); border-radius: 4px; }

@media (max-width: 640px) {
  .stats-4 { grid-template-columns: 1fr 1fr; }
  .stats-4 .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .chart { height: 180px; }
  .col .lbl { font-size: .65rem; }
  table.data th:nth-child(3), table.data td:nth-child(3) { display: none; }
}
.col:first-child .tip { left: 0; transform: none; }
.col:last-child .tip { left: auto; right: 0; transform: none; }
table.data th:first-child { width: 50%; }
table.data.skills th:first-child { width: 20%; }
