/* Identité Algostim : fond noir, Poppins, jaune pour l'enjeu, bleu pour la solution
   (repris des decks). Look sombre assumé, identique quel que soit le thème système. */

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-latin-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #0f0f11;
  --line: #2a2a2e;
  --ink: #fbf9f1;
  --ink-soft: #b9b5ab;
  --blue: #5783fe;
  --blue-text: #7a9dff;
  --gold: #fdb827;
  --max: 1120px;
  --gutter: 20px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

a { color: var(--blue-text); }
a:hover { color: var(--ink); }
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.gold { color: var(--gold); }
.blue { color: var(--blue-text); }


/* En-tête */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo { display: block; }
.logo img { display: block; height: 42px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
}
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .nav { display: none; }
}

/* Titres, comme dans les decks : capitales grasses */
h1, h2 {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.4vw, 3.7rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
}

.eyebrow {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Accueil */
.hero { padding-block: 88px 40px; }
.hero .wrap { display: grid; gap: 28px; }
.hero h1 { max-width: 20ch; }
.quote {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
  color: #e5e1da;
}
.lead {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.btn {
  justify-self: start;
  display: inline-block;
  padding: 12px 24px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold); color: #000; }

/* Tracé ECG : le motif du logo, courbes arrondies, proportions conservées (slice) */
.ecg { display: block; width: 100%; height: 100px; margin-top: 24px; }
.ecg path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: trace 2.6s ease-out both;
}
@keyframes trace {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ecg path { animation: none; }
}

/* Sections */
section { padding-block: 88px; border-top: 1px solid var(--line); }
section .wrap { display: grid; gap: 40px; }
.intro { display: grid; gap: 14px; max-width: 64ch; }
.intro p { margin: 0; color: var(--ink-soft); }

/* L'enjeu : rail vertical à pastilles dorées (repris des slides) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}
.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 34px;
  position: relative;
}
.rail::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.rail li {
  position: relative;
  display: grid;
  gap: 6px;
  padding-left: 44px;
}
.rail li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe39a, var(--gold) 55%, #b27800);
}
.rail p { margin: 0; color: var(--ink-soft); }

.split + .wrap { margin-top: 36px; }
.note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Notre approche : trois points, mot-clé en bleu */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; gap: 28px; }
}
.pillars > div {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 20px;
  border-top: 2px solid var(--blue);
}
.pillars p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* Où en sommes-nous */
.status {
  display: grid;
  gap: 12px;
  max-width: 760px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.status p { margin: 0; color: var(--ink-soft); }
.status strong { color: var(--ink); font-weight: 600; }

/* Contact */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.contact p { margin: 0; max-width: 52ch; color: var(--ink-soft); }

/* Pages simples (mentions légales, 404) */
.page { padding-block: 64px 88px; display: grid; gap: 8px; }
.page h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 24px; }
.page h2 { font-size: 1.05rem; margin-top: 28px; letter-spacing: 0.04em; }
.page p { margin: 0; color: var(--ink-soft); max-width: 70ch; }

/* Pied de page */
.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
