/* DeepWall — deck web. Design system "BIM blueprint dark". */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0e0e10;
  --bg-2: #16161b;
  --bg-3: #1f1f27;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  --ink: #f3f3f5;
  --ink-2: rgba(243, 243, 245, 0.64);
  --ink-3: rgba(243, 243, 245, 0.40);

  --accent: #ffc400;
  --accent-dim: rgba(255, 196, 0, 0.16);

  /* couleurs réseaux — uniquement pour les data/légendes */
  --net-elec: #ffc400;
  --net-eau: #54a8ff;
  --net-data: #b98cff;
  --net-gaz: #ff7a4d;

  --risk-low: #3f9a6a;
  --risk-mid: #e0a52e;
  --risk-high: #e0553e;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --serif: 'Fraunces', Georgia, serif;

  --pad: clamp(36px, 5.2vw, 104px);
  --maxw: 1500px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ---------- blueprint background ---------- */
.bp {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 120% at 80% 0%, #000 30%, transparent 80%);
  opacity: 0.5;
}

/* ---------- deck / slides ---------- */
.deck { position: relative; z-index: 1; height: 100vh; width: 100vw; }

.slide {
  position: absolute;
  inset: 0;
  display: none;
  padding: var(--pad);
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}
.slide.active { display: flex; opacity: 1; transform: none; }
.slide.prev { transform: translateX(-28px); }

/* slides de contenu : zone de titre ancrée à hauteur constante (cohérence master) */
.slide:not(.cover):not(.divider):not(.close) {
  justify-content: flex-start;
  padding-top: clamp(104px, 16.5vh, 184px);
}

.slide-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* ---------- type building blocks ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: clamp(11px, 0.92vw, 14px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 2.6vw, 40px);
}
.eyebrow::before {
  content: "";
  width: clamp(28px, 3vw, 52px);
  height: 1px;
  background: var(--accent);
}

h1.stitle, h2.stitle {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.5vw, 52px);
  max-width: 22ch;
}
.stitle .hl { color: var(--accent); }

.lead {
  margin-top: clamp(16px, 1.8vw, 28px);
  font-size: clamp(15px, 1.35vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

.takeaway {
  margin-top: clamp(20px, 2.4vw, 36px);
  font-family: var(--mono);
  font-size: clamp(12px, 1vw, 15px);
  color: var(--ink-3);
}
.takeaway b { color: var(--ink); font-weight: 700; }

/* ---------- chrome: logo, counter, progress, hint ---------- */
.logo {
  position: fixed;
  left: var(--pad);
  top: clamp(26px, 3vh, 40px);
  z-index: 5;
  font-size: clamp(17px, 1.5vw, 22px);
  letter-spacing: -0.01em;
  user-select: none;
}
.logo .d { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--accent); }
.logo .w { font-family: var(--display); font-weight: 700; color: var(--ink); }
.logo .dot { color: var(--accent); }

.counter {
  position: fixed;
  right: var(--pad);
  top: clamp(26px, 3vh, 40px);
  z-index: 5;
  font-family: var(--mono);
  font-size: clamp(11px, 0.95vw, 14px);
  color: var(--ink-3);
  letter-spacing: 0.12em;
}
.counter b { color: var(--accent); }

.progress {
  position: fixed;
  left: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  z-index: 6;
  transition: width 0.42s ease;
}

.hint {
  position: fixed;
  right: var(--pad);
  bottom: clamp(22px, 3vh, 34px);
  z-index: 5;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.key {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 8px;
  color: var(--ink-2);
}
.fsbtn {
  background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px; padding: 0;
}
.fsbtn:hover { color: var(--ink); }

/* ---------- cover ---------- */
.cover { justify-content: center; }
.cover .mark {
  font-size: clamp(46px, 8vw, 120px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.cover .mark .d { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--accent); }
.cover .mark .w { font-family: var(--display); font-weight: 700; color: var(--ink); }
.cover .mark .dot { color: var(--accent); }
.cover h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 44px);
  letter-spacing: -0.02em;
  margin-top: clamp(24px, 3vw, 44px);
  line-height: 1.1;
}
.cover .sub {
  margin-top: 18px;
  font-size: clamp(14px, 1.3vw, 20px);
  color: var(--ink-2);
  max-width: 52ch;
}
.cover .team {
  margin-top: clamp(34px, 5vw, 64px);
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 14px);
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* ---------- divider ---------- */
.divider { justify-content: center; }
.divider .num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(64px, 13vw, 200px);
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.divider .dtitle {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 72px);
  letter-spacing: -0.02em;
  margin-top: clamp(12px, 1.5vw, 24px);
  max-width: 18ch;
}
.divider .dsub { margin-top: 16px; color: var(--ink-2); font-size: clamp(14px, 1.3vw, 20px); }
.divider .dlink {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(26px, 3vw, 44px);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none;
  border: 1px solid var(--line); padding: 11px 18px; border-radius: 6px;
  transition: color .2s, border-color .2s, background .2s;
}
.divider .dlink:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.divider .dlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- generic grids ---------- */
.cols { display: grid; gap: clamp(16px, 1.6vw, 26px); margin-top: clamp(26px, 3vw, 44px); }
.c2 { grid-template-columns: 1fr 1fr; }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 72px); align-items: center; }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(18px, 1.8vw, 30px);
}
.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(15px, 1.3vw, 20px);
  margin-bottom: 10px;
}
.card .k { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.card p { color: var(--ink-2); font-size: clamp(13px, 1.05vw, 16px); line-height: 1.45; }
.bignum { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 46px); color: var(--accent); letter-spacing: -0.02em; line-height: 1; margin: 8px 0 14px; }

