/* transcria.com — éditorial « compte rendu » : papier chaud, encre marine,
 * le vert = checkpoint humain (même sémantique que le produit et la Space). */

:root {
  --paper: #f6f3ec;
  --card: #fffdf8;
  --ink: #182740;
  --muted: #5f6b80;
  --brand: #1f3864;
  --green: #0e8a62;
  --green-soft: #0e8a6218;
  --amber: #b45309;
  --line: #e2dccd;
  --shadow: 0 1px 2px #1827400a, 0 12px 32px -12px #18274026;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1524;
    --card: #131e33;
    --ink: #e9e4d8;
    --muted: #94a0b4;
    --brand: #9db9e4;
    --green: #38c793;
    --green-soft: #38c79322;
    --amber: #e0913a;
    --line: #243250;
    --shadow: 0 1px 2px #0006, 0 12px 32px -12px #000a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* grain discret, esprit papier */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
main, header.site, footer.site { position: relative; z-index: 1; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

h1, h2, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* ---------- header ---------- */
header.site { padding: 22px 0; }
header.site .wrap { display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.logo b { font-family: "Fraunces", serif; font-size: 1.25em; font-weight: 600; }
nav.top { margin-left: auto; display: flex; gap: 22px; align-items: center; font-size: 0.95em; }
nav.top a { text-decoration: none; color: var(--muted); }
nav.top a:hover { color: var(--brand); }
nav.top a.lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
  font-family: "IBM Plex Mono", monospace; font-size: 0.85em; color: var(--ink);
}
@media (max-width: 640px) { nav.top a:not(.lang):not(.gh) { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 52px 0 30px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }

.eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78em; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3em, 5.2vw, 3.4em); }
.hero h1 em { font-style: italic; color: var(--brand); }
.lead { font-size: 1.12em; color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.lead strong { color: var(--ink); }

.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; text-decoration: none; border-radius: 10px;
  padding: 12px 22px; font-weight: 600; font-size: 0.98em;
  border: 1.5px solid var(--brand);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--brand); color: var(--paper); }
.btn.ghost { color: var(--brand); background: transparent; }
.cta-note { flex-basis: 100%; font-size: 0.86em; color: var(--muted); margin-top: 2px; }
.cta-note b { color: var(--green); }

/* ---------- la carte « compte rendu » animée ---------- */
.minutes {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 26px 22px;
  transform: rotate(1.4deg);
  position: relative;
}
.minutes::after { /* page dessous */
  content: ""; position: absolute; inset: 10px -8px -8px 10px; z-index: -1;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  opacity: 0.6; transform: rotate(-1.8deg);
}
.minutes-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px;
}
.minutes-head .t { font-family: "Fraunces", serif; font-weight: 600; }
.minutes-head .d { font-family: "IBM Plex Mono", monospace; font-size: 0.72em; color: var(--muted); }

.mrow { display: flex; align-items: center; gap: 12px; margin: 13px 0; }
.mrow .who {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72em; color: var(--brand);
  min-width: 4.6em;
}
.bar { height: 11px; border-radius: 6px; background: var(--brand); opacity: 0.32;
  transform-origin: left; animation: type 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.mrow:nth-child(2) .bar { width: 78%; animation-delay: 0.15s; }
.mrow:nth-child(3) .bar { width: 62%; animation-delay: 0.35s; }
.mrow:nth-child(4) .bar { width: 71%; animation-delay: 0.55s; }
.mrow.wave { gap: 5px; margin-bottom: 20px; }
.mrow.wave i {
  width: 7px; border-radius: 4px; background: var(--brand); opacity: 0.75;
  animation: pulse 1.6s ease-in-out infinite;
}
.mrow.wave i:nth-child(1) { height: 14px; animation-delay: 0s; }
.mrow.wave i:nth-child(2) { height: 26px; animation-delay: 0.12s; }
.mrow.wave i:nth-child(3) { height: 36px; animation-delay: 0.24s; }
.mrow.wave i:nth-child(4) { height: 20px; animation-delay: 0.36s; }
.mrow.wave i:nth-child(5) { height: 30px; animation-delay: 0.48s; }
.mrow.wave i:nth-child(6) { height: 12px; animation-delay: 0.6s; }
.mrow.wave .who { min-width: 0; margin-left: 10px; }

.mrow.valid .bar { background: var(--green); opacity: 1; width: 54%; animation-delay: 0.8s; }
.check {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72em; color: var(--green);
  background: var(--green-soft); border: 1px solid var(--green);
  border-radius: 999px; padding: 2px 10px; white-space: nowrap;
  animation: type 0.5s 1.1s both;
}

@keyframes type { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); } }
@keyframes pulse { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .bar, .check { animation: none; }
  .mrow.wave i { animation: none; }
}