/* lists */
.blist { list-style: none; display: grid; gap: clamp(9px, 1vw, 14px); margin-top: 6px; }
.blist li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: clamp(13px, 1.1vw, 17px); line-height: 1.4; }
.blist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; }
.blist li b { color: var(--ink); font-weight: 600; }

/* ---------- big numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.5vw, 24px); margin-top: clamp(28px, 3.4vw, 52px); }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 2.2vw, 34px); background: linear-gradient(180deg, var(--bg-2), rgba(22,22,27,0.4)); }
.stat .v { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.4vw, 68px); letter-spacing: -0.03em; line-height: 1; }
.stat.hl .v { color: var(--accent); }
.stat .l { margin-top: 12px; color: var(--ink-2); font-size: clamp(12px, 1vw, 15px); line-height: 1.35; }

/* ---------- steps (process) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 30px); margin-top: clamp(28px, 3.4vw, 52px); position: relative; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 2vw, 32px); }
.step .n { font-family: var(--mono); color: var(--accent); font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); }
.step h3 { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.4vw, 22px); margin: 14px 0 10px; }
.step p { color: var(--ink-2); font-size: clamp(13px, 1.05vw, 16px); line-height: 1.45; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.5vw, 24px); margin-top: clamp(28px, 3.4vw, 52px); }
.member { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 1.8vw, 28px); }
.member .av { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--accent); }
.member .nm { font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.2vw, 19px); margin-top: 16px; }
.member .rl { color: var(--ink-2); font-size: clamp(12px, 1vw, 15px); margin-top: 6px; line-height: 1.35; }
.member .tag { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); }

/* ---------- agenda ---------- */
.agenda { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 5vw, 90px); margin-top: clamp(26px, 3vw, 44px); }
.agenda .row { display: flex; gap: 18px; align-items: baseline; padding: clamp(12px, 1.3vw, 18px) 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; cursor: pointer; transition: border-color .2s, padding-left .2s; }
.agenda .row .i { font-family: var(--mono); color: var(--accent); font-size: 13px; min-width: 28px; transition: color .2s; }
.agenda .row .t { font-family: var(--display); font-weight: 500; font-size: clamp(14px, 1.2vw, 19px); transition: color .2s; }
.agenda a.row:hover { border-bottom-color: var(--accent); padding-left: 10px; }
.agenda a.row:hover .t { color: var(--accent); }
.agenda a.row:hover .i { color: var(--text); }
.agenda a.row:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- tree (PBS) ---------- */
.tree { margin-top: clamp(26px, 3vw, 46px); }
.tree .root { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.4vw, 22px); color: var(--bg); background: var(--accent); padding: 10px 20px; border-radius: 10px; }
.tree .branches { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.3vw, 20px); margin-top: clamp(20px, 2.4vw, 36px); }
.tree .node { background: var(--bg-2); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 12px; padding: clamp(14px, 1.4vw, 22px); }
.tree .node h4 { font-family: var(--display); font-weight: 600; font-size: clamp(13px, 1.1vw, 17px); margin-bottom: 10px; }
.tree .node ul { list-style: none; display: grid; gap: 6px; }
.tree .node li { color: var(--ink-2); font-size: clamp(11px, 0.92vw, 14px); line-height: 1.3; }

/* ---------- WBS grid ---------- */
.lots { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.3vw, 20px); margin-top: clamp(26px, 3vw, 44px); }
.lot { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: clamp(14px, 1.4vw, 22px); }
.lot .id { font-family: var(--mono); color: var(--accent); font-size: 13px; }
.lot h4 { font-family: var(--display); font-weight: 600; font-size: clamp(13px, 1.05vw, 16px); margin: 8px 0 6px; }
.lot p { color: var(--ink-3); font-size: clamp(11px, 0.9vw, 13px); line-height: 1.35; }