/* ---------- bandeau chiffres ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 46px; }
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 24px;
}
@media (max-width: 720px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat .n { font-family: "Fraunces", serif; font-size: 2em; font-weight: 600; color: var(--brand); }
.stat .l { font-size: 0.86em; color: var(--muted); }

/* ---------- sections ---------- */
section.block { padding: 64px 0 8px; }
.kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 0.76em; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
section.block h2 { font-size: clamp(1.6em, 3.4vw, 2.1em); margin-bottom: 14px; }
.sub { color: var(--muted); max-width: 44em; margin: 0 0 34px; }

/* pipeline */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: "IBM Plex Mono", monospace; font-size: 0.74em; color: var(--muted);
  position: absolute; top: 16px; right: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 1.02em; }
.step p { margin: 0; font-size: 0.92em; color: var(--muted); }
.step.human { border-color: var(--green); background: linear-gradient(var(--green-soft), transparent 65%), var(--card); }
.step.human::before { content: "0" counter(step) " ✋"; color: var(--green); }
.step.human h3 { color: var(--green); }

/* screenshot */
.shot { margin: 46px auto 0; max-width: 920px; }
.shot figure { margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shot .chrome { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.shot .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot img { display: block; width: 100%; }
.shot figcaption { padding: 10px 16px 12px; font-size: 0.85em; color: var(--muted); }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.feat:hover { border-color: var(--brand); transform: translateY(-2px); }
.feat .ic { font-size: 1.3em; }
.feat h3 { margin: 8px 0 6px; font-size: 1.02em; }
.feat p { margin: 0; font-size: 0.9em; color: var(--muted); }
.feat a { color: inherit; }

/* bench callout */
.bench {
  margin-top: 56px; background: var(--brand); color: var(--paper);
  border-radius: var(--radius); padding: 30px 30px;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.bench h2 { color: inherit; font-size: 1.4em; margin: 0 0 6px; }
.bench p { margin: 0; opacity: 0.85; font-size: 0.95em; max-width: 38em; }
.bench .btn { border-color: var(--paper); color: var(--paper); margin-left: auto; }
@media (prefers-color-scheme: dark) { .bench { color: #0d1524; } .bench .btn { border-color: #0d1524; color: #0d1524; } }

/* fine print */
.fine {
  border-left: 3px solid var(--amber); background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; margin-top: 10px;
}
.fine ol { margin: 10px 0 0; padding-left: 1.3em; }
.fine li { margin: 9px 0; color: var(--muted); }
.fine li::marker { font-family: "IBM Plex Mono", monospace; color: var(--amber); }
.fine b { color: var(--ink); }

/* ---------- footer ---------- */
footer.site { margin-top: 74px; border-top: 1px solid var(--line); padding: 30px 0 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; }
footer.site a { color: var(--muted); font-size: 0.9em; }
footer.site .fill { flex: 1; }
footer.site .tiny { font-size: 0.8em; color: var(--muted); flex-basis: 100%; margin-top: 14px; }