/* ---------- WBS arbre (org-chart 2 niveaux) ---------- */
.wbs { margin-top: clamp(20px, 2.4vw, 40px); }
.wbs .root { display: flex; justify-content: center; }
.wbs .root span { font-family: var(--display); font-weight: 700; font-size: clamp(14px, 1.2vw, 19px); color: var(--bg); background: var(--accent); padding: 9px 24px; border-radius: 10px; }
.wbs .stem { width: 1px; height: 22px; background: var(--line); margin: 0 auto; }
.wbs .axes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 22px); }
.wbs .axis { border-top: 2px solid var(--accent); padding-top: 14px; }
.wbs .axis .head { font-family: var(--display); font-weight: 600; font-size: clamp(12px, 1.05vw, 16px); margin-bottom: 12px; }
.wbs .leaf { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-bottom: 9px; }
.wbs .leaf .id { font-family: var(--mono); color: var(--accent); font-size: 11px; }
.wbs .leaf h4 { font-family: var(--display); font-weight: 600; font-size: clamp(12px, 0.98vw, 15px); margin: 3px 0 2px; }
.wbs .leaf p { color: var(--ink-3); font-size: clamp(10px, 0.82vw, 13px); line-height: 1.3; }

/* ---------- OBS organigramme ---------- */
.org { margin-top: clamp(24px, 3vw, 48px); }
.org .top { display: flex; justify-content: center; }
.org .stem { width: 1px; height: 26px; background: var(--line); margin: 0 auto; }
.org .bar { height: 1px; background: var(--line); width: 66%; margin: 0 auto; }
.org .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 30px); margin-top: 26px; }
.org .box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: clamp(14px, 1.5vw, 22px); text-align: center; }
.org .box.lead { border-color: rgba(255,196,0,0.5); border-top: 3px solid var(--accent); min-width: 240px; }
.org .box .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.org .box .nm { font-family: var(--display); font-weight: 600; font-size: clamp(14px, 1.15vw, 18px); margin-top: 6px; }
.org .box .sub { color: var(--ink-2); font-size: clamp(11px, 0.9vw, 14px); margin-top: 5px; line-height: 1.35; }

/* ---------- RACI ---------- */
.raci { width: 100%; border-collapse: collapse; margin-top: clamp(22px, 2.6vw, 40px); font-size: clamp(12px, 1vw, 16px); }
.raci th, .raci td { padding: clamp(8px, 1vw, 14px) 10px; text-align: center; border-bottom: 1px solid var(--line); }
.raci th { font-family: var(--mono); font-weight: 700; color: var(--ink-2); letter-spacing: 0.06em; font-size: clamp(11px, 0.92vw, 14px); }
.raci td:first-child, .raci th:first-child { text-align: left; color: var(--ink); font-family: var(--display); font-weight: 500; }
.raci tbody tr:nth-child(odd) { background: rgba(255,255,255,0.018); }
.pill { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--mono); font-weight: 700; font-size: 12px; }
.pill.R { background: var(--accent); color: var(--bg); }
.pill.A { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }
.pill.C { color: var(--ink-2); }
.pill.I { color: var(--ink-3); }
.legend { display: flex; gap: clamp(18px, 2vw, 34px); margin-top: clamp(18px, 2vw, 28px); font-family: var(--mono); font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 8px; }

/* ---------- timeline (frise / planning) ---------- */
.timeline { margin-top: clamp(34px, 4vw, 64px); position: relative; }
.timeline .axis { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.timeline .axis::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), rgba(255,196,0,0.15)); }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 26px); position: relative; }
.phase { padding-top: 34px; position: relative; }
.phase::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.phase .when { font-family: var(--mono); color: var(--accent); font-size: 12px; }
.phase h4 { font-family: var(--display); font-weight: 600; font-size: clamp(14px, 1.2vw, 19px); margin: 8px 0 12px; }
.phase ul { list-style: none; display: grid; gap: 6px; }
.phase li { color: var(--ink-2); font-size: clamp(12px, 0.95vw, 14px); }

/* onboarding frise (jours) */
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.4vw, 22px); margin-top: clamp(30px, 3.6vw, 54px); }
.day { border-left: 2px solid var(--accent); padding-left: 16px; }
.day .when { font-family: var(--mono); color: var(--accent); font-size: 12px; }
.day h4 { font-family: var(--display); font-weight: 600; font-size: clamp(13px, 1.05vw, 17px); margin: 8px 0 6px; }
.day p { color: var(--ink-3); font-size: clamp(11px, 0.9vw, 13px); line-height: 1.35; }

/* ---------- architecture bento + flow ---------- */
.arch { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(16px, 1.8vw, 28px); margin-top: clamp(24px, 2.8vw, 44px); }
.layers { display: grid; gap: clamp(12px, 1.3vw, 18px); }
.layer { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: clamp(14px, 1.4vw, 22px); }
.layer .k { font-family: var(--mono); color: var(--accent); font-size: 12px; letter-spacing: 0.08em; }
.layer .v { margin-top: 8px; color: var(--ink-2); font-size: clamp(12px, 1vw, 15px); line-height: 1.4; }
.layer .v b { color: var(--ink); font-weight: 600; }
.flow { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 1.6vw, 26px); }
.flow .k { font-family: var(--mono); color: var(--accent); font-size: 12px; letter-spacing: 0.08em; margin-bottom: 14px; }
.flow ol { list-style: none; counter-reset: f; display: grid; gap: 10px; }
.flow li { counter-increment: f; position: relative; padding-left: 30px; color: var(--ink-2); font-size: clamp(11px, 0.92vw, 14px); line-height: 1.35; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-3); color: var(--accent); font-family: var(--mono); font-size: 11px; display: grid; place-items: center; }

/* ---------- AMDEC heatmap ---------- */
.amdec { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(24px, 3vw, 52px); margin-top: clamp(22px, 2.6vw, 40px); align-items: start; }
.heat { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 6px; }
.heat .lbl { font-family: var(--mono); font-size: 11px; color: var(--ink-3); display: grid; place-items: center; padding: 4px; }
.heat .cell { aspect-ratio: 1.7 / 1; border-radius: 8px; padding: 8px; font-size: clamp(9px, 0.78vw, 12px); color: #0c0c0c; font-weight: 600; line-height: 1.2; display: flex; align-items: flex-end; }
.heat .lo { background: rgba(63,154,106,0.85); }
.heat .mid { background: rgba(224,165,46,0.9); }
.heat .hi { background: rgba(224,85,62,0.92); }
.heat .empty { background: var(--bg-2); border: 1px solid var(--line); }
.top3 { display: grid; gap: clamp(10px, 1.2vw, 16px); }
.risk { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--risk-high); border-radius: 10px; padding: clamp(12px, 1.3vw, 20px); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.risk .nm { font-family: var(--display); font-weight: 600; font-size: clamp(13px, 1.1vw, 17px); }
.risk .mt { color: var(--ink-3); font-size: clamp(11px, 0.9vw, 13px); margin-top: 4px; }
.risk .ipr { font-family: var(--mono); font-weight: 700; font-size: clamp(20px, 2vw, 30px); color: var(--accent); }

/* ---------- close ---------- */
.close { justify-content: center; align-items: flex-start; }
.close .big { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 104px); letter-spacing: -0.03em; line-height: 1; }
.close .sub { margin-top: 22px; color: var(--ink-2); font-size: clamp(15px, 1.4vw, 22px); }
.close .team { margin-top: 30px; font-family: var(--mono); font-size: clamp(12px, 1vw, 15px); color: var(--ink-3); letter-spacing: 0.06em; }

/* ---------- source / footnote ---------- */
.src {
  position: absolute;
  left: var(--pad);
  bottom: clamp(40px, 5.6vh, 64px);
  max-width: 64%;
  font-family: var(--mono);
  font-size: clamp(10px, 0.8vw, 12px);
  letter-spacing: 0.02em;
  color: var(--ink-3);
  line-height: 1.4;
}
.src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.src b { color: var(--ink-2); font-weight: 400; }

/* ---------- charts ---------- */
.chart-box { width: 100%; height: clamp(280px, 42vh, 440px); }
.chart-box > div { width: 100%; height: 100%; }
.apexcharts-tooltip { background: var(--bg-3) !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }
.apexcharts-text, .apexcharts-legend-text { fill: var(--ink-2); }

/* membres en version compacte (slide équipe avec radar) */
.members { display: grid; gap: clamp(10px, 1.2vw, 16px); margin-top: 8px; }
.mrow { display: flex; gap: 14px; align-items: flex-start; }
.mrow .av { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--accent); }
.mrow .nm { font-family: var(--display); font-weight: 600; font-size: clamp(14px, 1.1vw, 17px); }
.mrow .rl { color: var(--ink-2); font-size: clamp(11px, 0.9vw, 14px); line-height: 1.3; margin-top: 2px; }
.mrow .tag { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .c2, .c3, .c4, .stats, .steps, .team-grid, .tree .branches, .lots, .phases, .days, .agenda, .arch, .amdec, .split { grid-template-columns: 1fr; }
  .lots { grid-template-columns: 1fr 1fr; }
  .hint { display: none; }
  .slide { padding: 64px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity 0.001s; transform: none; }
  .progress { transition: none; }
}
